/* WiseWork landing page v2 — "A working day". work.wisright.com
   stories/Marketing/story-landing-page-work-wisright.md (v2.0)
   One token set; every colour, space, size, radius and shadow below comes from here. */

:root {
  /* colour — light */
  --paper: #fbf7f2;
  --paper-2: #f4ede4;
  --card: #ffffff;
  --ink: #1b1714;
  --body: #4a4440;
  --muted: #6b635c;
  --line: #e8dfd6;
  --brand: #e86424;          /* logo orange — accents, never small text */
  --brand-text: #b8430f;     /* orange for text and buttons: AA on paper, white on it AA */
  --brand-hover: #9c380b;
  --brand-press: #7f2d08;
  --brand-tint: #fdebdf;
  --on-brand: #ffffff;
  --good: #1f7a44;  --good-tint: #e4f3ea;
  --info: #1d5fb8;  --info-tint: #e6eefa;
  --warn: #8a5a00;  --warn-tint: #fbf0d9;
  --calm: #6a3fb5;  --calm-tint: #efe8fa;
  /* meaning colours — from WiseWork's own Check In/Out cards (AttendanceCheckIn.tsx); white text meets AA */
  --c-office: #2e7d32; --c-absent: #c62828; --c-home: #b85000; --c-leave: #0277bd;
  --c-hours: #1565c0; --c-eff: #00695c; --c-review: #7b1fa2; --c-money: #8a5a00; --c-slate: #4f5b68;
  --on-c: #ffffff;           /* text on a filled meaning colour */
  --app-bar: linear-gradient(90deg, #b8430f, #c24a12);
  --panel: #1b1714;          /* the one dark block (demo) */
  --panel-line: #4a423b;
  --panel-text: #f6efe8;
  --panel-muted: #cfc4b9;
  --panel-accent: #ff8a4c;

  /* space — 8-pt scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* type — 7 steps */
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 20px; --t-xl: 26px;
  /* The top ends grow on big monitors, so a 1920px screen is not a small page in a large frame. */
  --t-2xl: clamp(32px, 3.2vw, 56px); --t-3xl: clamp(40px, 5.2vw, 96px);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* shape */
  --r1: 6px; --r2: 12px; --r3: 20px;
  --shadow-1: 0 1px 2px rgba(27, 23, 20, 0.06), 0 4px 12px rgba(27, 23, 20, 0.05);
  --shadow-2: 0 12px 32px rgba(27, 23, 20, 0.10);
  /* Full width with fluid side margins: 16px on a phone, ~86px at 1920. Capped only on ultra-wide
     screens, where a line of text would otherwise run the width of a TV. */
  --wrap: 2200px;
  --gutter: clamp(16px, 4.5vw, 96px);
  color-scheme: light;
}

/* Dark mode: follows the system setting; data-theme can force either. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16130f; --paper-2: #1e1a15; --card: #221d18; --ink: #f4ece3; --body: #d3c8bd; --muted: #a89b8f;
    --line: #362e27; --brand-text: #ff9a5c; --brand-hover: #ffb07f; --brand-press: #ffc49c; --brand-tint: #3a2417; --on-brand: #1b1714;
    --good: #6fd39a; --good-tint: #183324; --info: #8db8ff; --info-tint: #182840; --warn: #f0c46b; --warn-tint: #3a2e14;
    --calm: #c3a6ff; --calm-tint: #2b2140; --panel: #0e0c0a; --panel-line: #3a332d;
    --c-office: #57b560; --c-absent: #ef6b6b; --c-home: #f08a3c; --c-leave: #4fb3f0; --c-hours: #6aa1ff; --c-eff: #3cc2ad; --c-review: #c77be0; --c-money: #e0b24f; --c-slate: #a7b3c0; --on-c: #1b1714;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16130f; --paper-2: #1e1a15; --card: #221d18; --ink: #f4ece3; --body: #d3c8bd; --muted: #a89b8f;
  --line: #362e27; --brand-text: #ff9a5c; --brand-hover: #ffb07f; --brand-press: #ffc49c; --brand-tint: #3a2417; --on-brand: #1b1714;
  --good: #6fd39a; --good-tint: #183324; --info: #8db8ff; --info-tint: #182840; --warn: #f0c46b; --warn-tint: #3a2e14;
  --calm: #c3a6ff; --calm-tint: #2b2140; --panel: #0e0c0a; --panel-line: #3a332d;
  --c-office: #57b560; --c-absent: #ef6b6b; --c-home: #f08a3c; --c-leave: #4fb3f0; --c-hours: #6aa1ff; --c-eff: #3cc2ad; --c-review: #c77be0; --c-money: #e0b24f; --c-slate: #a7b3c0; --on-c: #1b1714;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 32px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 var(--t-md)/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: var(--r1); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: var(--s2); z-index: 100; background: var(--card); color: var(--ink); padding: var(--s2) var(--s4); border-radius: var(--r1); }
.skip:focus { left: var(--s3); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5); border-radius: var(--r2); border: 1.5px solid transparent;
  font: 600 var(--t-sm)/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--brand-text); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:active { background: var(--paper-2); }
.btn-lg { min-height: 56px; padding: var(--s3) var(--s6); font-size: var(--t-md); }
.btn small { display: block; font: 500 var(--t-xs)/1.3 var(--sans); opacity: .9; }
.btn-text { text-align: left; }
.link { color: var(--brand-text); font-weight: 600; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: var(--r1); }
.brand-name { font: 700 var(--t-lg)/1 var(--sans); color: var(--ink); letter-spacing: -0.01em; }
.brand-name b { color: var(--brand); font-weight: 700; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.brand-product { font: 600 var(--t-md)/1 var(--serif); color: var(--ink); }
.nav { display: flex; gap: var(--s5); }
.nav a { font: 500 var(--t-sm)/1 var(--sans); color: var(--body); text-decoration: none; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.head-actions { display: flex; align-items: center; gap: var(--s3); }
.head-actions .btn { min-height: 40px; padding: var(--s2) var(--s4); }
.nav-login { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ── Opening ─────────────────────────────────────────────────────────── */
.opening { padding: var(--s9) 0 var(--s8); }
.opening-copy { max-width: 780px; }
.kicker { font: 600 var(--t-sm)/1.4 var(--sans); color: var(--brand-text); margin-bottom: var(--s4); }
.opening h1 { font-size: var(--t-3xl); letter-spacing: -0.025em; line-height: 1.04; }
.underline { position: relative; display: inline-block; z-index: 0; }
.underline::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.14em; background: var(--brand); border-radius: 99px; transform: rotate(-1.2deg); z-index: -1; }
.lead { font-size: var(--t-lg); line-height: 1.6; max-width: 560px; margin-top: var(--s5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.signin { margin-top: var(--s4); font-size: var(--t-sm); }
.phone-note { display: none; margin-top: var(--s3); font-size: var(--t-sm); }
.is-mobile .phone-note { display: block; }

/* Day dial */
.dial { margin-top: var(--s8); border-top: 1px solid var(--line); padding-top: var(--s5); }
.dial-label { font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s6); }
.dial-track { position: relative; height: 64px; margin: 0 var(--s5); }
.dial-track::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.dial-ticks { position: absolute; left: 0; right: 0; top: 2px; display: flex; justify-content: space-between; }
.dial-ticks span { width: 1px; height: 14px; background: var(--line); position: relative; }
.dial-ticks span::after { content: attr(data-h); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 500 var(--t-xs)/1 var(--sans); color: var(--muted); }
.dial-stop { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font: 600 var(--t-xs)/1.25 var(--sans); text-align: center; white-space: nowrap; }
.dial-stop i { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--brand); transition: background-color .2s; }
.dial-stop:hover i, .dial-stop.active i { background: var(--brand); }
.dial-stop span { display: block; color: var(--body); font-weight: 500; }
.at-0900 { left: 0%; } .at-1030 { left: 15%; } .at-1130 { left: 25%; } .at-1230 { left: 35%; } .at-1400 { left: 50%; } .at-1600 { left: 70%; } .at-1830 { left: 95%; }
/* The WiseCheck number, shown the way the app shows it: spaced, large, unmistakable. */
.wc-digits { font: 700 var(--t-xl)/1 var(--sans); letter-spacing: 0.18em; color: var(--ink); }
/* The AI paragraph at the top of the end-of-day e-mail. */
.ai-note { font-size: var(--t-xs); line-height: 1.5; color: var(--body); margin: 0 0 var(--s3); }
.ai-note .tag { margin-right: var(--s2); }

