/* ============================================================
   OpenFlow storefront — original design system.
   Identity is drawn from the OpenFlow app itself:
   warm ivory surfaces, espresso ink, rust accent.
   Type: Fraunces (display) + Inter (text).
   ============================================================ */

:root {
  --paper:      #faf8f2;
  --white:      #fffdf7;
  --card:       #f3efe5;
  --card-deep:  #ece5d8;
  --line:       #e5ded0;
  --line-soft:  #ede7d9;
  --ink:        #262019;
  --ink2:       #6d6558;
  --ink3:       #9d9484;
  --rust:       #c15f3c;
  --rust-dark:  #a84e2e;
  --rust-soft:  #f6e2d6;
  --rust-faint: #faeee6;
  --espresso:   #221b13;
  --espresso-2: #2e261c;
  --cream-on-dark: #f5efe3;
  --ok:         #4d7c4a;
  --radius:     14px;
  --radius-lg:  22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", monospace;
  --shadow-sm: 0 1px 2px rgba(38, 32, 25, .05), 0 2px 8px rgba(38, 32, 25, .05);
  --shadow-md: 0 2px 6px rgba(38, 32, 25, .06), 0 12px 32px rgba(38, 32, 25, .09);
  --shadow-lg: 0 4px 10px rgba(38, 32, 25, .07), 0 24px 64px rgba(38, 32, 25, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rust-soft); color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------------- type ---------------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.06;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.3; font-variation-settings: "opsz" 30; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink2); max-width: 34em; }
.muted { color: var(--ink2); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; color: var(--ink3); }
.accent { color: var(--rust); }
.hl {
  background: linear-gradient(180deg, transparent 62%, var(--rust-soft) 62%);
  border-radius: 2px;
  padding: 0 .08em;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 600; font-size: .95rem;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-dark  { background: var(--ink); color: var(--white); }
.btn-dark:hover  { background: #3a3227; box-shadow: var(--shadow-md); }
.btn-rust  { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-rust:hover  { background: var(--rust-dark); border-color: var(--rust-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(38,32,25,.06); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(38,32,25,.05); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: .93rem; font-weight: 520; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav .btn { padding: 10px 18px; font-size: .88rem; }

/* ---------------- hero ---------------- */
.hero { padding: 84px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: .8rem; font-weight: 600; color: var(--ink2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: .85rem; color: var(--ink3); }
.hero-note strong { color: var(--ink2); font-weight: 600; }

/* dictation demo card */
.demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.demo-app { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--ink2); }
.demo-app .win-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--card-deep); border: 1px solid var(--line); }
.demo-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 650; color: var(--rust);
  background: var(--rust-faint); border: 1px solid var(--rust-soft);
  padding: 5px 12px; border-radius: 999px;
  transition: opacity .25s ease;
}
.demo-status.idle { color: var(--ink3); background: var(--card); border-color: var(--line); }
.demo-text {
  min-height: 132px;
  font-size: 1.04rem; line-height: 1.65;
  color: var(--ink);
}
.demo-text .filler { color: var(--ink3); text-decoration: line-through; text-decoration-color: rgba(193,95,60,.55); }
.demo-text .caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--rust); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-clean-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: .78rem; font-weight: 650; color: var(--ok);
  opacity: 0; transform: translateY(4px); transition: all .3s ease;
}
.demo-clean-badge.show { opacity: 1; transform: none; }
.demo-clean-badge svg { width: 14px; height: 14px; }

