/* ============================================================================
   CaseWeave — marketing site design system  ·  "Counsel"
   Authoritative, editorial, security & defensibility-led.
   Palette: indigo authority + restrained brass. One CTA violet.
   Type: Spectral (display serif) · Inter (body) · IBM Plex Mono (data)
   NOTE: invite.html + intake.html use assets/marketing/legacy-auth.css.
   ========================================================================= */

/* ----------------------------------------------------------------------------
   0. Tokens
---------------------------------------------------------------------------- */
:root {
  /* ink + indigo authority */
  --ink: #191150;
  --ink-2: #160C36;       /* near-black violet — hero grounds */
  --indigo: #241458;

  /* surfaces */
  --bg: #F5F4FA;          /* cool refined page bg */
  --card: #FFFFFF;
  --soft: #F1ECFC;        /* tinted section */
  --lavender: #E8E0FB;    /* "the paper" */

  /* text */
  --body: #3D3A57;
  --muted: #8B86A6;       /* decorative / large only */
  --muted-strong: #5E5A7C;/* small meta text that must stay legible */

  /* the ONE call-to-action */
  --violet: #754BEA;
  --violet-light: #8C67DF;
  --violet-deep: #5B41BA;

  /* rules + brass (scarce: seals / verified marks only) */
  --line: #E3E0F0;
  --line-2: #ECEAF5;
  --brass: #B08A3E;
  --brass-ink: #8A6A28;   /* brass used as legible text on light */
  --brass-soft: #F3ECDD;

  /* status (sparing) */
  --sage: #2EA36B;
  --clay: #C0492F;

  /* type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  /* cool, indigo-tinted shadows */
  --shadow-sm: 0 1px 2px rgba(25, 17, 80, .05);
  --shadow: 0 1px 2px rgba(25, 17, 80, .04), 0 14px 34px -16px rgba(25, 17, 80, .16);
  --shadow-lg: 0 36px 70px -28px rgba(22, 12, 54, .42);

  --wrap: 1180px;
  --measure: 66ch;
}

/* ----------------------------------------------------------------------------
   1. Reset / base
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--violet-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--violet); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
strong { font-weight: 600; color: var(--ink); }
.section--dark strong, .waitlist strong { color: #fff; }
::selection { background: var(--lavender); color: var(--ink); }

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .65rem 1rem;
  border-radius: var(--r-sm); font: 600 .9rem/1 var(--sans);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ----------------------------------------------------------------------------
   2. Layout primitives
---------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.4rem; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

.section--dark { background: var(--ink-2); color: #E9E5FA; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #C9BEF4; }
.section--soft { background: var(--soft); }
.section--paper { background: var(--card); }

/* hairline + brass rules */
.rule { height: 1px; background: var(--line); border: 0; }
.rule--brass { height: 2px; width: 56px; background: var(--brass); border: 0; border-radius: 2px; }
.weave-rule {
  height: 16px; width: 100%;
  background: url("assets/marketing/weave.svg") repeat-x center / 48px 16px;
  opacity: .5;
}