/* Drawn app screens (fictional data) */
.screen { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-2); overflow: hidden; font-size: var(--t-sm); }
.screen-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); font: 600 var(--t-xs)/1 var(--sans); color: var(--muted); }
.screen-bar b { color: var(--ink); font-weight: 600; }
.screen-body { padding: var(--s4); display: grid; gap: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row b { color: var(--ink); font-weight: 600; }
.row .end { margin-left: auto; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); color: #fff; flex-shrink: 0; }
.av-a { background: #b8430f; } .av-b { background: #1d5fb8; } .av-c { background: #1f7a44; } .av-d { background: #6a3fb5; } .av-e { background: #8a5a00; }
.tag { display: inline-block; padding: 2px var(--s2); border-radius: var(--r1); font: 600 12px/1.5 var(--sans); white-space: nowrap; }
.tag-good { background: var(--good-tint); color: var(--good); }
.tag-info { background: var(--info-tint); color: var(--info); }
.tag-warn { background: var(--warn-tint); color: var(--warn); }
.tag-calm { background: var(--calm-tint); color: var(--calm); }
.tag-brand { background: var(--brand-tint); color: var(--brand-text); }
.big-num { font: 600 var(--t-xl)/1 var(--serif); color: var(--ink); }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.split div { background: var(--paper); border-radius: var(--r2); padding: var(--s3); }
.split span { display: block; font-size: var(--t-xs); color: var(--muted); }
.mock-btn { display: inline-block; padding: var(--s2) var(--s4); border-radius: var(--r2); background: var(--brand-text); color: var(--on-brand); font: 600 var(--t-xs)/1.4 var(--sans); }
.bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: var(--s1); }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.w30 i { width: 30%; } .w60 i { width: 60%; } .w80 i { width: 80%; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: var(--t-xs); }

/* Meaning colour per area: sets --c for icons, dots and chips */
.c-office { --c: var(--c-office); } .c-absent { --c: var(--c-absent); } .c-home { --c: var(--c-home); }
.c-leave { --c: var(--c-leave); } .c-hours { --c: var(--c-hours); } .c-eff { --c: var(--c-eff); }
.c-review { --c: var(--c-review); } .c-money { --c: var(--c-money); } .c-slate { --c: var(--c-slate); }
.ic { width: 40px; height: 40px; border-radius: var(--r2); display: grid; place-items: center; flex-shrink: 0;
  color: var(--c, var(--brand-text)); background: var(--paper-2); background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--card)); }
