/* Studio Suite — public landing page
   Paper + cobalt + ModDisplay. SaaS layout: centered hero, browser-framed
   product shot, spotlight rows, card grids, CTA banner. The admin app
   (css/styles.css) shares this palette so the marketing page and the
   product read as one thing. */

@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-ExtraBold.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'ModDisplay'; src: url('../assets/fonts/ModDisplay-Black.otf') format('opentype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Saltz'; src: url('../assets/fonts/Saltz-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Saltz'; src: url('../assets/fonts/Saltz-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Saltz'; src: url('../assets/fonts/Saltz-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --paper: #f2efe7;
  --paper-2: #eae6da;
  --card: #ffffff;
  --ink: #171512;
  --ink-soft: #4b463d;
  --muted: #7d776a;
  --line: #ddd7c8;
  --cobalt: #2b45e0;
  --cobalt-dark: #1e33b5;
  --cobalt-tint: rgba(43, 69, 224, 0.07);
  --good: #1d7a4f;
  --warn: #a8730a;

  --display: 'ModDisplay', 'Georgia', serif;
  --accent-face: 'Saltz', 'Georgia', serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, monospace;

  --r: 16px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(23,21,18,.05), 0 8px 24px rgba(23,21,18,.06);
  --shadow-2: 0 2px 4px rgba(23,21,18,.06), 0 18px 50px rgba(23,21,18,.12);

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  /* Drafting-paper grid: a fine 32px blueprint grid with a stronger line
     every 160px, laid over the paper tone. White cards/sections sit on top,
     so the grid reads as the workspace behind the product. */
  background:
    linear-gradient(rgba(23,21,18,0.055) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(90deg, rgba(23,21,18,0.055) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(rgba(23,21,18,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(23,21,18,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cobalt); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
b { font-weight: 650; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ============ Buttons ============ */
.btn-cobalt, .btn-ghosted, .btn-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }

.btn-cobalt {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 2px 6px rgba(43,69,224,.25), 0 10px 26px rgba(43,69,224,.22);
}
.btn-cobalt:hover { background: var(--cobalt-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(43,69,224,.28), 0 16px 34px rgba(43,69,224,.26); }

.btn-ghosted { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghosted:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 68px;
  background: rgba(242, 239, 231, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .2px;
  color: var(--ink);
}
.brand-mark .bm-dot { color: var(--cobalt); }
.brand-mark sup { font-size: 9px; letter-spacing: 1px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s;
}
.site-nav a:hover { color: var(--ink); }

.site-nav .login-link {
  color: var(--ink);
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.site-nav .login-link:hover { background: var(--ink); color: var(--paper); }

.site-nav .trial-link {
  color: #fff;
  font-weight: 600;
  padding: 9.5px 20px;
  background: var(--cobalt);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(43,69,224,.28);
  transition: background .15s, transform .15s;
}
.site-nav .trial-link:hover { background: var(--cobalt-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* Mobile-only header CTA — the primary action stays visible even when the
   nav is collapsed behind the hamburger. */
.trial-link-mobile { display: none; }

/* ============ Hero ============ */
.hero { padding: 122px 0 0; position: relative; }

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  border: 1px solid rgba(43,69,224,.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(46px, 7.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero-title em {
  font-family: var(--accent-face);
  font-style: italic;
  font-weight: 500;
  color: var(--cobalt);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .3px;
}

/* ============ Browser-framed app mockup ============ */
.app-frame {
  position: relative;
  max-width: 1040px;
  margin: 44px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
}

.af-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee9dc;
  border-radius: var(--r) var(--r) 0 0;
  background: #faf8f2;
}
.af-titlebar .dots { display: flex; gap: 6px; }
.af-titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #e3ddcf; }
.af-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid #eee9dc;
  border-radius: 999px;
  padding: 4px 14px;
}

.af-body { display: grid; grid-template-columns: 200px 1fr; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }

.af-side {
  background: #fcfbf7;
  border-right: 1px solid #eee9dc;
  padding: 18px 14px;
  text-align: left;
}
.af-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  margin-bottom: 18px;
}
.af-logo {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--cobalt); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.af-nav { display: flex; flex-direction: column; gap: 2px; }
.af-nav span {
  font-size: 12.5px; color: var(--ink-soft);
  padding: 7px 10px; border-radius: 8px;
}
.af-nav span.on { background: var(--cobalt-tint); color: var(--cobalt); font-weight: 600; }

.af-main { padding: 20px 24px 26px; background: #fdfcf9; text-align: left; }
.af-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.af-proj { font-family: var(--display); font-weight: 800; font-size: 19px; }
.af-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px;
  color: var(--cobalt); background: var(--cobalt-tint);
  border: 1px solid rgba(43,69,224,.2);
  padding: 3px 10px; border-radius: 999px;
}

.af-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.af-kpi {
  background: #fff; border: 1px solid #eee9dc; border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.af-kpi .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.af-kpi .v { font-family: var(--display); font-weight: 800; font-size: 20px; }
.af-kpi .m { font-size: 10.5px; color: var(--muted); }
.af-kpi.good .v { color: var(--good); }
.af-kpi.accent .v { color: var(--cobalt); }

.af-panel { background: #fff; border: 1px solid #eee9dc; border-radius: 12px; padding: 14px 16px; }
.af-panel-title { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.af-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 9px 2px; font-size: 13px; border-top: 1px solid #f3efe4;
}
.af-row:first-of-type { border-top: none; }
.af-row .amt { font-family: var(--mono); font-size: 12.5px; }
.af-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px;
}
.af-pill.paid { background: rgba(29,122,79,.12); color: var(--good); }
.af-pill.sent { background: var(--cobalt-tint); color: var(--cobalt); }
.af-pill.open { background: rgba(23,21,18,.06); color: var(--muted); }

.mock-chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(23,21,18,.28);
  white-space: nowrap;
  z-index: 2;
}
.mock-chip.c1 { top: -16px; right: 36px; background: var(--good); color: #fff; }
.mock-chip.c2 { bottom: -16px; left: 36px; background: var(--cobalt); color: #fff; }

/* ============ Stats strip ============ */
.stats-strip {
  max-width: 900px;
  margin: 56px auto 0;
  padding: 0 var(--gutter) 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  color: var(--cobalt);
  line-height: 1;
}
.stat span { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }

/* ============ Ticker ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker-track .sep { color: var(--cobalt); margin: 0 18px; font-family: var(--body); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============ Sections ============ */
.section { padding: 96px 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  border: 1px solid rgba(43,69,224,.22);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.section-title em {
  font-family: var(--accent-face);
  font-style: italic;
  font-weight: 500;
  color: var(--cobalt);
}

.section-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 18px;
}

.big-statement {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
}
.big-statement em {
  font-family: var(--accent-face);
  font-style: italic;
  font-weight: 500;
  color: var(--cobalt);
}

/* ============ Billing model cards ============ */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.model-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
/* All three cards are equals — no card is singled out at rest. */
.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,69,224,.5);
  box-shadow: 0 4px 12px rgba(43,69,224,.12), 0 26px 64px rgba(43,69,224,.18);
}

.model-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-weight: 600;
}
.model-chip svg { width: 18px; height: 18px; }

.model-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  margin-bottom: 10px;
}
.model-card > p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }

.model-math {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.model-math .row b { color: var(--ink); font-weight: 600; }
.model-math .row.total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; color: var(--ink); }
.model-math .row.total.good, .model-math .row.total.good b { color: var(--good); }
.model-math .row.total.warn, .model-math .row.total.warn b { color: var(--warn); }

.models-kicker {
  text-align: center;
  margin-top: 40px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}
.models-kicker span { color: var(--cobalt); border-bottom: 2px solid var(--cobalt); }

/* ============ Spotlights ============ */
.spotlight.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
/* Grid items default to min-width:auto — one child with a wide min-content
   (a mock table row, a long word) silently stretches the track past the
   phone viewport and the whole page gains a horizontal scroll. */
.spot-grid > *, .grid-2col > *, .contact-grid > *, .model-cards > *,
.feature-grid > *, .price-grid > *, .stats-strip > * { min-width: 0; }
.spot-copy .section-title { font-size: clamp(27px, 3.4vw, 38px); }
.spot-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.spot-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.spot-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--good);
  font-weight: 700;
}

/* portal + profit mocks */
.portal-mock, .profit-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  padding: 22px 24px;
}
.spotlight.alt .portal-mock, .spotlight.alt .profit-mock { background: var(--paper); }

.pm-head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; }
.pm-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.pm-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-left: auto; }

.pm-tabs { display: flex; gap: 6px; margin: 16px 0; }
.pm-tabs span {
  font-size: 12px; padding: 6px 14px; border-radius: 999px;
  color: var(--ink-soft); background: rgba(23,21,18,.05);
}
.pm-tabs span.on { background: var(--cobalt); color: #fff; font-weight: 600; }

.pm-card { border: 1px solid var(--paper-2); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.pm-card.dim { opacity: .75; }
.pm-item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.pm-item b { font-family: var(--mono); font-size: 13px; }
.pm-actions { display: flex; gap: 8px; }
.pm-actions .approve {
  font-size: 12.5px; font-weight: 600; color: #fff; background: var(--good);
  padding: 6px 16px; border-radius: 999px;
}
.pm-actions .decline {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px;
}
.pm-approved { font-family: var(--mono); font-size: 11.5px; color: var(--good); }

.pf-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pf-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 14px;
}
.pf-row b { font-family: var(--mono); font-size: 12.5px; }
.pf-row .bar { height: 10px; border-radius: 999px; background: rgba(23,21,18,.06); overflow: hidden; }
.pf-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--cobalt); }
.pf-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.pf-foot .good { color: var(--good); font-size: 13px; }

/* ============ Feature cards ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,69,224,.5);
  box-shadow: 0 4px 12px rgba(43,69,224,.12), 0 26px 64px rgba(43,69,224,.18);
}
.feature-card .fi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  font-size: 18px;
  margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--display); font-weight: 800; font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* Mid-page CTA row — a second conversion point between the feature story
   and the long tail of the page. */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 56px;
  text-align: center;
}
.inline-cta .lead-in {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}
.inline-cta .note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ============ Why different ============ */
.different { background: var(--ink); color: var(--paper); }
.different .eyebrow { background: rgba(242,239,231,.08); border-color: rgba(242,239,231,.25); color: var(--paper); }
.different .big-statement em { color: var(--cobalt); }
.different .section-lead { color: rgba(242,239,231,.72); }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.diff-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.diff-list li {
  display: flex; gap: 16px;
  background: rgba(242,239,231,.05);
  border: 1px solid rgba(242,239,231,.12);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}
.diff-list .tick { color: #8fa1ff; font-weight: 700; }
.diff-list b { display: block; font-size: 15px; margin-bottom: 4px; }
.diff-list .d { font-size: 13.5px; line-height: 1.55; color: rgba(242,239,231,.68); }

/* ============ Pricing ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,69,224,.5);
  box-shadow: 0 4px 12px rgba(43,69,224,.12), 0 26px 64px rgba(43,69,224,.18);
}
.price-card.featured {
  border: 1.5px solid var(--cobalt);
  box-shadow: 0 4px 12px rgba(43,69,224,.12), 0 24px 60px rgba(43,69,224,.14);
}

.plan-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--cobalt);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}
.plan { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.amount {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  margin: 10px 0 2px;
  line-height: 1;
}
.amount small { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 400; }
.for { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }

.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.price-card li { font-size: 14px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }

.price-card .btn-cobalt, .price-card .btn-ghosted { width: 100%; }

.pricing-note { text-align: center; margin-top: 36px; font-size: 14px; color: var(--ink-soft); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 22px;
  box-shadow: var(--shadow-1);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  padding: 18px 0;
  position: relative;
  padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 300;
  color: var(--cobalt);
  transition: transform .18s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* ============ CTA banner ============ */
.cta-section { padding-top: 20px; }
.cta-banner {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 72px);
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(43,69,224,.25), 0 30px 80px rgba(43,69,224,.3);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '✦';
  position: absolute;
  top: -40px; right: 30px;
  font-size: 180px;
  opacity: .08;
}
.cta-banner h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.cta-banner h2 em { font-family: var(--accent-face); font-style: italic; font-weight: 500; }
.cta-banner p { font-size: 17px; opacity: .85; margin-bottom: 30px; }
.cta-note { margin-top: 16px; font-family: var(--mono); font-size: 12px; opacity: .7; letter-spacing: .5px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 30px;
  position: relative;
}
.contact-field { display: flex; flex-direction: column-reverse; gap: 6px; }
.contact-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-field input, .contact-field textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: #fff;
}
.contact-status { font-size: 13.5px; min-height: 20px; font-family: var(--mono); }
.contact-status.is-success { color: var(--good); }
.contact-status.is-error { color: #b3401f; }
.contact-submit { margin-top: 4px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: var(--card);
}
.footer-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1;
  margin-bottom: 26px;
}
.footer-mark em { font-family: var(--accent-face); font-style: italic; font-weight: 500; color: var(--cobalt); }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-row a { color: var(--ink-soft); }
.footer-row a:hover { color: var(--cobalt); }

/* ============ Login / signup modal (injected by landing.js) ============ */
.login-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 21, 18, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  width: 100%;
  max-width: 420px;
  min-height: 560px;
  padding: 34px 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.login-form-pane { flex: 1; }
.login-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  font-size: 17px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.login-close:hover { border-color: var(--ink); color: var(--ink); }
.login-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 4px;
}
.login-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.login-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
  background: var(--paper);
  padding: 3px;
  gap: 3px;
}
.login-tab {
  flex: 1;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 0;
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.login-tab.active { background: var(--ink); color: var(--paper); }
.login-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.login-field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.login-field input {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.login-field input:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.login-submit {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--cobalt);
  border: none;
  border-radius: 999px;
  padding: 13px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43,69,224,.28);
  transition: background .15s, transform .15s;
  margin-top: 6px;
}
.login-submit:hover { background: var(--cobalt-dark); transform: translateY(-1px); }
.login-submit:disabled { opacity: 0.6; transform: none; }
.login-error { color: #b3401f; font-size: 13px; min-height: 18px; margin-top: 10px; font-family: var(--mono); }
.login-hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }
.login-hint a, .login-hint [data-switch] { color: var(--cobalt); font-weight: 600; cursor: pointer; }

