/* CheckIn public site. Colours are the product's own (checkin/web/static/style.css),
   so the drawings of the product match the product. No web fonts, no third-party
   requests: system fonts only. */
:root {
  --bg:#f7f7f5; --fg:#1c1c1a; --muted:#6b6b66; --card:#fff; --line:#e3e2dc;
  --accent:#2f6f5e; --accent-fg:#fff; --accent-soft:#dcebe5;
  --home:#e8f1ec; --office:#eaeef7; --off:#f0efea; --warn:#8a6100; --ok:#2f6f5e;
  --hero:#eef4f1; --ink:#14231e; --shadow:0 1px 2px rgba(20,35,30,.06), 0 12px 32px rgba(20,35,30,.10);
  --illus:#f4f1ea; --illus-line:#d9d3c5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#161615; --fg:#ecebe6; --muted:#a3a29b; --card:#20201e; --line:#34342f;
    --accent:#6fb9a2; --accent-fg:#10201b; --accent-soft:#22352e;
    --home:#1f2e27; --office:#1f2533; --off:#262624; --warn:#e0b44f; --ok:#6fb9a2;
    --hero:#18211e; --ink:#ecebe6; --shadow:0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --illus:#24221d; --illus-line:#3d392f;
  }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font:17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:var(--bg); color:var(--fg); -webkit-font-smoothing:antialiased; }
a { color:var(--accent); }
img, svg { max-width:100%; }
.wrap { max-width:68rem; margin:0 auto; padding:0 1rem; }
.skip { position:absolute; left:-999px; } .skip:focus { left:1rem; top:1rem; background:var(--card); padding:.5rem; }

/* --- header and footer */
.top { position:sticky; top:0; z-index:5; background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.top .wrap { display:flex; align-items:center; gap:1rem; min-height:3.5rem; }
.brand { display:flex; align-items:center; gap:.5rem; font-weight:750; font-size:1.1rem; color:var(--fg);
  text-decoration:none; margin-right:auto; letter-spacing:-.01em; }
.brand svg { width:1.6rem; height:1.6rem; }
.top nav { display:flex; gap:1rem; font-size:.95rem; }
.top nav a { color:var(--muted); text-decoration:none; } .top nav a:hover { color:var(--fg); }
.lang { font-size:.85rem; border:1px solid var(--line); border-radius:999px; padding:.15rem .6rem;
  text-decoration:none; color:var(--muted); }
@media (max-width: 40rem) { .top nav .opt { display:none; } }

footer { border-top:1px solid var(--line); margin-top:4rem; padding:2rem 0 3rem; font-size:.88rem; color:var(--muted); }
footer .cols { display:flex; flex-wrap:wrap; gap:1rem 2.5rem; justify-content:space-between; }
footer nav { display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; }
footer nav a { color:var(--muted); }
.disclaimer { max-width:44rem; margin:1.2rem 0 0; }

/* --- hero */
.hero { background:radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%), var(--hero);
  border-bottom:1px solid var(--line); overflow:hidden; }
.hero .wrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:3rem; align-items:center;
  padding-top:4rem; padding-bottom:4.5rem; }
@media (max-width: 56rem) { .hero .wrap { grid-template-columns:1fr; gap:2.5rem; padding-top:2.5rem; } }
.eyebrow { display:inline-block; font-size:.82rem; font-weight:650; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent); margin-bottom:.8rem; }
h1 { font-size:clamp(2rem, 4.6vw, 3.1rem); line-height:1.1; letter-spacing:-.025em; margin:0 0 1rem; color:var(--ink); }
.lead { font-size:1.15rem; color:var(--muted); margin:0 0 1.6rem; max-width:34rem; }
.status { display:inline-flex; align-items:center; gap:.5rem; font-size:.9rem; padding:.35rem .8rem;
  border-radius:999px; background:var(--card); border:1px solid var(--line); margin-bottom:1.4rem; }
.status i { width:.55rem; height:.55rem; border-radius:50%; background:var(--warn); display:inline-block; }
.cta { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.btn { display:inline-block; padding:.7rem 1.2rem; border-radius:10px; background:var(--accent); color:var(--accent-fg);
  text-decoration:none; font-weight:600; border:1px solid var(--accent); }
.btn.quiet { background:transparent; color:var(--accent); }

/* --- sections */
section { padding:4.5rem 0 0; }
h2 { font-size:clamp(1.5rem, 3vw, 2rem); letter-spacing:-.02em; line-height:1.2; margin:0 0 .6rem; color:var(--ink); }
.intro { color:var(--muted); max-width:40rem; margin:0 0 2rem; font-size:1.05rem; }
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3rem; align-items:center; }
@media (max-width: 56rem) { .split { grid-template-columns:1fr; gap:2rem; } }

.steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; counter-reset:s; }
@media (max-width: 48rem) { .steps { grid-template-columns:1fr; } }
.steps li { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.3rem; counter-increment:s; }
.steps li::before { content:counter(s); display:inline-grid; place-items:center; width:2rem; height:2rem; border-radius:50%;
  background:var(--accent-soft); color:var(--accent); font-weight:700; margin-bottom:.7rem; }