.ic svg { width: 22px; height: 22px; }
.tag-home { background: var(--paper-2); background: color-mix(in srgb, var(--c-home) 14%, var(--card)); color: color-mix(in srgb, var(--c-home) 75%, var(--ink)); }

/* ── Product replica: WiseWork's own screen (fictional data) ─────────── */
.app { margin-top: var(--s7); border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 60px rgba(27, 23, 20, 0.16); font-size: var(--t-xs); }
.app-bar { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s5); background: var(--app-bar); color: #fff; }
.app-chip { display: inline-flex; align-items: center; gap: var(--s2); background: #fff; color: #b8430f; padding: var(--s1) var(--s3); border-radius: 99px; font: 700 var(--t-xs)/1.4 var(--sans); }
.app-chip img { border-radius: 4px; }
/* The WisRight logo in the pill, exactly as the real app header shows it (Header.tsx, PRODUCT_LOGO). */
.app-chip .app-chip-logo { height: 22px; width: auto; border-radius: 0; }
.app-title { font: 600 var(--t-sm)/1 var(--sans); }
.app-user { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s3); font-weight: 600; }
.app-user svg { width: 18px; height: 18px; }
.app-user .av { width: 28px; height: 28px; border: 2px solid #fff; }
.app-main { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.app-side { border-right: 1px solid var(--line); padding: var(--s4) var(--s3); display: grid; align-content: start; gap: var(--s1); background: var(--paper); }
.app-side span { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r2); color: var(--body); font-weight: 500; }
.app-side svg { width: 18px; height: 18px; color: var(--muted); }
.app-side .on { background: var(--brand-tint); color: var(--brand-text); font-weight: 700; }
.app-side .on svg { color: var(--brand-text); }
.app-content { padding: var(--s5); display: grid; gap: var(--s5); align-content: start; }
.app-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
.stat { border-radius: var(--r2); padding: var(--s4) var(--s3); color: #fff; text-align: center; }
.stat b { display: block; font: 700 var(--t-lg)/1.1 var(--sans); }
.stat span { font-size: 12px; }
.s-office { background: #2e7d32; } .s-absent { background: #c62828; } .s-home { background: #b85000; }
.s-leave { background: #0277bd; } .s-hours { background: #1565c0; } .s-eff { background: #00695c; }
.app-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); }
.app-cal, .app-team { border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }
.cal-head b { color: var(--ink); font: 600 var(--t-md)/1 var(--serif); }
.cal-head span { color: var(--muted); font-size: 11px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s1); }
.cal i { font-style: normal; text-align: center; padding: var(--s2) 0; border-radius: var(--r1); font-weight: 600; color: var(--muted); background: var(--paper); }
.cal .blank { background: transparent; }
.cal .d-ok { background: color-mix(in srgb, var(--c-office) 16%, var(--card)); color: color-mix(in srgb, var(--c-office) 75%, var(--ink)); }
.cal .d-home { background: color-mix(in srgb, var(--c-home) 16%, var(--card)); color: color-mix(in srgb, var(--c-home) 75%, var(--ink)); }
.cal .d-leave { background: color-mix(in srgb, var(--c-leave) 16%, var(--card)); color: color-mix(in srgb, var(--c-leave) 75%, var(--ink)); }
.cal .d-off { background: transparent; }
.cal .d-today { background: var(--brand-text); color: var(--on-brand); }
.cal-key { display: flex; gap: var(--s4); margin-top: var(--s3); color: var(--muted); font-size: 11px; }
.cal-key span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: var(--s1); }
.k-ok::before { background: var(--c-office); } .k-home::before { background: var(--c-home); } .k-leave::before { background: var(--c-leave); }
.team-tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.team-tabs span { padding: var(--s2) 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.team-tabs .on { color: var(--brand-text); box-shadow: inset 0 -2px 0 var(--brand-text); }
.team-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: var(--s3); align-items: center; padding: var(--s2) 0; border-bottom: 1px dashed var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row .av { width: 28px; height: 28px; font-size: 11px; }
.team-row b { color: var(--ink); font-weight: 600; }
.team-row em { font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* End-of-day mini tiles */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.mini { border-radius: var(--r2); padding: var(--s3); color: #fff; text-align: center; }
.mini b { display: block; font: 700 var(--t-lg)/1 var(--sans); }
.mini span { font-size: 12px; }
.m-office { background: #2e7d32; } .m-leave { background: #0277bd; } .m-home { background: #b85000; }

/* ── Sections ────────────────────────────────────────────────────────── */
section { scroll-margin-top: 88px; }
.section { padding: var(--s9) 0; }
.section-alt { background: var(--paper-2); }
.head-block { max-width: 720px; margin-bottom: var(--s7); }
.head-block h2 { font-size: var(--t-2xl); }
.head-block p { font-size: var(--t-lg); margin-top: var(--s4); }
.eyebrow { font: 600 var(--t-sm)/1.4 var(--sans); color: var(--brand-text); margin-bottom: var(--s3); }

/* What is WiseWork? */
.what-intro { max-width: 820px; }
.what-intro h2 { font-size: var(--t-2xl); }
.what-intro p:last-child { font-size: var(--t-lg); margin-top: var(--s4); }
.what-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.what-who li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r3); padding: var(--s5) var(--s6); box-shadow: var(--shadow-1); }
.what-who .ic { width: 48px; height: 48px; margin-bottom: var(--s4); }
.what-who h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.what-who p { font-size: var(--t-sm); }
.what-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s5); }
.what-facts li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r2); background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
.what-facts svg { width: 20px; height: 20px; color: var(--brand-text); flex-shrink: 0; }

