/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · route: custom (bespoke) · structure: conversation-led editorial landing (v3 · tonal registers, metronome broken)
 * theme: custom · vibe: "warm cocoa, cream, deep ink, human" · paper: #FBF5ED · accent: #805A48
 * display: Literata (roman-serif) · body: Golos Text · mono: JetBrains Mono
 * axes: light / roman-serif / chromatic-terracotta · studied: no · context: inferred · v0.9.0
 * registers: cream (--paper) · clay (--paper-3) · ink (--night) + accent bands (facts · finale)
 * nav: N6 masthead (mono contents) · footer: Ft4 dense colophon · motion: one orchestrated entrance
 * tokens locked to the Luma product palette (docs/design-system.md, packages/ui/src/palette.ts)
 */

:root {
  --paper:      #FBF5ED;
  --paper-2:    #FFFDF9;
  --paper-3:    #E7D6C2;
  --paper-4:    #DCC7AE;
  --rule:       #DFC9B7;
  --rule-soft:  #EFE3D8;

  --ink:         #241C18;
  --ink-2:       #6E5C55;
  --muted:       #8C6F66;
  --muted-2:     #A69593;

  --night:       #2E2019;
  --night-2:     #3D2C22;
  --night-text-2: rgba(251, 245, 237, .78);
  --night-rule:   rgba(255, 253, 249, .14);

  --accent:      #805A48;
  --accent-2:    #8D6551;
  --accent-deep: #65473A;
  --accent-soft: #E4D2CB;
  --accent-warm: #A88370;
  --sand:        #D4B9A4;
  --blush:       #E4D2CB;
  --focus:       #8A5E4A;

  --success:     #6E8B6A;
  --danger:      #B0564C;
  --warning:     #A3653D;

  --on-accent:   #FFFDF9;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body:    "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-display: clamp(2.6rem, 1.4rem + 5.2vw, 4.75rem);
  --text-state:   clamp(2.1rem, 1.35rem + 3.2vw, 3.5rem);
  --text-h2:      clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
  --text-h3:      clamp(1.18rem, 1rem + .6vw, 1.4rem);

  --pad-x: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --maxw-narrow: 760px;

  --pad-band:       clamp(56px, 8vw, 108px);
  --pad-band-tight: clamp(40px, 5vw, 72px);
  --pad-band-tall:  clamp(72px, 10vw, 140px);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 6px;
  --radius-circle: 50%;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(80, 55, 42, .04), 0 2px 10px rgba(80, 55, 42, .05);
  --shadow-m: 0 2px 6px rgba(80, 55, 42, .05), 0 14px 34px rgba(80, 55, 42, .08);
  --shadow-l: 0 8px 20px rgba(80, 55, 42, .07), 0 30px 60px rgba(80, 55, 42, .10);

  --dur: 240ms;
  --dur-fast: 120ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; font-style: normal; margin: 0; line-height: 1.14; letter-spacing: -.012em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }

