/* ============================================================
   AURA - public site design system
   Framework-free, build-step-free. Vanilla CSS only.

   Layers, in order:
     1. Tokens        colour, type, space, radius, elevation
     2. Base          reset, typography, focus, selection
     3. Layout        container, sections, grids
     4. Components    header/nav, buttons, cards, tags, tables, faq,
                      callouts, footer
     5. Page blocks   home (hero, showcase, steps, surfaces), downloads,
                      guide
     6. Prose         legal / long-form reading layout
     7. Motion        reveal + reduced-motion

   Rule of thumb: components never target a bare element inside another
   component (no `.nav a`). That is what once stripped the horizontal
   padding from the header's "Open Aura" button: `.nav a` (0,1,1) beat
   `.button` (0,1,0). Links inside the nav are `.nav-link`, and anything
   that must not be hijacked by prose link styling is wrapped in :where().
   ============================================================ */

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* brand colour (unchanged) */
  --ink: #071b2d;
  --ink-2: #0d263a;
  --ink-3: #132f45;
  --line-dark: #22384a;
  --muted-on-dark: #b7c4cd;

  --muted: #4b5b6a;
  --muted-soft: #7c8a97;      /* decorative / large text only: 3.3:1 on paper */
  --line: #dce4e8;
  --paper: #f9f8f4;
  --white: #ffffff;

  --aqua: #1db8a5;
  --aqua-dark: #0b766c;
  --aqua-light: #5be6d3;
  --aqua-wash: #e6f7f4;
  --blue: #1677ff;

  --amber: #a9660a;
  --amber-wash: #fdf1dd;
  --slate: #5b6b78;           /* small secondary text: 5.1:1 on paper */
  --slate-wash: #eef1f3;

  /* neutral tints derived from the tokens above */
  --paper-2: color-mix(in srgb, var(--paper) 94%, var(--ink));
  --aqua-tint: color-mix(in srgb, var(--aqua) 14%, transparent);
  --ink-hover: #0d2a42;
  --danger: #b3261e;
  --danger-ink: #7a1d16;
  --danger-wash: #fdeeec;
  --danger-line: #f2c4bd;
  --amber-ink: #6b4c15;
  --amber-line: #f0dbb0;

  /* type */
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Berkeley Mono", Menlo, Consolas, monospace;
  font-family: var(--sans);

  --fs-xs: 0.8125rem;                                  /* 13 */
  --fs-sm: 0.9375rem;                                  /* 15 */
  --fs-base: 1rem;                                     /* 16 */
  --fs-lead: clamp(1.0625rem, 0.5vw + 0.98rem, 1.25rem);
  --fs-h3: 1.1875rem;                                  /* 19 */
  --fs-h2: clamp(1.75rem, 2.2vw + 1.1rem, 2.75rem);
  --fs-h1: clamp(2.5rem, 4.2vw + 1.2rem, 4.75rem);

  /* space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* geometry */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;
  --section-y: clamp(64px, 8vw, 112px);
  /* Left/right padding that lines content up with the container while
     letting a section's background run edge to edge. */
  --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(7, 27, 45, 0.06);
  --shadow-md: 0 12px 30px rgba(7, 27, 45, 0.10);
  --shadow-lg: 0 30px 80px rgba(7, 27, 45, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
::selection { background: var(--aqua-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--aqua-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible, .on-ink :focus-visible { outline-color: var(--aqua-light); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* type scale */
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.032em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; }
.lead { max-width: 62ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; text-wrap: pretty; }

/* A bracketed monospace label: reads like a protocol tag, which suits a
   product whose pitch is a named, inspectable primitive. */
.eyebrow {
  display: inline-flex; align-items: center;
  color: var(--aqua-dark); font: 700 var(--fs-xs)/1 var(--mono); letter-spacing: 0;
}
.eyebrow::before { content: "// "; opacity: 0.55; white-space: pre; }
.dark .eyebrow, .on-ink .eyebrow { color: var(--aqua-light); }

/* ------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------ */
.wrap { max-width: var(--container); margin: 0 auto; }

.section { padding: var(--section-y) var(--pad-x); }
.section.tight { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.section.raised { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark .lead, .section.dark p { color: var(--muted-on-dark); }
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-heading {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8);
  align-items: end; margin-bottom: var(--s-7);
}
.section-heading h2 { margin-top: var(--s-3); }
.section-heading.center {
  grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
  max-width: 720px; margin-inline: auto; gap: var(--s-4);
}
.section-foot { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.section-foot.center { justify-content: center; }
.section-note { margin-top: var(--s-6); }

.text-link {
  color: var(--aqua-dark); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.dark .text-link { color: var(--aqua-light); }

/* ------------------------------------------------------------
   4a. Header / nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);                  /* opaque: no backdrop-filter cost */
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(7, 27, 45, 0.28); }
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: var(--s-5);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  text-decoration: none; font-weight: 800; letter-spacing: 0.12em; font-size: 15px;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: var(--s-1); flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto 0 var(--s-5); padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 999px;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 650; text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--slate-wash); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--aqua-wash); }
.nav-cta { flex: none; }

.menu-toggle {
  display: none; flex: none; margin-left: auto;
  align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Collapse to the menu only when JS is there to operate it; without JS the
   links simply wrap beneath the brand. */
@media (max-width: 960px) {
  .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 10px; }
  .nav { flex-basis: 100%; flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; margin: 0; }
}
@media (max-width: 960px) and (scripting: enabled) {
  .header-inner { height: var(--header-h); flex-wrap: nowrap; padding-block: 0; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(7, 27, 45, 0.3);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: flex; padding: 14px 4px; border-radius: 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); background: none; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: none; color: var(--aqua-dark); }
  .nav-cta { width: 100%; }
}

/* ------------------------------------------------------------
   4b. Buttons
   ------------------------------------------------------------ */
.button {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); --btn-hover: var(--ink-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 750 var(--fs-sm)/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.button:active { transform: none; box-shadow: none; }
.button svg { width: 16px; height: 16px; flex: none; }
.button.sm { min-height: 40px; padding: 0 20px; font-size: 0.875rem; }
.button:disabled { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

.button.secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: color-mix(in srgb, var(--ink) 35%, transparent); --btn-hover: var(--ink); }
.button.secondary:hover { color: var(--white); border-color: var(--ink); }

.button.on-dark { --btn-bg: var(--aqua); --btn-fg: var(--ink); --btn-bd: var(--aqua); --btn-hover: var(--aqua-light); }
.button.on-dark:hover { color: var(--ink); }

.dark .button.secondary, .on-ink .button.secondary { --btn-fg: var(--white); --btn-bd: #3a5568; --btn-hover: var(--white); }
.dark .button.secondary:hover, .on-ink .button.secondary:hover { color: var(--ink); border-color: var(--white); }

/* ------------------------------------------------------------
   4c. Cards, tags, chips
   ------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: color-mix(in srgb, var(--aqua) 40%, var(--line)); }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.card .index-num { font: 700 var(--fs-xs)/1 var(--mono); color: var(--slate); }

.icon-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--aqua-wash); color: var(--aqua-dark);
  font: 800 15px/1 var(--mono);
}
.icon-badge svg { width: 21px; height: 21px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 10px; border-radius: 999px;
  background: var(--aqua-wash); color: var(--aqua-dark);
  font: 700 12px/1.2 var(--mono);
}
.tag.warn { background: var(--amber-wash); color: var(--amber-ink); }
.tag.neutral { background: var(--slate-wash); color: var(--slate); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  font-size: 12.5px; color: var(--muted); background: var(--aqua-wash); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}

/* ------------------------------------------------------------
   4d. Tables
   ------------------------------------------------------------ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 18px 20px 18px 0; text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { color: var(--slate); font: 700 12px/1 var(--mono); }
.compare-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table td { color: var(--muted); }
.compare-table td.is-aura { color: var(--ink); font-weight: 600; border-left: 2px solid var(--aqua); padding-left: 18px; background: linear-gradient(90deg, var(--aqua-tint), transparent 60%); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table td a { color: var(--aqua-dark); font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.data-table thead th { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table tbody th { color: var(--ink); font-weight: 700; }
.table-scroll > .data-table { min-width: 560px; }
.data-table code { font-size: 11.5px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------
   4e. FAQ accordion
   ------------------------------------------------------------ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-item:hover { border-color: color-mix(in srgb, var(--aqua) 35%, var(--line)); }
.faq-item[open] { border-color: color-mix(in srgb, var(--aqua) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }
.faq-item summary .plus {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.faq-item summary .plus svg { width: 14px; height: 14px; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq-item-body { padding: 0 24px 24px; color: var(--muted); font-size: var(--fs-base); line-height: 1.7; max-width: 68ch; }
.faq-item-body p + p { margin-top: 12px; }
.faq-item-body a { color: var(--aqua-dark); font-weight: 650; }
.faq-note {
  max-width: 800px; margin: var(--s-6) auto 0; padding: 18px 22px;
  border-radius: var(--radius-md); background: var(--paper-2); border: 1px dashed var(--line);
  color: var(--muted); font-size: var(--fs-sm); line-height: 1.65;
}
.faq-note a { color: var(--aqua-dark); font-weight: 700; text-decoration: underline; }
.page-hero .faq-note, .faq-note.left { margin-left: 0; margin-right: auto; }

/* ------------------------------------------------------------
   4f. Callouts and banners
   ------------------------------------------------------------ */
.callout {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px 14px; margin-top: var(--s-5); padding: 18px 20px;
  border-radius: var(--radius-md); background: var(--amber-wash); border: 1px solid var(--amber-line);
}
.callout svg { grid-column: 1; grid-row: 1; width: 20px; height: 20px; color: var(--amber); margin-top: 2px; }
.callout > p, .prose .callout > p { grid-column: 2; margin: 0; }
.callout p { margin: 0; color: var(--amber-ink); font-size: 14.5px; line-height: 1.65; }
.callout a { color: inherit; font-weight: 750; text-decoration: underline; }
.callout.stop { background: var(--danger-wash); border-color: var(--danger-line); }
.callout.stop svg { color: var(--danger); }
.callout.stop p { color: var(--danger-ink); }

.doc-banner {
  max-width: 820px; margin: var(--s-6) 0 var(--s-2); padding: 18px 22px;
  border-radius: var(--radius-md); background: var(--danger-wash); border: 1px solid var(--danger-line);
}
.doc-banner strong { display: block; margin-bottom: 6px; color: var(--danger-ink); font-size: 14.5px; }
.doc-banner p { margin: 0; color: var(--danger-ink); font-size: 14px; line-height: 1.65; }
.doc-banner p + p { margin-top: 8px; }
.doc-banner a { color: inherit; font-weight: 750; }
.doc-meta { margin-top: var(--s-4); color: var(--slate); font-size: var(--fs-xs); }
.doc-meta strong { color: var(--muted); }

/* Every unfilled value the site owner still has to supply is marked with
   this, so it can never be mistaken for a finished term or a live address. */
.placeholder {
  padding: 1px 7px; border-radius: 6px; background: var(--amber-wash); border: 1px dashed var(--amber);
  color: var(--amber-ink); font: 700 12.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   4g. Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: var(--s-8) var(--pad-x) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: var(--s-7); max-width: var(--container); margin: 0 auto; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.footer-brand p { max-width: 34ch; color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.footer-col h2 { margin: 0 0 var(--s-4); color: var(--slate); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.footer-bottom {
  max-width: var(--container); margin: var(--s-7) auto 0; padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  color: var(--slate); font-size: var(--fs-xs);
}
.footer-bottom p { max-width: 60ch; }
.footer-bottom .footer-link { font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------
   5a. Home: hero
   ------------------------------------------------------------ */
.hero {
  padding: clamp(40px, 6vw, 96px) var(--pad-x) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(60% 70% at 88% 0%, var(--aqua-tint), transparent 70%),
    linear-gradient(var(--paper), var(--paper));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: center; }
.hero h1 { margin: var(--s-4) 0 var(--s-5); max-width: 14ch; }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero-points { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--aqua-dark); flex: none; }
.hero-fineprint { margin-top: var(--s-5); max-width: 56ch; color: var(--slate); font-size: var(--fs-xs); line-height: 1.6; }
.hero-fineprint a { color: var(--aqua-dark); font-weight: 700; }

/* Reach ledger: the closed-inbox claim made concrete, set as plain system
   output (a permission log), not a glossy app mock. */
.reach-panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); overflow: hidden; box-shadow: var(--shadow-lg);
}
.reach-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper);
  font: 700 12.5px/1 var(--mono); color: var(--slate);
}
.reach-panel-head strong { color: var(--ink); font-weight: 700; }
.reach-panel-head .live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--aqua-dark); }
.reach-panel-head .live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.reach-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.reach-row .avatar {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--mono); color: var(--ink); background: var(--slate-wash);
}
.reach-row-body { min-width: 0; }
.reach-row-body strong { display: block; font-size: 14px; letter-spacing: -0.008em; overflow-wrap: anywhere; }
.reach-row-body span { display: block; margin-top: 2px; color: var(--slate); font: 12px/1.4 var(--mono); }
.badge { flex: none; font: 700 11.5px/1 var(--mono); letter-spacing: -0.01em; }
.badge-accepted { color: var(--aqua-dark); }
.badge-blocked { color: var(--slate); }
.badge-pending { color: var(--amber); }
.reach-panel-foot { padding: 14px 20px; color: var(--slate); font: 12.5px/1.55 var(--mono); background: var(--paper); }
.reach-panel-foot strong { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------
   5b. Home: platform strip
   ------------------------------------------------------------ */
.platform-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5);
  padding: var(--s-5) var(--pad-x); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
}
.platform-strip p { color: var(--slate); font-size: var(--fs-xs); font-weight: 700; }
.platform-list { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink); background: var(--paper);
}
.platform-item svg { width: 16px; height: 16px; color: var(--aqua-dark); }