/* The day — timeline */
.day { position: relative; display: grid; gap: var(--s8); }
.day::before { content: ''; position: absolute; left: 135px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.stop { display: grid; grid-template-columns: 96px 32px 1fr; gap: 0 var(--s5); align-items: start; scroll-margin-top: 96px; }
.stop-time { font: 600 var(--t-xl)/1 var(--serif); color: var(--ink); text-align: right; padding-top: 2px; }
.stop-time small { display: block; font: 500 var(--t-xs)/1.4 var(--sans); color: var(--muted); margin-top: var(--s1); }
.stop-dot { width: 18px; height: 18px; margin: 5px auto 0; border-radius: 50%; background: var(--paper-2); border: 4px solid var(--c, var(--brand)); position: relative; z-index: 1; }
.stop-body h3 { font-size: var(--t-xl); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s5); }
.side { display: grid; gap: var(--s3); align-content: start; }
.side > p { font-size: var(--t-sm); color: var(--ink); }
.side-label { justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); border-radius: 99px; font: 700 var(--t-xs)/1.4 var(--sans); }
.side-label svg { width: 16px; height: 16px; }
.side-label.emp { background: var(--good-tint); color: var(--good); }
.side-label.hr { background: var(--brand-tint); color: var(--brand-text); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; font-size: var(--t-xs); font-weight: 600; }
.seg span { padding: var(--s2) var(--s3); }
.seg .on { background: var(--ink); color: var(--paper); }
.tools { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.tools li { display: inline-flex; align-items: center; gap: var(--s2); font: 500 var(--t-xs)/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r1); padding: var(--s2) var(--s3); }
.tools li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
.stop-time { color: var(--c, var(--ink)); }