.steps h3, .features h3 { margin:0 0 .3rem; font-size:1.05rem; }
.steps p, .features p { margin:0; color:var(--muted); font-size:.95rem; }

.features { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; }
@media (max-width: 56rem) { .features { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 36rem) { .features { grid-template-columns:1fr; } }
.features > div { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.3rem; }
.features svg { width:2.2rem; height:2.2rem; margin-bottom:.6rem; color:var(--accent); }

/* --- drawings of the product (see website/VISUALS.md) */
.frame { background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); overflow:hidden; }
.frame .bar { display:flex; align-items:center; gap:.4rem; padding:.55rem .8rem; border-bottom:1px solid var(--line); background:var(--off); }
.frame .bar i { width:.6rem; height:.6rem; border-radius:50%; background:var(--line); display:inline-block; }
.frame .bar span { margin-left:.6rem; font-size:.75rem; color:var(--muted); background:var(--card); border-radius:6px;
  padding:.1rem .6rem; flex:1; max-width:16rem; }
.app-head { display:flex; gap:.9rem; align-items:center; padding:.6rem 1rem; border-bottom:1px solid var(--line); font-size:.8rem; color:var(--muted); }
.app-head b { color:var(--fg); margin-right:auto; font-size:.9rem; }
.app-head .on { color:var(--fg); font-weight:600; }
.app { padding:.9rem 1rem 1rem; font-size:.8rem; }
.app h4 { margin:.2rem 0 .5rem; font-size:.85rem; }
.week { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:.35rem; }
.day { border:1px solid var(--line); border-radius:8px; padding:.4rem; min-height:4.4rem; background:var(--off); line-height:1.35; }
.day.home { background:var(--home); } .day.office { background:var(--office); }
.day.today { box-shadow:inset 0 0 0 2px var(--accent); }
.day .d { font-weight:650; } .day .why { color:var(--muted); font-size:.72rem; }
.runs { width:100%; border-collapse:collapse; margin-top:.3rem; }
.runs td { padding:.32rem .2rem; border-bottom:1px solid var(--line); }
.runs tr:last-child td { border-bottom:0; }
.ok { color:var(--ok); font-weight:600; } .wait { color:var(--muted); }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.3rem .7rem; margin-top:.4rem; }
.note { font-size:.8rem; color:var(--muted); margin-top:.6rem; }

/* the day timeline */
.timeline { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.4rem 1.2rem 1.1rem; box-shadow:var(--shadow); }
.tl { position:relative; height:7.5rem; margin:0 .4rem; }
.tl .axis { position:absolute; left:0; right:0; top:3.4rem; height:4px; border-radius:2px; background:var(--line); }
.tl .work { position:absolute; top:3.1rem; height:10px; border-radius:5px; background:var(--accent-soft); border:1px solid var(--accent); }
.tl .mark { position:absolute; top:2.2rem; height:1.4rem; border-left:2px dashed var(--muted); }
.tl .mark span { position:absolute; top:-1.5rem; left:-1.4rem; width:2.8rem; text-align:center; font-size:.78rem; color:var(--muted); font-weight:600; }
.tl .dot { position:absolute; top:3rem; width:14px; height:14px; margin-left:-7px; border-radius:50%; background:var(--accent);
  border:3px solid var(--card); box-shadow:0 0 0 1px var(--accent); }
.tl .lbl { position:absolute; top:4.5rem; transform:translateX(-50%); text-align:center; font-size:.76rem; white-space:nowrap; }
.tl .lbl b { display:block; font-size:.85rem; }
.tl .lbl.up { top:.1rem; }
.legend { display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; font-size:.85rem; color:var(--muted); margin-top:.6rem; }