/* the flow pill */
.pill-row { display: flex; justify-content: center; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--espresso); color: var(--cream-on-dark);
  border-radius: 999px; padding: 10px 20px;
  box-shadow: var(--shadow-md);
}
.pill .keycaps { display: flex; gap: 5px; align-items: center; font-size: .72rem; color: #b9ad99; }
.keycap {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  background: var(--espresso-2); color: var(--cream-on-dark);
  border: 1px solid #453a2b; border-bottom-width: 2.5px;
  border-radius: 6px; padding: 3px 8px; line-height: 1.3;
}
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i {
  width: 3px; border-radius: 3px; background: var(--rust);
  height: 6px;
  animation: wavebob 1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
.wave i:nth-child(6) { animation-delay: .6s; }
.wave i:nth-child(7) { animation-delay: .72s; }
.wave.paused i { animation-play-state: paused; height: 4px; background: #6a5f4d; }
@keyframes wavebob { 0%, 100% { height: 5px; } 50% { height: 18px; } }

/* ---------------- hero underline (draws itself in) ---------------- */
.u-word { position: relative; white-space: nowrap; }
.u-stroke {
  position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .3em;
  overflow: visible; pointer-events: none;
}
.u-stroke path {
  fill: none; stroke: var(--rust); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawline 1s cubic-bezier(.6,.05,.3,1) .5s forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .u-stroke path { animation: none; stroke-dashoffset: 0; }
}

/* ---------------- speech river ---------------- */
.river { overflow: hidden; margin: -8px 0 -30px; }
.river svg { display: block; width: 100%; height: auto; }
.river .raw-text {
  font-family: var(--serif); font-style: italic; font-size: 24px;
  fill: var(--ink3); opacity: .85;
}
.river .raw-text .fill { text-decoration: line-through; fill: #c4b8a4; }
.river .ribbon { fill: none; stroke: var(--rust); stroke-width: 54; stroke-linecap: round; }
.river .clean-text { font-family: var(--sans); font-weight: 650; font-size: 22px; fill: var(--white); }
.river-caption { text-align: center; font-size: .85rem; color: var(--ink3); padding-bottom: 8px; }

/* ---------------- promo film showcase ---------------- */
.film-frame {
  position: relative;
  border: var(--bd, 2px solid var(--ink)); border-radius: 16px;
  overflow: hidden; box-shadow: 8px 8px 0 var(--ink);
  background: var(--espresso);
  cursor: pointer;
}
.film-frame video { display: block; width: 100%; height: auto; }
.film-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--espresso); color: var(--cream-on-dark);
  border: 1.5px solid #4a3e2c; border-radius: 999px;
  padding: 8px 16px; font-size: .8rem; font-weight: 650;
}
.film-sound svg { width: 14px; height: 14px; }

/* ---------------- stat strip ---------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.stat { text-align: center; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -.01em; }
.stat span { font-size: .82rem; color: var(--ink2); }

/* ---------------- sections ---------------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rust);
  margin-bottom: 14px;
}
.section-head p { margin-top: 16px; color: var(--ink2); font-size: 1.05rem; }

/* speed compare */
.speed-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 40px; display: grid; gap: 30px;
}
.speed-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 18px; align-items: center; }
.speed-row .who { font-weight: 650; font-size: .95rem; }
.speed-row .who span { display: block; font-weight: 500; font-size: .8rem; color: var(--ink3); }
.speed-track { background: var(--card); border-radius: 999px; height: 30px; overflow: hidden; }
.speed-fill {
  height: 100%; border-radius: 999px; width: 0;
  transition: width 1.4s cubic-bezier(.22,.8,.26,1);
}
.speed-fill.typing { background: var(--card-deep); border: 1px solid var(--line); }
.speed-fill.talking { background: linear-gradient(90deg, var(--rust-dark), var(--rust)); }
.speed-row .wpm { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-align: right; }
.speed-foot { font-size: .85rem; color: var(--ink3); }

/* dark privacy band — floating rounded slab */
.dark-band {
  background: var(--espresso); color: var(--cream-on-dark);
  border-radius: 36px;
  margin: 24px clamp(10px, 2vw, 28px);
}
.dark-band h2 em { font-style: italic; color: #e8926b; font-variation-settings: "opsz" 72; }
.dark-band .kicker { color: #e8926b; }
.dark-band h2 { color: var(--white); }
.dark-band .section-head p { color: #b9ad99; }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.priv-card {
  background: var(--espresso-2); border: 1px solid #3c3223;
  border-radius: var(--radius); padding: 26px;
}
.priv-card h3 { color: var(--white); margin: 14px 0 8px; font-size: 1.08rem; }
.priv-card p { font-size: .9rem; color: #b9ad99; }
.priv-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(193,95,60,.16); color: #e8926b;
  display: flex; align-items: center; justify-content: center;
}
.priv-icon svg { width: 20px; height: 20px; }
.ledger {
  margin-top: 40px; border-top: 1px solid #3c3223;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.ledger div { padding: 20px 12px 0; font-size: .92rem; color: #b9ad99; display: flex; gap: 10px; align-items: baseline; }
.ledger b { color: var(--white); font-weight: 650; }

/* comparison table */
.compare {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: none; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); font-weight: 700; padding-top: 20px; }
.compare thead th:last-child, .compare td:last-child {
  background: var(--rust-faint); border-left: 1px solid var(--rust-soft);
}
.compare thead th:last-child { color: var(--rust); }
.compare td:first-child { color: var(--ink2); font-weight: 550; }
.compare td b { font-weight: 650; }
.compare .no { color: var(--ink3); }
.compare-foot { font-size: .8rem; color: var(--ink3); margin-top: 14px; }
@media (max-width: 660px) {
  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }
}

/* every-app chips — soft rounded slab */
.apps-band {
  background: var(--rust-faint); border: 1px solid var(--rust-soft);
  border-radius: 36px;
  margin: 24px clamp(10px, 2vw, 28px);
}
.apps-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.app-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px;
  font-size: .9rem; font-weight: 570; color: var(--ink2);
  box-shadow: var(--shadow-sm);
}
.app-chip svg { width: 15px; height: 15px; color: var(--rust); flex: none; }
.apps-note { text-align: center; margin-top: 26px; font-size: .95rem; color: var(--ink2); }
.apps-note b { color: var(--ink); }