/* ------------------------------------------------------------
   5c. Home: open vs closed
   ------------------------------------------------------------ */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.compare-card { padding: var(--s-6); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.compare-card.is-before { background: var(--slate-wash); }
.compare-card.is-after { background: linear-gradient(175deg, var(--ink), var(--ink-3)); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow-md); }
.compare-card-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-5); }
.compare-card-head span { font: 700 12px/1 var(--mono); color: var(--slate); }
.compare-card.is-after .compare-card-head span { color: var(--aqua-light); }
.compare-card-head h3 { font-size: 1.5rem; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.compare-card.is-after .compare-list li { color: var(--muted-on-dark); }
.compare-list li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.compare-card.is-before .compare-list li svg { color: var(--slate); }
.compare-card.is-after .compare-list li svg { color: var(--aqua-light); }

/* ------------------------------------------------------------
   5d. Home: in-app showcase (real Android screenshots)
   ------------------------------------------------------------ */
.showcase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.showcase h2 { margin: var(--s-3) 0 var(--s-4); }
.check-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--aqua-dark); }
.check-list strong { color: var(--ink); }
.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.phone-row figure { margin: 0; }
.phone-row figure:nth-child(2) { margin-top: var(--s-6); }
.phone-row figure:nth-child(3) { margin-top: var(--s-7); }