/* Nudge */
.nudge { margin-top: var(--s8); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s5) var(--s6); border: 1.5px solid var(--brand); border-radius: var(--r3); background: var(--brand-tint); }
.nudge p { font: 600 var(--t-lg)/1.4 var(--serif); color: var(--ink); }

/* For employees */
.emp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.me-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.me-card { display: grid; justify-items: center; gap: var(--s1); text-align: center; background: var(--paper); border-radius: var(--r2); padding: var(--s4); }
.me-card.pay { align-content: center; }
.ring { width: 72px; height: 72px; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--c-leave); }
.ic-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ic-dot svg { width: 18px; height: 18px; }
.dot-money { color: var(--c-money); background: color-mix(in srgb, var(--c-money) 14%, var(--card)); }
.dot-leave { color: var(--c-leave); background: color-mix(in srgb, var(--c-leave) 14%, var(--card)); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.perks li { display: flex; align-items: center; gap: var(--s3); }
.perks b { color: var(--ink); font-weight: 600; font-size: var(--t-sm); line-height: 1.35; }

/* Payslip */
.payslip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-2); overflow: hidden; font-size: var(--t-sm); }
.ps-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); background: var(--app-bar); color: #fff; }
.ps-head b { display: block; font: 600 var(--t-md)/1.2 var(--serif); }
.ps-head span { font-size: var(--t-xs); }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); padding: var(--s5); }
.ps-label { display: block; font: 600 var(--t-xs)/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s3); }
.ps-cols p { display: flex; justify-content: space-between; padding: var(--s1) 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.ps-net { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); background: var(--paper); }
.ps-net b { font: 600 var(--t-xl)/1 var(--serif); color: var(--c-office); }
.year-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s7); }
.year-row li { display: flex; align-items: center; gap: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s4); }
.year-row b { color: var(--ink); font-size: var(--t-sm); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* Month & year */
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5) var(--s6); box-shadow: var(--shadow-1); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--good); margin-top: 2px; }
.checklist b { display: block; color: var(--ink); font-weight: 600; }
.checklist span { font-size: var(--t-sm); }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; background: var(--card); margin-top: var(--s8); }
.compare > div { padding: var(--s6); }
.compare > div + div { border-left: 1px solid var(--line); background: var(--brand-tint); }
.compare h3 { font-size: var(--t-lg); margin-bottom: var(--s4); }
.compare li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); padding: var(--s2) 0; }
.compare svg { width: 20px; height: 20px; margin-top: 3px; }
.compare .no svg { color: var(--muted); }
.compare .yes svg { color: var(--brand-text); }