/* features grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--rust-faint); color: var(--rust);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 21px; height: 21px; }
.feat-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feat-card p { font-size: .9rem; color: var(--ink2); }
.feat-card .tag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  color: var(--rust); background: var(--rust-faint);
  border: 1px solid var(--rust-soft); border-radius: 999px; padding: 2px 8px;
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2.4rem; font-weight: 550; color: var(--rust);
  display: block; margin-bottom: 12px; letter-spacing: -.02em;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--ink2); }
.step .keycap { background: var(--white); color: var(--ink); border-color: var(--line); }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.best { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-price b { font-family: var(--serif); font-size: 2.9rem; font-weight: 600; letter-spacing: -.02em; }
.plan-price span { color: var(--ink3); font-size: .9rem; }
.plan-sub { font-size: .84rem; color: var(--ink3); margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink2); }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--rust); }
.plan .btn { margin-top: auto; width: 100%; }
.plans-foot { text-align: center; margin-top: 26px; font-size: .85rem; color: var(--ink3); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px; font-weight: 620; font-size: .98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.4rem; color: var(--ink3);
  transition: transform .2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--rust); }
.faq .faq-body { padding: 0 24px 22px; font-size: .92rem; color: var(--ink2); max-width: 60ch; }

/* ---------------- final CTA (optional video backdrop) ---------------- */
.cta-final {
  background: var(--card);
  border-radius: 36px;
  margin: 24px clamp(10px, 2vw, 28px) 0;
  text-align: center; padding: 120px 0;
  position: relative; overflow: hidden;
}
.cta-final video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cta-final .cta-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(250,248,242,.82), rgba(250,248,242,.62) 40%, rgba(250,248,242,.85));
}
.cta-final .wrap-narrow { position: relative; z-index: 2; }
.cta-final h2 { margin-bottom: 18px; }
.cta-final .lead { margin: 0 auto 34px; }

/* ---------------- giant footer wordmark ---------------- */
.footer-word {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.04em;
  font-size: clamp(4rem, 15.5vw, 14rem); line-height: .9;
  color: var(--ink); text-align: center;
  margin-top: 48px; user-select: none;
  display: flex; align-items: baseline; justify-content: center; gap: .12em;
}
.footer-word .bars { display: inline-flex; gap: .045em; align-items: center; height: .62em; transform: translateY(-.03em); }
.footer-word .bars i { width: .07em; border-radius: .06em; background: var(--rust); }
.footer-word .bars i:nth-child(1) { height: 40%; }
.footer-word .bars i:nth-child(2) { height: 70%; }
.footer-word .bars i:nth-child(3) { height: 100%; }
.footer-word .bars i:nth-child(4) { height: 70%; }
.footer-word .bars i:nth-child(5) { height: 40%; }