.phone-frame {
  border: 5px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 18px 36px -20px rgba(7, 27, 45, 0.45); background: #000; line-height: 0;
}
.phone-frame img { display: block; width: 100%; height: auto; aspect-ratio: 332 / 720; }
.shot-caption { margin-top: 10px; font-size: var(--fs-xs); color: var(--slate); text-align: center; line-height: 1.4; }

/* ------------------------------------------------------------
   5e. Home: how it works
   ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; position: relative; }
.step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--aqua);
}
.step .step-num { display: block; margin-bottom: var(--s-3); font: 700 var(--fs-xs)/1 var(--mono); color: var(--aqua-dark); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }

/* ------------------------------------------------------------
   5f. Home: platform security surfaces (dark)
   ------------------------------------------------------------ */
.surface-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.surface {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.surface .icon-badge { background: color-mix(in srgb, var(--aqua) 16%, transparent); color: var(--aqua-light); }
.surface h3 { margin-top: var(--s-2); }
.surface p { font-size: var(--fs-sm); line-height: 1.65; }
.dark .surface .tag { background: color-mix(in srgb, var(--aqua) 16%, transparent); color: var(--aqua-light); }
.dark .surface .tag.warn { background: var(--amber-wash); color: var(--amber-ink); }
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line-dark); }
.trust-item strong { display: block; margin-bottom: 6px; font-size: 1.0625rem; letter-spacing: -0.012em; color: var(--white); }
.trust-item p { font-size: var(--fs-sm); line-height: 1.6; }
.trust-item a { color: var(--aqua-light); font-weight: 650; }
.dark .section-foot { margin-top: var(--s-6); }