/* Who it's for — tabs */
.roles { display: grid; grid-template-columns: 260px 1fr; gap: var(--s7); align-items: start; }
.no-js .roles { grid-template-columns: 1fr; }  /* no tabs without JS: panels use the full width */
.role-tabs { display: grid; gap: var(--s2); }
.role-tab { display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left; padding: var(--s4); border-radius: var(--r2); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 var(--t-md)/1.2 var(--sans); cursor: pointer; }
.role-tab:hover { border-color: var(--ink); }
.role-tab[aria-selected="true"] { border-color: var(--brand-text); box-shadow: inset 4px 0 0 var(--brand-text); }
.role-tab svg { width: 22px; height: 22px; color: var(--brand-text); flex-shrink: 0; }
.role-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s6); box-shadow: var(--shadow-1); }
.role-panel + .role-panel { margin-top: var(--s5); }
.js .role-panel + .role-panel { margin-top: 0; }
.role-panel h3 { font-size: var(--t-xl); margin-bottom: var(--s4); }
.role-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s6); }
.role-panel li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); }
.role-panel li svg { width: 20px; height: 20px; color: var(--good); margin-top: 3px; }
.role-tabs[hidden], .role-panel[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* All features — module cards (AC-3.1c) */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-1);
  padding: var(--s6) var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--c); }
.mod-badge { position: relative; width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  background: var(--c); color: var(--on-c); margin-bottom: var(--s5); overflow: hidden;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 30%, transparent); }
.mod-badge::before { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; top: -24px; left: -18px; background: rgba(255, 255, 255, 0.18); }
.mod-badge svg { position: relative; width: 42px; height: 42px; }
.mod h3 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.mod p { font-size: var(--t-sm); line-height: 1.6; }

/* Security */
.secure { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.secure li { display: grid; gap: var(--s3); align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); }
.secure .ic { width: 48px; height: 48px; }
.secure b { display: block; color: var(--ink); font-size: var(--t-md); margin-bottom: var(--s1); }
.secure span { font-size: var(--t-sm); }

/* Demo */
.demo { background: var(--panel); color: var(--panel-text); border-radius: var(--r3); padding: var(--s8) var(--s7); }
.demo .eyebrow { color: var(--panel-accent); }
.demo h2 { color: var(--panel-text); font-size: var(--t-2xl); max-width: 760px; }
.demo .intro { color: var(--panel-muted); font-size: var(--t-lg); margin-top: var(--s4); max-width: 660px; }
.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin: var(--s7) 0; counter-reset: dstep; }
.demo-steps li { border-top: 2px solid var(--panel-accent); padding-top: var(--s4); counter-increment: dstep; }
.demo-steps li::before { content: counter(dstep, decimal-leading-zero); display: block; font: 600 var(--t-xl)/1 var(--serif); color: var(--panel-accent); margin-bottom: var(--s3); }
.demo-steps b { display: block; color: var(--panel-text); font-size: var(--t-md); margin-bottom: var(--s1); }
.demo-steps span { color: var(--panel-muted); font-size: var(--t-sm); }
.demo-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.demo .btn-primary { background: var(--panel-accent); color: #1b1714; }
.demo .btn-primary:hover { background: #ffa36e; }
.demo .btn-primary:active { background: #ffb88c; }
.demo .btn-ghost { color: var(--panel-text); border-color: var(--panel-line); }
.demo .btn-ghost:hover { border-color: var(--panel-text); }
.demo .btn-ghost:active { background: #2a241f; }

/* FAQ */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font: 600 var(--t-lg)/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 28px/1 var(--sans); color: var(--brand-text); }
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover { color: var(--brand-text); }
.faq details p { padding-bottom: var(--s5); max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s7); }
.foot p { font-size: var(--t-sm); margin-top: var(--s4); max-width: 360px; }
.foot h2 { font: 600 var(--t-sm)/1.4 var(--sans); color: var(--ink); margin-bottom: var(--s3); letter-spacing: 0; }
.foot ul { display: grid; gap: var(--s2); font-size: var(--t-sm); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brand-text); text-decoration: underline; }
.foot-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); font-size: var(--t-xs); color: var(--muted); }

/* ── Wide screens ────────────────────────────────────────────────────── */
/* The headline and the app picture side by side, so the right half of a laptop or monitor is not
   empty. Below 1280px they stack, as before. */