/* a phone notification (generic: not any messaging app's design) */
.phone { width:min(19rem, 100%); margin:0 auto; border-radius:2.2rem; padding:.7rem; background:#1c1c1a; box-shadow:var(--shadow); }
.screen { border-radius:1.7rem; min-height:22rem; padding:2.2rem .8rem 1rem;
  background:linear-gradient(160deg, #2f6f5e, #1f3f37 60%, #14231e); color:#fff; }
.screen .clock { text-align:center; font-size:2.6rem; font-weight:300; letter-spacing:-.02em; }
.screen .date { text-align:center; font-size:.8rem; opacity:.8; margin-bottom:1.4rem; }
.notif { background:rgba(255,255,255,.16); backdrop-filter:blur(6px); border-radius:1rem; padding:.6rem .75rem; margin-bottom:.5rem; font-size:.8rem; line-height:1.35; }
.notif .who { display:flex; align-items:center; gap:.4rem; font-size:.7rem; opacity:.85; margin-bottom:.15rem; }
.notif .who svg { width:1rem; height:1rem; }
.notif.alert { background:rgba(255,236,200,.22); }

/* templates */
.tpls { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:.8rem; }
@media (max-width: 56rem) { .tpls { grid-template-columns:repeat(2, minmax(0,1fr)); } }
.tpl { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1rem; font-size:.9rem; }
.tpl.on { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.tpl b { display:block; margin-bottom:.2rem; }
.tpl .bars { display:grid; grid-template-columns:repeat(5, 1fr); gap:3px; height:3.2rem; margin:.7rem 0 .5rem; align-items:end; }
.tpl .bars i { display:block; background:var(--accent-soft); border-radius:3px 3px 0 0; border-top:2px solid var(--accent); }
.tpl small { color:var(--muted); }

/* the month calendar */
.month { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:.25rem; font-size:.75rem; }
.month .h { text-align:center; color:var(--muted); font-weight:600; padding-bottom:.2rem; }
.month .c { border:1px solid var(--line); border-radius:6px; min-height:3.1rem; padding:.25rem; background:var(--office); }
.month .c.home { background:var(--home); } .month .c.off { background:var(--off); color:var(--muted); }
.month .c.x { opacity:.4; background:var(--off); }
.month .c em { display:block; font-style:normal; font-size:.66rem; color:var(--muted); line-height:1.2; margin-top:.1rem; }

/* an approximation of the employer's time-recording site: deliberately generic */
.illus { background:var(--illus); border:1px dashed var(--illus-line); border-radius:14px; padding:1.2rem; position:relative; }
.illus .tag { position:absolute; top:-.75rem; left:1rem; background:var(--bg); border:1px dashed var(--illus-line);
  border-radius:999px; padding:.05rem .65rem; font-size:.72rem; color:var(--muted); }
.illus .sheet { background:var(--card); border-radius:10px; padding:.8rem; border:1px solid var(--illus-line); }
.illus .ph { height:.55rem; border-radius:4px; background:var(--illus-line); margin:.3rem 0; }
.illus .row { display:flex; align-items:center; gap:.6rem; padding:.45rem 0; border-bottom:1px dashed var(--illus-line); font-size:.82rem; }
.illus .row:last-child { border-bottom:0; }
.illus .row .t { font-variant-numeric:tabular-nums; font-weight:600; width:3rem; }
.illus .row .ph { flex:1; margin:0; }
.illus .pill { font-size:.7rem; padding:.05rem .5rem; border-radius:999px; background:var(--accent-soft); color:var(--accent); }
.arrow { display:grid; place-items:center; color:var(--accent); }
.arrow svg { width:3rem; height:3rem; }
.flow { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:1rem; align-items:center; }
@media (max-width: 48rem) { .flow { grid-template-columns:1fr; } .arrow svg { transform:rotate(90deg); } }

/* FAQ */
.faq details { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:.9rem 1.1rem; margin-bottom:.6rem; }
.faq summary { cursor:pointer; font-weight:600; }
.faq details p { color:var(--muted); margin:.6rem 0 0; }

/* legal pages */
.doc { max-width:46rem; padding-top:2.5rem; }
.doc h1 { font-size:2rem; }
.doc h2 { font-size:1.25rem; margin-top:2rem; }
.doc .updated { color:var(--muted); font-size:.9rem; }
.doc .box { background:var(--accent-soft); border-radius:12px; padding:1rem 1.2rem; margin:1.2rem 0; }
.doc dl { display:grid; grid-template-columns:max-content 1fr; gap:.3rem 1rem; }
.doc dt { font-weight:600; }
@media (max-width: 36rem) { .doc dl { grid-template-columns:1fr; } }

/* the day timeline: zoomed edges */
.zt { font-size:.78rem; font-weight:650; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:.4rem; }
.zooms { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.2rem; padding-top:1.1rem; border-top:1px solid var(--line); }
@media (max-width: 36rem) { .zooms { grid-template-columns:1fr; } }
.tl.small { height:5.2rem; }
.tl.small .axis { top:2.6rem; } .tl.small .mark { top:1.5rem; height:1.5rem; }
.tl.small .dot { top:2.25rem; } .tl.small .lbl { top:3.3rem; }
.tl .zone { position:absolute; top:2.35rem; height:14px; border-radius:4px; background:color-mix(in srgb, var(--ok) 28%, transparent); }
.tl .tick { position:absolute; top:3.4rem; font-size:.68rem; color:var(--muted); }
.tl .tick.l { left:0; } .tl .tick.r { right:0; }
.zn { font-size:.82rem; color:var(--muted); margin:.1rem 0 0; }
.sw { display:inline-block; width:.9rem; height:.55rem; border-radius:3px; margin-right:.35rem; vertical-align:middle; }
.sw.work { background:var(--accent-soft); border:1px solid var(--accent); }
.sw.zone { background:color-mix(in srgb, var(--ok) 28%, transparent); }

/* anchors land below the sticky header */
section, .hero { scroll-margin-top:4rem; }
/* the product drawings on a phone: drop the detail a real phone layout would drop */
@media (max-width: 40rem) {
  .app { font-size:.72rem; padding:.7rem; }
  .app-head span:nth-of-type(n+4) { display:none; }
  .week .day .why { display:none; }
  .day { padding:.3rem; }
}