.h2 { font-size: var(--text-h2); letter-spacing: -.02em; }
.h2--statement { font-size: var(--text-state); letter-spacing: -.03em; }
.h3 { font-size: var(--text-h3); letter-spacing: -.01em; }
.lede { color: var(--ink-2); font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem); max-width: 56ch; }
.lede--wide { max-width: 64ch; }
.shead { margin-bottom: clamp(28px, 4vw, 48px); }
.shead .h2 + .lede { margin-top: 14px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap--narrow { max-width: var(--maxw-narrow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn__ic { width: 20px; height: 20px; flex: none; }
.btn--primary {
  color: var(--on-accent);
  background-image: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-2) 42%, var(--accent) 76%, var(--accent-2) 100%);
  border-color: rgba(155, 119, 99, .85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(84, 54, 37, .18), var(--shadow-s);
}
.btn--primary:hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), inset 0 -2px 3px rgba(84, 54, 37, .22), var(--shadow-m); transform: translateY(-1px); }
.btn--ghost { color: var(--accent-deep); background: var(--paper-2); border-color: var(--rule); box-shadow: var(--shadow-s); }
.btn--ghost:hover { background: var(--paper-3); border-color: var(--sand); transform: translateY(-1px); }
.btn--onaccent { color: var(--accent-deep); background: var(--paper-2); border-color: transparent; box-shadow: var(--shadow-m); }
.btn--onaccent:hover { background: var(--paper-2); transform: translateY(-1px); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.btn--block { width: 100%; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }

/* ---------- masthead · N6 editorial masthead (mono contents) ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__rail { display: flex; align-items: center; gap: 18px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad-x); padding-top: max(12px, env(safe-area-inset-top)); }
.wordmark { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.wordmark__mark { color: var(--accent); display: grid; place-items: center; }
.wordmark__dot { fill: var(--sand); }
.wordmark__text { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.wordmark__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--rule); white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; padding: 6px 15px;
  transition: color var(--dur-fast) var(--ease);
}
.nav a + a { border-left: 1px solid var(--rule); }
.nav a:first-child { padding-left: 0; }
.nav a:last-child { padding-right: 0; }
.nav a:hover { color: var(--accent-deep); }
.masthead__action { display: flex; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 6vw, 88px) var(--pad-x) var(--pad-band-tall);
}
.hero__intro { min-width: 0; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(30px, 4vw, 52px); }
.hero__lead { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 7px 15px 7px 12px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--paper-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-s); }
.badge__dot { width: 8px; height: 8px; border-radius: var(--radius-circle); background: var(--success); box-shadow: 0 0 0 4px rgba(110, 139, 106, .16); }
.hero__title { font-size: var(--text-display); letter-spacing: -.034em; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
.hl { background-image: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--sand) 72%, transparent) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .05em; border-radius: var(--radius-xs); }
.hero__lede { max-width: 46ch; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .45vw, 1.22rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; min-width: 0; }
.chat__caption { position: relative; z-index: 2; margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted-2); }

.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-pill); background: var(--paper-2);
  border: 1px solid var(--rule); box-shadow: var(--shadow-m);
  font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  animation: float 6s var(--ease) infinite;
}
.float-chip__dot { width: 8px; height: 8px; border-radius: var(--radius-circle); flex: none; }
.float-chip--a { top: 8%; left: -22px; animation-delay: -1s; }
.float-chip--b { bottom: 16%; right: -18px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- chat ---------- */
.chat { position: relative; z-index: 1; border: 1px solid var(--rule); border-radius: var(--radius); background: linear-gradient(180deg, var(--paper-2), var(--paper) 80%); box-shadow: var(--shadow-l); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--rule-soft); }
.chat__avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--radius-circle); background: var(--paper-3); color: var(--accent); }
.chat__id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-right: auto; }
.chat__id strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.chat__id small { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.chat__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--success); }
.chat__live i { width: 7px; height: 7px; border-radius: var(--radius-circle); background: var(--success); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.chat__stream { display: flex; flex-direction: column; gap: 10px; padding: 18px; }

.msg { max-width: 86%; border-radius: var(--radius); padding: 12px 15px; font-size: 15.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); animation: rise 460ms var(--ease) forwards; }
.msg--user { align-self: flex-end; color: var(--on-accent); background: var(--accent); border-bottom-right-radius: var(--radius-xs); }
.msg--luma { align-self: flex-start; color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule); border-bottom-left-radius: var(--radius-xs); }
.msg--alert { border-color: color-mix(in srgb, var(--warning) 40%, var(--rule)); background: color-mix(in srgb, var(--warning) 9%, var(--paper-2)); }
.msg--luma p { margin: 0; }
.msg__card { display: flex; flex-direction: column; gap: 5px; }
.msg__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--success); }
.msg__kicker svg { width: 14px; height: 14px; }
.msg__card strong { font-size: 16.5px; }
.msg__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.msg__meta i { margin: 0 5px; color: var(--muted-2); font-style: normal; }
.msg__meta b { font-weight: 600; }
.msg:nth-child(1) { animation-delay: 60ms; }
.msg:nth-child(2) { animation-delay: 220ms; }
.msg:nth-child(3) { animation-delay: 420ms; }
.msg:nth-child(4) { animation-delay: 560ms; }
.msg:nth-child(5) { animation-delay: 760ms; }
.msg:nth-child(6) { animation-delay: 900ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- facts ---------- */
.facts { background: var(--accent); color: var(--on-accent); border-top: 1px solid rgba(255, 253, 249, .12); border-bottom: 1px solid rgba(84, 54, 37, .3); }
.facts__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: clamp(24px, 2.4vw, 32px); padding-bottom: clamp(24px, 2.4vw, 32px); }
.fact { min-width: 0; }
.fact b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.15rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 253, 249, .78); }