@media (min-width: 1280px) {
  .opening .wrap { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: clamp(40px, 4vw, 96px); align-items: center; }
  .opening-copy { max-width: none; }
  .opening .app { margin-top: 0; }
  .opening .app .app-side { display: none; }
  .opening .app .app-main { grid-template-columns: 1fr; }
  .opening .dial { grid-column: 1 / -1; }
  /* Half-width app picture: the chip and name never wrap; the long title yields the room. */
  .opening .app-chip, .opening .app-user { white-space: nowrap; flex-shrink: 0; }
  .opening .app-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .opening .team-row b { white-space: nowrap; }
  .lead { max-width: 640px; }
}
/* Card grids use the extra room; paragraphs keep a comfortable reading width. */
@media (min-width: 1280px) and (max-width: 1499px) {
  .opening .app-title { display: none; }
}
@media (min-width: 1600px) {
  .mods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .head-block { max-width: 880px; }
}

/* ── Hiring (early access) ───────────────────────────────────────────── */
.badge-early { display: inline-block; margin-left: var(--s2); padding: 2px var(--s3); border-radius: 99px; background: var(--brand-tint); color: var(--brand-text); font: 700 12px/1.6 var(--sans); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); counter-reset: none; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r3); box-shadow: var(--shadow-1); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.step h3 { font-size: var(--t-lg); }
.step p { font-size: var(--t-sm); line-height: 1.6; }
.step .screen { margin-top: auto; }
.step-no { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--on-c); font: 700 var(--t-md)/1 var(--sans); }
.skill-bar { width: 110px; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.skill-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c-review); }
.skill-bar .w80 { width: 80%; } .skill-bar .w65 { width: 65%; }
#hiring .nudge { margin-top: var(--s7); }
/* The hiring card in Features runs the full row, so the twelve modules stay a tidy grid. */
.mod-wide { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--s5); text-align: left; }
.mod-wide .mod-badge { flex-shrink: 0; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .brand-sep, .brand-product { display: none; }
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-stats { grid-template-columns: repeat(3, 1fr); }
  .app-main { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .emp-grid { grid-template-columns: 1fr; }
  .what-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .secure { grid-template-columns: repeat(2, 1fr); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: var(--s4); }
  .stop { grid-template-columns: 80px 32px 1fr; }
  .duo { grid-template-columns: 1fr; }
  .day::before { left: 119px; }
  .ledger-grid, .roles { grid-template-columns: 1fr; }
  .role-tabs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 900px) {
  .nav, .head-actions .btn-ghost { display: none; }
  .menu-toggle { display: grid; }
  .nav.open { display: grid; position: absolute; top: 72px; left: 0; right: 0; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-2); padding: var(--s2); }
  .nav.open a { padding: var(--s4); border-bottom: 0; border-radius: var(--r2); }
  .nav.open a:hover { background: var(--paper-2); }
  .nav.open .nav-login { display: block; border-top: 1px solid var(--line); border-radius: 0 0 var(--r2) var(--r2); color: var(--brand-text); font-weight: 600; }
  .dial { display: none; }
  .demo-steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .mod-wide { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
  .section { padding: var(--s8) 0; }
  .opening { padding: var(--s7) 0 var(--s6); }
  .actions .btn { width: 100%; justify-content: flex-start; }
  .btn { white-space: normal; }
  .stop { grid-template-columns: 24px 1fr; gap: 0 var(--s4); }
  .day::before { left: 11px; }
  .stop-time { grid-column: 2; grid-row: 1; text-align: left; font-size: var(--t-lg); margin-bottom: var(--s3); }
  .stop-time small { display: inline; margin-left: var(--s2); }
  .stop-dot { grid-column: 1; grid-row: 1; margin-top: 3px; }
  .stop-body { grid-column: 2; }
  .nudge { flex-direction: column; align-items: flex-start; padding: var(--s5); }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .compare > div { padding: var(--s5); }
  .role-panel { padding: var(--s5); }
  .role-panel ul, .secure, .perks, .what-who, .mods { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-title, .app-cal { display: none; }
  .app-content { padding: var(--s4); }
  .year-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop-time { color: var(--ink); }
  .ps-cols { grid-template-columns: 1fr; }
  .demo { padding: var(--s7) var(--s5); border-radius: var(--r2); }
  .demo-actions .btn { width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .head-actions .btn-primary { padding: var(--s2) var(--s3); }
  .brand-sep, .brand-product { display: none; }
}
@media (max-width: 400px) {
  .app-user svg, .app-user-name { display: none; }
  .team-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .team-row em { display: none; }
  .team-row { grid-template-columns: 28px 1fr auto; }
  .me-cards, .year-row { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .role-tab[aria-selected="true"] { outline: 3px solid CanvasText; outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
