/* The corporate site's stylesheet (D-60). Loaded after /ui.css, whose spacing, type,
   radius and button tokens it uses; it defines its own colors (and its own --hairline and
   --btn-weight) because the marketing pages do not follow the operator's theme. Fonts come from the --font-* tokens only (tests/test_site.py
   holds that, as tests/test_ui_consistency.py does for the app). No imported sheet,
   image reference or webfont: the page's CSP is default-src 'self' and nothing here asks for more.

   The band is the app's Spectrum gradient (forx/theme.py SPECTRUM), darkened by a plum
   wash so the small white type on it clears WCAG AA: white on the raw pink corner is only
   3.12:1, and 4.9:1 under the wash. */

:root{
  --ink: #1d1033;
  --ink-2: #4a3f5e;              /* 8.9:1 on white */
  --paper: #ffffff;
  --tint: #f6f2ff;
  --line: #e7def7;
  --violet: #5b2fc9;             /* links on white, 7.2:1 */
  --plum: #2a0a3d;
  --night: #1a0826;
  --accent: #FFB438;
  --accent-ink: #2a0a3d;
  --ok: #17703f;
  --on-dark: #fff;               /* type on the band, the private panel and the footer */
  --flag-bg: #fff1c2;            /* "placeholder" and "coming soon" flags */
  --flag-ink: #5a3b00;
  --note-bg: #fff8ea;
  --radius: var(--radius-2xl);
  --hairline: 1px solid var(--line);
  --btn-weight: 650;
  --h2-size: var(--text-display);
  --shadow-card: 0 1px 2px rgba(42,10,61,.06), 0 12px 32px rgba(42,10,61,.08);
  --control-pad-y: var(--space-3);
  --control-pad-x: var(--space-5);
  --control-text: var(--text-md);
  --spectrum-pink: #E85FB4;
  --spectrum-violet: #813DF9;
  --spectrum: linear-gradient(118deg, var(--spectrum-pink) 0%, #D05BCA 15%, #9F4AE5 33%,
              var(--spectrum-violet) 52%, #684CF9 82%, #6D72F9 100%);
  --wash: linear-gradient(rgba(26,8,48,.30), rgba(26,8,48,.30));
  --lattice:
    repeating-linear-gradient(60deg, transparent 0 86px, rgba(255,255,255,.06) 86px 87px),
    repeating-linear-gradient(-60deg, transparent 0 86px, rgba(255,255,255,.06) 86px 87px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  overflow-x: hidden;
}
img{ max-width: 100%; height: auto; }
h1, h2, h3{ font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p{ margin: 0; }
a{ color: var(--violet); text-underline-offset: 3px; }
a:hover{ text-decoration-thickness: 2px; }
/* Violet on the light page (7.8:1 on white, WCAG 1.4.11 asks 3:1); amber only on the
   dark areas, where it is 10.7:1 and violet would vanish. Amber on white was 1.77:1. */
:focus-visible{ outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .cta-band :focus-visible, .private :focus-visible,
.site-foot :focus-visible{ outline-color: var(--accent); }

.wrap{ width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 720px){ .wrap{ padding-inline: var(--space-5); } }

.skip{
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip:focus{ top: 12px; }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ buttons -- */
.btn{
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .14s, filter .14s;
}
.btn:hover{ transform: translateY(-1px); }
/* .btn-primary is the plain .btn: --btn-bg and --btn-ink already read the site's accent. */
.btn-ghost{ background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn-light{ background: var(--paper); color: var(--plum); }
.btn-small{ --control-pad-y: var(--space-2); --control-pad-x: var(--space-4); --control-text: var(--text-md); }
.btn-block{ display: flex; width: 100%; }
.btn.is-disabled{
  background: #ece6f5; color: #5d5370; cursor: not-allowed; transform: none; filter: none;
}
@media (prefers-reduced-motion: reduce){ .btn, .btn:hover{ transition: none; transform: none; } }

/* --------------------------------------------------------------------- band -- */
.band, .cta-band{
  background: var(--lattice), var(--wash), var(--spectrum);
  color: var(--on-dark);
}
.band a:not(.btn){ color: var(--on-dark); }
.site-head{ padding-block: var(--space-4); }
.head-row{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.brand{ display: inline-flex; align-items: center; flex: none; }
.brand img{ display: block; height: 26px; width: auto; }
.head-nav{ display: flex; align-items: center; gap: var(--space-4); }
.head-nav a:not(.btn){ font-weight: 600; text-decoration: none; }
.head-nav a:not(.btn):hover, .head-nav a[aria-current="page"]:not(.btn){ text-decoration: underline; }
@media (max-width: 420px){
  .brand img{ height: 19px; }
  .head-nav{ gap: var(--space-3); }
}

.hero{
  display: grid; gap: var(--space-7); align-items: center;
  padding-block: var(--space-6) var(--space-8);
}
@media (min-width: 900px){
  .hero{ grid-template-columns: 1.1fr .9fr; gap: var(--space-8); padding-block: var(--space-7) var(--space-10); }
}
.eyebrow{
  display: inline-block; font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.16); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
}
.hero h1{ font-size: var(--text-display); font-weight: 750; margin-top: var(--space-4); }
/* The one clamp() not mapped to --text-display (type ruling, 2026-10-08): the lede's
   clamp(17px, 1.6vw, 20px) lay wholly in the 17-20px range, so it takes that step,
   --text-lg, like .section-lede. Display would set it at the h1's size. */
.lede{ font-size: var(--text-lg); margin-top: var(--space-4); max-width: 40em; }
.band .lede{ color: rgba(255,255,255,.95); }
.cta-row{ display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-demo{ margin: 0; }
.chat-card{
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: 22px; padding: var(--space-5); box-shadow: 0 24px 60px rgba(26,8,48,.35);
}
.bubble{ margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-xl); font-size: var(--text-md); line-height: 1.5; }
.bubble-q{ background: var(--plum); color: var(--on-dark); margin-left: 12%; border-bottom-right-radius: 6px; }
.bubble-a{ background: var(--tint); border: var(--hairline); margin-right: 6%; border-bottom-left-radius: 6px; }

/* ------------------------------------------------------------- demo chats -- */
/* The hero chat and the Premium window are pictures of the member app: real questions,
   Vera's real answers, laid out the way the app lays them out. Nothing in them is a
   working control; the composer only shows where the next question goes. */
.chat-head{ display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4);
  border-bottom: var(--hairline); }
.chat-head img{ width: 34px; height: 34px; flex: none; }
.chat-id{ display: flex; flex-direction: column; line-height: 1.25; }
.chat-name{ font-weight: 750; color: var(--plum); font-size: var(--text-md); }
.chat-powered{ font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.bubble-a p + p{ margin-top: var(--space-2); }
.bubble-who{ display: block; font-size: var(--text-sm); font-weight: 700; color: var(--violet);
  margin-bottom: var(--space-1); letter-spacing: .02em; }
.composer{
  display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  background: var(--paper); box-shadow: 0 1px 2px rgba(42,10,61,.05);
}
.composer-field{ flex: 1; min-width: 0; font-size: var(--text-md); color: #6b6082; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.composer-caret{ display: inline-block; width: 2px; height: 1.05em; margin-right: var(--space-1);
  vertical-align: -2px; background: var(--violet); animation: caret 1.1s steps(1) infinite; }
@keyframes caret{ 50%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .composer-caret{ animation: none; } }
.composer-send{ flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid;
  place-items: center; background: var(--plum); color: var(--on-dark); }
.composer-send svg{ width: 16px; height: 16px; }

/* ----------------------------------------------------------- premium demo -- */
.premium-demo{ margin: var(--space-6) 0 0; }
.app-window{ background: var(--paper); border: var(--hairline); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-card); }
.app-bar{ display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  background: var(--tint); border-bottom: var(--hairline); }
.app-bar i{ width: 10px; height: 10px; border-radius: 50%; background: #dccff2; }
.app-url{ margin-left: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--paper);
  border: var(--hairline); font-size: var(--text-sm); color: var(--ink-2); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body{ display: grid; gap: var(--space-6); padding: var(--space-5); }
@media (min-width: 900px){
  .app-body{ grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); padding: var(--space-6); }
}
.app-chat .bubble-q{ margin-left: 18%; }
.app-chat .bubble-a{ margin-right: 0; }
.vids-title{ display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3);
  font-weight: 750; color: var(--plum); font-size: var(--text-md); }
.vids-title small{ font-weight: 500; font-size: var(--text-sm); color: var(--ink-2); }
.vlist{ list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-direction: column;
  gap: var(--space-4); }
.vcard{ display: flex; gap: var(--space-4); align-items: flex-start; }
.vthumb{
  position: relative; flex: 0 0 42%; max-width: 176px; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--wash), var(--spectrum);
}
.vcard:nth-child(2) .vthumb{ background: var(--wash), linear-gradient(200deg, #9F4AE5, var(--spectrum-pink)); }
.vcard:nth-child(3) .vthumb{ background: var(--wash), linear-gradient(160deg, var(--plum), var(--spectrum-violet)); }
.vplay{ position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(26,8,48,.3); }
.vplay::after{ content: ""; position: absolute; left: 13px; top: 10px; border-style: solid;
  border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--plum); }
.vdur{ position: absolute; right: 7px; bottom: 7px; padding: 1px var(--space-2); border-radius: 6px;
  background: rgba(10,4,18,.72); color: var(--on-dark); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.vmeta{ flex: 1; min-width: 0; }
.vname{ font-weight: 650; font-size: var(--text-md); line-height: 1.3; color: var(--ink); }
.vcourse{ margin-top: var(--space-0); font-size: var(--text-sm); color: var(--ink-2); }
.vmarks{ list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.vmarks li{ padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); border: var(--hairline);
  background: var(--paper); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.vmarks li.on{ background: var(--plum); border-color: var(--plum); color: var(--on-dark); }
.demo-note{ margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-2); text-align: center; }

.page-hero{ padding-block: var(--space-5) var(--space-8); }
.page-hero h1{ font-size: var(--text-display); font-weight: 750; margin-top: var(--space-3); }
.meta{ margin-top: var(--space-3); font-size: var(--text-md); color: rgba(255,255,255,.92); }
.draft-note{
  display: inline-block; margin-top: var(--space-4); font-size: var(--text-md); font-weight: 600;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}
mark.ph{
  background: var(--flag-bg); color: var(--flag-ink); padding: 0 var(--space-1); border-radius: 5px;
  outline: 1px dashed #c98a00; font-weight: 600;
}

/* ------------------------------------------------------------------ sections -- */
.section{ padding-block: var(--space-8); }
@media (min-width: 720px){ .section{ padding-block: var(--space-9); } }
.section-tint{ background: var(--tint); }
.kicker{ font-size: var(--text-sm); font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--violet); }
.section h2{ font-size: var(--h2-size); font-weight: 720; margin-top: var(--space-3); max-width: 22em; }
.section-lede{ margin-top: var(--space-4); font-size: var(--text-lg); color: var(--ink-2); max-width: 44em; }

.features{
  list-style: none; padding: 0; margin: var(--space-6) 0 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
/* The site's card: a feature, a step, a way to get in touch. */
.feature, .steps li, .contact-card{
  border: var(--hairline); border-radius: var(--radius); padding: var(--space-5);
}
.feature{ background: var(--paper); box-shadow: var(--shadow-card); }
.feature h3{ font-size: var(--text-lg); font-weight: 700; }
.feature h3::before{
  content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; margin-bottom: var(--space-4);
  background: linear-gradient(90deg, var(--spectrum-pink), var(--spectrum-violet));
}
.feature p{ margin-top: var(--space-3); color: var(--ink-2); }

.steps{
  list-style: none; padding: 0; margin: var(--space-6) 0 0; counter-reset: step;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.steps li{ counter-increment: step; background: var(--paper); }
.steps li::before{
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: var(--space-4);
  background: var(--plum); color: var(--on-dark); font-weight: 750;
}
.steps h3{ font-size: var(--text-lg); }
.steps p{ margin-top: var(--space-2); color: var(--ink-2); }

.private{
  display: grid; gap: var(--space-6); align-items: start;
  background: var(--night); color: var(--on-dark); border-radius: 26px; padding: var(--space-6) var(--space-5);
}
@media (min-width: 860px){ .private{ grid-template-columns: 1fr 1fr; padding: var(--space-7); gap: var(--space-7); } }
.private .kicker{ color: #ffcf7a; }
.private h2{ color: var(--on-dark); }
.private p{ margin-top: var(--space-4); color: rgba(255,255,255,.88); }
.text-link{ color: var(--on-dark); font-weight: 650; }
.checks{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checks li{
  position: relative; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-7); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.checks li::before{
  content: "\2713"; position: absolute; left: 14px; top: 11px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: var(--text-sm); font-weight: 800;
}

.notice{
  border-left: 5px solid var(--accent); background: var(--note-bg); border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.notice .notice-title{ font-size: var(--text-lg); margin: 0; max-width: none; }
.notice p{ margin-top: var(--space-2); color: var(--ink-2); }
.section:has(.notice){ padding-top: 0; }

.cta-inner{ padding-block: var(--space-8); text-align: center; display: grid; justify-items: center; gap: var(--space-4); }
.cta-inner h2{ font-size: var(--h2-size); }
.cta-inner p{ max-width: 36em; color: rgba(255,255,255,.95); }

/* ------------------------------------------------------------------ pricing -- */
.plans{ display: grid; gap: var(--space-5); }
@media (min-width: 780px){ .plans{ grid-template-columns: 1fr 1fr; align-items: start; } }
.plan{
  position: relative; background: var(--paper); border: var(--hairline);
  border-radius: 24px; padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-card);
  display: grid; gap: var(--space-4);
}
.plan-featured{ border: 2px solid var(--spectrum-violet); }
.plan-flag{
  position: absolute; top: -13px; left: 24px; font-size: var(--text-sm); font-weight: 750;
  text-transform: uppercase; letter-spacing: .06em; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  /* The same plum wash as .band: white on the raw pink corner is only 3.12:1. */
  background: var(--wash), var(--spectrum); color: var(--on-dark);
}
.plan h2{ font-size: var(--text-xl); }
.plan-pitch{ color: var(--ink-2); }
.plan-price{ display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.plan-price .amount{ font-size: var(--text-display); font-weight: 780; letter-spacing: -.02em; line-height: 1; }
.plan-price .unit{ color: var(--ink-2); font-weight: 600; }
.plan-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.plan-list li{ position: relative; padding-left: var(--space-6); }
.plan-list li::before{
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
}
.plan-out{ padding-top: var(--space-4); border-top: var(--hairline); }
.plan-out-title{ font-size: var(--text-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-2); margin-bottom: var(--space-2); }
.plan-list-out li{ color: var(--ink-2); }
.plan-list-out li::before{ content: "\2013"; color: var(--ink-2); }
.soon{
  display: inline-block; font-size: var(--text-sm); font-weight: 700; padding: 1px var(--space-2); border-radius: var(--radius-pill);
  background: var(--flag-bg); color: var(--flag-ink); margin-left: var(--space-1);
}

.table-wrap{ overflow-x: auto; margin-top: var(--space-5); border: var(--hairline); border-radius: var(--radius-xl); }
table{ width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th, td{ text-align: left; padding: var(--space-3) var(--space-4); border-bottom: var(--hairline); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td{ border-bottom: 0; }
thead th{ background: var(--tint); font-size: var(--text-md); }
.compare tbody th{ font-weight: 600; }
.compare .feat-sum{ display: block; font-weight: 400; font-size: var(--text-sm); color: var(--ink-2);
  margin-top: var(--space-0); max-width: 34em; }
.compare td.yes{ color: var(--ok); font-weight: 650; }
.compare td.no{ color: var(--ink-2); }
.soon-cell{ color: #7a5200; font-weight: 650; }
@media (max-width: 480px){ table{ font-size: var(--text-sm); } th, td{ padding: var(--space-3) var(--space-2); } }

.faq details{ border-bottom: var(--hairline); padding-block: var(--space-1); }
.faq details:first-of-type{ margin-top: var(--space-5); border-top: var(--hairline); }
.faq summary{ cursor: pointer; font-weight: 650; font-size: var(--text-lg); padding: var(--space-4) 0; }
.faq details p{ padding-bottom: var(--space-4); color: var(--ink-2); max-width: 46em; }
.fine{ margin-top: var(--space-5); font-size: var(--text-md); color: var(--ink-2); }

/* -------------------------------------------------------------------- prose -- */
.prose{ max-width: 800px; padding-block: var(--space-7) var(--space-9); }
.prose > p, .prose > ul{ margin-top: var(--space-4); }
.prose h2{ font-size: var(--text-xl); margin-top: var(--space-7); }
.prose h3{ font-size: var(--text-lg); margin-top: var(--space-5); }
.prose h3 + p, .prose h3 + ul{ margin-top: var(--space-2); }
.prose ul{ padding-left: var(--space-5); }
.prose li + li{ margin-top: var(--space-2); }
.prose table td:first-child{ font-weight: 600; width: 38%; }
.contact-grid{ display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-card{ box-shadow: var(--shadow-card); }
.contact-card h2{ font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.contact-card p + p{ margin-top: var(--space-2); }
.muted{ color: var(--ink-2); font-size: var(--text-md); }
.notice-inline{ margin-top: var(--space-6); padding: var(--space-4) var(--space-4); border-left: 4px solid var(--accent); background: var(--note-bg); border-radius: var(--radius-md); }

/* ------------------------------------------------------------------- footer -- */
.site-foot{ background: var(--night); color: rgba(255,255,255,.86); font-size: var(--text-md); }
.site-foot a{ color: var(--on-dark); text-decoration: none; }
.site-foot a:hover, .site-foot a[aria-current="page"]{ text-decoration: underline; }
.foot-grid{ display: grid; gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 760px){ .foot-grid{ grid-template-columns: 1.2fr 1fr; } }
.foot-brand img{ height: 22px; width: auto; display: block; }
.foot-brand p{ margin-top: var(--space-4); }
.foot-nav{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.foot-nav ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); align-content: start; }
.foot-base{
  border-top: 1px solid rgba(255,255,255,.14); padding-block: var(--space-5) var(--space-6);
  display: grid; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255,255,255,.72);
}

/* Two plain sections in a row would stack both paddings into one oversized gap. */
main > .section.wrap + .section.wrap{ padding-top: 0; }
/* A legal page's title lines up with the narrow column of text under it. */
.legal .page-hero{ max-width: 800px; }