/* ---------- bands · 3 tonal registers + 3 rhythm values ---------- */
.band { padding: var(--pad-band) 0; }
.band--tight { padding: var(--pad-band-tight) 0; }
.band--tall { padding: var(--pad-band-tall) 0; }
.band--alt { background: var(--paper-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--alt .lede { color: var(--ink-2); }
.band--night { background: var(--night); color: var(--paper); }
.band--night .h2 { color: var(--paper); }
.band--night .lede { color: var(--night-text-2); }

/* ---------- problem (night register · statement) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split__lead .lede { margin-top: 18px; }
.pains { display: grid; gap: 12px; }
.pains li { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink-2); box-shadow: var(--shadow-s); }
.pains__ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 10%, var(--paper-2)); color: var(--danger); }
.pains__ic svg { width: 20px; height: 20px; }
.pains strong { color: var(--ink); font-weight: 600; }
.band--night .pains li { border-color: var(--night-rule); background: var(--night-2); color: var(--night-text-2); box-shadow: none; }
.band--night .pains__ic { border: 1px solid var(--night-rule); background: color-mix(in srgb, var(--danger) 24%, var(--night-2)); }
.band--night .pains strong { color: var(--paper); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; margin-top: clamp(12px, 2vw, 20px); }
.step { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 500; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.step__body h3 { margin-bottom: 4px; }
.step__body p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
.step__quote { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 16px; border-radius: var(--radius-sm); background: var(--paper-3); border: 1px solid var(--rule); font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-deep); }
.step__quote svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.band--alt .step__quote { background: var(--paper-2); }

/* ---------- product gallery · full-bleed rail (real screenshots) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: clamp(14px, 2vw, 22px);
  padding: 6px var(--pad-x) 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rail > .shot { scroll-snap-align: center; }
.shot { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-2); box-shadow: var(--shadow-s); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.shot img { display: block; width: 100%; height: auto; background: var(--paper-3); border-bottom: 1px solid var(--rule-soft); }
.shot figcaption { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.shot figcaption b { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.shot figcaption span { font-size: 12.5px; color: var(--muted); }
.gallery__caption { margin-top: 6px; text-align: start; font-size: 13px; color: var(--muted-2); }

/* ---------- features · asymmetric (lead + typographic list + note) ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fcard { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); padding: clamp(22px, 3vw, 30px); }
.fcard--lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 10px clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
}
.fcard--lead .fcard__lead-title { grid-column: 1; grid-row: 1 / span 2; font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.35rem); letter-spacing: -.03em; }
.fcard--lead p { grid-column: 2; grid-row: 1; color: var(--ink-2); font-size: 15.5px; }
.fcard--lead .chips { grid-column: 2; grid-row: 2; margin-top: 0; }
.fcard--list .h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fcard--note { grid-column: 1 / -1; max-width: 78ch; padding: clamp(22px, 3vw, 28px) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.fcard--note .h3 { margin-bottom: 10px; }
.fcard--note p { color: var(--ink-2); font-size: 15.5px; }
.fcard__ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--accent); }
.fcard__ic svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 6px 13px; border-radius: var(--radius-pill); background: var(--paper-3); border: 1px solid var(--rule); font-size: 13.5px; color: var(--accent-deep); white-space: nowrap; }
.ticks { display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- compare ---------- */
.compare { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.compare__head, .compare__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compare__head { background: var(--paper-3); border-bottom: 1px solid var(--rule); }
.compare__head span { padding: 15px clamp(16px, 3vw, 28px); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.compare__row { border-bottom: 1px solid var(--rule-soft); }
.compare__row:last-child { border-bottom: 0; }
.compare__row span { padding: 16px clamp(16px, 3vw, 28px); font-size: 15.5px; color: var(--muted); }
.compare__luma { color: var(--ink) !important; font-weight: 600; background: color-mix(in srgb, var(--accent) 7%, var(--paper-2)); }
.compare__head .compare__luma { color: var(--accent-deep) !important; font-weight: 700; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.plan__head { display: flex; flex-direction: column; gap: 6px; }
.plan__flag { align-self: flex-start; margin-bottom: 4px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.plan__flag--soft { background: var(--paper-3); color: var(--accent-deep); border: 1px solid var(--rule); }
.plan__name { font-size: 1.18rem; font-weight: 600; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.plan__price strong { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__term { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); }
.plan .ticks { margin-bottom: 4px; }
.plan .btn { margin-top: auto; }
.plan--standard { border-color: var(--sand); box-shadow: var(--shadow-l); }
.plan--standard .plan__name { font-size: 1.35rem; }
.plan--standard .plan__price strong { font-size: clamp(2.2rem, 1.6rem + 2.1vw, 3rem); }
.plan--trial { background: var(--paper); border-style: dashed; }
.plan--trial .plan__price strong { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); }

.ainote { margin-top: 22px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--rule); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 4%, var(--paper-2)); }
.ainote .h3 { margin-bottom: 10px; }
.ainote p { color: var(--ink-2); max-width: 78ch; }
.ainote__hint { margin-top: 10px; font-weight: 500; color: var(--accent-deep); }

/* ---------- partners ---------- */
.split--partners { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.split--partners .btn { margin-top: 24px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { padding: clamp(20px, 2.6vw, 26px); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-2); box-shadow: var(--shadow-s); }
.pcard__title { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; margin-bottom: 10px; }
.pcard__ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--accent); }
.pcard__ic svg { width: 20px; height: 20px; }
.pcard p { color: var(--ink-2); font-size: 15px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 40px 20px 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 500; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; width: 11px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.faq__item[open] summary::after { transform: rotate(225deg); }
.faq__item p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 68ch; }

/* ---------- trust · 3-up, rule-topped, no icon-tile ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.trust__item { min-width: 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.trust__item .h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.trust__mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--accent); }
.trust__mark svg { width: 22px; height: 22px; }
.trust__item p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- finale · the one warm glow ---------- */
.finale { padding: clamp(20px, 4vw, 48px) var(--pad-x) clamp(56px, 8vw, 100px); }
.finale__inner { position: relative; overflow: hidden; max-width: var(--maxw); margin: 0 auto; text-align: center; padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: var(--radius); color: var(--on-accent);
  background:
    radial-gradient(120% 140% at 82% 6%, rgba(212, 185, 164, .34), transparent 52%),
    linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-2) 40%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-l);
}
.finale__orbit { position: absolute; top: -60px; right: 6%; width: 220px; height: 220px; border-radius: var(--radius-circle); border: 1px solid rgba(255, 253, 249, .28); box-shadow: 0 0 0 34px rgba(255, 253, 249, .06); pointer-events: none; }
.finale__title { position: relative; color: var(--on-accent); font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.1rem); letter-spacing: -.03em; }
.finale__lede { position: relative; margin: 18px auto 30px; max-width: 44ch; color: rgba(255, 253, 249, .9); font-size: 1.1rem; }
.finale .btn { position: relative; }
.finale__note { position: relative; margin-top: 18px; font-size: 13.5px; color: rgba(255, 253, 249, .8); }

