/* VIOLET MARKETING - the public front door.
   ONE BRAND, ONE LOOK: this mirrors the master's elevated language (apps/web/styles.css via
   apps/companion/public/styles.css) - flat near-black surfaces, one accent used sparingly, the
   geodesic orb, a mono UPPERCASE .eyebrow over a sentence-case heading. It references the
   master tokens (tokens.css, verbatim byte-copy) and invents NO new colors. Copy voice is plain,
   honest, sentence-case. No webfonts, no CDNs, no emdashes.

   Type scale (deliberate, no near-misses): 11 mono meta, 13 small links, 14 status/small,
   15 card body, 16 body, 18 lede, 28 section h2 (serif), hero clamp. Spacing sits on an
   8px rhythm at section level, 4px inside components. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Smooth scroll only for people who have not asked for reduced motion (the tokens.css
   kill-switch covers animations and transitions, not scroll-behavior). */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { color-scheme: dark; scrollbar-color: var(--surface-3) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent-press); text-decoration: none; transition: color var(--t); }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
/* One focus system for everything on the page. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px;
  border-radius: var(--r-sm); outline: 2px solid var(--accent); outline-offset: 2px;
}
/* Screen-reader-only content (the email label). Clip pattern, intent explicit. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Prose links read as links at rest, not only on hover (G183/F73). */
.priv-note a, .doc a, .card p a, .card h3 a, .wl-done a {
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent-press) 60%, transparent);
}

/* Depth vignette: the same soft radial darkening the master uses to settle the scene and let
   the orb read as ambient light from the centre. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 52%, rgba(0, 0, 0, 0.30) 100%);
}
main, footer { position: relative; z-index: 1; }

/* ── eyebrow (mono UPPERCASE over a sentence-case heading, the signature pattern) ── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); display: block; margin: 0 0 8px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 720px; margin: 0 auto; padding: 9vh 28px 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
/* The orb is the page's single light source; its halo is baked into the SVG. No added glow. */
.hero-orb { width: min(46vmin, 220px); height: auto; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px); font-weight: 500;
  letter-spacing: -0.022em; line-height: 1.08; margin: 2px 0 0; color: var(--text);
}
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 52ch; }

/* One entrance, hero only, CSS only. Rest state is fully visible ("backwards" only fills
   the pre-animation frame); the tokens.css reduced-motion block collapses it to nothing. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero > * { animation: rise 480ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.hero > :nth-child(2) { animation-delay: 70ms; }
.hero > :nth-child(3) { animation-delay: 140ms; }
.hero > :nth-child(4) { animation-delay: 210ms; }
.hero > :nth-child(5) { animation-delay: 280ms; }

.hero > :nth-child(6) { animation-delay: 350ms; }

/* Phones and short viewports: the email row must sit above the fold. */
@media (max-width: 480px), (max-height: 740px) {
  .hero-orb { width: 130px; }
  .hero { padding-top: 5vh; }
}

/* ── Motion (MOTION LAW: everything rests visible; .rv is a marker with NO styles at rest;
   .rv-go is transient, added by site.js on first intersection and removed ~700ms later.
   "backwards" fills only the animation window, so the resting state is always plain. All of
   it lives inside the no-preference query; the tokens.css kill-switch is the second line. */
