/* =====================================================================
   ClinDesk — mobile-first, scrollama-driven.
   Dark / Mac-native / blue→teal→lime brand gradient. Manrope variable.
   ===================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Manrope-VariableFont_wght.ttf") format("truetype-variations"),
       url("/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype-variations"),
       url("/fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
}

:root {
  /* Surfaces */
  --bg:        #08090f;
  --bg-2:      #0e1018;
  --panel:     rgba(255, 255, 255, 0.04);
  --panel-2:   rgba(255, 255, 255, 0.06);
  --panel-3:   rgba(255, 255, 255, 0.08);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  /* Text */
  --text:    #f5f5f7;
  --muted:   #9a9aa5;
  --muted-2: #6b6b76;

  /* Brand */
  --brand-blue: #2b7cff;
  --brand-teal: #14a078;
  --brand-lime: #b4dc00;
  --brand-lime-hi: #cdee09;
  --brand-gradient: linear-gradient(120deg, #2b7cff 0%, #14a078 55%, #b4dc00 100%);
  --brand-soft: rgba(180, 220, 0, 0.18);

  /* Semantic */
  --red:    #ff453a;
  --green:  #28c840;
  --yellow: #febc2e;
  --orange: #ff9f0a;

  /* WhatsApp bubble colors */
  --wa-in:       #202c33;
  --wa-in-br:    #2a3942;
  --wa-out:      #005d4b;
  --wa-out-br:   #0b6b56;

  /* Type */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Motion */
  --easing:      cubic-bezier(0.22, 1, 0.36, 1);
  --easing-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --pop:         cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radii */
  --r-tight:  6px;
  --r-input:  8px;
  --r-bubble: 10px;
  --r-card:   12px;
  --r-win:    14px;
  --r-panel:  16px;
  --r-pill:   999px;

  /* Shadows */
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 30px rgba(0,0,0,0.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.55);
  --shadow-brand:
    0 12px 28px rgba(43, 124, 255, 0.22),
    0 8px 20px rgba(180, 220, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);

  /* Layout */
  --hdr-h: 64px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (max-width: 720px) {
  :root { --hdr-h: 56px; }
}

/* ───── Reset / base ───── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(43,124,255,0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(180,220,0,0.06), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(40px, 7.2vw, 88px); }
h2 { font-size: clamp(30px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; color: var(--muted); }
::selection { background: var(--brand-lime); color: #001a0d; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-input); transform: translateY(-200%);
  transition: transform .18s var(--easing);
}
.skip-link:focus { transform: translateY(0); }

/* ───── Reusable bits ───── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 3px rgba(180,220,0,0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(180,220,0,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(180,220,0,0.05); }
}

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brand-lime); margin: 0 0 18px;
}
.chapter {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brand-lime); margin: 0 0 14px;
}

.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; max-width: 56ch; }

h1 em, h2 em, h3 em {
  font-style: normal;
  background-image: var(--brand-gradient);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  border-radius: var(--r-card); letter-spacing: -0.01em;
  transition: transform .18s var(--easing), background .18s var(--easing), border-color .18s var(--easing), box-shadow .18s var(--easing);
  white-space: nowrap;
}
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-primary {
  color: #06120a;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--border-2); }
.btn-block { width: 100%; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row-center { justify-content: center; }

/* ───── Ambient background ───── */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient-blob {
  position: absolute; filter: blur(80px);
  border-radius: 50%; opacity: .6;
  mix-blend-mode: screen;
  will-change: transform;
}
/* iOS Safari chokes on blur(80px) + mix-blend-mode while scrolling,
   which starves scrollama triggers and makes the pile feel laggy.
   On phones, drop to a much cheaper blur and skip the blend-mode. */
@media (max-width: 640px) {
  .ambient-blob {
    filter: blur(40px);
    mix-blend-mode: normal;
    opacity: .35;
    animation: none;
  }
}
.ambient-blob-1 {
  width: 520px; height: 520px; top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(43,124,255,0.55), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.ambient-blob-2 {
  width: 600px; height: 600px; top: 40%; right: -160px;
  background: radial-gradient(circle, rgba(20,160,120,0.42), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.ambient-blob-3 {
  width: 480px; height: 480px; bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(180,220,0,0.28), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(60px, 80px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-40px, 40px); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(30px, -60px); } }

.ambient-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .4;
  mix-blend-mode: overlay;
}

main { position: relative; z-index: 1; }

/* ───── Header ───── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center;
  background: rgba(8, 9, 15, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--easing), background .2s var(--easing);
}
.hdr.scrolled { border-bottom-color: var(--border); }
.hdr-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.hdr-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 15px;
}
.hdr-brand img { border-radius: 7px; width: 28px; height: 28px; }
.hdr-nav {
  display: none; flex: 1;
  gap: 4px; justify-content: center;
}
.hdr-nav a {
  padding: 8px 12px; border-radius: var(--r-input);
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .15s var(--easing), background .15s var(--easing);
}
.hdr-nav a:hover { color: var(--text); background: var(--panel); }
.hdr-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}

.lang-pill {
  display: inline-flex; padding: 3px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
}
.lang-pill a {
  padding: 5px 10px; border-radius: var(--r-pill);
  color: var(--muted); transition: background .18s var(--easing), color .18s var(--easing);
}
.lang-pill a.on { color: var(--text); background: var(--panel-3); }
.lang-pill-lg a { padding: 10px 18px; font-size: 14px; }

.hdr-cta { display: none; }

.hdr-burger {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; border-radius: var(--r-input);
  background: var(--panel); border: 1px solid var(--border);
  gap: 4px;
}
.hdr-burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s var(--easing), opacity .15s var(--easing);
}
.hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .hdr-nav { display: flex; }
  .hdr-cta { display: inline-flex; }
  .hdr-burger { display: none; }
}

/* Drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s var(--easing);
}
.drawer-scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(360px, 100vw);
  background: rgba(14, 16, 24, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .28s var(--easing);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  height: var(--hdr-h);
}
.drawer-close {
  width: 36px; height: 36px; border-radius: var(--r-input);
  background: var(--panel); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.drawer-close:hover { color: var(--text); background: var(--panel-2); }
.drawer-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px;
}
.drawer-nav a {
  padding: 14px 16px; border-radius: var(--r-input);
  font-size: 18px; font-weight: 600; color: var(--text);
  border: 1px solid transparent;
  transition: background .15s var(--easing), border-color .15s var(--easing);
}
.drawer-nav a:hover { background: var(--panel); border-color: var(--border); }
.drawer-foot {
  margin-top: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--border);
}
.drawer-foot .lang-pill { justify-content: stretch; }
.drawer-foot .lang-pill a { flex: 1; text-align: center; }

@media (min-width: 900px) { .drawer, .drawer-scrim { display: none; } }

/* ───── Hero ───── */
.hero {
  position: relative;
  padding: calc(var(--hdr-h) + 32px) var(--gutter) 48px;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}
@media (min-width: 960px) {
  .hero { padding-top: calc(var(--hdr-h) + 64px); padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

.hero-copy > * + * { margin-top: 20px; }
.hero-copy h1 { letter-spacing: -0.035em; }
.hero-sub { color: var(--muted-2); font-size: 13px; letter-spacing: 0.01em; }

.hero-stage {
  position: relative;
  display: flex; justify-content: center;
  min-height: 440px;
}

/* Mac-style window */
.hero-window {
  width: min(100%, 520px);
  background: linear-gradient(180deg, rgba(22,24,32,0.85), rgba(14,16,24,0.9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(24px);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s var(--easing);
}
@media (max-width: 959px) {
  .hero-window { transform: none; width: 100%; }
}

.win-chrome {
  display: flex; align-items: center;
  padding: 10px 14px; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tl-r { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }
.tl-y { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }
.tl-g { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25); }
.win-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--muted-2); font-weight: 500;
  pointer-events: none;
}

.win-body {
  padding: 18px 16px 20px;
  max-height: 520px; overflow: hidden;
  background:
    radial-gradient(800px 300px at 50% -20%, rgba(180,220,0,0.04), transparent 60%),
    transparent;
}

.day-chip {
  display: block; width: fit-content; margin: 0 auto 14px;
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-pill);
}

/* WhatsApp-style bubbles */
.wa {
  max-width: 78%; padding: 8px 11px 10px;
  margin: 6px 0; border-radius: var(--r-bubble);
  font-size: 14px; line-height: 1.45;
  position: relative;
  animation: popIn .42s var(--easing) backwards;
  animation-delay: var(--d, 0s);
  border: 1px solid;
}
.wa-in  { background: var(--wa-in);  border-color: var(--wa-in-br);  margin-right: auto; border-top-left-radius: 4px; }
.wa-out { background: var(--wa-out); border-color: var(--wa-out-br); margin-left: auto; border-top-right-radius: 4px; }
.wa-meta {
  display: inline-block; margin-left: 8px;
  font-size: 10px; color: rgba(255,255,255,0.5); vertical-align: baseline;
}
.wa-voice {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
}
.wa-play {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-play::before {
  content: ""; display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255,255,255,0.85);
  margin-left: 2px;
}
.wa-wave {
  display: inline-flex; align-items: center; gap: 2px;
  height: 22px;
}
.wa-wave span {
  display: block; width: 2px;
  background: rgba(255,255,255,0.55); border-radius: 1px;
  height: 8px;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50%      { transform: scaleY(1.1); opacity: 1; }
}
.wa-dur { font-size: 11px; color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }

.wa-typing {
  display: inline-flex; gap: 4px; padding: 10px 14px;
  margin: 6px 0; background: var(--wa-in); border: 1px solid var(--wa-in-br);
  border-radius: var(--r-bubble); border-top-left-radius: 4px;
  animation: popIn .4s var(--easing) backwards;
  animation-delay: var(--d, 0s);
}
.wa-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: dots 1.4s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Summary card floats over the hero window */
.summary-card {
  position: absolute;
  right: -8px; bottom: -16px;
  width: min(86%, 320px);
  padding: 14px 16px;
  background: rgba(22, 24, 32, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-md);
  animation: floatIn .7s var(--easing) 2.6s backwards;
}
@media (max-width: 959px) {
  .summary-card { position: relative; right: auto; bottom: auto; margin: 16px auto 0; width: 100%; max-width: 520px; }
  .hero-stage { flex-direction: column; align-items: stretch; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.sc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; font-size: 11px; font-weight: 600;
  color: var(--brand-lime); background: var(--brand-soft);
  border: 1px solid rgba(180,220,0,0.3);
  border-radius: var(--r-pill);
}
.sc-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 3px rgba(180,220,0,0.2);
}
.sc-time { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.summary-card h4 { font-size: 15px; margin: 2px 0 6px; }
.summary-card p  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sc-meta {
  display: grid; gap: 4px;
  margin: 10px 0 0; padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.sc-meta div { display: flex; justify-content: space-between; font-size: 12px; }
.sc-meta dt { color: var(--muted-2); margin: 0; }
.sc-meta dd { margin: 0; }
.sc-meta code { color: var(--text); }

.scroll-hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 24px auto 0; padding: 8px 14px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
  border-radius: var(--r-pill);
  transition: color .2s var(--easing);
}
.scroll-hint:hover { color: var(--text); }
.scroll-hint svg { animation: bounceY 2.2s ease-in-out infinite; }
@keyframes bounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ───── Scrolly ───── */
.scrolly {
  position: relative;
  padding: 80px var(--gutter) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .scrolly { padding: 120px var(--gutter) 160px; }
}
.scrolly-intro {
  max-width: 720px; margin: 0 auto 48px;
  text-align: center;
}
.scrolly-intro .lede { margin: 18px auto 0; text-align: center; }
.scrolly-intro h2 { letter-spacing: -0.035em; }

.scrolly-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}
.scrolly-stage {
  position: sticky;
  top: calc(var(--hdr-h) + 16px);
  height: min(calc(100svh - var(--hdr-h) - 32px), 560px);
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.scrolly[data-scrolly="story"] .scrolly-stage {
  height: calc(100svh - var(--hdr-h) - 32px);
  max-height: none;
}
.stage-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.scrolly-steps {
  display: flex; flex-direction: column;
  gap: 48vh;
  padding: 20vh 0 30vh;
  position: relative;
  z-index: 2;
}
.step {
  padding: 20px;
  background: #0e1018;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  transition: opacity .4s var(--easing), transform .4s var(--easing), border-color .3s var(--easing);
  opacity: 0.45;
  transform: translateY(6px);
  position: relative;
  z-index: 2;
}
@media (min-width: 960px) {
  .step { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.step.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--border-2);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

@media (min-width: 960px) {
  .scrolly-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .scrolly-stage {
    height: calc(100vh - var(--hdr-h) - 32px);
    max-height: 780px;
  }
  .scrolly-steps { gap: 70vh; padding: 40vh 0; }
  .step { padding: 28px 32px; background: rgba(14, 16, 24, 0.72); opacity: 0.35; }
}

/* Sort stage */
.stage-sort {
  flex-direction: column;
  padding: 16px;
  gap: 14px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .stage-sort { flex-direction: row; gap: 20px; padding: 20px; }
}
.sort-pile {
  flex: 1; position: relative;
  min-height: 240px;
  width: 100%;
}
@media (min-width: 640px) {
  .sort-pile { min-height: 100%; }
}
.sort-bubble {
  position: absolute;
  padding: 7px 11px;
  font-size: 13px;
  background: var(--wa-in); border: 1px solid var(--wa-in-br);
  color: var(--text);
  border-radius: var(--r-bubble);
  border-top-left-radius: 4px;
  max-width: 70%;
  transition:
    transform .7s var(--easing),
    opacity .5s var(--easing),
    background .35s var(--easing),
    border-color .35s var(--easing),
    box-shadow .35s var(--easing);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.sort-bubble.flying {
  opacity: 0;
  pointer-events: none;
}
.sort-bubble[data-tint="hours"]       { border-color: rgba(43,124,255,0.6); box-shadow: 0 0 0 1px rgba(43,124,255,0.2), var(--shadow-sm); }
.sort-bubble[data-tint="directions"]  { border-color: rgba(20,160,120,0.6); box-shadow: 0 0 0 1px rgba(20,160,120,0.2), var(--shadow-sm); }
.sort-bubble[data-tint="appointment"] { border-color: rgba(254,188,46,0.6); box-shadow: 0 0 0 1px rgba(254,188,46,0.2), var(--shadow-sm); }
.sort-bubble[data-tint="clinical"]    { border-color: rgba(180,220,0,0.7);  box-shadow: 0 0 0 1px rgba(180,220,0,0.25), var(--shadow-sm); background: rgba(180,220,0,0.06); }

.sort-buckets {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px; width: 100%;
}
@media (min-width: 640px) {
  .sort-buckets { width: 280px; grid-template-columns: 1fr; gap: 12px; }
}
@media (min-width: 1200px) {
  .sort-buckets { width: 320px; }
}
.bucket {
  padding: 14px;
  background: rgba(14,16,24,0.8);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "ic title count" "ic sub count";
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  transition: border-color .3s var(--easing), background .3s var(--easing), transform .3s var(--easing);
}
.bucket.is-lit { border-color: var(--border-2); transform: scale(1.02); }
.bucket-featured {
  background:
    radial-gradient(circle at 80% 10%, rgba(180,220,0,0.16), transparent 55%),
    rgba(14,16,24,0.8);
  border-color: rgba(180,220,0,0.3);
}
.bucket-featured.is-lit { border-color: rgba(180,220,0,0.6); }
.bucket-ic { grid-area: ic; font-size: 22px; line-height: 1; }
.bucket-title { grid-area: title; font-size: 13px; font-weight: 600; min-width: 0; }
.bucket-sub { grid-area: sub; font-size: 11px; color: var(--muted-2); min-width: 0; }
.bucket-count {
  grid-area: count;
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums;
  min-width: 2ch; text-align: right;
  transition: color .3s var(--easing);
}
.bucket.is-lit .bucket-count { color: var(--brand-lime); }

/* Story phone */
.stage-story {
  padding: 16px;
}
.phone {
  width: min(100%, 320px); aspect-ratio: 9 / 19;
  max-height: 100%;
  background: #05070c;
  border: 1px solid var(--border-2);
  border-radius: 42px;
  padding: 14px 14px 22px;
  box-shadow:
    0 0 0 4px #0b0d14,
    var(--shadow-lg);
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; background: #000; border-radius: var(--r-pill);
  z-index: 2;
}
.phone-head {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.phone-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2b7cff, #14a078);
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.phone-name { font-size: 13px; font-weight: 600; }
.phone-status {
  font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px;
}
.phone-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.phone-body {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 0 5px;
  position: relative;
}
.phone-body .wa {
  font-size: 12.5px;
  animation: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity .45s var(--easing), transform .45s var(--easing);
}
.phone[data-phone-state="1"] .step-voice,
.phone[data-phone-state="2"] .step-voice,
.phone[data-phone-state="3"] .step-voice,
.phone[data-phone-state="4"] .step-voice { opacity: 1; transform: none; }

.phone[data-phone-state="2"] .step-reply1,
.phone[data-phone-state="3"] .step-reply1,
.phone[data-phone-state="4"] .step-reply1 { opacity: 1; transform: none; }

.phone[data-phone-state="2"] .step-msg1,
.phone[data-phone-state="3"] .step-msg1,
.phone[data-phone-state="4"] .step-msg1 { opacity: 1; transform: none; }

.phone[data-phone-state="3"] .step-msg2,
.phone[data-phone-state="4"] .step-msg2 { opacity: 1; transform: none; }

.phone[data-phone-state="3"] .step-reply2,
.phone[data-phone-state="4"] .step-reply2 { opacity: 1; transform: none; }

.phone[data-phone-state="2"] .step-voice::after {
  content: ""; position: absolute;
  inset: -3px;
  border-radius: 13px;
  border-top-left-radius: 7px;
  box-shadow: 0 0 0 2px rgba(180,220,0,0.4);
  pointer-events: none;
  animation: halo 2s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

/* Summary card surfaces at state 4; push at state 5 */
.phone-summary, .phone-push {
  position: absolute; left: 12px; right: 12px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity .45s var(--easing), transform .45s var(--easing);
  pointer-events: none;
}
.phone-summary {
  top: 60%;
  padding: 12px 14px;
  background: rgba(22,24,32,0.96);
  border: 1px solid var(--border-2); border-radius: var(--r-panel);
  box-shadow: var(--shadow-md);
}
.phone-summary h4 { font-size: 13px; margin: 4px 0 4px; }
.phone-summary p  { font-size: 11px; color: var(--muted); line-height: 1.4; }
.phone-summary .sc-meta { font-size: 10px; }
.phone-summary .sc-meta code { font-size: 10px; }
.phone-summary .sc-badge { font-size: 9px; padding: 2px 7px; }

.phone-push {
  top: 66px;
  display: flex; gap: 10px;
  padding: 12px 14px;
  background: rgba(28, 30, 42, 0.96);
  border: 1px solid var(--border-2); border-radius: var(--r-panel);
  box-shadow: var(--shadow-md);
  align-items: flex-start;
}
.phone-push img { border-radius: 7px; width: 32px; height: 32px; flex-shrink: 0; }
.phone-push .pp-head {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted-2); margin-bottom: 2px;
}
.phone-push .pp-head b { color: var(--text); font-size: 11px; font-weight: 600; }
.phone-push .pp-title { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.phone-push .pp-body  { font-size: 11px; color: var(--muted); }

.phone[data-phone-state="4"] .phone-summary { opacity: 1; transform: none; }
.phone[data-phone-state="4"] .phone-body    { filter: blur(2px) saturate(0.8); }

.phone[data-phone-state="5"] .phone-push    { opacity: 1; transform: none; }
.phone[data-phone-state="5"] .phone-summary { opacity: 0.15; transform: translateY(24px) scale(0.9); }
.phone[data-phone-state="5"] .phone-body    { filter: blur(3px) saturate(0.7); }

/* ───── Emergency ───── */
.emergency {
  position: relative;
  padding: 96px var(--gutter);
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(255,69,58,0.18), transparent 60%),
    rgba(20, 10, 12, 0.6);
  border-top: 1px solid rgba(255,69,58,0.18);
  border-bottom: 1px solid rgba(255,69,58,0.18);
  overflow: hidden;
}
.em-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .em-inner { grid-template-columns: 1.1fr 1fr; gap: 60px; }
}
.em-chapter { color: var(--red); }
.em-em {
  background-image: linear-gradient(120deg, #ff453a, #ff6f64, #febc2e);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.em-ecg {
  display: block; width: 100%; height: 40px; margin: 20px 0;
  color: var(--red);
  opacity: 0.6;
}
.em-ecg path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: ecg 4s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.em-lede { color: var(--muted); font-size: 17px; max-width: 54ch; }

.em-push-wrap { display: flex; justify-content: center; }
.em-push {
  width: min(100%, 400px);
  padding: 14px 16px;
  background: rgba(28, 30, 42, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,69,58,0.15);
  animation: pushWake 6s ease-in-out infinite;
}
@keyframes pushWake {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.ep-top { display: flex; gap: 10px; align-items: flex-start; }
.ep-top > div { flex: 1; min-width: 0; }
.em-push img { border-radius: 7px; width: 36px; height: 36px; }
.ep-app {
  font-size: 11px; color: var(--muted-2);
  display: flex; justify-content: space-between;
  margin-bottom: 2px;
}
.ep-app span { font-size: 10px; }
.ep-lead { font-size: 13px; font-weight: 600; color: var(--red); }
.ep-msg { margin-top: 10px; font-size: 13px; }
.ep-msg p { margin: 4px 0; }
.ep-gps span { color: var(--muted-2); margin-right: 4px; }
.ep-gps code { color: var(--brand-lime); }
.ep-lang { color: var(--muted); font-size: 12px; }
.ep-actions {
  display: flex; gap: 6px; margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ep-action {
  flex: 1; text-align: center;
  padding: 8px 10px; font-size: 12px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-input);
  color: var(--text);
}
.ep-action-primary {
  background: linear-gradient(180deg, rgba(43,124,255,0.25), rgba(43,124,255,0.15));
  border-color: rgba(43,124,255,0.5);
  color: #e8f2ff;
}

/* ───── Privacy ───── */
.privacy {
  padding: 96px var(--gutter);
  max-width: var(--container); margin: 0 auto;
}
.privacy-head {
  max-width: 720px; margin: 0 auto 40px;
  text-align: center;
}
.privacy-head h2 { letter-spacing: -0.035em; }

.prefs-win {
  max-width: 1000px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(22,24,32,0.85), rgba(14,16,24,0.9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.prefs-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .prefs-body { grid-template-columns: 220px 1fr; }
}

.prefs-tabs {
  display: flex; overflow-x: auto;
  padding: 10px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
@media (min-width: 820px) {
  .prefs-tabs {
    flex-direction: column; overflow: visible;
    border-bottom: 0; border-right: 1px solid var(--border);
    padding: 14px; gap: 2px;
  }
}
.prefs-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-input);
  font-size: 14px; color: var(--muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s var(--easing), color .15s var(--easing), border-color .15s var(--easing);
}
.prefs-tab:hover { background: var(--panel); color: var(--text); }
.prefs-tab.on { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.prefs-tab svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.prefs-tab.on svg { color: var(--brand-lime); }

.prefs-panes { padding: 24px 24px 32px; min-height: 360px; }
@media (min-width: 820px) {
  .prefs-panes { padding: 32px 32px 40px; }
}
.prefs-pane[hidden] { display: none; }
.prefs-pane h3 { margin-bottom: 12px; }
.prefs-pane p { color: var(--muted); max-width: 60ch; margin-bottom: 20px; }
.prefs-pane code { color: var(--brand-lime); font-size: 13px; }

.local-mock {
  width: 100%; max-width: 460px;
  background: rgba(8, 9, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.lm-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 8px 12px; position: relative;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.lm-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 11px; color: var(--muted-2);
  font-family: var(--font-mono);
}
.lm-body { padding: 16px; }
.lm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: var(--brand-lime); background: var(--brand-soft);
  border: 1px solid rgba(180,220,0,0.3);
  border-radius: var(--r-pill); margin-bottom: 14px;
}
.lm-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-lime);
  animation: pulse 2.4s ease-in-out infinite;
}
.lm-line { height: 6px; background: var(--panel-2); border-radius: var(--r-pill); margin: 6px 0; }
.lm-line.l2 { width: 85%; }
.lm-line.l3 { width: 62%; }

.nocloud {
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
}
.nc-cloud {
  position: relative;
  width: 120px; height: 120px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-panel);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--muted);
  flex-shrink: 0;
}
.nc-slash {
  position: absolute; inset: 0;
}
.nc-slash::before {
  content: ""; position: absolute;
  top: 50%; left: 10%; right: 10%; height: 2px;
  background: var(--red);
  transform: rotate(-22deg);
  box-shadow: 0 0 12px rgba(255,69,58,0.6);
}
.nc-pipes {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.nc-pipes li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-card);
  min-width: 240px;
}
.nc-pipes b { font-size: 14px; }
.nc-pipes span {
  font-size: 12px; color: var(--red); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.finder {
  max-width: 540px;
  background: rgba(8, 9, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.fnd-head {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 14px; position: relative;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.fnd-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--muted-2);
}
.fnd-list { list-style: none; margin: 0; padding: 6px; }
.fnd-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--r-input);
  font-size: 14px;
  transition: background .15s var(--easing);
}
.fnd-list li:hover { background: var(--panel); }
.fnd-ic { display: inline-flex; }
.fnd-ic svg { width: 18px; height: 18px; }
.fnd-folder { color: var(--brand-blue); }
.fnd-file { color: var(--muted); }
.fnd-size { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

.launchpad {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; max-width: 460px;
  padding: 18px; background: rgba(8, 9, 15, 0.6);
  border: 1px solid var(--border); border-radius: var(--r-panel);
}
@media (max-width: 520px) {
  .launchpad { grid-template-columns: repeat(3, 1fr); }
}
.lp-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lp-tile img {
  width: 60%; height: 60%; border-radius: 7px;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.lp-target.wobble { animation: wobble 0.5s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
.lp-x {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a1a20; color: var(--text);
  display: none; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.lp-target.wobble .lp-x { display: inline-flex; }
.lp-target.gone { opacity: 0; transform: scale(0.6); transition: opacity .4s var(--easing), transform .4s var(--easing); }

/* ───── Install ───── */
.install {
  padding: 96px var(--gutter);
  max-width: var(--container); margin: 0 auto;
  text-align: center;
}
.install-inner { max-width: 760px; margin: 0 auto; }
.install h2 { letter-spacing: -0.035em; margin-bottom: 16px; }
.install .lede { margin: 0 auto 32px; text-align: center; }

.dmg {
  margin: 24px auto 0;
  max-width: 620px;
  background: linear-gradient(180deg, rgba(22,24,32,0.88), rgba(14,16,24,0.92));
  border: 1px solid var(--border-2);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  position: relative;
}
.dmg-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 40px 30px;
}
.dmg-icon {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px; border-radius: var(--r-panel);
  cursor: grab;
  transition: transform .2s var(--easing);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.dmg-icon:hover { transform: translateY(-3px); }
.dmg-icon.dragging { opacity: 0.5; cursor: grabbing; }
.dmg-icon img {
  width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow-md);
  -webkit-touch-callout: none;
  pointer-events: none;
}
.dmg-icon span { font-size: 12px; color: var(--muted); }

.dmg-arrow { flex: 1; max-width: 120px; height: 20px; color: var(--muted-2); }

.dmg-target {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px; border-radius: var(--r-panel);
  border: 2px dashed transparent;
  transition: border-color .2s var(--easing), background .2s var(--easing);
}
.dmg-target.over { border-color: var(--brand-lime); background: rgba(180,220,0,0.05); }
.dmg-folder {
  width: 72px; height: 60px; border-radius: 8px;
  background: linear-gradient(180deg, #4a90e2, #2b7cff);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.dmg-folder::before {
  content: ""; position: absolute; top: -8px; left: 8px;
  width: 28px; height: 10px; border-radius: 4px 4px 0 0;
  background: #4a90e2;
}
.dmg-target span { font-size: 12px; color: var(--muted); }

.dmg-toast {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  text-align: center; font-size: 14px; font-weight: 600;
  color: var(--brand-lime); background: rgba(180,220,0,0.08);
  border-top: 1px solid rgba(180,220,0,0.3);
  transform: translateY(100%);
  transition: transform .4s var(--easing);
}
.dmg-toast.show { transform: translateY(0); }

.kbd-hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; font-size: 13px; color: var(--muted-2);
}
kbd {
  padding: 3px 8px; border-radius: var(--r-tight);
  background: var(--panel); border: 1px solid var(--border);
  border-bottom-width: 2px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text);
}

/* ───── FAQ ───── */
.faq { padding: 80px var(--gutter); max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 32px; letter-spacing: -0.035em; }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color .2s var(--easing);
}
.faq-list details[open] { border-color: var(--border-2); background: var(--panel-2); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chev {
  transition: transform .2s var(--easing);
  color: var(--muted);
}
.faq-list details[open] .faq-chev { transform: rotate(180deg); }
.faq-list p {
  padding: 0 18px 18px;
  color: var(--muted); font-size: 15px; line-height: 1.55;
}

/* ───── Final CTA ───── */
.final { padding: 80px var(--gutter) 120px; }
.final-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.final h2 {
  letter-spacing: -0.035em; margin-bottom: 16px;
  background-image: var(--brand-gradient);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  line-height: 1.15;
  padding-bottom: 0.12em;
}
.final .lede { margin: 0 auto 28px; text-align: center; }

/* ───── Footer ───── */
.site-foot {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 15, 0.6);
}
.site-foot-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.site-foot p { color: var(--muted-2); font-size: 14px; max-width: 60ch; }
@media (min-width: 720px) {
  .site-foot-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ───── Legal pages ───── */
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--gutter) 48px;
}
.legal-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-article .legal-meta {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 40px;
}
.legal-article h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal-article h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal-article p { margin: 0 0 14px; }
.legal-article ul { margin: 0 0 14px; padding-left: 20px; }
.legal-article li { margin: 4px 0; }
.legal-article a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-article a:hover { opacity: 0.8; }
.legal-article address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.legal-article strong { color: var(--text); font-weight: 600; }
.legal-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.legal-crosslinks a {
  color: var(--muted-2);
  text-decoration: none;
}
.legal-crosslinks a:hover { color: var(--text); }

.site-foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.site-foot-legal a {
  color: var(--muted-2);
  text-decoration: none;
}
.site-foot-legal a:hover { color: var(--text); }

/* ───── Localized price display (filled from Paddle PricePreview) ───── */
.price-ready {
  color: inherit;
}
.price-failed {
  color: var(--muted-2);
}
.price-period {
  color: var(--muted);
  font-weight: 500;
}
.subscribe-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid rgba(8, 9, 15, 0.25);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: subscribe-spin 0.8s linear infinite;
}
@keyframes subscribe-spin {
  to { transform: rotate(360deg); }
}

/* ───── Subscribe CTA (pricing page) ───── */
.subscribe-cta {
  margin: 12px 0 28px;
}
.subscribe-btn {
  appearance: none;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}
.subscribe-btn:hover { transform: translateY(-1px); }
.subscribe-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.subscribe-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-2);
}
.subscribe-note.is-error { color: #ff8b7a; }
.subscribe-success {
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.subscribe-success h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.subscribe-success p {
  margin: 0 0 14px;
  color: var(--muted);
}
.subscribe-key-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.subscribe-key-label {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subscribe-key-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  word-break: break-all;
}

/* ───── Activated (post-checkout success) page ───── */
.activated-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(120% 120% at 50% -10%, rgba(120, 200, 255, 0.15), transparent 55%),
              radial-gradient(100% 100% at 50% 120%, rgba(140, 120, 255, 0.12), transparent 50%),
              var(--bg, #08090f);
  color: var(--text, #e8e9ee);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.activated-shell {
  width: 100%;
  max-width: 560px;
}

.activated-card {
  background: rgba(16, 18, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 40px 36px 32px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.activated-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #4ade80;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 70%);
  border-radius: 50%;
  animation: activatedCheckIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes activatedCheckIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.activated-card h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.activated-subhead {
  color: rgba(232, 233, 238, 0.72);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.activated-key-block {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.activated-key-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 233, 238, 0.55);
  margin-bottom: 8px;
}

.activated-key-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.activated-key-row code {
  flex: 1;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  word-break: break-all;
  user-select: all;
  color: #dce0ff;
  display: flex;
  align-items: center;
}

.activated-copy-btn,
.activated-download-btn {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  color: #0a0a0f;
  background: linear-gradient(180deg, #9fb4ff, #7a8cf0);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.activated-copy-btn:hover,
.activated-download-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.activated-copy-btn:active,
.activated-download-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.activated-copy-btn.is-success {
  background: linear-gradient(180deg, #6ee7a3, #4ade80);
}

.activated-copy-btn:disabled,
.activated-download-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.activated-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.activated-download-btn {
  background: transparent;
  color: rgba(232, 233, 238, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.activated-download-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.activated-warning {
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 236, 160, 0.95);
  text-align: left;
  margin-bottom: 24px;
}

.activated-warning strong {
  color: #ffd866;
  display: block;
  margin-bottom: 2px;
}

.activated-next {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-bottom: 22px;
}

.activated-step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: rgba(232, 233, 238, 0.82);
}

.activated-step span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(159, 180, 255, 0.18);
  color: #c7d0ff;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.activated-actions-primary {
  margin-bottom: 22px;
}

.activated-primary-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #0a0a0f;
  background: linear-gradient(180deg, #9fb4ff, #7a8cf0);
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(122, 140, 240, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.activated-primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(122, 140, 240, 0.45);
}

.activated-primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
  box-shadow: 0 4px 12px rgba(122, 140, 240, 0.3);
}

.activated-fallback {
  margin: 0 0 20px;
  text-align: left;
}

.activated-fallback summary {
  cursor: pointer;
  font-size: 12px;
  color: rgba(232, 233, 238, 0.55);
  list-style: none;
  padding: 6px 0;
  transition: color 0.15s ease;
  text-align: center;
}

.activated-fallback summary::-webkit-details-marker {
  display: none;
}

.activated-fallback summary:hover {
  color: rgba(232, 233, 238, 0.85);
}

.activated-fallback[open] summary {
  color: rgba(232, 233, 238, 0.85);
  margin-bottom: 10px;
}

.activated-fineprint {
  font-size: 12px;
  color: rgba(232, 233, 238, 0.52);
  margin: 0;
}

.activated-fineprint a {
  color: rgba(159, 180, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  .ambient-blob { animation: none; }
  .hero-window { transform: none; }
}

/* ───── Body lock when drawer open ───── */
body.drawer-open { overflow: hidden; }

/* ============================================================
   PRICING PAGE
   ============================================================ */

.pricing-main { position: relative; }

/* --- Hero --- */
.pricing-hero {
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  z-index: 1;
}
.pricing-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.pricing-hero .pill {
  margin: 0 auto 18px;
}
.pricing-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.pricing-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* --- Price card --- */
.price-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 32px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}
.price-card-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 140%;
  background:
    radial-gradient(60% 80% at 30% 0%, rgba(120, 200, 255, 0.22), transparent 60%),
    radial-gradient(50% 80% at 85% 10%, rgba(180, 120, 255, 0.18), transparent 60%);
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.9;
  z-index: 0;
}
.price-card > *:not(.price-card-glow) {
  position: relative;
  z-index: 1;
}

.price-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.price-amount {
  position: relative;
  display: inline-block;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #c9cfe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 4ch;
}
.price-amount:has(.price-loading)::before {
  content: "0000";
  visibility: hidden;
}
.price-amount[data-price-animate].price-ready {
  animation: price-reveal 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.price-amount.price-failed {
  color: var(--muted-2);
  background: none;
  -webkit-text-fill-color: currentColor;
}
@keyframes price-reveal {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.price-amount .price-loading {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.price-amount .price-loading i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: price-dot 1.2s ease-in-out infinite;
}
.price-amount .price-loading i:nth-child(2) { animation-delay: 0.15s; }
.price-amount .price-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes price-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-4px); opacity: 1; }
}
.price-period {
  font-size: 22px;
  color: var(--muted);
  font-weight: 500;
}
.price-per {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}
.price-locale {
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  font-feature-settings: "tnum";
}
.price-baseline {
  font-size: 12px;
  color: var(--muted-2);
  margin: 18px 0 0;
}

.price-card .subscribe-cta {
  margin: 18px 0 6px;
  display: flex;
  justify-content: center;
}
.price-card .subscribe-btn {
  width: 100%;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #e9ecf4);
  color: #0a0b12;
  box-shadow: 0 8px 20px -6px rgba(255, 255, 255, 0.25);
}
.price-card .subscribe-btn:hover { transform: translateY(-2px); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-strip svg {
  width: 14px;
  height: 14px;
  color: #7fd6a1;
}

/* --- Feature grid --- */
.pricing-included {
  padding: 80px 24px 40px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pricing-included-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.pricing-included-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.pricing-included-head .lede {
  color: var(--muted);
  margin: 0 auto;
  font-size: 16px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-card {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.feature-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 18px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* --- Philosophy strip --- */
.pricing-philosophy {
  padding: 60px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.philosophy-inner {
  max-width: 680px;
  margin: 0 auto;
}
.philosophy-inner .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 10px;
}
.philosophy-inner h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.philosophy-inner .lede {
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto;
}

/* --- Policy grid --- */
.pricing-policies {
  padding: 40px 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pricing-policies h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-align: center;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.policy-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.policy-ic {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 10px;
}
.policy-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.policy-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.policy-link {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.policy-link:hover {
  border-bottom-color: var(--text);
}

/* --- Team CTA --- */
.pricing-team {
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}
.team-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(120, 200, 255, 0.12), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(180, 120, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}
.team-inner .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 10px;
}
.team-inner h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.team-inner .lede {
  color: var(--muted);
  margin: 0 auto 22px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .pricing-hero { padding: 90px 18px 60px; }
  .price-card { padding: 28px 20px 24px; }
  .pricing-included, .pricing-policies { padding-left: 18px; padding-right: 18px; }
  .team-inner { padding: 36px 22px; }
}

/* ───── Checkout page ───── */
.checkout-hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkout-hdr-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.checkout-hdr-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.checkout-back:hover { color: var(--text); }

.checkout-main {
  position: relative;
  min-height: calc(100dvh - 66px);
  padding: 60px 22px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.checkout-intro {
  text-align: center;
  margin-bottom: 36px;
}
.checkout-intro .eyebrow {
  color: var(--muted-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
}
.checkout-intro h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.checkout-intro .lede {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto;
  font-size: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-summary,
.checkout-payment {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.checkout-summary-head h2,
.checkout-payment-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.checkout-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkout-product-logo {
  border-radius: 10px;
  flex-shrink: 0;
}
.checkout-product-body h3 {
  font-size: 16px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.checkout-product-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.checkout-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkout-price-amount {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #c9cfe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 3ch;
}
.checkout-price-amount:has(.price-loading)::before {
  content: "0000";
  visibility: hidden;
}
.checkout-price-amount .price-loading {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.checkout-price-amount .price-loading i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: price-dot 1.2s ease-in-out infinite;
}
.checkout-price-amount .price-loading i:nth-child(2) { animation-delay: 0.15s; }
.checkout-price-amount .price-loading i:nth-child(3) { animation-delay: 0.3s; }
.checkout-price-period {
  font-size: 15px;
  color: var(--muted);
}
.checkout-included {
  padding-top: 18px;
}
.checkout-included h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 12px;
  font-weight: 600;
}
.checkout-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout-included li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.checkout-included svg {
  width: 16px;
  height: 16px;
  color: #4ade80;
  flex-shrink: 0;
}

.checkout-frame-wrap {
  min-height: 460px;
}
.checkout-container {
  width: 100%;
}
.checkout-secure-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}
.checkout-error {
  margin: 14px 0 0;
  font-size: 14px;
  color: #f87171;
  text-align: center;
}

@media (max-width: 640px) {
  .checkout-main { padding: 40px 16px 30px; }
  .checkout-summary, .checkout-payment { padding: 20px; }
}