/* ---------- footer · Ft4 dense colophon ---------- */
.footer { background: var(--paper-3); border-top: 1px solid var(--rule); padding: clamp(44px, 6vw, 72px) 0 40px; }
.footer__sign { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.02em; color: var(--ink); max-width: 24ch; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 32px 0 24px; }
.footer__links a { font-size: 15px; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid transparent; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.footer__links a:hover { color: var(--accent-deep); border-color: var(--sand); }
.footer__dot { color: var(--muted-2); user-select: none; }
.footer__colophon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.footer__colophon > * { white-space: nowrap; }
.footer__colophon a { color: var(--muted); border-bottom: 1px solid transparent; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.footer__colophon a:hover { color: var(--accent-deep); border-color: var(--sand); }

/* ---------- reveal · one orchestrated entrance (hero intro) ---------- */
[data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 6px 11px; font-size: 11px; }
  .wordmark__tag { display: none; }
}

@media (max-width: 1000px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__visual { max-width: 520px; }
  .float-chip--a { left: 6px; }
  .float-chip--b { right: 6px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--partners { grid-template-columns: minmax(0, 1fr); }
  .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--standard { order: -1; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (min-width: 1001px) {
  .rail {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto; overflow: visible; scroll-snap-type: none;
    padding: 6px var(--pad-x) 0; max-width: none; margin-inline: 0;
  }
}

@media (max-width: 820px) {
  .nav, .masthead__action { display: none; }
  .nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-2); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: var(--radius-pill); background: var(--accent-deep); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px var(--pad-x) 22px; border-top: 1px solid var(--rule); background: var(--paper); }
  .mobile-nav a { padding: 12px 2px; font-size: 17px; color: var(--ink-2); border-bottom: 1px solid var(--rule-soft); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav .btn { margin-top: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .float-chip { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .fcard--lead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fcard--lead .fcard__lead-title { grid-row: auto; }
  .fcard--lead p, .fcard--lead .chips { grid-column: 1; grid-row: auto; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step__num { font-size: 1.5rem; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__head, .compare__row { grid-template-columns: minmax(0, 1fr); }
  .compare__head span:first-child { display: none; }
  .compare__row span:first-child { padding-bottom: 4px; font-size: 14px; }
  .compare__row span:last-child { padding-top: 4px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  :root { --pad-x: 18px; }
  .btn { font-size: 15.5px; padding: 0 18px; max-width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .finale__inner { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .msg { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .float-chip { animation: none; }
}