/* editorial kicker (mono, section eyebrow) */
.kicker {
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--violet-deep);
  display: inline-flex; align-items: center; gap: .55rem;
}
.kicker--brass { color: var(--brass-ink); }
.kicker--light { color: #B9AEE8; }
.kicker .num { color: var(--brass-ink); }
.section--dark .kicker { color: #C9BEF4; }
.section--dark .kicker--brass { color: #D8B871; }

.section-head { margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: .7rem; max-width: 24ch; }
.section-head .deck { margin-top: 1rem; font-size: 1.15rem; color: var(--body); max-width: 58ch; }
.section--dark .section-head .deck { color: #C7C1E4; }
.center.section-head h2, .center.section-head .deck { margin-inline: auto; }

.lede { font-size: 1.2rem; line-height: 1.65; color: var(--body); }
.section--dark .lede { color: #CFC9EA; }

/* ----------------------------------------------------------------------------
   3. Buttons
---------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem/1 var(--sans);
  padding: .9rem 1.4rem; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn-sm { padding: .62rem 1rem; font-size: .92rem; }
.btn-lg { padding: 1.02rem 1.7rem; font-size: 1.06rem; }

.btn-primary { --btn-bg: var(--violet); box-shadow: 0 10px 24px -10px rgba(117, 75, 234, .7); }
.btn-primary:hover { --btn-bg: var(--violet-deep); box-shadow: 0 14px 30px -10px rgba(117, 75, 234, .8); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--violet); background: rgba(117,75,234,.05); }
.section--dark .btn-ghost, .hero .btn-ghost, .waitlist .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn-ghost:hover, .hero .btn-ghost:hover, .waitlist .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }

/* App Store badge (honest: coming to the App Store) */
.btn-store {
  background: var(--ink-2); color: #fff; align-items: center;
  padding: .7rem 1.2rem; border-radius: var(--r-sm); gap: .7rem; text-align: left;
  border: 1px solid rgba(255,255,255,.14);
}
.btn-store:hover { color: #fff; background: #1d1240; }
.btn-store svg { flex: none; }
.btn-store .store-lines { display: grid; line-height: 1.15; }
.btn-store .store-top { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #C9BEF4; font-family: var(--mono); }
.btn-store .store-main { font-size: 1.02rem; font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* text link with arrow */
.btn-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
  text-decoration: none; color: var(--violet-deep);
}
.btn-link::after { content: "→"; transition: transform .15s ease; }
.btn-link:hover::after { transform: translateX(3px); }
.section--dark .btn-link, .waitlist .btn-link { color: #C9BEF4; }

/* ----------------------------------------------------------------------------
   4. Header / masthead / nav
---------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 60; }

.masthead { background: var(--ink-2); color: #C7BFEA; border-bottom: 1px solid rgba(255,255,255,.07); }
.masthead-row {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding-block: .5rem; min-height: 34px;
}
.masthead-mark { color: #fff; font-weight: 500; }
.masthead-tag { color: #9A91C6; }
.masthead-status { margin-left: auto; color: #D8B871; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.masthead-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); display: inline-block; flex: none; }
@media (max-width: 800px) { .masthead-tag { display: none; } }
@media (max-width: 460px) { .masthead-mark { display: none; } .masthead-status { margin-left: 0; } }

.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 244, 250, .88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -.01em; }
.brand-accent { color: var(--violet); }

.nav-main { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: .15rem; padding: 0; }
.nav-links a {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .95rem; padding: .5rem .6rem; border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(117,75,234,.08); color: var(--violet-deep); }
.nav-links a[aria-current="page"] { color: var(--violet-deep); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--violet); border-radius: 2px; margin-top: 3px;
}
.nav-signin a { color: var(--muted-strong); }
.nav-cta { margin-left: .4rem; }
.nav-cta a { color: #fff; }
.nav-cta a:hover { background: var(--violet-deep); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 44px; height: 40px; padding: 0 9px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 0 1.4rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  .nav-links.is-open { max-height: 80vh; overflow-y: auto; opacity: 1; pointer-events: auto; padding: .8rem 1.4rem 1.2rem; }
  .nav-links a { padding: .7rem .4rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nav-links { transition: none; } }

/* ----------------------------------------------------------------------------
   5. Hero
---------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(117,75,234,.34), transparent 56%),
    radial-gradient(80% 70% at 0% 110%, rgba(36,20,88,.6), transparent 60%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 70%);
  color: #E9E5FA;
}
.hero::after { /* faint editorial grid lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2.2rem;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero-title {
  color: #fff; font-weight: 500;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -.02em;
  margin-top: 1.1rem;
}
.hero-title em { font-style: italic; color: #CBB6FF; }
.hero-deck { margin-top: 1.35rem; font-size: 1.2rem; line-height: 1.6; color: #C7C1E4; max-width: 52ch; }
.hero .btn-row { margin-top: 1.9rem; }

.hero-trust {
  margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: #B7AFDD;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }

/* hero product stage: browser shot + floating phone + hash chip */
.hero-stage { position: relative; justify-self: stretch; }
.hero-stage:has(.phone-frame--sm) { padding-bottom: 2.4rem; }
.hero-stage:has(.phone-frame--sm) .shot-frame { margin-right: clamp(2rem, 9%, 5rem); }
.hero-stage .phone-frame {
  position: absolute; right: 0; bottom: 0; width: clamp(120px, 30%, 168px); z-index: 2;
}
.device-float {
  position: absolute; background: rgba(255,255,255,.97); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .7rem .85rem; z-index: 3;
}
.device-float--seal { top: -1.2rem; left: -.6rem; display: flex; align-items: center; gap: .6rem; }
.device-float--seal .seal { width: 46px; height: 46px; }
.device-float--seal .lbl { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-ink); line-height: 1.3; }
.device-float--seal .lbl strong { display: block; color: var(--ink); font-size: .78rem; }
.device-float--hash { bottom: .4rem; left: -.6rem; max-width: 210px; }
.device-float--hash .hk { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-strong); }
.device-float--hash .hv { font-family: var(--mono); font-size: .72rem; color: var(--ink); word-break: break-all; line-height: 1.45; }
.device-float--hash .ok { color: var(--sage); font-weight: 600; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 1rem; max-width: 560px; }
}
@media (max-width: 460px) {
  .device-float--hash { left: 0; max-width: 178px; }
  .device-float--seal { left: 0; }
}

/* ----------------------------------------------------------------------------
   6. Product screenshot slots (coordinator drops real shots in later)
   A missing image degrades to a labeled panel — never a broken-image icon.
---------------------------------------------------------------------------- */
.shot-frame {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border-bottom: 1px solid var(--line-2); background: var(--bg);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.shot-title {
  margin-left: .4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-body {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    url("assets/marketing/weave.svg") repeat center / 48px 16px,
    linear-gradient(150deg, var(--soft), var(--lavender));
  background-blend-mode: soft-light, normal;
}
.shot-body--tall { aspect-ratio: 4 / 3; }
.shot-body img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-body.is-empty img { display: none; }
.shot-body.is-empty::after {
  content: attr(data-shot-label);
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-strong);
}

/* phone frame (client app) */
.phone-frame {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lg);
  width: min(280px, 78vw);
}
.phone-frame .shot-body { aspect-ratio: 9 / 19; border-radius: 26px; }
.phone-frame--sm { width: min(230px, 64vw); border-radius: 28px; padding: 7px; }
.phone-frame--sm .shot-body { border-radius: 21px; }
.phone-center { display: flex; justify-content: center; }
.phone-row { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; align-items: flex-start; }

.shot-caption { margin-top: .7rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted-strong); text-align: center; }
.section--dark .shot-caption, .waitlist .shot-caption { color: #9C93C6; }

/* ----------------------------------------------------------------------------
   7. Chips, seals, tags (the certified vocabulary)
---------------------------------------------------------------------------- */
.seal { width: 64px; height: 64px; flex: none; }
.seal--sm { width: 40px; height: 40px; }
.seal--lg { width: 92px; height: 92px; }

.hash-chip, .ts-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .76rem; line-height: 1.4;
  border: 1px solid var(--line); border-radius: 999px; padding: .26rem .66rem;
  background: var(--card); color: var(--ink);
}
.hash-chip .k, .ts-chip .k { color: var(--muted-strong); }
.hash-chip .v { color: var(--violet-deep); word-break: break-all; }
.ts-chip .v { color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
  padding: .24rem .6rem; border-radius: 999px; background: var(--soft); color: var(--violet-deep);
  border: 1px solid var(--line);
}
.tag--sage { background: rgba(46,163,107,.1); color: #1f7e50; border-color: rgba(46,163,107,.25); }
.tag--brass { background: var(--brass-soft); color: var(--brass-ink); border-color: #E4D4AE; }

/* ----------------------------------------------------------------------------
   8. SIGNATURE — the chain-of-custody "certified timeline"
---------------------------------------------------------------------------- */
.custody {
  --spine-x: 26px;
  position: relative; margin-top: 1.5rem;
  border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem 1.6rem calc(var(--spine-x) + 2.1rem);
}
.custody::before { /* the evidence spine */
  content: ""; position: absolute; top: 1.9rem; bottom: 1.9rem; left: var(--spine-x);
  width: 2px; background: linear-gradient(var(--violet), var(--brass));
  border-radius: 2px;
}
.custody-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem;
  margin: 0 0 1.3rem calc(-1 * var(--spine-x) - .6rem);
}
.custody-head h3 { font-size: 1.18rem; }
.custody-head .meta { font-family: var(--mono); font-size: .72rem; color: var(--muted-strong); letter-spacing: .04em; }

.node { position: relative; padding-block: .95rem; border-top: 1px solid var(--line-2); }
.node:first-of-type { border-top: 0; padding-top: 0; }
.node-marker {
  position: absolute; left: calc(-2.1rem - 6px); /* centers the 14px marker on the spine */
  top: 1.25rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--violet); box-shadow: 0 0 0 4px rgba(117,75,234,.1);
}
.node--sealed .node-marker { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(176,138,62,.14); }
.node-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.node-type { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); }
.node-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-top: .15rem; }
.node-sub { font-size: .92rem; color: var(--body); margin-top: .2rem; }
.node-meta { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.node-seal { flex: none; }
.node-seal .seal { width: 50px; height: 50px; }

/* reveal scaffolding (armed by JS only when motion allowed) */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .custody .node { transition-delay: .04s; }
.reveal-ready .custody .node:nth-child(2) { transition-delay: .08s; }
.reveal-ready .custody .node:nth-child(3) { transition-delay: .12s; }
.reveal-ready .custody .node:nth-child(4) { transition-delay: .16s; }
.reveal-ready .custody .node:nth-child(5) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------------------
   9. Editorial grid: main column + marginalia (legal footnotes)
---------------------------------------------------------------------------- */
.ed-grid { display: grid; gap: 1.5rem; }
.ed-main > * + * { margin-top: 1.1rem; }
.ed-main h2 { margin-bottom: .2rem; }

.ed-margin { align-self: start; }
.marginal {
  font-size: .86rem; line-height: 1.55; color: var(--muted-strong);
  border-left: 2px solid var(--brass); padding-left: .9rem;
}
.marginal .cite {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brass-ink); margin-bottom: .3rem;
}
.marginal + .marginal { margin-top: 1.2rem; }

@media (min-width: 980px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 3rem; }
  .ed-grid--left { grid-template-columns: 250px minmax(0, 1fr); }
  .ed-grid--left .ed-margin { order: -1; }
}

/* pull-quote */
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem); line-height: 1.34; color: var(--ink);
  border-left: 3px solid var(--brass); padding: .2rem 0 .2rem 1.4rem; margin-block: .4rem;
  max-width: 30ch;
}
.pull cite { display: block; font-family: var(--mono); font-style: normal; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-ink); margin-top: 1rem; }
.section--dark .pull { color: #fff; }
.section--dark .pull cite { color: #D8B871; }

/* drop cap (founder story) */
.dropcap::first-letter {
  font-family: var(--serif); font-weight: 600; float: left; font-size: 3.6rem; line-height: .82;
  padding: .35rem .55rem 0 0; color: var(--violet-deep);
}

/* ----------------------------------------------------------------------------
   10. Cards / grids / features
---------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card--lift { transition: transform .18s ease, box-shadow .18s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--body); }
.card .kicker { margin-bottom: .8rem; }
.section--dark .card h3 { color: var(--ink); }

.feature-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--soft); color: var(--violet-deep); margin-bottom: 1rem; border: 1px solid var(--line);
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-num {
  font-family: var(--mono); font-size: .8rem; color: var(--brass-ink); font-weight: 600;
  border: 1px solid #E4D4AE; background: var(--brass-soft); border-radius: 8px;
  width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: .9rem;
}

/* audience route cards (borrowed from the Atlas concept, restyled) */
.route-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--violet); color: inherit; }
.route-card h3 { font-size: 1.45rem; margin: .7rem 0 .5rem; }
.route-card > p { color: var(--body); }
.route-list { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; display: grid; gap: .55rem; }
.route-list li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .95rem; color: var(--body); }
.route-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.route-card .arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--violet-deep); }
.route-card .arrow::after { content: "→"; transition: transform .15s ease; }
.route-card:hover .arrow::after { transform: translateX(3px); }