/* ---------------- footer ---------------- */
.footer { padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; font-size: .88rem; color: var(--ink2); flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer .tiny { margin-top: 22px; }

/* ---------------- checkout / thanks pages ---------------- */
.page-thin { min-height: 72vh; display: flex; align-items: center; padding: 70px 0; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 44px; width: 100%;
}
.panel h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--rust);
  animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.license-box {
  margin: 22px 0; background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  font-family: var(--mono); font-size: .82rem; word-break: break-all;
  color: var(--ink); line-height: 1.5; position: relative;
}
.copy-btn {
  margin-top: 12px;
}
.error-box {
  background: #fbeae7; border: 1px solid #efc4ba; color: #8c3018;
  border-radius: var(--radius); padding: 14px 18px; font-size: .9rem;
}
.notice-row { display: flex; gap: 12px; align-items: center; color: var(--ink2); font-size: .95rem; }
.plan-pick { display: grid; gap: 12px; margin-top: 26px; }
.plan-pick button {
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
  font-size: .98rem; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.plan-pick button:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.plan-pick button b { font-family: var(--serif); font-size: 1.3rem; }
.plan-pick button small { display: block; font-weight: 480; color: var(--ink3); font-size: .8rem; }
.nav-account-link { color: var(--ink2); font-size: .88rem; font-weight: 650; padding: 8px 4px; }
.nav-account-link:hover { color: var(--rust); }
.auth-wrap { width: 100%; max-width: 620px; }
.auth-panel h1 { margin: 18px 0 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 22px; border-bottom: 2px solid var(--ink); }
.auth-tabs button { padding: 11px 8px; color: var(--ink3); font-weight: 700; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.auth-tabs button.active { color: var(--ink); border-color: var(--rust); }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: var(--ink2); font-size: .82rem; font-weight: 700; }
.txt { width: 100%; border: var(--bd); border-radius: 9px; background: var(--white); color: var(--ink); padding: 13px 14px; font: 500 .95rem var(--sans); outline: none; }
.txt:focus { box-shadow: 3px 3px 0 var(--rust); }
.auth-form .btn { margin-top: 5px; justify-content: center; }
.auth-note { min-height: 20px; margin-top: 16px; color: var(--rust); font-size: .88rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Login ambience: voice-shaped motion that stays behind the working surface. */
.auth-page { min-height: 100dvh; overflow-x: hidden; }
.auth-page .page-thin {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100dvh - 68px);
}
.auth-page .page-thin::before,
.auth-page .page-thin::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  width: min(58vw, 760px); aspect-ratio: 1; border-radius: 50%;
  opacity: .58; will-change: transform;
}
.auth-page .page-thin::before {
  left: -24vw; top: -38%;
  background: radial-gradient(circle, var(--rust-soft) 0 30%, rgba(246,226,214,.42) 48%, transparent 70%);
}
.auth-page .page-thin::after {
  right: -24vw; bottom: -48%;
  background: radial-gradient(circle, var(--card-deep) 0 28%, rgba(236,229,216,.44) 50%, transparent 70%);
}
.auth-wrap { position: relative; z-index: 2; }
.auth-panel {
  position: relative;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.auth-ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.auth-ambient::before {
  content: ""; position: absolute; inset: 9% 5%;
  background-image: radial-gradient(circle, rgba(38,32,25,.13) 1px, transparent 1.5px);
  background-size: 28px 28px; opacity: .32;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.ambient-orbit {
  position: absolute; border: 1px solid rgba(193,95,60,.2); border-radius: 50%;
  will-change: transform;
}
.ambient-orbit::before {
  content: ""; position: absolute; inset: 13%; border: 1px dashed rgba(38,32,25,.12); border-radius: inherit;
}
.ambient-orbit-one { width: 360px; height: 360px; left: -118px; top: 4%; }
.ambient-orbit-two { width: 440px; height: 440px; right: -170px; bottom: -8%; }
.ambient-wave {
  position: absolute; display: flex; align-items: center; gap: 7px;
  height: 82px; padding: 0 18px; opacity: .42; will-change: transform;
}
.ambient-wave i {
  display: block; width: 5px; height: var(--wave-height, 28%); border-radius: 5px;
  background: var(--rust); transform-origin: center;
}
.ambient-wave i:nth-child(1), .ambient-wave i:nth-child(9) { --wave-height: 22%; }
.ambient-wave i:nth-child(2), .ambient-wave i:nth-child(8) { --wave-height: 43%; }
.ambient-wave i:nth-child(3), .ambient-wave i:nth-child(7) { --wave-height: 67%; }
.ambient-wave i:nth-child(4), .ambient-wave i:nth-child(6) { --wave-height: 88%; }
.ambient-wave i:nth-child(5) { --wave-height: 54%; }
.ambient-wave-one { left: 7%; top: 19%; transform: rotate(-8deg); }
.ambient-wave-two { right: 6%; top: 22%; transform: rotate(9deg) scale(.82); }
.ambient-wave-three { right: 10%; bottom: 10%; transform: rotate(-5deg) scale(.68); opacity: .28; }

@keyframes ambient-orbit-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(22px, -14px, 0) rotate(8deg); }
}
@keyframes ambient-orbit-drift-reverse {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-24px, 18px, 0) rotate(-7deg); }
}
@keyframes ambient-wave-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 14px -20px; }
}
@keyframes ambient-wave-pulse {
  0%, 100% { transform: scaleY(.58); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes ambient-wash-left {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 5vh, 0) scale(1.08); }
}
@keyframes ambient-wash-right {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vw, -4vh, 0) scale(1.1); }
}