@media (prefers-reduced-motion: no-preference) {
  .rv-go { animation: rise 480ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
  .rv-go:nth-child(2) { animation-delay: 60ms; }
  .rv-go:nth-child(3) { animation-delay: 120ms; }
  .rv-go:nth-child(4) { animation-delay: 180ms; }

  /* The orb breathes: transform only, imperceptibly gentle, presence not decoration. */
  @keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
  .hero-orb { animation: rise 480ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards, orb-breathe 7s ease-in-out 1.2s infinite; }
}

/* ── Walk links (the section-end transitions; mono eyebrow voice, no arrows) ───────── */
.walk-start { margin: 8px 0 0; }
.walk-next { margin: 24px 0 0; }
.walk-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.walk-link:hover { color: var(--text); text-decoration: none; }

/* ── Waitlist form ─────────────────────────────────────────────────────────────────── */
.wl { width: min(460px, 100%); margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.wl-row {
  display: flex; gap: 8px; padding: 8px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.10);
  /* The one element on the page allowed to float. */
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
  transition: border-color var(--t), box-shadow var(--t);
}
.wl-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft), 0 18px 44px rgba(0, 0, 0, 0.42);
}
.wl-row input {
  flex: 1; min-width: 0; background: transparent; border: none;
  color: var(--text); padding: 8px 4px 8px 12px; font: inherit; font-size: 16px;
}
.wl-row input::placeholder { color: var(--muted); }
.wl-row input:focus { outline: none; }
button.primary {
  flex: 0 0 auto; background: var(--accent); color: var(--bg); border: none;
  border-radius: var(--r); padding: 8px 16px; font-size: 14px; font-weight: 500;
  transition: var(--t); white-space: nowrap;
}
button.primary:hover { background: var(--accent-press); }
button.primary:active { transform: translateY(1px); }
button.primary:disabled { opacity: 0.5; cursor: default; }
/* Honest states: quiet text, no confetti. min-height keeps the layout from jumping. */
.wl-status { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.wl-status[data-st="ok"] { color: var(--ok); }
.wl-status[data-st="err"] { color: var(--danger); }
.wl-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 4px 0 0; max-width: 52ch; align-self: center; }
/* The post-submit confirmation: the highest-attention moment gets a real block. */
.wl-done {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 16px 20px; text-align: left;
}
.wl-done:focus { outline: none; }
.wl-done .wl-done-head { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.wl-done p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Header CTA (anchor to the single form; no second form anywhere) ───────────────── */
.k-nav .k-cta {
  background: var(--accent); color: var(--bg); font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm); transition: background var(--t);
}
.k-nav .k-cta:hover { background: var(--accent-press); color: var(--bg); text-decoration: none; }

/* ── Content blocks ────────────────────────────────────────────────────────────────── */
.block { max-width: 860px; margin: 0 auto; padding: 72px 28px; }
@media (min-width: 900px) { .block { padding: 96px 28px; } }
.block h2 {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.015em;
  font-weight: 500; margin: 0 0 24px;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
/* Dark-theme elevation is surfaces and hairlines, not shadows (shadows vanish on #0c0c11). */
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; background: var(--surface); min-width: 0;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.card:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── Privacy list (mono-for-data numbering, plain sentences) ───────────────────────── */
.priv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.priv li {
  display: flex; align-items: baseline; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; background: var(--surface);
  font-size: 15px; line-height: 1.55; color: var(--text);
}
.priv .priv-k { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.priv-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 66ch; }

/* ── The locked-envelope diagram (#trust). Inline SVG, tokens only, static: the brand
   never animates marks or evidence. Real selectable <text>, no inline styles. ───────── */
.env-fig { margin: 0 0 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.env-svg { width: min(420px, 100%); height: auto; display: block; }
.env-cap { margin: 0; text-align: center; }
.d-box { fill: var(--surface); stroke: var(--line-strong); }
.d-box-accent { fill: var(--accent-soft); stroke: var(--accent); }
.d-field { fill: var(--surface-2); stroke: var(--line-strong); }
.d-dots { fill: var(--muted); }
.d-mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--muted); }
.d-payload { letter-spacing: 0.02em; }
.d-cap { font-family: var(--sans); font-size: 13px; fill: var(--text); }
.d-arrow { stroke: var(--line-strong); stroke-width: 1.5; }
.d-arrowhead { fill: var(--line-strong); }
.d-key { stroke: var(--accent); fill: none; stroke-width: 2; }
.d-tick { stroke: var(--accent); fill: none; stroke-width: 1.5; }
.d-stay { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--accent); }
.d-env { fill: var(--surface-2); stroke: var(--accent); }
.d-envflap { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.d-lock { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.d-cloud { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.d-cool { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--cool); }

/* ── Day to day (#day): narration + the styled Today illustration ──────────────────── */
.day-wrap { display: grid; gap: 32px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .day-wrap { grid-template-columns: minmax(0, 1fr) 420px; } }
.day-copy p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.day-copy p:last-child { margin-bottom: 0; }
/* The illustration: visibly a styled composition, not a screenshot. No chrome, no bezel,
   generous air the real app does not have. Tokens only, no shadows, no raster assets. */
.today-ill { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ti-card {
  width: min(420px, 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 22px;
}
.ti-block .eyebrow { margin-bottom: 6px; }
.ti-line { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.ti-strip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  padding: 10px 12px; font-size: 14px; color: var(--text);
}
.ti-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.ti-when { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ti-tasks { display: flex; flex-direction: column; gap: 2px; }
.ti-task { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 0; font-size: 15px; color: var(--text); }
.ti-check { width: 14px; height: 14px; border: 1px solid var(--line-strong); border-radius: 4px; flex: 0 0 auto; }
.ti-prov { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 10px; }
.ill-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--muted); text-align: center; }

/* ── Founder note (#founder) ───────────────────────────────────────────────────────── */
.founder-note { padding: 20px 24px; max-width: 560px; }
.founder-note p + p { margin-top: 12px; }
.founder-note .founder-sig { font-family: var(--mono); font-size: 12px; color: var(--text); margin-top: 16px; }
.founder-note .founder-close a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--accent-press) 60%, transparent); }