/* check list (feature rows) */
.check-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; }
.check-list li::before { content: "✓"; color: var(--sage); font-weight: 700; line-height: 1.6; }
.section--dark .check-list li { color: #C7C1E4; }

/* key/value mono list (security specifics) */
.kv { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .55rem; }
.kv li { display: grid; grid-template-columns: 170px 1fr; gap: .8rem; align-items: baseline; padding-block: .35rem; border-top: 1px solid var(--line-2); }
.kv li:first-child { border-top: 0; }
.kv .k { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-strong); }
.kv .val { color: var(--body); }
@media (max-width: 540px) { .kv li { grid-template-columns: 1fr; gap: .15rem; } }

/* steps */
.steps { display: grid; gap: 1.1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem;
}
.step-num {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }

/* principles list */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding-block: .4rem; }
.principle .seal { width: 30px; height: 30px; margin-top: .2rem; }
.principle h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.principle p { color: var(--body); }

/* honesty / note boxes */
.note-box {
  border: 1px solid var(--line); border-left: 3px solid var(--violet);
  background: var(--card); border-radius: var(--r); padding: 1.3rem 1.4rem;
}
.note-box h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.note-box--warn { border-left-color: var(--brass); background: var(--brass-soft); border-color: #E8DBBC; }
.note-box--warn h3 { color: var(--brass-ink); }
.note-box .mono-lead { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }

/* flow diagram */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; align-items: stretch; margin-top: 1.2rem; }
.flow--3 { grid-template-columns: repeat(3, 1fr); }
.flow-step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1rem; text-align: center;
}
.flow-step .fk { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-deep); }
.flow-step .ft { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin-top: .3rem; }
.flow-step .fd { font-size: .82rem; color: var(--muted-strong); margin-top: .3rem; }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -.55rem; top: 50%; transform: translateY(-50%);
  color: var(--brass); font-weight: 700; z-index: 1;
}
@media (max-width: 760px) {
  .flow, .flow--3 { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -.7rem; transform: translateX(50%); }
}