/* ------------------------------------------------------------
   5g. Home: download teaser + download page
   ------------------------------------------------------------ */
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.platform-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.platform-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.platform-card .icon-badge { margin-bottom: var(--s-3); }
.platform-card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; flex: 1; }
.platform-card .tag { margin-top: var(--s-3); }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.download-card {
  position: relative; display: flex; flex-direction: column; padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.download-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.download-card .icon-badge { margin-bottom: var(--s-4); }
.download-card h3 { margin-bottom: var(--s-2); }
.download-card p { flex: 1; color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.download-card p a { color: var(--aqua-dark); font-weight: 650; }
.download-card .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.download-card .file-meta { margin-top: var(--s-3); color: var(--slate); font-size: 12.5px; font-weight: 600; line-height: 1.5; }

.install-panel {
  margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center;
}
.install-panel h3 { margin: 0 0 6px; font-size: 1.125rem; }
.install-panel p { margin: 0; color: var(--muted-on-dark); font-size: 14.5px; line-height: 1.6; max-width: 56ch; }
.code-chip {
  display: block; padding: 14px 18px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark);
  font: 13px/1.5 var(--mono); color: var(--aqua-light); overflow-x: auto; max-width: 100%;
}

/* ------------------------------------------------------------
   5h. Closing CTA
   ------------------------------------------------------------ */
.cta-wrap { padding: 0 var(--pad-x) var(--section-y); }
.cta-band {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(50% 90% at 100% 0%, color-mix(in srgb, var(--aqua) 22%, transparent), transparent 70%),
    linear-gradient(170deg, var(--ink), var(--ink-3));
  color: var(--white);
}
.cta-band h2 { max-width: 24ch; margin: var(--s-3) 0 var(--s-4); }
.cta-band .lead { color: var(--muted-on-dark); max-width: 56ch; }
.cta-band .eyebrow { color: var(--aqua-light); }

/* ------------------------------------------------------------
   5i. Sub-page hero (every non-home page)
   ------------------------------------------------------------ */
.page-hero {
  padding: clamp(40px, 6vw, 88px) var(--pad-x) var(--s-6);
  background: radial-gradient(50% 120% at 95% 0%, var(--aqua-tint), transparent 70%);
}
.page-hero h1 { margin: var(--s-4) 0 var(--s-4); font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); max-width: 20ch; }
.page-hero .lead { margin-top: 0; }

