/* Handoverhub website. Brand colours match the app (app/www/css/app.css).
   One stylesheet, no build step. Sections: tokens, base, layout, header, buttons,
   home, cards, pricing, FAQ, pages, guides, compare, help, press, footer, utilities. */

/* ---------- Tokens ---------- */
:root {
  --brand: #2f6f6a; --brand-dark: #24524e; --brand-tint: #e6f0ef; --on-brand: #fff;
  --bg: #f6f4ef; --bg-2: #efece4; --surface: #fff; --ink: #1d2422; --ink-2: #57615e; --line: #e3dfd6;
  --amber: #e4a13b; --peach: #f7dcc6; --peach-ink: #7a4a1e;
  --danger-bg: #fbeceb; --danger-ink: #6b1f1f; --danger-line: #f0cfcc;
  --shadow-sm: 0 1px 2px rgba(29,36,34,.06), 0 1px 1px rgba(29,36,34,.04);
  --shadow: 0 1px 2px rgba(29,36,34,.05), 0 8px 24px rgba(29,36,34,.08);
  --shadow-lg: 0 2px 6px rgba(29,36,34,.06), 0 24px 60px rgba(29,36,34,.16);
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* type scale */
  --t-sm: 14px; --t-base: 17px; --t-lg: 19px; --t-h3: 19px; --t-h2: clamp(28px, 3.6vw, 40px); --t-h1: clamp(36px, 5vw, 58px); --t-page: clamp(32px, 4.6vw, 46px);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --measure: 68ch;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6cc1b7; --brand-dark: #8fd3ca; --brand-tint: #17302d; --on-brand: #0b201e;
    --bg: #101413; --bg-2: #151a19; --surface: #1a201f; --ink: #edf1ef; --ink-2: #a5aeab; --line: #2b3331;
    --peach: #3a2a1d; --peach-ink: #f2cfae;
    --danger-bg: #351c1c; --danger-ink: #f6d7d4; --danger-line: #5a2b2b;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: var(--t-base); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-page); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 var(--s4); font-weight: 800; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--s3); font-weight: 800; }
h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 var(--s2); font-weight: 700; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
li { margin-bottom: var(--s2); }
li::marker { color: var(--ink-2); }
b, strong { font-weight: 700; }
sup { line-height: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 50; box-shadow: var(--shadow); }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--s5); }
@media (max-width: 600px) { .wrap { padding: 0 var(--s4); } }
section { padding: var(--s9) 0; }
@media (max-width: 760px) { section { padding: var(--s8) 0; } }
.section-head { max-width: 680px; margin: 0 0 var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s3); }
.sub, .lead { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; margin: 0 0 var(--s5); max-width: 62ch; }
.note { font-size: var(--t-sm); color: var(--ink-2); margin: var(--s3) 0 0; }
.muted { color: var(--ink-2); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-tint { background: var(--bg-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header:has(.menu[open]) { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
nav.top { display: flex; align-items: center; gap: 2px; }
nav.top a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
nav.top a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
nav.top a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu .i-close { display: none; } .menu[open] .i-close { display: block; } .menu[open] .i-open { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: var(--s2); display: grid; }
.menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--bg); }
@media (max-width: 767px) { nav.top { display: none; } .menu { display: block; } .site-header .bar { min-height: 60px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 8px 16px; text-decoration: none; min-height: 52px; border: 1px solid #333; }
.store:hover { color: #fff; }
.store small { display: block; font-size: 11px; opacity: .85; line-height: 1.1; } .store b { display: block; font-size: 18px; line-height: 1.15; }
.store svg { width: 22px; height: 22px; flex: none; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.stores:empty { display: none; }
.store-soon { display: inline-flex; text-align: left; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; font-size: 15px; }
.store-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- Home: hero ---------- */
.hero { padding: var(--s7) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s8); align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 var(--s5); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); margin-bottom: var(--s6); max-width: 34em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 var(--s5); box-shadow: var(--shadow-sm); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; padding: 0; margin: var(--s5) 0 0; font-size: 15px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-art::before { content: ""; position: absolute; inset: 8% -6% -5% 10%; background: var(--peach); border-radius: 40px; transform: rotate(4deg); z-index: 0; }
.hero-art img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .hero { padding: var(--s5) 0 var(--s8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-art { justify-self: center; max-width: 520px; }
  .hero-art img { aspect-ratio: 4 / 3; object-position: 50% 62%; border-radius: 24px; }
  .hero-art::before { border-radius: 28px; inset: 10% -3% -4% 6%; }
}

/* Countdown + launch list */
.countdown { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); max-width: 520px; box-shadow: var(--shadow); }
.cd-label { margin: 0 0 var(--s3); font-weight: 700; font-size: 15px; color: var(--ink); }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); text-align: center; }
.cd-grid div { background: var(--bg); border-radius: 14px; padding: 12px 4px 10px; }
.cd-grid b { display: block; font-family: var(--font-display); font-size: clamp(26px, 5vw, 34px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.cd-grid span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.notify { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.notify input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.notify input[type=email]::placeholder { color: var(--ink-2); }
.notify input[type=email]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 0; border-color: var(--brand); }
.notify .btn { flex: 0 0 auto; }
.countdown .note { margin-top: var(--s3); font-size: 13px; }
@media (max-width: 480px) { .countdown { padding: var(--s4); border-radius: 20px; } .notify .btn { flex: 1 1 100%; } }

/* ---------- Feature cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); margin-bottom: var(--s4); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: var(--s3); }
  .grid .card { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s4); padding: var(--s4); }
  .grid .card .icon { grid-row: span 2; margin: 0; }
}

/* ---------- Screenshots carousel (true 9:16, never stretched) ---------- */
.shots-wrap { position: relative; }
.shots { display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s2) var(--s5) var(--s6); margin: 0 calc(var(--s5) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 auto; width: 236px; scroll-snap-align: start; scroll-margin-left: var(--s5); }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 22px; box-shadow: var(--shadow); background: #3d7f78; }
.shots figcaption { margin-top: var(--s3); font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: center; }
.shots-nav { display: flex; gap: var(--s2); justify-content: flex-end; }
.shots-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.shots-nav button:hover { border-color: var(--ink-2); }
.shots-nav button:disabled { opacity: .35; cursor: default; }
.shots-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.head-row .section-head { margin: 0; }
@media (max-width: 600px) { .shots { gap: var(--s4); padding: var(--s2) var(--s4) var(--s5); margin: 0 calc(var(--s4) * -1); } .shots figure { width: 64vw; max-width: 240px; scroll-margin-left: var(--s4); } .shots-nav { display: none; } }

/* ---------- Film ---------- */
.film-band { background: #12302d; color: #e9f2f0; }
.film-band h2 { color: #fff; }
.film-band .sub { color: #b9d0cc; }
.film-band .eyebrow { color: #8fd3ca; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.film { margin: 0 auto; max-width: 980px; }
.film-hint { display: inline-flex; align-items: center; gap: 8px; margin: var(--s4) auto 0; font-size: 14px; color: #b9d0cc; }
.film-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film figcaption { text-align: center; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #0b1b19; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.45); object-fit: cover; }
@media (max-width: 700px) and (orientation: portrait) { .film video { aspect-ratio: 9 / 16; max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 20px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5) var(--s5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan h3 { font-size: 17px; color: var(--ink-2); margin: 0 0 var(--s3); font-weight: 700; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: var(--s5); background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; }
.price span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.price-alt { font-size: 15px; color: var(--ink-2); margin: var(--s2) 0 0; min-height: 1.6em; }
.plan ul { list-style: none; padding: var(--s5) 0 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.plan li { position: relative; padding-left: 28px; margin-bottom: var(--s3); font-size: 16px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f6a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-color-scheme: dark) { .plan li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc1b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); } }
.pricing-foot { text-align: center; margin: var(--s6) auto 0; max-width: 60ch; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .plan { padding: var(--s5) var(--s4) var(--s4); } .price { font-size: 38px; } }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: var(--s5); } }

/* ---------- FAQ / details ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-of-type { border-top: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font-weight: 700; font-size: 18px; line-height: 1.4; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f6a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
@media (prefers-color-scheme: dark) { details.qa summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc1b7' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); } }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa > :not(summary) { margin: 0 0 var(--s5); color: var(--ink-2); max-width: var(--measure); }
details.qa summary:hover { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { details.qa summary::after { transition: none; } }

/* ---------- Closing CTA ---------- */
.cta { background: var(--brand); color: var(--on-brand); border-radius: 32px; padding: var(--s8) var(--s6); text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -180px; background: rgba(255,255,255,.08); }
.cta h2 { color: var(--on-brand); position: relative; }
.cta p { color: color-mix(in srgb, var(--on-brand) 82%, transparent); font-size: var(--t-lg); margin: 0 auto var(--s5); max-width: 40ch; position: relative; }
.cta .btn { background: var(--on-brand); color: var(--brand-dark); border-color: transparent; position: relative; }
.cta .btn:hover { background: var(--bg); color: var(--brand-dark); }
.cta .stores { justify-content: center; position: relative; margin-top: var(--s4); }
.cta .store-soon { background: rgba(255,255,255,.14); color: var(--on-brand); }
@media (prefers-color-scheme: dark) { .cta { background: #1d4a46; --on-brand: #fff; } .cta .btn { background: #fff; color: #1d4a46; } }
@media (max-width: 600px) { .cta { padding: var(--s7) var(--s5); border-radius: 24px; } }

/* ---------- Inner pages ---------- */
main.page { padding-top: var(--s7); padding-bottom: var(--s9); }
@media (max-width: 600px) { main.page { padding-top: var(--s5); padding-bottom: var(--s8); } }
.page-head { max-width: 760px; margin: 0 0 var(--s7); }
.page-head .lead { margin-bottom: 0; }
.page-head .meta { margin: var(--s4) 0 0; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: var(--s7) 0 var(--s3); }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose > :first-child { margin-top: 0; }
.crumbs { font-size: var(--t-sm); color: var(--ink-2); margin: 0 0 var(--s4); }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.meta { color: var(--ink-2); font-size: var(--t-sm); }
.banner { border-radius: var(--r); padding: var(--s4) var(--s5); margin: 0 0 var(--s6); border: 1px solid transparent; }
.banner.danger { background: var(--danger-bg); color: var(--danger-ink); border-color: var(--danger-line); }
.banner.danger a { color: inherit; font-weight: 700; }
.banner.info { background: var(--brand-tint); color: var(--ink); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); margin: var(--s5) 0; font-size: 16px; }
.callout p { margin: 0 0 var(--s2); } .callout p:last-child { margin: 0; }
.callout.legal { background: transparent; border-style: dashed; color: var(--ink-2); }
.callout.legal b { color: var(--ink); }
.callout.product { background: var(--brand-tint); border-color: transparent; }
.callout.product p:first-child { font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: var(--s4); min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.iphone-soon { margin: var(--s5) 0; padding: var(--s4); border-radius: 16px; background: var(--brand-tint); }
.iphone-soon h2 { margin-top: 0; }
.stack > * + * { margin-top: var(--s3); }
details.plain { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 var(--s5); margin-bottom: var(--s2); }
details.plain summary { cursor: pointer; font-weight: 700; padding: var(--s4) 0; }
details.plain p { color: var(--ink-2); margin: 0 0 var(--s4); }

/* ---------- Guides ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.cards a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--s2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.cards a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .cards a.card:hover { transform: translateY(-2px); } }
.cards a.card h2, .cards a.card h3 { color: var(--ink); font-size: 21px; line-height: 1.3; margin: 0; }
.cards a.card p { margin: 0; }
.cards .more { margin-top: auto; padding-top: var(--s3); font-weight: 700; color: var(--brand); font-size: 15px; }
.cards .num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

article.guide { padding: var(--s6) 0 var(--s8); font-size: 18px; line-height: 1.7; display: grid; grid-template-columns: minmax(0, var(--measure)) 250px; column-gap: var(--s8); justify-content: start; }
article.guide > * { grid-column: 1; min-width: 0; }
article.guide h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 var(--s3); }
article.guide h2 { font-size: clamp(23px, 2.6vw, 29px); margin: var(--s7) 0 var(--s3); }
article.guide h3 { font-size: 19px; margin: var(--s5) 0 var(--s2); }
article.guide li { margin-bottom: var(--s2); }
article.guide > .meta { margin: 0 0 var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
article.guide .callout { font-size: 16px; line-height: 1.6; }
.toc { grid-column: 2 !important; grid-row: 1 / span 999; align-self: start; position: sticky; top: 92px; font-size: 15px; line-height: 1.4; padding-top: var(--s2); }
.toc p { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 var(--s3); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px var(--s4); margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink-2); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 1100px) {
  article.guide { display: block; max-width: var(--measure); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); margin: 0 0 var(--s6); }
  .toc ol { border: 0; }
  .toc a { padding: 5px 0; border: 0; margin: 0; }
}
@media (max-width: 600px) { article.guide { font-size: 17px; padding-top: var(--s5); } }
.sources { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sources li { color: var(--ink-2); overflow-wrap: anywhere; }
.template { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5) var(--s6); box-shadow: var(--shadow-sm); }
.template h3:first-child { margin-top: 0; }
.template ul { margin-bottom: var(--s3); }
@media (max-width: 600px) { .template { padding: var(--s4); } }
.guide-foot { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.related .cards a.card h3 { font-size: 18px; }
.related .cards a.card p { font-size: 15px; }
.guide-signup { margin: var(--s5) 0; max-width: none; }
.guide-signup .cd-label { font-size: 16px; }
.guides-group { margin-top: var(--s7); }
.guides-group > h2 { font-size: clamp(22px, 2.4vw, 27px); margin-bottom: var(--s4); }
.home-guides .cards { margin-top: var(--s5); }
.home-guides .more-links { margin-top: var(--s5); }
.faq.faq-left { margin: 0 0 var(--s6); }

/* ---------- Compare ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); margin: 0 0 var(--s3); -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: 15px; line-height: 1.5; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare tbody tr:last-child > * { border-bottom: 0; }
table.compare thead th { background: var(--bg); font-size: 15px; white-space: nowrap; }
table.compare thead th.us { background: var(--brand); color: var(--on-brand); }
table.compare tbody th { font-weight: 700; width: 150px; }
table.compare th[scope="row"], table.compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
table.compare thead th:first-child { background: var(--bg); z-index: 2; }
table.compare td.us { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); font-weight: 500; }
table.compare sup a { text-decoration: none; font-size: 11px; }
@media (max-width: 700px) { table.compare { min-width: 860px; font-size: 14px; } table.compare tbody th { width: 112px; } table.compare th, table.compare td { padding: 12px; } }
/* Home page: Handoverhub vs many other apps (cards under 640px) */
.vs-wrap { max-width: 960px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); overflow: hidden; }
table.vs { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
table.vs th, table.vs td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.vs tbody tr:last-child > * { border-bottom: 0; }
table.vs thead th { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); }
table.vs thead th.us { background: var(--brand); color: var(--on-brand); }
table.vs tbody th { width: 26%; font-weight: 700; color: var(--ink); }
table.vs td { width: 37%; color: var(--ink-2); }
table.vs td.us { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--ink); font-weight: 500; }
table.vs td.us svg { width: 18px; height: 18px; color: var(--brand); float: left; margin: 3px 10px 0 0; }
table.vs td.us span { display: block; overflow: hidden; }
.vs-note { max-width: 960px; margin: var(--s4) auto 0; text-align: center; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 640px) {
  .vs-wrap { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  table.vs, table.vs tbody, table.vs tr, table.vs th, table.vs td { display: block; width: auto; }
  table.vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.vs tbody tr { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 var(--s3); box-shadow: var(--shadow-sm); }
  table.vs tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  table.vs tbody tr > :last-child, table.vs tbody tr:last-child > :last-child { border-bottom: 0; }
  table.vs th, table.vs td { padding: 12px 16px; }
  table.vs tbody th { width: auto; font-size: 17px; background: var(--bg-2); }
  table.vs td { width: auto; }
  table.vs td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
  table.vs td.us::before { color: var(--brand); }
  table.vs td.us svg { margin-top: 3px; }
  .vs-note { text-align: left; }
}
.well-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); max-width: none; }
.well-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s5); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .well-list { grid-template-columns: 1fr; } }

/* ---------- Free help directory ---------- */
.jump { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.svc-group { margin: 0 0 var(--s7); }
.svc-group h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 var(--s2); }
.svc-group > p { color: var(--ink-2); margin: 0 0 var(--s4); max-width: var(--measure); }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s5); display: flex; flex-direction: column; }
.svc h3 { margin: 0 0 4px; font-size: 17px; }
.svc p { margin: 0 0 var(--s3); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.svc .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.svc .links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.svc .links a:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.svc .links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.court { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.court p { margin: 0 0 var(--s3); max-width: var(--measure); }

/* ---------- Press ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s4); padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; font-size: 16px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.thumbs { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; margin-bottom: var(--s4); }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumbs a:hover { border-color: var(--brand); }
.thumbs img { width: auto; height: auto; max-height: 120px; max-width: 100%; display: block; }
.thumbs.shotsmall img { max-height: 200px; }
pre.copy { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s5); font: inherit; font-size: 16px; line-height: 1.6; margin: 0 0 var(--s5); }
.dl { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Join / code ---------- */
.code-box { display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(24px, 6vw, 32px); font-weight: 700; letter-spacing: .12em; background: var(--surface); border: 1px dashed var(--brand); border-radius: 14px; padding: var(--s3) var(--s5); margin: 0 0 var(--s4); color: var(--brand-dark); }
.code-box.empty { font-family: var(--font); font-size: 17px; letter-spacing: 0; font-weight: 600; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--s8) 0 var(--s6); font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
.foot-brand p { margin: var(--s3) 0 0; max-width: 32ch; }
.site-footer nav { display: flex; flex-direction: column; gap: var(--s2); }
.site-footer .foot-h { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--s2); }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal { margin: var(--s7) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.measure { max-width: var(--measure); }
.compare-more h2 { font-size: clamp(22px, 2.6vw, 28px); margin: var(--s7) 0 var(--s4); }
.steps h2 { font-size: 20px; margin: 2px 0 var(--s3); }
.press { max-width: 820px; }
.press h2 { margin-top: var(--s7); }
.well-list li:last-child { grid-column: 1 / -1; background: var(--brand-tint); border-color: transparent; }

/* School holiday planner (/school-holiday-planner.html) */
.planner-form { display: grid; gap: var(--s4); margin: var(--s6) 0; }
.planner-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.planner-form select, .planner-form input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: inherit; min-height: 44px; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.planner-row { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.planner-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.planner-table th, .planner-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.planner-table thead th { background: var(--bg); }
.planner-cta { margin-top: var(--s7); padding: var(--s6); border-radius: 16px; background: var(--brand-tint); }
@media print {
  .site-header, .site-footer, .planner-form, .planner-actions, .planner-cta, .crumbs, .callout, .skip, .lead { display: none !important; }
  .planner-table { font-size: 12pt; }
}

/* ---------- Latest news ---------- */
#news .cards { margin-top: var(--s5); }
.cards a.card p.news-meta { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.news-list li { margin-bottom: var(--s2); }
