/* Metti website — plain CSS, no build step. Brand colors match src/ui/theme.ts. */
:root {
  --bg: #f6f6f8;
  --card: #ffffff;
  --ink: #0e0f12;
  --ink2: #3a3c44;
  --muted: #6b6e78;
  --hairline: #e6e6ec;
  --lime: #7cff3a;
  --lime-deep: #3fa615;
  --purple: #7a00ff;
  --purple-deep: #240b5e;
  --purple-ink: #14062f;
  --soft: #efe6ff;
  --radius: 28px;
  --max: 1120px;
  --shadow: 0 20px 60px rgba(20, 6, 47, 0.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0f;
    --card: #16171e;
    --ink: #f3f4f7;
    --ink2: #c9cbd3;
    --muted: #9a9daa;
    --hairline: #262833;
    --soft: #1d1433;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-store { min-width: 230px; }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; line-height: 1; }
.btn-store span { display: block; text-align: left; line-height: 1.15; }
.btn[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--purple); font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #b98bff; } }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -2.5px; font-weight: 900; margin: 18px 0 18px; }
h1 .hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); color: var(--ink); }
@media (prefers-color-scheme: dark) { h1 .hl { background: none; color: var(--lime); } }
.lede { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .metti-peek { position: absolute; width: 150px; left: -10px; bottom: 30px; filter: drop-shadow(0 16px 30px rgba(122, 0, 255, 0.35)); transform: rotate(-8deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-visual .metti-peek { width: 110px; left: 4%; }
}

/* Phone frame around real app screenshots */
.phone { width: 300px; border-radius: 52px; padding: 11px; background: #0b0b0f; box-shadow: var(--shadow), inset 0 0 0 2px #2a2a33; position: relative; }
.phone img { border-radius: 42px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: #f6f6f8; }
.phone.big { width: 330px; }
@media (max-width: 420px) { .phone, .phone.big { width: 260px; } }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -1.6px; font-weight: 900; margin: 0 0 14px; }
h3 { font-size: 22px; letter-spacing: -0.4px; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); font-size: 19px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 900; margin-bottom: 18px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(30px, 3.8vw, 44px); }
.feature-copy p { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.feature-visual { display: flex; justify-content: center; position: relative; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314062F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pro-tag { display: inline-block; background: var(--lime); color: var(--purple-ink); font-size: 12px; font-weight: 900; letter-spacing: 1px; padding: 3px 9px; border-radius: 8px; vertical-align: middle; margin-left: 8px; }
.mascot-float { position: absolute; width: 120px; right: 4%; top: 6%; transform: rotate(8deg); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2)); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .feature.flip .feature-copy { order: 0; }
}

/* Trust band */
.trust { background: var(--purple-ink); color: #fff; border-radius: 36px; padding: 56px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust h3 { color: var(--lime); }
.trust p { margin: 0; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; padding: 40px 26px; } }

/* Pricing */
.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px; margin: 0 auto 32px; }
.toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 15px; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.best { border-color: var(--purple); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; right: 22px; background: var(--lime); color: var(--purple-ink); font-weight: 900; font-size: 12px; letter-spacing: 1px; padding: 5px 10px; border-radius: 9px; }
.price { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; margin: 8px 0 2px; }
.price small { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.per { color: var(--muted); font-size: 15px; min-height: 24px; margin-bottom: 18px; }
.plan .ticks { margin-top: 6px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); color: #fff; border-radius: 40px; padding: 64px 24px; position: relative; overflow: hidden; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.8); font-size: 19px; margin: 0 0 28px; }
.final img { width: 140px; margin: 0 auto 18px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35)); }
.final .btn-dark { background: #fff; color: var(--purple-ink); }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
.disclaimer { width: 100%; font-size: 13px; line-height: 1.5; margin-top: 8px; }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); letter-spacing: -1.6px; }
.doc h2 { font-size: 26px; letter-spacing: -0.5px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink2); }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .card { background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: 22px 26px; margin: 18px 0; }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }
}