/* ------------------------------------------------------------
   6. Prose (legal and long-form)
   ------------------------------------------------------------ */
.prose-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8);
  padding: var(--s-6) var(--pad-x) var(--s-9);
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc > span { display: block; margin-bottom: var(--s-3); color: var(--slate); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--ink); border-left-color: var(--aqua); }
.toc ol { border-left: 0; }

.prose { max-width: 740px; min-width: 0; }
.prose > section { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.prose > section:first-child { padding-top: 0; }
.prose > section:last-child { border-bottom: 0; }
.prose-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.prose-head .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.prose-head .icon-badge svg { width: 19px; height: 19px; }
.prose h2 { margin: 0; font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; }
.prose h3 { margin: var(--s-5) 0 var(--s-2); font-size: 1.0938rem; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); font-size: 1.0313rem; line-height: 1.75; }
.prose p + p { margin-top: var(--s-3); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: var(--s-3) 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--slate); }
/* :where() keeps this at zero specificity so .button, .callout a etc. win. */
.prose :where(a:not(.button)) { color: var(--aqua-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.prose :where(a:not(.button)):hover { color: var(--ink); }
.prose code {
  padding: 2px 6px; border-radius: 6px; background: var(--slate-wash);
  font: 13px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere;
}
.prose pre {
  margin: var(--s-4) 0; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--ink); color: var(--aqua-light); overflow-x: auto;
  font: 13px/1.7 var(--mono);
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose .callout :where(a) { color: inherit; }

/* ------------------------------------------------------------
   5j. Guide page: phone-framed walkthrough
   ------------------------------------------------------------ */
.flow-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-6); align-items: start; margin: var(--s-5) 0 var(--s-2); }
.flow-body.stack { grid-template-columns: minmax(0, 1fr); }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-5) 0; }
.shot-grid figure, .flow-body figure { margin: 0; }
.bug-box { display: flex; gap: 12px; padding: 14px 16px; margin: var(--s-4) 0; border-radius: var(--radius-md); background: var(--danger-wash); border: 1px solid var(--danger-line); }
.bug-box .mark { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--danger-ink); color: var(--white); font: 800 12px/20px var(--mono); text-align: center; }
.bug-box p, .prose .bug-box p, .bug-box strong { margin: 0; color: var(--danger-ink); font-size: 14px; line-height: 1.65; }
.fixed-tag {
  display: inline-block; font: 800 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--aqua-dark); background: var(--aqua-wash); border: 1px solid var(--aqua-light);
  border-radius: 999px; padding: 4px 10px; margin-left: 8px; vertical-align: middle;
}

