/* ============================================================
   BasisTrail landing — premium light fintech
   Satoshi + tabular numerics · deep ink + warm gold
   ============================================================ */

:root {
  /* palette */
  --bg:           #FAFAF7;
  --bg-2:         #F3F1EA;
  --surface:      #FFFFFF;
  --ink:          #0F2742;
  --ink-2:        #21364F;
  --muted:        #5B6675;
  --muted-2:      #8B94A1;
  --line:         #E7E3D8;
  --line-2:       #D7D2C4;
  --gold:         #B5872A;
  --gold-bright:  #E8C26A;
  --gold-soft:    rgba(232,194,106,.18);
  --green:        #1E7E34;
  --green-soft:   rgba(30,126,52,.12);
  --red:          #B42318;

  --shadow-sm: 0 1px 2px rgba(15,39,66,.04), 0 1px 1px rgba(15,39,66,.03);
  --shadow:    0 10px 30px rgba(15,39,66,.07);
  --shadow-lg: 0 30px 70px rgba(15,39,66,.14);

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px; --pill: 999px;
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(232,194,106,.12), transparent 34%),
    linear-gradient(180deg, rgba(243,241,234,.72) 0%, rgba(250,250,247,0) 22%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
.hidden { display: none !important; }
strong { font-weight: 700; color: var(--ink); }
.muted { color: var(--muted); }

/* tabular numerals everywhere figures live */
.price-amt, .nav-email, .acc-meta dd, .usage-text { font-variant-numeric: tabular-nums; }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 100; transition: width .1s linear;
}

/* reveal */
[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 22px;
  --reveal-scale: .985;
  --reveal-blur: 10px;
  --reveal-duration: .9s;
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--reveal-duration) var(--ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--ease) var(--reveal-delay),
    filter calc(var(--reveal-duration) + .08s) var(--ease) var(--reveal-delay);
  will-change: opacity, transform, filter;
}
[data-reveal].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
[data-reveal="nav"] { --reveal-y: -14px; --reveal-scale: .992; --reveal-blur: 6px; --reveal-duration: .72s; }
[data-reveal="hero-copy"] { --reveal-x: -28px; --reveal-y: 8px; --reveal-scale: .992; --reveal-blur: 8px; }
[data-reveal="hero-stage"] { --reveal-x: 34px; --reveal-y: 12px; --reveal-scale: .97; --reveal-blur: 14px; --reveal-duration: 1.05s; }
[data-reveal="band"] { --reveal-y: 14px; --reveal-scale: .994; --reveal-blur: 6px; --reveal-duration: .78s; }
[data-reveal="section-head"] { --reveal-y: 26px; --reveal-scale: .988; --reveal-blur: 10px; }
[data-reveal="split-left"] { --reveal-x: -30px; --reveal-y: 12px; --reveal-scale: .988; }
[data-reveal="split-right"] { --reveal-x: 30px; --reveal-y: 12px; --reveal-scale: .988; }
[data-reveal="grid-rise"] { --reveal-y: 30px; --reveal-scale: .978; --reveal-blur: 12px; --reveal-duration: .96s; }
[data-reveal="stack-soft"] { --reveal-y: 24px; --reveal-scale: .99; --reveal-blur: 8px; --reveal-duration: .86s; }
[data-reveal="closing"] { --reveal-y: 34px; --reveal-scale: .975; --reveal-blur: 12px; --reveal-duration: 1s; }
[data-reveal="card-rise"] { --reveal-y: 24px; --reveal-scale: .984; --reveal-blur: 9px; --reveal-duration: .84s; }

/* section-level child choreography */
[data-reveal="band"] .trust-item,
[data-reveal="band"] .trust-dot,
.showcase-row .showcase-copy,
.showcase-row .showcase-art,
[data-reveal="grid-rise"] .price-card,
[data-reveal="stack-soft"] .faq-list > details,
[data-reveal="closing"] .btn {
  opacity: 0;
  transition:
    opacity .88s var(--ease),
    transform .88s var(--ease),
    filter .88s var(--ease);
  will-change: opacity, transform, filter;
}