/* Motion layer: tactile and brief, while keeping the original visual system. */
:root {
  --ease-out-ui: cubic-bezier(.23, 1, .32, 1);
  --ease-move-ui: cubic-bezier(.77, 0, .175, 1);
}
.brand-mark img { transition: transform 220ms var(--ease-out-ui); }
.auth-tabs { position: relative; }
.auth-tabs::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 50%; height: 4px;
  background: var(--rust); transform: translateX(0); transition: transform 220ms var(--ease-out-ui);
}
.auth-tabs[data-mode="signup"]::after { transform: translateX(100%); }
.auth-tabs button, .nav-account-link { transition: color 160ms ease, transform 140ms var(--ease-out-ui); }
.auth-tabs button.active { border-color: transparent; }
.auth-tabs button:active, .nav-account-link:active { transform: scale(.97); }
.txt { transition: transform 160ms var(--ease-out-ui), box-shadow 180ms var(--ease-out-ui), background-color 160ms ease; }
.txt:focus { transform: translateY(-1px); }
#auth-submit { position: relative; }
.cf-turnstile { min-height: 65px; display: flex; justify-content: center; }
#auth-submit.is-loading { cursor: wait; padding-right: 46px; }
#auth-submit.is-loading::after {
  content: ""; position: absolute; right: 18px; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%;
  animation: auth-spin .65s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes page-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-page .page-thin::before { animation: ambient-wash-left 15s var(--ease-move-ui) infinite; }
  .auth-page .page-thin::after { animation: ambient-wash-right 18s var(--ease-move-ui) infinite; }
  .ambient-orbit-one { animation: ambient-orbit-drift 13s var(--ease-move-ui) infinite; }
  .ambient-orbit-two { animation: ambient-orbit-drift-reverse 16s var(--ease-move-ui) infinite; }
  .ambient-wave-one { animation: ambient-wave-float 7s var(--ease-move-ui) infinite; }
  .ambient-wave-two { animation: ambient-wave-float 8.5s var(--ease-move-ui) -2.5s infinite reverse; }
  .ambient-wave-three { animation: ambient-wave-float 10s var(--ease-move-ui) -4s infinite; }
  .ambient-wave i { animation: ambient-wave-pulse 1.9s var(--ease-out-ui) infinite; }
  .ambient-wave i:nth-child(2), .ambient-wave i:nth-child(8) { animation-delay: -.2s; }
  .ambient-wave i:nth-child(3), .ambient-wave i:nth-child(7) { animation-delay: -.4s; }
  .ambient-wave i:nth-child(4), .ambient-wave i:nth-child(6) { animation-delay: -.6s; }
  .ambient-wave i:nth-child(5) { animation-delay: -.8s; }
  html.js .nav-inner > * { animation: page-rise 440ms var(--ease-out-ui) both; }
  html.js .nav-inner > *:nth-child(2) { animation-delay: 55ms; }
  html.js .nav-inner > *:nth-child(3) { animation-delay: 95ms; }
  html.js .hero-grid > * { animation: page-rise 560ms var(--ease-out-ui) both; }
  html.js .hero-grid > *:nth-child(2) { animation-delay: 90ms; }
  html.js .page-thin .panel { animation: panel-arrive 480ms var(--ease-out-ui) both; }
  .auth-form label { animation: page-rise 260ms var(--ease-out-ui) both; }
  .auth-form label:nth-child(2) { animation-delay: 35ms; }
  .auth-form label:nth-child(3) { animation-delay: 70ms; }
  @media (hover: hover) and (pointer: fine) {
    .brand:hover .brand-mark img { transform: rotate(-5deg) scale(1.06); }
    .auth-tabs button:hover { transform: translateY(-1px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-tabs::after, .txt, .brand-mark img { transition-duration: 1ms; }
  #auth-submit.is-loading::after { animation-duration: 1.2s; }
  .auth-page .page-thin::before, .auth-page .page-thin::after,
  .ambient-orbit, .ambient-wave, .ambient-wave i { animation: none; }
}

/* ---------------- reveal on scroll (progressive enhancement) ----------------
   Hidden state only applies when JS has tagged <html class="js">, so content
   is always visible without scripts, in printouts, and to crawlers. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .wave i { animation: none; }
  .demo-text .caret { animation: none; }
}

/* ============================================================
   NEOBRUTALIST SKIN — hard 2px ink borders, offset block shadows,
   tighter radii. Overrides the soft defaults above.
   ============================================================ */
:root {
  --radius: 10px;
  --radius-lg: 14px;
  --bd: 2px solid var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --hard-md: 5px 5px 0 var(--ink);
  --hard-lg: 8px 8px 0 var(--ink);
}

/* buttons: chunky, pressable */
.btn {
  border: var(--bd);
  border-radius: 10px;
  box-shadow: var(--hard-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-dark:hover { background: var(--ink); }
.btn-rust { border-color: var(--ink); }
.btn-rust:hover { background: var(--rust); border-color: var(--ink); }
.btn-ghost { background: var(--white); }
.nav .btn { box-shadow: 2px 2px 0 var(--ink); }

/* surfaces: ink borders + block shadows */
.demo-card, .speed-card, .compare, .panel { border: var(--bd); box-shadow: var(--hard-lg); }
.feat-card, .faq details, .plan, .step, .priv-card { border: var(--bd); box-shadow: var(--hard-sm); }
.feat-card:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-md); }
.priv-card { border-color: #4a3e2c; box-shadow: 4px 4px 0 #0d0a06; }
.plan.best { border: var(--bd); box-shadow: 8px 8px 0 var(--rust); }
.plan .btn { box-shadow: var(--hard-sm); }
.app-chip, .eyebrow, .demo-status { border: var(--bd); box-shadow: 2px 2px 0 var(--ink); border-radius: 8px; }
.demo-status.idle { border: var(--bd); }
.stats { border-top: var(--bd); border-bottom: var(--bd); }
.plan-pick button { border: var(--bd); box-shadow: var(--hard-sm); }
.plan-pick button:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-md); border-color: var(--ink); }
.license-box { border: 2px dashed var(--ink); }
.keycap { border: 1.5px solid #453a2b; }
.step .keycap { border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); }

/* nav: flat with a hard rule when scrolled */
.nav.scrolled { border-bottom: var(--bd); box-shadow: none; }
.brand-mark { border-radius: 8px; }

/* slabs: tighter corners */
.dark-band, .apps-band, .cta-final { border-radius: 18px; }
.apps-band { border: var(--bd); box-shadow: var(--hard-md); }
.cta-final { border: var(--bd); box-shadow: var(--hard-md); margin-bottom: 24px; }
.dark-band { box-shadow: var(--hard-md); }

/* kicker as a stamped tag */
.kicker {
  background: var(--white); border: var(--bd); border-radius: 7px;
  padding: 5px 10px; box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}
.dark-band .kicker { background: var(--espresso-2); border-color: #4a3e2c; color: #e8926b; box-shadow: 2px 2px 0 #0d0a06; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid, .priv-grid, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stat:nth-child(3) { border-left: none; }
  .plan.best { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 660px) {
  .section { padding: 68px 0; }
  .hero { padding: 52px 0 30px; }
  .nav-links { display: none; }
  .feat-grid, .priv-grid, .steps, .plans { grid-template-columns: 1fr; }
  .plan.best { grid-column: auto; }
  .speed-row { grid-template-columns: 1fr; gap: 8px; }
  .speed-row .wpm { text-align: left; }
  .ledger { grid-template-columns: 1fr; }
  .panel { padding: 30px 22px; }
  .auth-page .page-thin { padding: 42px 0; }
  .ambient-orbit-one { left: -240px; }
  .ambient-orbit-two { right: -300px; }
  .ambient-wave-one { left: -18px; top: 8%; transform: rotate(-8deg) scale(.72); }
  .ambient-wave-two { right: -30px; top: auto; bottom: 5%; transform: rotate(9deg) scale(.64); }
  .ambient-wave-three { display: none; }
}