/* ----------------------------------------------------------------------------
   11. Media rows (text + product shot, alternating)
---------------------------------------------------------------------------- */
.media-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.media-grid > * { min-width: 0; }
.media-grid--rev .media-text { order: 2; }
.media-grid + .media-grid { margin-top: clamp(2.6rem, 6vw, 4.5rem); }
@media (max-width: 880px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-grid--rev .media-text { order: 0; }
}
.media-text h2, .media-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: .6rem; }
.media-text > p { margin-top: .8rem; }

/* ----------------------------------------------------------------------------
   12. Pricing (no dollar figures — plans + demo conversion)
---------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.price-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .price-grid, .price-grid--3 { grid-template-columns: 1fr; } }

.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card--featured { border-color: var(--violet); box-shadow: var(--shadow); }
.price-card--featured::before {
  content: "The platform"; position: absolute; top: -.8rem; left: 1.5rem;
  background: var(--violet); color: #fff; font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
}
.price-aud { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); }
.price-name { font-size: 1.4rem; margin: .35rem 0 .2rem; }
.price-amt { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin: .6rem 0 .2rem; }
.price-sub { color: var(--body); font-size: .95rem; }
.price-list { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .6rem; }
.price-list li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .95rem; }
.price-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.price-list li.muted { color: var(--muted-strong); }
.price-list li.muted::before { content: "–"; color: var(--muted); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-foot { font-size: .82rem; color: var(--muted-strong); margin-top: .7rem; text-align: center; }

.compare {
  margin-top: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--card);
}
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); background: var(--bg); }
.compare td.you { color: var(--violet-deep); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------------------
   13. FAQ (details/summary)
---------------------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); color: var(--violet); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--body); }
.faq-item .faq-body > * + * { margin-top: .7rem; }

/* ----------------------------------------------------------------------------
   14. Legal pages (Privacy / Terms) + long-form security
---------------------------------------------------------------------------- */
.legal-grid { display: grid; gap: 2rem; }
@media (min-width: 940px) { .legal-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; align-items: start; } }