[data-reveal="band"] .trust-item,
[data-reveal="band"] .trust-dot {
  transform: translate3d(0, 18px, 0) scale(.985);
  filter: blur(8px);
}
[data-reveal="band"].visible .trust-item,
[data-reveal="band"].visible .trust-dot {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
[data-reveal="band"] .trust-item:nth-of-type(1) { transition-delay: 40ms; }
[data-reveal="band"] .trust-dot:nth-of-type(2) { transition-delay: 90ms; }
[data-reveal="band"] .trust-item:nth-of-type(3) { transition-delay: 130ms; }
[data-reveal="band"] .trust-dot:nth-of-type(4) { transition-delay: 180ms; }
[data-reveal="band"] .trust-item:nth-of-type(5) { transition-delay: 220ms; }
[data-reveal="band"] .trust-dot:nth-of-type(6) { transition-delay: 270ms; }
[data-reveal="band"] .trust-item:nth-of-type(7) { transition-delay: 310ms; }

.showcase-row .showcase-copy {
  transform: translate3d(-28px, 12px, 0) scale(.988);
  filter: blur(10px);
}
.showcase-row .showcase-art {
  transform: translate3d(30px, 16px, 0) scale(.978);
  filter: blur(12px);
  transition-duration: 1s;
}
.showcase-row.reverse .showcase-copy { transform: translate3d(28px, 12px, 0) scale(.988); }
.showcase-row.visible .showcase-copy,
.showcase-row.visible .showcase-art {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.showcase-row.visible .showcase-copy { transition-delay: 70ms; }
.showcase-row.visible .showcase-art { transition-delay: 150ms; }

[data-reveal="grid-rise"] .price-card {
  transform: translate3d(0, 28px, 0) scale(.978);
  filter: blur(10px);
}
[data-reveal="grid-rise"].visible .price-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
[data-reveal="grid-rise"] .price-card:nth-child(1) { transition-delay: 30ms; }
[data-reveal="grid-rise"] .price-card:nth-child(2) { transition-delay: 95ms; }
[data-reveal="grid-rise"] .price-card:nth-child(3) { transition-delay: 160ms; }
[data-reveal="grid-rise"] .price-card:nth-child(4) { transition-delay: 225ms; }

[data-reveal="stack-soft"] .faq-list > details {
  transform: translate3d(0, 18px, 0) scale(.992);
  filter: blur(8px);
}
[data-reveal="stack-soft"].visible .faq-list > details {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
[data-reveal="stack-soft"] .faq-list > details:nth-child(1) { transition-delay: 25ms; }
[data-reveal="stack-soft"] .faq-list > details:nth-child(2) { transition-delay: 75ms; }
[data-reveal="stack-soft"] .faq-list > details:nth-child(3) { transition-delay: 125ms; }
[data-reveal="stack-soft"] .faq-list > details:nth-child(4) { transition-delay: 175ms; }
[data-reveal="stack-soft"] .faq-list > details:nth-child(5) { transition-delay: 225ms; }
[data-reveal="stack-soft"] .faq-list > details:nth-child(6) { transition-delay: 275ms; }

[data-reveal="closing"] .btn {
  transform: translate3d(0, 20px, 0) scale(.985);
  filter: blur(8px);
  transition-delay: 160ms;
}
[data-reveal="closing"].visible .btn {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  [data-reveal="band"] .trust-item,
  [data-reveal="band"] .trust-dot,
  .showcase-row .showcase-copy,
  .showcase-row .showcase-art,
  [data-reveal="grid-rise"] .price-card,
  [data-reveal="stack-soft"] .faq-list > details,
  [data-reveal="closing"] .btn { opacity: 1; transform: none; filter: none; transition: none; }
  .checkout-banner,
  .checkout-banner::after,
  .checkout-orb span { animation: none !important; }
  .phone-float { animation: none !important; }
}

/* ---------------- buttons (all states) ---------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-lg { min-height: 52px; padding: 15px 26px; font-size: 16px; border-radius: var(--r); }
.full { width: 100%; }

.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(15,39,66,.18); }
.btn-ink:hover { background: var(--ink-2); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold) 115%); color: #18243a; border-color: var(--gold); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 20px rgba(181,135,42,.28); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; min-height: 40px; padding: 8px 12px; font-weight: 500; }
.btn-ghost:hover { background: var(--bg-2); }

/* async states via data-state */
.btn .btn-spin, .btn .btn-check { display: none; }
.btn[data-state="loading"] .btn-label { opacity: .35; }
.btn[data-state="loading"] .btn-spin {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; position: absolute;
}
.btn-gold[data-state="loading"] .btn-spin, .btn-line[data-state="loading"] .btn-spin { border-color: rgba(15,39,66,.25); border-top-color: var(--ink); }
.btn[data-state="success"] { background: var(--green); border-color: var(--green); color: #fff; }
.btn[data-state="success"] .btn-label { opacity: 0; }
.btn[data-state="success"] .btn-check {
  display: block; position: absolute; width: 18px; height: 9px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-2px); animation: pop .3s var(--ease);
}
.btn[data-state="error"] { background: var(--red); border-color: var(--red); color: #fff; animation: shake .35s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: rotate(-45deg) scale(.4); opacity: 0; } }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ---------------- nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0 0;
}
.nav-shell { width: min(1120px, calc(100vw - 24px)); margin: 0 auto; }
.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(250,250,247,.82);
  border: 1px solid rgba(215,210,196,.86);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset, 0 14px 36px rgba(15,39,66,.08);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  opacity: 0;
  transform: translateY(-18px) scale(.985);
  transition:
    opacity .55s var(--ease),
    transform .55s var(--ease),
    padding .34s var(--ease),
    background .34s var(--ease),
    border-color .34s var(--ease),
    box-shadow .34s var(--ease);
}
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.4);
  mask: linear-gradient(180deg, #000, transparent 74%);
}
.nav.nav-ready { opacity: 1; transform: none; }
.nav.scrolled {
  padding: 10px 14px;
  background: rgba(250,249,244,.96);
  border-color: rgba(215,210,196,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.76) inset, 0 18px 42px rgba(15,39,66,.12);
}
.nav.just-stuck { animation: navStick .55s cubic-bezier(.16,1,.3,1); }
@keyframes navStick {
  0% { transform: translateY(-3px) scale(.992); }
  62% { transform: translateY(0) scale(1.002); }
  100% { transform: none; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: radial-gradient(circle at 30% 28%, var(--gold-bright), var(--gold) 78%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 6px rgba(181,135,42,.35); position: relative; }
.brand-mark::after { content:"BT"; position:absolute; inset:0; display:grid; place-items:center; font-size:10.5px; font-weight:900; color:#18243a; letter-spacing:.02em; }
.brand-name { font-size: 16px; letter-spacing: -.01em; }
.nav-desktop, .nav-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.nav-links { display: none; gap: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .18s var(--ease); }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; background: var(--gold); border-radius:2px; transform: scaleX(0); transform-origin:left; transition: transform .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-account-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  background: rgba(243,241,234,.84);
  border: 1px solid rgba(215,210,196,.9);
  border-radius: 14px;
}
.nav-account-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-email { font-size: 13px; color: var(--ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost-muted { color: var(--muted); }
.btn-ghost-muted:hover { color: var(--ink); background: rgba(243,241,234,.9); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(215,210,196,.92);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease);
}
.nav-toggle:hover { background: rgba(243,241,234,.94); border-color: rgba(181,135,42,.3); }
.nav-toggle:active { transform: translateY(1px); }
.nav-toggle-bars {
  display: inline-grid;
  gap: 4px;
  width: 14px;
}
.nav-toggle-bars span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.nav-shell[data-menu-open="true"] .nav-toggle-bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-shell[data-menu-open="true"] .nav-toggle-bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease), opacity .3s var(--ease);
}
.nav-panel {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.nav-shell[data-menu-open="true"] .nav-panel-wrap { grid-template-rows: 1fr; }
.nav-shell[data-menu-open="true"] .nav-panel { opacity: 1; transform: none; }
.nav-panel-inner {
  margin-top: 10px;
  padding: 18px;
  background: rgba(250,249,244,.96);
  border: 1px solid rgba(215,210,196,.94);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15,39,66,.08);
}
.nav-mobile-links,
.nav-mobile-actions { display: grid; gap: 10px; }
.nav-mobile-links { margin-bottom: 16px; }
.nav-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(215,210,196,.7);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.nav-mobile-links a:last-child { border-bottom: 0; }
.nav-mobile-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-mobile-email {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-panel-wrap { display: none; }
}
@media (max-width: 919px) {
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-desktop, .nav-account { display: none !important; }
}

/* ---------------- layout helpers ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(181,135,42,.22); border-radius: var(--pill);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.kicker-gold { color: var(--gold); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------------- hero ---------------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  width: min(var(--container), calc(100vw - 36px));
  margin: 0 auto; padding: 52px 0 40px;
}
@media (min-width: 920px) {
  .hero { width: min(1100px, calc(100vw - 36px)); grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); padding: 96px 0 60px; gap: 16px; }
}
.hero h1 { max-width: 665px; font-size: clamp(40px, 5.7vw, 66px); font-weight: 900; letter-spacing: -.03em; }
.hero-lede { max-width: 540px; margin: 22px 0 28px; font-size: 18px; color: var(--muted); line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-halo { position: absolute; inset: -10% -10% -10% -10%; z-index: 0; background: radial-gradient(circle at 62% 38%, var(--gold-soft), transparent 58%), radial-gradient(circle at 30% 78%, rgba(15,39,66,.07), transparent 60%); filter: blur(8px); }
.halo-gold { background: radial-gradient(circle at 50% 40%, var(--gold-soft), transparent 60%); }
@media (min-width: 920px) {
  .hero-stage { place-items: center end; }
  .hero-stage .phone { justify-self: end; margin-right: -8px; }
}

/* iPhone mock */
.phone {
  position: relative; z-index: 1;
  width: min(330px, 82%); aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(155deg, #2c2c2a, #0d0d0c 48%, #1f1f1d);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.06), var(--shadow-lg);
}
.phone::before { content:""; position:absolute; inset:5px; border-radius:48px; background:#000; }
.phone-screen { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 44px; object-fit: cover; object-position: top center; background: var(--bg); }
.phone-sm { width: min(280px, 72%); }
.phone-float { animation: float 6s var(--ease) infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hero-badge { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow); }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px var(--green-soft)} 50%{box-shadow:0 0 0 6px transparent} }

/* ---------------- trust strip ---------------- */
.trust { width: min(var(--container), calc(100vw - 36px)); margin: 20px auto; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.trust-label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.trust-item { font-size: clamp(15px, 2.4vw, 20px); font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------------- showcase ---------------- */
.showcase { width: min(var(--container), calc(100vw - 36px)); margin: 0 auto; padding: 60px 0; display: grid; gap: 90px; }
.showcase-row { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 880px) {
  .showcase-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .showcase-row.reverse .showcase-copy { order: 2; }
}
.showcase-copy h2 { font-size: clamp(26px, 3.4vw, 40px); }
.showcase-copy p { margin: 16px 0 20px; color: var(--muted); font-size: 17px; max-width: 480px; }
.showcase-art { display: grid; place-items: center; position: relative; }
.showcase-art::before { content:""; position:absolute; width:74%; aspect-ratio:1; border-radius:50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content:""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); }
.ticks li::after { content:""; position: absolute; left: 5.5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---------------- AI section ---------------- */
.ai-section { background: linear-gradient(180deg, var(--ink), #0b1d33); color: #fff; margin-top: 40px; }
.ai-inner { width: min(var(--container), calc(100vw - 36px)); margin: 0 auto; padding: 90px 0; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 900px) { .ai-inner { grid-template-columns: 1fr 1fr; } }
.ai-copy h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); }
.ai-copy p { margin: 18px 0 22px; color: rgba(255,255,255,.74); font-size: 17px; max-width: 500px; }
.ai-copy .ticks li { color: rgba(255,255,255,.9); }
.ai-copy .ticks li::before { background: rgba(232,194,106,.2); }
.ai-copy .ticks li::after { border-color: var(--gold-bright); }
.ai-art { position: relative; display: grid; place-items: center; }

/* ---------------- pricing ---------------- */
.pricing { width: min(var(--container), calc(100vw - 36px)); margin: 0 auto; padding: 90px 0 70px; }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow); }
@media (min-width: 1080px) { .price-card.featured { transform: scale(1.04); } .price-card.featured:hover { transform: scale(1.04) translateY(-6px); } }
.price-card.founder { background: linear-gradient(180deg, var(--gold-soft), transparent 50%), var(--surface); border-color: transparent; }
.price-card.founder::before { content:""; position:absolute; inset:0; border-radius:var(--r-lg); padding:1px; background: linear-gradient(130deg, var(--gold), var(--gold-bright), var(--gold)); background-size: 200% 200%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderflow 5s linear infinite; }
@keyframes borderflow { to { background-position: 200% 200%; } }

.price-flag { position: absolute; top: -11px; left: 24px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #fff; background: var(--ink); border-radius: var(--pill); }
.flag-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #18243a; }
.price-head h3 { font-size: 18px; }
.price { margin: 12px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price-amt { font-size: 42px; font-weight: 900; letter-spacing: -.03em; }
.price-per { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-note { font-size: 13.5px; color: var(--muted); min-height: 38px; }
.price-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.price-feats li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.price-feats li::before { content:""; position:absolute; left:0; top:4px; width:16px; height:16px; border-radius:50%; background: var(--green-soft); }
.price-feats li::after { content:""; position:absolute; left:5px; top:7.5px; width:6px; height:3px; border-left:2px solid var(--green); border-bottom:2px solid var(--green); transform: rotate(-45deg); }
.price-feats li.muted { color: var(--muted); }
.price-feats li.muted::before { background: var(--bg-2); }
.price-feats li.muted::after { border-color: var(--muted-2); }
.price-card .btn { margin-top: auto; }
.price-fine { max-width: 720px; margin: 30px auto 0; text-align: center; font-size: 13px; color: var(--muted-2); }

/* ---------------- faq ---------------- */
.faq { width: min(760px, calc(100vw - 36px)); margin: 0 auto; padding: 70px 0; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 16.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq-plus::before, .faq-plus::after { content:""; position:absolute; background: var(--gold); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-plus::before { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-plus::after { left: 0; top: 7px; width: 16px; height: 2px; }
.faq details[open] .faq-plus::before { transform: rotate(90deg); opacity: 0; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------------- closing ---------------- */
.closing { text-align: center; padding: 80px 18px 100px; }
.closing h2 { font-size: clamp(28px, 4vw, 46px); max-width: 720px; margin: 0 auto 28px; }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.foot-cols { width: min(var(--container), calc(100vw - 36px)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.foot-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--muted); font-size: 14.5px; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { width: min(var(--container), calc(100vw - 36px)); margin: 24px auto 0; font-size: 12.5px; color: var(--muted-2); }

@media (max-width: 719px) {
  .site-header { padding-top: 10px; }
  .nav-shell { width: min(100vw - 18px, 1120px); }
  .nav {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
  }
  .brand-name { font-size: 15px; }
  .hero {
    gap: 32px;
    padding-top: 34px;
  }
  .hero-copy { text-align: left; }
  .hero h1 { max-width: 10.5ch; }
  .hero-lede {
    margin: 18px 0 24px;
    font-size: 16px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-cta .btn { width: 100%; }
  .hero-stage {
    min-height: 0;
    padding-bottom: 12px;
  }
  .phone,
  .phone-sm { width: min(320px, 92%); }
  .trust {
    padding: 20px 0;
    text-align: left;
  }
  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    justify-content: stretch;
  }
  .trust-dot { display: none; }
  .trust-item {
    font-size: 14px;
    line-height: 1.4;
  }
  .showcase { gap: 64px; padding: 48px 0; }
  .showcase-row { gap: 28px; }
  .showcase-copy p,
  .ai-copy p,
  .section-sub { font-size: 16px; }
  .ai-inner,
  .pricing { padding-top: 64px; padding-bottom: 56px; }
  .price-grid { gap: 14px; }
  .price-card {
    border-radius: 18px;
    padding: 22px 20px;
  }
  .faq { padding: 56px 0; }
  .closing { padding: 64px 18px 80px; }
  .foot-cols {
    flex-direction: column;
    align-items: stretch;
  }
  .foot-links {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  .account { padding-top: 18px; }
}

/* ---------------- account view ---------------- */
.account { width: min(var(--container), calc(100vw - 36px)); margin: 30px auto; padding: 30px 0 80px; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 880px) { .account-grid { grid-template-columns: 1.3fr 1fr; grid-auto-rows: min-content; } .acc-plan { grid-row: span 2; } }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.checkout-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(181,135,42,.24);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 84% 12%, rgba(232,194,106,.28), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fbf7ed 52%, #f3ead7 100%);
  box-shadow: var(--shadow);
  animation: checkoutEnter .72s var(--ease) both;
}
.checkout-banner::after {
  content: "";
  position: absolute;
  inset: -35% auto auto 48%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(232,194,106,.46), transparent 62%);
  opacity: .45;
  animation: checkoutSweep 4.8s linear infinite;
}
.checkout-banner[data-state="error"] {
  border-color: rgba(180,35,24,.2);
  background:
    radial-gradient(circle at 84% 12%, rgba(180,35,24,.12), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff7f3 100%);
}
.checkout-orb {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #36a852);
  box-shadow: 0 18px 34px rgba(30,126,52,.18);
}
.checkout-banner[data-state="error"] .checkout-orb {
  background: linear-gradient(135deg, var(--red), #d65a44);
  box-shadow: 0 18px 34px rgba(180,35,24,.16);
}
.checkout-orb span {
  width: 24px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg) translate(1px, -2px);
  animation: checkoutCheck .58s .22s var(--ease) both;
}
.checkout-banner[data-state="error"] .checkout-orb span {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: var(--pill);
  background: currentColor;
  transform: rotate(0);
}
.checkout-copy { position: relative; z-index: 1; max-width: 760px; }
.checkout-kicker {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.checkout-copy h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.035em; }
.checkout-copy p[data-checkout-body] { margin-top: 8px; color: var(--ink-2); }
.checkout-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.checkout-steps li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 14.5px;
}
.checkout-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(232,194,106,.32);
  font-size: 12px;
  font-weight: 900;
}
.acc-tag { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 800; letter-spacing: .05em; border-radius: var(--pill); background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }
.acc-plan h2 { font-size: 26px; }
.acc-plan-head p { color: var(--muted); margin-top: 6px; }
.acc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.acc-meta dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-usage h3, .acc-getapp h3 { font-size: 17px; margin-bottom: 14px; }
.usage-meter { height: 10px; border-radius: var(--pill); background: var(--bg-2); overflow: hidden; }
.usage-fill { height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width .8s var(--ease); }
.usage-text { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.usage-hint { margin-top: 6px; font-size: 13px; color: var(--muted-2); }
.qr { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: var(--r); background: var(--bg-2); display: grid; place-items: center; padding: 10px; }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; }
.acc-getapp { text-align: center; }
.acc-getapp p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

@keyframes checkoutEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes checkoutSweep { to { transform: rotate(360deg); } }
@keyframes checkoutCheck {
  from { opacity: 0; transform: rotate(-45deg) scale(.4) translate(1px, -2px); }
  to { opacity: 1; transform: rotate(-45deg) scale(1) translate(1px, -2px); }
}

@media (max-width: 640px) {
  .checkout-banner { grid-template-columns: 1fr; padding: 22px; }
  .checkout-orb { width: 52px; height: 52px; border-radius: 18px; }
}

/* ---------------- auth dialog ---------------- */
.auth-dialog { border: none; border-radius: var(--r-lg); padding: 0; max-width: 420px; width: calc(100vw - 36px); box-shadow: var(--shadow-lg); }
.auth-dialog::backdrop { background: rgba(15,39,66,.4); backdrop-filter: blur(4px); }
.auth-form { padding: 28px; display: grid; gap: 14px; }
.auth-form h3 { font-size: 22px; }
.auth-sub { color: var(--muted); font-size: 14.5px; }
.auth-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-field input { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 16px; color: var(--ink); }
.auth-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.auth-message { font-size: 13.5px; color: var(--muted); min-height: 18px; }
.auth-message[data-tone="error"] { color: var(--red); }
.auth-message[data-tone="success"] { color: var(--green); }
.auth-actions { display: flex; gap: 10px; justify-content: flex-end; }
.auth-actions-split { justify-content: space-between; }

/* persistent "sent" button state */
.btn[data-state="sent"] { background: var(--green); border-color: var(--green); color: #fff; }
.btn[data-state="sent"] .btn-label { opacity: 1; }
.btn[data-state="sent"] .btn-spin, .btn[data-state="sent"] .btn-check { display: none; }

/* upgrade dialog options */
.upgrade-dialog { max-width: 460px; }
.upgrade-options { display: grid; gap: 10px; margin: 8px 0 4px; }
.upgrade-opt {
  position: relative; display: grid; gap: 3px; text-align: left;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.upgrade-opt:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.upgrade-opt:first-child { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.upgrade-opt[disabled] { opacity: .5; pointer-events: none; }
.upgrade-opt-flag { font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--gold); }
.upgrade-opt-name { font-size: 16px; font-weight: 700; }
.upgrade-opt-price { font-size: 22px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.upgrade-opt-price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.upgrade-opt-sub { font-size: 13px; color: var(--muted); }
.confirm-dialog { max-width: 380px; }

/* ---------------- legal pages ---------------- */
.legal-nav { width: min(820px, calc(100vw - 36px)); margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; }
.legal { width: min(760px, calc(100vw - 36px)); margin: 30px auto 90px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -.03em; }
.legal .updated { margin: 10px 0 8px; color: var(--muted-2); font-size: 14px; }
.legal .lede { margin: 18px 0 8px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.legal h2 { margin: 38px 0 12px; font-size: 21px; letter-spacing: -.01em; }
.legal h3 { margin: 22px 0 8px; font-size: 16px; }
.legal p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.legal strong { color: var(--ink); }
.legal .callout { padding: 16px 18px; background: var(--gold-soft); border: 1px solid rgba(181,135,42,.22); border-radius: var(--r); font-size: 14.5px; color: var(--ink-2); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