/* ── FAQ (#faq): native details/summary, no motion, no CLS (user-initiated) ────────── */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.faq-item summary {
  cursor: pointer; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--text);
  border-radius: var(--r-sm);
}
.faq-item summary:hover { background: var(--surface-2); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.faq-item p { margin: 0; padding: 12px 16px 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── Build log (#buildlog): the assembler-filled latest-posts slot ─────────────────── */
.bl-intro { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.bl-grid { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-card .bl-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin: 0 0 8px; }
.bl-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.bl-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ── Closing waitlist pointer (bottom of the page) ─────────────────────────────────── */
.closing { text-align: center; }
.closing-line { margin: 0 0 24px; font-size: 18px; color: var(--muted); }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--bg);
  border-radius: var(--r); padding: 12px 20px; font-size: 15px; font-weight: 500;
  transition: background var(--t);
}
.btn-primary:hover { background: var(--accent-press); color: var(--bg); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }

/* ── Footer: five labeled columns over the legal row. No reveals, zero layout shift. ── */
.foot {
  max-width: 860px; margin: 0 auto; padding: 48px 28px 40px;
  border-top: 1px solid var(--line);
}
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 2px;
}
.foot-col a { color: var(--muted); font-size: 13px; line-height: 1.5; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); font-size: 13px; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
.foot-line { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── Document shell (privacy.html + terms.html + 404.html) ─────────────────────────── */
.doc-top {
  display: flex; align-items: center; gap: 10px;
  max-width: 720px; margin: 0 auto; padding: 20px 28px 0;
}
.doc-top img { width: 26px; height: 26px; }
.doc-top a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.doc-top a:hover { text-decoration: none; }
.doc-top .wordmark { font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.doc { max-width: 720px; margin: 0 auto; padding: 26px 28px 40px; }
.doc h1 { font-size: 26px; margin: 0 0 6px; }
.doc h2 { font-size: 18px; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 68ch; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .doc-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 0 18px; }
/* The DRAFT banner: honest and visible, the warn token doing its one job. */
.draft {
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 8%, transparent);
  padding: 12px 16px; margin: 16px 0 24px;
  font-size: 14px; line-height: 1.55; color: var(--text);
}
.draft .eyebrow { color: var(--warn); margin-bottom: 4px; }
/* Owner/counsel placeholders from the drafts, kept visibly unresolved, never hidden. */
.owner { color: var(--muted); font-style: italic; }
.doc .lead { color: var(--text); font-size: 17px; }

/* ── Print (the legal pages are exactly the pages people print or save to PDF) ─────── */
@media print {
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .doc p, .doc li, .doc h1, .doc h2, .doc strong, .doc .lead, .doc .doc-meta, .draft, .owner { color: #000; }
  .k-top, .foot, .wl, .skip { display: none; }
  a { color: #000; text-decoration: underline; }
}

/* ── Pricing ─────────────────────────────────────────────────────────────
   Mobile-first: plans stack in one column by default, sit side by side at 720px+.
   Tokens only. The Pro plan is the emphasized (recommended) card. */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 8px 0 0; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 16px;
}
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px rgba(0, 0, 0, 0.35); }
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.plan-flag {
  align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-press); border: 1px solid var(--accent);
  border-radius: 999px; padding: 2px 9px; margin-bottom: 4px;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--text); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-for { font-size: 14px; color: var(--muted); margin: 0; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-feats li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan-feats li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent);
}
.plan-feats li strong { color: var(--text); font-weight: 500; }
.plan .btn-primary { margin-top: auto; text-align: center; }
.plan .btn-ghost {
  margin-top: auto; text-align: center; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--r); padding: 11px 18px; font-size: 14px; font-weight: 500; background: transparent;
}
.plan .btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 18px auto 0; max-width: 46ch; }
.price-vow {
  margin: 28px auto 0; max-width: 620px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 22px 24px; text-align: center;
}
.price-vow h2 { font-size: 20px; margin: 0 0 8px; }
.price-vow p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