/* "Secured by Plaid" line and section */
.secured { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.secured strong { color: var(--ink); }
.lock { width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .secured { justify-content: center; } }
.plaid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--hairline); border-radius: 36px; padding: 48px; }
.plaid h2 { margin-top: 16px; }
.plaid > div > p { color: var(--muted); font-size: 19px; margin: 0 0 20px; }
.plaid-card { background: var(--bg); border: 1px solid var(--hairline); border-radius: 26px; padding: 26px; text-align: center; }
.plaid-row { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--hairline); font-weight: 800; }
.plaid-row.strong { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plaid-row .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); }
.plaid-row .dot.bank { background: var(--purple); }
.plaid-line { width: 2px; height: 22px; margin: 0 auto; background: repeating-linear-gradient(var(--muted) 0 4px, transparent 4px 8px); }
.plaid-card p { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
@media (max-width: 860px) { .plaid { grid-template-columns: 1fr; padding: 32px 22px; } }

.nav-links a.btn { color: var(--bg); }
@media (max-width: 860px) { .mascot-float { width: 84px; right: 2%; top: 2%; } }

/* "Snap it. Done." — scanner → result illustration, Cal AI style */
.snap-demo { gap: 0; align-items: center; min-height: 560px; }
.phone.mini { width: 236px; border-radius: 42px; padding: 9px; }
.phone .screen { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 1206 / 2622; background: #111 center / cover no-repeat; color: #fff; font-size: 11px; }
.scan-phone { transform: rotate(-4deg); z-index: 1; }
.result-phone { transform: rotate(3deg) translateY(36px); margin-left: -18px; z-index: 2; }
.snap-demo .arrow { width: 96px; color: var(--ink); margin: 0 -10px 0 -6px; transform: translateY(-120px) rotate(8deg); z-index: 3; flex: none; }
.sb { position: absolute; top: 12px; left: 22px; font-weight: 700; font-size: 12px; color: var(--ink); }
.sb.dark { color: #fff; }
.top-btns { position: absolute; top: 40px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.top-btns span { width: 28px; height: 28px; border-radius: 50%; background: rgba(30, 30, 34, 0.6); display: grid; place-items: center; font-weight: 800; }
.frame { position: absolute; left: 12%; right: 12%; top: 19%; height: 50%; }
.frame i { position: absolute; width: 30px; height: 30px; border: 3px solid #fff; }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scanline { position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 16px 4px rgba(124, 255, 58, 0.7); }
.modes { position: absolute; bottom: 74px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.modes span { background: rgba(40, 40, 44, 0.7); border-radius: 12px; padding: 9px 10px; font-weight: 700; font-size: 10px; }
.modes .on { background: #fff; color: #0e0f12; }
.shutter-row { position: absolute; bottom: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.shutter-row .side { width: 30px; height: 30px; border-radius: 50%; background: rgba(40, 40, 44, 0.7); display: grid; place-items: center; font-size: 12px; }
.shutter { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: inset 0 0 0 4px #000, inset 0 0 0 30px #fff; }
.screen.light { background: #f6f6f8; color: #0e0f12; }
.result-phone .photo { position: relative; height: 42%; background: center 30% / cover no-repeat; }
.result-phone .photo .sb { color: #fff; }
.tag { position: absolute; background: #fff; color: #0e0f12; border-radius: 10px; padding: 5px 8px; font-weight: 800; font-size: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); white-space: nowrap; }
.tag b { color: var(--purple); }
.tag.t1 { top: 34%; left: 8%; }
.tag.t2 { top: 58%; right: 6%; }
.tag.t3 { top: 78%; left: 14%; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 38%; background: #fff; border-radius: 22px 22px 0 0; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.sheet .kicker { font-size: 9px; font-weight: 800; letter-spacing: 0.6px; color: #6b6e78; text-transform: uppercase; }
.sheet .title { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; margin-top: -6px; }
.sheet .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sheet .cell { border: 1px solid #e6e6ec; border-radius: 12px; padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; }
.sheet .cell span { font-size: 9px; color: #6b6e78; font-weight: 600; }
.sheet .cell b { font-size: 12px; }
.sheet .left { background: #ecffe0; color: #1f6b0c; border-radius: 12px; padding: 8px; font-size: 10px; font-weight: 700; display: flex; justify-content: space-between; }
.sheet .actions { margin-top: auto; display: flex; gap: 7px; }
.sheet .actions span { flex: 1; text-align: center; border-radius: 999px; padding: 9px 0; font-weight: 800; font-size: 11px; }
.sheet .ghost { border: 1px solid #e6e6ec; }
.sheet .save { background: #0e0f12; color: #fff; }
@media (max-width: 560px) {
  .snap-demo { min-height: 0; transform: scale(0.82); margin: -40px 0; }
  .phone.mini { width: 200px; }
  .snap-demo .arrow { display: none; }
  .result-phone { margin-left: -40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scanline { animation: scan 2.4s ease-in-out infinite; }
  @keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }
  .snap-demo.play .tag, .snap-demo.play .sheet .cell, .snap-demo.play .left { animation: pop 0.5s both cubic-bezier(0.2, 1.4, 0.4, 1); }
  .snap-demo.play .t1 { animation-delay: 0.5s; } .snap-demo.play .t2 { animation-delay: 0.7s; } .snap-demo.play .t3 { animation-delay: 0.9s; }
  .snap-demo.play .cell:nth-child(1) { animation-delay: 1.1s; } .snap-demo.play .cell:nth-child(2) { animation-delay: 1.25s; }
  .snap-demo.play .cell:nth-child(3) { animation-delay: 1.4s; } .snap-demo.play .cell:nth-child(4) { animation-delay: 1.55s; }
  .snap-demo.play .left { animation-delay: 1.8s; }
  @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
}

/* Hero headline, Cal AI style: bold "Meet Metti", lighter promise underneath */
h1 .meet { display: block; font-weight: 900; }
h1 .promise { display: block; font-weight: 600; font-size: 0.86em; letter-spacing: -1.8px; line-height: 1.1; margin-top: 8px; }
.scan-phone .screen { background-size: auto 60%; background-position: 50% 42%; background-color: #4a3b2e; }

.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 900px) { .plans.two { grid-template-columns: 1fr; max-width: 460px; } }

/* "Claim your 3-day free trial" pop-up, Cal AI style */
html:has(dialog.trial[open]) { overflow: hidden; }
.cta-link { font-weight: 800; font-size: 15px; color: var(--purple); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .cta-link { color: #b98bff; } }
.cta-link[hidden], .trial [hidden] { display: none; }
dialog.trial { border: 0; padding: 26px 24px 24px; border-radius: 34px; background: var(--card); color: var(--ink); width: min(430px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; text-align: center; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
dialog.trial::backdrop { background: rgba(14, 15, 18, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.trial-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
.trial-x:hover { background: var(--bg); }
.trial-x svg { width: 22px; height: 22px; }
.trial-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 28px; letter-spacing: -0.8px; }
.trial-brand img { width: 40px; height: 40px; border-radius: 11px; }
.trial-phones { display: flex; justify-content: center; margin: 18px 0 20px; }
.phone.tiny { width: 108px; border-radius: 24px; padding: 5px; box-shadow: 0 12px 30px rgba(20, 6, 47, 0.22), inset 0 0 0 1.5px #2a2a33; }
.phone.tiny img { border-radius: 19px; }
.trial-phones .phone.tiny:first-child { transform: rotate(-5deg); z-index: 1; }
.trial-phones .phone.tiny:last-child { transform: rotate(4deg) translateY(10px); margin-left: -6px; }
.trial h2 { font-size: 25px; line-height: 1.15; letter-spacing: -0.4px; text-transform: uppercase; margin: 0 auto 10px; max-width: 300px; }
.trial-sub { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 0 18px; }
.trial input[type="email"] { width: 100%; height: 58px; border-radius: 999px; border: 1.5px solid var(--hairline); background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; padding: 0 24px; }
.trial input[type="email"]::placeholder { color: var(--muted); }
.trial input[type="email"]:focus-visible, .trial .btn:focus-visible, .trial-x:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.trial-error { color: #c0231c; font-size: 14px; font-weight: 700; margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .trial-error { color: #ff8f88; } }
.trial-fine { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 14px 4px 16px; }
.trial .btn { width: 100%; height: 60px; }
.trial .btn[disabled] { opacity: 0.6; cursor: default; }
.trial-done img { width: 120px; margin: 18px auto 14px; }
.trial-done .btn + .btn { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-height: 740px) { .phone.tiny { width: 78px; border-radius: 18px; padding: 4px; } .phone.tiny img { border-radius: 14px; } .trial-phones { margin: 12px 0 14px; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.trial[open] { animation: trial-in 0.3s cubic-bezier(0.2, 1.2, 0.4, 1); }
  dialog.trial[open]::backdrop { animation: trial-fade 0.3s ease; }
  @keyframes trial-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
  @keyframes trial-fade { from { opacity: 0; } }
}

/* Waitlist form that sits right on the page (no click needed) */
.waitlist { max-width: 520px; margin-top: 4px; }
.waitlist[hidden], .waitlist [hidden], [data-waitlist-fallback][hidden] { display: none; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input[type="email"] { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: 1.5px solid var(--hairline); background: var(--card); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; padding: 0 22px; }
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus-visible, .waitlist .btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.waitlist .btn { flex: none; }
.waitlist .btn[disabled] { opacity: 0.6; cursor: default; }
.waitlist-fine { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 10px 6px 0; }
.waitlist-error { color: #c0231c; font-size: 14px; font-weight: 700; margin: 10px 6px 0; }
@media (prefers-color-scheme: dark) { .waitlist-error { color: #ff8f88; } }
.waitlist-done { font-weight: 800; font-size: 18px; margin: 0; padding: 16px 20px; border-radius: 20px; background: var(--soft); outline: none; }
.hero .waitlist { margin-bottom: 18px; }
@media (max-width: 900px) { .hero .waitlist { margin-left: auto; margin-right: auto; } }
@media (max-width: 520px) { .waitlist-row { flex-direction: column; } .waitlist input[type="email"] { flex: none; width: 100%; text-align: center; } .waitlist .btn { width: 100%; } }
/* On the purple panels */
.final .waitlist, .post-cta .waitlist { margin: 0 auto; text-align: center; }
.final .waitlist input[type="email"], .post-cta .waitlist input[type="email"] { background: #fff; color: #14062f; border-color: transparent; }
.final .waitlist input[type="email"]::placeholder, .post-cta .waitlist input[type="email"]::placeholder { color: #6b6e78; }
.final .waitlist-fine, .post-cta .waitlist-fine { color: rgba(255, 255, 255, 0.75); font-size: 13px; margin: 10px 6px 0; }
.final .waitlist-error, .post-cta .waitlist-error { color: #ffd0cc; font-size: 14px; margin: 10px 6px 0; }
.final .waitlist-done, .post-cta .waitlist-done { background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 18px; margin: 0; }
.final .waitlist input[type="email"]:focus-visible, .post-cta .waitlist input[type="email"]:focus-visible, .post-cta .waitlist .btn:focus-visible, .final .waitlist .btn:focus-visible { outline-color: var(--lime); }

/* Blog: the list of articles */
.blog-head { text-align: center; padding: 64px 20px 20px; }
.blog-head h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.04; letter-spacing: -1.8px; margin: 16px 0 12px; }
.blog-head .sub { max-width: 620px; margin: 0 auto; }
.post-list { max-width: 900px; margin: 0 auto; padding: 24px 20px 24px; display: grid; gap: 20px; }
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--hairline); border-radius: 28px; padding: 14px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-pic { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 25px; line-height: 1.18; letter-spacing: -0.5px; margin: 0 0 8px; }
.post-card p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.post-card > div:last-child { padding: 4px 10px 4px 0; }
.post-meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.blog-cta { max-width: 900px; padding-bottom: 20px; }
@media (max-width: 700px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card > div:last-child { padding: 0 8px 8px; }
  .post-card h2 { font-size: 23px; }
}

/* Blog: one article */
.post { max-width: 780px; margin: 0 auto; padding: 36px 20px 40px; }
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post h1 { font-size: clamp(34px, 5.8vw, 54px); line-height: 1.06; letter-spacing: -1.4px; margin: 14px 0 14px; }
.post > .post-meta { margin: 0 0 22px; }
.post-hero { margin: 0 0 26px; }
.post-hero img { width: 100%; height: auto; border-radius: 28px; }
.post figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.answer { background: var(--soft); border-radius: 24px; padding: 20px 24px; margin: 0 0 18px; }
.answer strong, .toc strong { display: block; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .answer strong, .toc strong { color: #b98bff; } }
.answer p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.toc { background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 18px 24px; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; color: var(--muted); }
.toc a { text-decoration: none; font-weight: 600; color: var(--ink2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.post-body { font-size: 18px; line-height: 1.72; }
.post-body > p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink); margin-top: 28px; }
.post-body p, .post-body li { color: var(--ink2); }
.post-body li { margin: 8px 0; }
.post-body strong { color: var(--ink); }
.post-body h2 { font-size: clamp(26px, 4.2vw, 32px); line-height: 1.18; letter-spacing: -0.7px; margin: 52px 0 12px; scroll-margin-top: 84px; color: var(--ink); }
.post-body h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.3px; margin: 30px 0 6px; color: var(--ink); }
.post-body a { color: var(--purple); font-weight: 700; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .post-body a { color: #b98bff; } }
.post-body blockquote { margin: 30px 0; padding: 6px 0 6px 22px; border-left: 5px solid var(--lime-deep); font-size: clamp(22px, 3.6vw, 27px); line-height: 1.3; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.real-talk { background: var(--card); border: 1px solid var(--hairline); border-left: 5px solid var(--purple); border-radius: 18px; padding: 16px 20px; }
.formula { background: var(--purple-ink); border-radius: 20px; padding: 20px 22px; text-align: center; font-size: 18px; }
.post-body .formula, .post-body .formula strong { color: #fff; }
.pic, .shot, .bars { margin: 34px 0; }
.pic img { width: 100%; height: auto; border-radius: 24px; }
.shot { text-align: center; }
.shot .phone { width: min(250px, 66vw); margin: 0 auto; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; margin: 22px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.post-body th, .post-body td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink2); }
.post-body th { font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body td:last-child:not(:only-child) { white-space: nowrap; }
.post-body table:has(th:nth-child(3)) td:last-child { white-space: normal; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.stat-row > div { background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px 12px; text-align: center; }
.stat-row b { display: block; font-size: clamp(24px, 5vw, 36px); line-height: 1.1; letter-spacing: -1px; color: var(--ink); }
.stat-row span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.stat-row .hl { background: var(--purple-ink); border-color: transparent; }
.stat-row .hl b { color: var(--lime); }
.stat-row .hl span { color: rgba(255, 255, 255, 0.8); }
.bars { background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 22px 22px 16px; }
.bar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 4px 12px; margin: 0 0 14px; }
.bar-label { font-size: 15px; font-weight: 700; color: var(--ink2); }
.bar-fill { height: 18px; width: var(--w); min-width: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), #b06bff); }
.bar b { grid-column: 2; font-size: 16px; color: var(--ink); }
.post-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 36px; }
.post-body .faq { margin-top: 8px; }
.post-body .faq details p { font-size: 17px; }

.post-cta { text-align: center; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); color: #fff; border-radius: 36px; padding: 40px 24px 36px; margin: 44px 0 0; scroll-margin-top: 84px; }
.post-cta > img { width: 110px; margin: 0 auto 12px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35)); }
.post-cta h2 { color: #fff; font-size: clamp(26px, 4.6vw, 34px); line-height: 1.12; letter-spacing: -0.8px; margin: 0 0 10px; }
.post-cta > p { color: rgba(255, 255, 255, 0.82); font-size: 17px; max-width: 520px; margin: 0 auto 22px; }
.post-cta .btn-dark { background: #fff; color: var(--purple-ink); }
.post-cta .waitlist-fine a { color: #fff; }

.related { margin-top: 52px; }
.related h2 { font-size: 26px; letter-spacing: -0.5px; margin: 0 0 16px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: 10px 10px 16px; height: 100%; }
.related a:hover { box-shadow: var(--shadow); }
.related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.related b { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -0.3px; padding: 0 6px; }
.related span { display: block; font-size: 14px; color: var(--muted); padding: 4px 6px 0; }
@media (max-width: 600px) { .related ul { grid-template-columns: 1fr; } .stat-row { gap: 8px; } .stat-row > div { padding: 14px 6px; } }