.legal-banner {
  border: 1px solid #E8DBBC; background: var(--brass-soft); color: var(--brass-ink);
  border-radius: var(--r); padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: 1.6rem;
  display: flex; gap: .7rem; align-items: flex-start;
}
.legal-banner strong { color: var(--brass-ink); }

.toc { position: static; }
@media (min-width: 940px) { .toc { position: sticky; top: 92px; } }
.toc h2 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: .8rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: .15rem; }
.toc a { display: block; text-decoration: none; color: var(--body); font-size: .9rem; padding: .35rem .5rem; border-radius: 6px; counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero) " · "; font-family: var(--mono); color: var(--brass-ink); font-size: .8rem; }
.toc a:hover { background: var(--soft); color: var(--violet-deep); }
.legal-meta { margin-top: 1.4rem; font-family: var(--mono); font-size: .76rem; color: var(--muted-strong); }

.prose { max-width: 70ch; }
.prose--wide { max-width: none; }
.prose > section { padding-block: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose > section:first-of-type { border-top: 0; padding-top: 0; }
.prose h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.prose h2 .s-num { font-family: var(--mono); font-size: .9rem; color: var(--brass-ink); margin-right: .5rem; }
.prose h3 { font-size: 1.12rem; margin: 1.2rem 0 .4rem; color: var(--ink); }
.prose p { margin-bottom: .9rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; padding: 0; }
.prose li { margin-bottom: .45rem; }
.prose .lead { font-size: 1.15rem; color: var(--body); }
.prose code, .inline-mono { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: .08em .4em; border-radius: 5px; color: var(--ink); }

/* ----------------------------------------------------------------------------
   15. Contact / support form
---------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.label .req { color: var(--clay); }
.input, .select, .textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; width: 100%; min-width: 0;
}
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--muted-strong); }

.form-success {
  border: 1px solid rgba(46,163,107,.35); background: rgba(46,163,107,.08);
  border-radius: var(--r); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
}
.form-error {
  border: 1px solid rgba(192,73,47,.35); background: rgba(192,73,47,.07);
  border-radius: var(--r); padding: 1.2rem 1.4rem; margin-top: 1.1rem;
}
.form-error[hidden] { display: none; }
.form-error h3 { color: var(--clay); font-size: 1.1rem; margin-bottom: .3rem; }
.form-success[hidden] { display: none; }
.form-success .ok-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.form-success h3 { color: #1f7e50; font-size: 1.2rem; margin-bottom: .3rem; }

/* ----------------------------------------------------------------------------
   16. Demo / conversion band
---------------------------------------------------------------------------- */
.waitlist { background: var(--ink-2); color: #E9E5FA; position: relative; overflow: hidden; }
.waitlist::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 10%, rgba(117,75,234,.4), transparent 60%);
}
.waitlist-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.waitlist h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: .8rem 0 .9rem; }
.waitlist p { color: #C7C1E4; max-width: 48ch; }
.waitlist .fineprint { font-family: var(--mono); font-size: .74rem; color: #9C93C6; margin-top: 1.1rem; letter-spacing: .03em; }
.waitlist .btn-row { margin-top: 1.5rem; }
.waitlist--solo .waitlist-grid { grid-template-columns: 1fr; }
@media (max-width: 860px) { .waitlist-grid { grid-template-columns: 1fr; } .waitlist-media { order: -1; } }

/* ----------------------------------------------------------------------------
   17. Footer
---------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C7C1E4; padding-top: 3.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-desc { margin-top: .9rem; font-size: .92rem; color: #ABA3D0; max-width: 38ch; }
.footer-meta { margin-top: .8rem; font-family: var(--mono); font-size: .8rem; color: #D8B871; }
.footer-meta a { color: #D8B871; text-decoration: none; }
.footer-meta a:hover { color: #fff; }
.footer-col h2 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a { color: #B7AFDA; text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-base {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between;
}
.footer-disclaimer { font-size: .84rem; color: #9890BE; max-width: 60ch; }
.footer-copy { font-family: var(--mono); font-size: .78rem; color: #9890BE; }

/* ----------------------------------------------------------------------------
   18. 404
---------------------------------------------------------------------------- */
.err { text-align: center; padding-block: clamp(3rem, 9vw, 7rem); }
.err-code { font-family: var(--mono); font-size: clamp(3rem, 12vw, 6rem); color: var(--violet-deep); letter-spacing: .1em; }
.err h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .6rem 0 1rem; }
.err p { max-width: 50ch; margin-inline: auto; color: var(--body); }
.err .btn-row { justify-content: center; margin-top: 1.6rem; }
.err-links { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: center; }
.err-links a { font-size: .92rem; }

/* ----------------------------------------------------------------------------
   19. Misc utilities
---------------------------------------------------------------------------- */
.mono { font-family: var(--mono); }
.brass { color: var(--brass-ink); }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 1.4rem; }
.stat .n { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat .l { font-size: .88rem; color: var(--muted-strong); margin-top: .3rem; max-width: 22ch; }
.section--dark .stat .n { color: #fff; }
.section--dark .stat .l { color: #B7AFDA; }
.lead-in { display: inline-block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