/* Invite / person-invite pages */
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }

/* ------------------------------------------------------------
   7. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
}

@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .hero h1 { max-width: 16ch; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
  .card-grid, .surface-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-grid, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-row { max-width: 520px; }

  .prose-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-top: var(--s-4); }
  .toc { position: static; max-height: none; overflow: visible; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
  .toc { display: block; }
  .toc a { padding: 7px 0 7px 12px; }
  .install-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .platform-grid, .trust-list, .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .flow-body { grid-template-columns: minmax(0, 1fr); }
  .flow-body .phone-frame { max-width: 260px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .platform-strip { flex-direction: column; align-items: flex-start; }
  .hero-actions .button, .cta-band .hero-actions .button { flex: 1 1 100%; }
  .phone-row { gap: var(--s-3); }
  .phone-row figure:nth-child(2) { margin-top: var(--s-4); }
  .phone-row figure:nth-child(3) { margin-top: var(--s-5); }
  .phone-frame { border-width: 4px; border-radius: 16px; }
  .compare-card, .card, .surface, .download-card { padding: var(--s-5); }
  .faq-item summary { padding: 18px 18px; }
  .faq-item-body { padding: 0 18px 20px; }
  .data-table { font-size: 13px; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .reach-row { grid-template-columns: auto 1fr; }
  .reach-row .badge { grid-column: 2; }
}

/* ------------------------------------------------------------
   8. Motion
   Hero entrance is pure CSS. Section reveal needs app.js to add
   `.visible`, so it is only armed when scripting is on; without JS
   (or with reduced motion) everything is simply visible. Only opacity
   and transform animate, so nothing shifts layout.
   ------------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.3s; }
  .reach-panel { animation: rise 0.8s var(--ease) 0.15s both; }
  .reach-row { animation: rise 0.6s var(--ease) both; }
  .reach-row:nth-child(2) { animation-delay: 0.35s; }
  .reach-row:nth-child(3) { animation-delay: 0.45s; }
  .reach-row:nth-child(4) { animation-delay: 0.55s; }
  .reach-row:nth-child(5) { animation-delay: 0.65s; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.visible { opacity: 1; transform: none; }
  .card-grid > .reveal:nth-child(2), .surface-grid > .reveal:nth-child(2), .platform-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .trust-list > .reveal:nth-child(2) { transition-delay: 0.08s; }
  .card-grid > .reveal:nth-child(3), .surface-grid > .reveal:nth-child(3), .platform-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .trust-list > .reveal:nth-child(3) { transition-delay: 0.16s; }
  .platform-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4), .trust-list > .reveal:nth-child(4) { transition-delay: 0.24s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .platform-card:hover, .download-card:hover, .button:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  .prose-layout { display: block; padding: 0; }
}