/* ============ Reveal animations ============ */
/* Hidden-until-scrolled applies only when JS is running (html.js is set by
   landing.js) — content is never lost to a blocked script. Every rule here
   carries the same html.js prefix: the hide rule's specificity must never
   exceed the show rule's, or sections fade out and never come back. */
html.js .reveal, html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.is-visible, html.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
html.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
html.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }
html.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
html.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .af-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header { justify-content: flex-start; }
  .brand-mark { margin-right: auto; }
  .trial-link-mobile {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: var(--cobalt);
    border-radius: 999px;
    padding: 8.5px 17px;
    font-size: 13.5px;
    font-weight: 600;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(43,69,224,.28);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--paper-2); font-size: 16px; }
  .site-nav .login-link, .site-nav .trial-link { border: none; background: none; color: var(--ink); box-shadow: none; text-align: left; padding: 13px 4px; }
  .site-nav .trial-link { color: var(--cobalt); font-weight: 700; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .model-cards, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .spot-grid, .grid-2col, .contact-grid { grid-template-columns: 1fr; }
  .spot-grid.flip .spot-mock { order: 2; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .af-side { display: none; }
  .af-body { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding-top: 120px; }
  .mock-chip.c1 { right: 12px; }
  .mock-chip.c2 { left: 12px; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .af-kpis { grid-template-columns: 1fr 1fr; }
  .stats-strip { gap: 14px; }
  .stat { flex-direction: column; gap: 6px; text-align: center; }
  .stat span br { display: none; }
}

/* ============ Native shell (Capacitor) ============ */
/* No purchasing or account creation in-app — pricing, trial CTAs and the
   signup path are web-only (Apple App Store rule 3.1.1). html.is-native is
   set by the bundle's native.js; these rules never apply in a browser. */
html.is-native .pricing,
html.is-native .cta-section,
html.is-native [data-signup],
html.is-native .trial-link-mobile { display: none !important; }

/* Google sign-in for homeowners (Client tab) */
.login-google {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 0;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.login-google:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.login-or {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0;
}

/* Native shell: the WebView draws under the status bar / Dynamic Island, so
   fixed chrome needs a safe-area offset. --safe-top is the real inset with a
   24px floor in case a WebView reports zero. */
html.is-native {
  --safe-top: max(env(safe-area-inset-top, 0px), 24px);
}
html.is-native .site-header {
  padding-top: var(--safe-top);
  height: calc(68px + var(--safe-top));
}
html.is-native .hero { padding-top: calc(122px + var(--safe-top)); }

/* Landscape: keep the fixed header and page content clear of the side notch.
   env() is 0 in desktop browsers, so max() leaves the normal gutter alone. */
.site-header,
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 860px) {
  html.is-native .site-nav { top: calc(68px + var(--safe-top)); }
}

/* Native shell: keep the login modal clear of the Dynamic Island / notch and
   let it scroll when the keyboard shrinks the viewport. Web stays centered. */
html.is-native .login-backdrop {
  align-items: flex-start;
  /* max() guards against WebViews that report a zero safe-area inset:
     70px always clears the Dynamic Island / notch. */
  padding-top: max(calc(env(safe-area-inset-top, 0px) + 18px), 70px);
  padding-bottom: 18px;
  overflow-y: auto;
}
