/* Foxtation landing page. Design: Claude Design mockup "Foxtation — landing page". */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); }

:root {
  --ink: #151A33;
  --muted: #4B5170;
  --faint: #8A90AD;
  --page: #F5F7FF;
  --card: #FFFFFF;
  --lilac: #E6EAFF;
  --line: #DDE2FB;
  --indigo: #4A56E2;
  --periwinkle: #6C7BFF;
  --sun: #FFD66B;
  --cream: #FFF3CF;
  --on-dark: #C3C8E4;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;  /* a missing weight shows up as a bug, not a fake bold */
  overflow-x: clip;
}
main { overflow-x: clip; }
a { color: var(--indigo); }
a { text-decoration-thickness: from-font; text-underline-offset: 0.18em; }
::selection { background: var(--sun); color: var(--ink); }
h1, h2, h3, .footer .say { text-wrap: balance; }
.lede, .section-sub, .card p, .demo-copy p, .plan-name p, .install-copy p { text-wrap: pretty; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 999px; }
h1, h2, h3, p { margin: 0; }
code { font-family: var(--mono); }

.em { font-family: var(--serif); font-style: italic; color: var(--indigo); }
.section { max-width: 1120px; margin: 0 auto; padding: 128px 16px 0; }
.section-title { text-align: center; font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.035em; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.kbd { display: inline-block; padding: 0 8px; border: 1px solid #C9D0F5; border-bottom-width: 3px; border-radius: 8px; background: var(--card); font-family: var(--mono); font-size: 15px; color: var(--ink); }
.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid.tight { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .grid.tight { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.card.dark { background: var(--ink); color: #FFFFFF; }
.card.dark p { color: var(--on-dark); }
.card.cream { background: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px) scale(1.03); } }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-block { display: flex; margin-top: auto; min-height: 52px; font-size: 16px; }

/* Nav */
.nav-wrap { padding: 20px 16px 0; }
.nav {
  max-width: 1120px; margin: 0 auto; padding: 8px 8px 8px 20px;
  background: var(--card); border-radius: 999px;
  box-shadow: 0 1px 0 #E3E7FA, 0 8px 24px rgba(21, 26, 51, .06);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 999px; }
.nav-links .nav-cta { padding: 12px 20px; margin-left: 4px; background: var(--ink); color: #FFFFFF; font-weight: 700; }

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 16px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--periwinkle); }
.hero h1 { margin-top: 28px; font-weight: 800; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; }
.both { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -0.02em; color: var(--indigo); padding: 0 6px; background: var(--sun); border-radius: 18px; transform: rotate(-2deg); }
.hero-sub { margin-top: 18px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; color: var(--indigo); }
.lede { margin-top: 24px; max-width: 52ch; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 100%; }
.brew { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 14px; max-width: 100%; }
.brew code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt { color: var(--faint); }
.copy { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lilac); color: var(--indigo); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.copy[data-done] { background: var(--sun); color: var(--ink); }

/* Hero visual */
.stage { position: relative; width: 100%; max-width: 960px; margin-top: 72px; }
.blob { position: absolute; border-radius: 50%; }
.blob-a { left: -40px; top: -24px; width: 120px; height: 120px; background: var(--sun); opacity: .55; }
.blob-b { right: -30px; bottom: -30px; width: 180px; height: 180px; background: #C9D0FF; opacity: .6; }
.stage-card { position: relative; background: var(--card); border-radius: 32px; box-shadow: 0 2px 0 #E3E7FA, 0 30px 60px rgba(21, 26, 51, .08); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; text-align: left; }
.keybox { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.key { width: 148px; height: 112px; border-radius: 22px; background: var(--page); border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; transform: rotate(-4deg); }
.key b { font-size: 32px; line-height: 1; font-weight: 400; }
.key span { font-family: var(--mono); font-size: 14px; }
.key-status { position: relative; width: 148px; height: 36px; margin-top: 10px; }
.idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hold { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; opacity: 0; }
.bar { width: 5px; height: 28px; border-radius: 3px; background: var(--periwinkle); transform-origin: center; animation: wave .7s ease-in-out infinite; }
.bar.sun { background: var(--sun); }
.speech { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bubble { align-self: flex-start; min-height: 66px; background: var(--lilac); border-radius: 22px 22px 22px 6px; padding: 16px 20px; font-size: 20px; line-height: 1.6; font-weight: 500; }
.word { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--cream); }
.word.second { background: var(--periwinkle); color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 22px; margin-left: 4px; background: var(--ink); vertical-align: -4px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; }
.lang::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.lang.first { background: var(--cream); }
.lang.first::before { background: #E0A800; }
.lang.second { background: var(--lilac); }
.lang.second::before { background: var(--periwinkle); }
.lang-note { padding: 6px 12px; color: var(--muted); }
.sticker { position: absolute; right: 24px; top: -36px; width: 104px; height: 104px; border-radius: 50%; background: var(--sun); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(21, 26, 51, .12); }
.sticker b { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.sticker span { font-size: 12px; font-weight: 600; }

/* Steps */
.step-num { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; background: var(--lilac); color: var(--indigo); }
.step-num.cream { background: var(--cream); color: var(--ink); }
.step-num.peri { background: var(--periwinkle); color: var(--ink); }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

/* Demo */
.demo { background: var(--lilac); border-radius: 40px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.demo-copy { flex: 1 1 340px; min-width: 0; }
.demo-copy .tag { background: var(--card); color: var(--indigo); }
.demo-copy h2 { margin-top: 18px; font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
.demo-copy p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.demo-flow { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.heard { background: var(--card); border-radius: 24px; padding: 22px 24px; transform: rotate(-1.2deg); }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.heard p { margin-top: 8px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.strike { background-image: linear-gradient(var(--periwinkle), var(--periwinkle)); background-repeat: no-repeat; background-position: 0 55%; background-size: 100% 3px; opacity: .3; }
.arrow { align-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; }
.sent { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 22px 24px; transform: rotate(.8deg); }
.sent .label { color: var(--on-dark); }
.sent p { margin-top: 8px; font-size: 24px; line-height: 1.4; font-weight: 700; }

/* Stats */
.big { font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.big small { font-size: 28px; }
.stat { padding: 32px; gap: 10px; }

/* Pro */
.pro-head { text-align: center; }
.pro-head .tag { background: var(--sun); }
.pro-head h2 { margin: 18px auto 0; font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.035em; max-width: 20ch; }
.tone { padding: 24px; gap: 16px; }
.tone-head { display: flex; justify-content: space-between; align-items: center; }
.tone-head b { font-weight: 800; font-size: 22px; }
.tone-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.card.dark .tone-head span { color: var(--on-dark); }
.card .sample { border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.sample.lilac { background: var(--lilac); }
.sample.page { background: var(--page); }
.sample.cream { background: var(--cream); }
.card.dark .sample { background: #262C4D; border-radius: 14px; font-family: var(--mono); font-size: 15px; color: #FFFFFF; }
.term-prompt { color: #9AA4FF; }
.block-caret { display: inline-block; width: 8px; height: 16px; margin-left: 4px; background: #9AA4FF; vertical-align: -2px; }

/* The cards share the grid's rows (subgrid), so name, price, list and button
   line up across both whatever wraps. */
.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.plan { position: relative; min-width: 0; background: var(--card); border-radius: 32px; padding: 32px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 22px; }
/* Pro is a deep indigo card: on periwinkle (L 0.64) ink text had too small a
   lightness gap to read comfortably; near-white on L 0.33 is about 11:1. */
.plan.pro { background: oklch(0.33 0.12 274); color: oklch(0.985 0.005 274); }
.plan-name b { font-weight: 800; font-size: 22px; }
.plan-name p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan.pro .plan-name p, .plan.pro .price-alt, .plan.pro .billed { color: oklch(0.86 0.045 274); }
.plan.pro .billed a { color: oklch(0.985 0.005 274); }
.plan.pro .checks svg { stroke: var(--sun); }
.price { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.price small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 1px; }
.plan-sticker { position: absolute; right: 24px; top: -16px; padding: 8px 14px; background: var(--sun); color: var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; transform: rotate(4deg); }
.billed { font-size: 13px; text-align: center; font-weight: 500; color: var(--muted); }
.billed a { color: var(--ink); }

/* Extras */
.extra { gap: 12px; }
.extra h3 { margin-top: 4px; font-size: 22px; }
.extra p { font-size: 16px; }
.icon-dot { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lilac); }
.icon-dot.cream { background: var(--cream); }

/* Install */
.install { background: var(--ink); color: #FFFFFF; border-radius: 40px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.install-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.install-copy h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
.install-copy .em { color: #9AA4FF; }
.install-copy p { font-size: 17px; line-height: 1.55; color: var(--on-dark); }
.install-copy .btn { margin-top: 8px; padding: 0 26px; }
.install-steps { flex: 1.6 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.install-steps li { background: #1F2545; border-radius: 22px; padding: 20px 22px; display: flex; gap: 16px; }
.install-steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--periwinkle); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.install-steps .body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.install-steps p { margin-top: 4px; font-size: 17px; line-height: 1.45; }
.cmd { display: flex; align-items: center; gap: 8px; background: #10142A; border-radius: 12px; padding: 6px 6px 6px 14px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; padding: 6px 0; }
.cmd .copy { width: 36px; height: 36px; background: #262C4D; color: #9AA4FF; }

/* Footer */
.footer { max-width: 1120px; margin: 0 auto; padding: 112px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer .say { font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; }
.tapkey { display: inline-block; padding: 0 14px; border: 2px solid var(--ink); border-bottom-width: 6px; border-radius: 16px; background: var(--card); transform: rotate(-3deg); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.footer-links a { padding: 10px 2px; }
.credit { font-size: 14px; color: var(--muted); }

/* Lift on hover (pointer devices only) */
.lift { transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; }
@media (hover: hover) and (pointer: fine) {
  .lift:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 30px rgba(21, 26, 51, .10); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Motion. Hero loop 8 s: idle, hold ⌥ and speak, release, words land, rest. */
@keyframes keyPress { 0%, 10% { transform: rotate(-4deg) translateY(0); box-shadow: 0 8px 0 var(--ink); } 13%, 44% { transform: rotate(-4deg) translateY(6px); box-shadow: 0 2px 0 var(--ink); } 48%, 100% { transform: rotate(-4deg) translateY(0); box-shadow: 0 8px 0 var(--ink); } }
@keyframes holdVis { 0%, 11% { opacity: 0; transform: scale(.8); } 15%, 42% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes idleVis { 0%, 9% { opacity: 1; } 12%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes w1 { 0%, 47% { opacity: 0; transform: translateY(8px) scale(.9); } 51%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes w2 { 0%, 52% { opacity: 0; transform: translateY(8px) scale(.9); } 56%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes w3 { 0%, 57% { opacity: 0; transform: translateY(8px) scale(.9); } 61%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes bubble { 0%, 45% { opacity: .35; } 49%, 92% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes pop { 0%, 46% { transform: rotate(10deg) scale(.6); opacity: 0; } 52% { transform: rotate(-6deg) scale(1.15); opacity: 1; } 57%, 90% { transform: rotate(10deg) scale(1); opacity: 1; } 96%, 100% { transform: rotate(10deg) scale(.6); opacity: 0; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -14px); } }
/* Demo loop 6 s: fillers get struck, fade, the clean message arrives. */
@keyframes strike { 0%, 12% { background-size: 0% 3px; opacity: 1; } 28% { background-size: 100% 3px; opacity: 1; } 40%, 85% { background-size: 100% 3px; opacity: .3; } 95%, 100% { background-size: 0% 3px; opacity: 1; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes sentIn { 0%, 40% { opacity: 0; transform: rotate(.8deg) translateY(16px); } 50%, 88% { opacity: 1; transform: rotate(.8deg) translateY(0); } 96%, 100% { opacity: 0; transform: rotate(.8deg) translateY(16px); } }
@keyframes nudge { 0%, 36%, 100% { transform: translateY(0); } 42% { transform: translateY(6px); } 48% { transform: translateY(0); } }
@keyframes tap { 0%, 60%, 100% { transform: rotate(-3deg) translateY(0); border-bottom-width: 6px; } 70%, 80% { transform: rotate(-3deg) translateY(4px); border-bottom-width: 2px; } }

@media (prefers-reduced-motion: no-preference) {
  .key { animation: keyPress 8s ease-in-out infinite; }
  .hold { animation: holdVis 8s ease-in-out infinite; }
  .idle { animation: idleVis 8s ease-in-out infinite; }
  .w1 { animation: w1 8s cubic-bezier(.3, 1.4, .5, 1) infinite; }
  .w2 { animation: w2 8s cubic-bezier(.3, 1.4, .5, 1) infinite; }
  .w3 { animation: w3 8s cubic-bezier(.3, 1.4, .5, 1) infinite; }
  .bubble { animation: bubble 8s ease infinite; }
  .sticker { animation: pop 8s ease-out infinite; }
  .caret, .block-caret { animation: blink 1s steps(1) infinite; }
  .blob-a { animation: float 7s ease-in-out infinite; }
  .blob-b { animation: float 9s ease-in-out -3s infinite; }
  .strike { animation: strike 6s ease-in-out infinite; }
  .strike.later { animation-delay: .25s; }
  .sent { animation: sentIn 6s cubic-bezier(.3, 1.3, .5, 1) infinite; }
  .arrow { animation: nudge 6s ease-in-out infinite; }
  .tapkey { animation: tap 2.4s ease-in-out infinite; }
  /* Sections fade up softly as they come into view, tied to the scroll itself. */
  @supports (animation-timeline: view()) {
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; transform: scaleY(.6); }
  .hold { opacity: 1; }
  .idle { opacity: 0; }
  .btn, .lift { transition: none; }
}

/* Phones */
@media (max-width: 640px) {
  .nav { padding-left: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 48px; }
  .lede { font-size: 17px; }
  .brew { padding-left: 14px; font-size: 13px; }
  .stage { margin-top: 56px; }
  .stage-card { padding: 28px 20px; gap: 28px; }
  .bubble { font-size: 18px; }
  .sticker { right: 8px; top: -44px; width: 88px; height: 88px; }
  .sticker b { font-size: 26px; }
  .section { padding-top: 96px; }
  .grid.tight { grid-template-columns: 1fr; }
  .big { font-size: 52px; }
  .heard p { font-size: 18px; }
  .sent p { font-size: 21px; }
  .install-steps li { flex-direction: column; padding: 18px 16px; gap: 12px; }
  .cmd code { white-space: normal; overflow-wrap: break-word; font-size: 12px; }
  .footer { padding-top: 88px; }
}

/* 404 */
.lost { max-width: 640px; margin: 0 auto; padding: 120px 16px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lost h1 { font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.04em; }
.lost p { font-size: 19px; line-height: 1.55; color: var(--muted); }

/* Languages */
.section-sub { max-width: 640px; margin: 20px auto 0; text-align: center; font-size: 18px; line-height: 1.55; color: var(--muted); }
/* Three rows of language names, edge to edge. Each row holds its names four
   times; sliding it by half moves exactly two sets, so the loop has no seam.
   Without motion, only the first set shows, wrapped and centered. */
.lang-rows { width: 100vw; margin: 44px 0 0 calc(50% - 50vw); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.lang-row span { flex: none; margin: 0 10px 10px 0; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 17px; font-weight: 500; white-space: nowrap; }
.lang-row .lilac { background: var(--lilac); border-color: transparent; }
.lang-row .cream { background: var(--cream); border-color: transparent; }
.lang-row .again { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lang-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; animation: slide 60s linear infinite; }
  .lang-row.right { animation-direction: reverse; }
  .lang-row:nth-child(2) { animation-duration: 70s; }
  .lang-row span { margin-bottom: 0; }
  .lang-row .again { display: block; }
}

/* Pro plan: monthly and yearly price */
.price-block { display: flex; flex-direction: column; gap: 8px; }
.price-alt { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Plan footers sit at the bottom of both cards, so the two buttons line up. */
.plan-foot { align-self: start; display: flex; flex-direction: column; gap: 12px; }
.plan-foot .btn-block { margin-top: 0; }

/* Monthly / Yearly: native radios, so arrow keys and screen readers work and
   the price and button switch with CSS alone. */
.billing { margin: 56px auto 0; padding: 4px; border: 1px solid var(--line); display: flex; width: max-content; gap: 4px; border-radius: 999px; background: var(--card); }
.billing input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.billing input:checked + label { background: var(--ink); color: oklch(0.985 0.005 274); }
.billing input:focus-visible + label { outline: 2px solid var(--indigo); outline-offset: 2px; }
.billing .save { padding: 2px 7px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12px; }
#pro:has(#bill-year:checked) .when-month,
#pro:not(:has(#bill-year:checked)) .when-year { display: none; }
@media (prefers-reduced-motion: reduce) { .billing label { transition: none; } }

/* Privacy, Terms, Support: a readable column. */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 16px 0; }
.doc h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.04em; }
.doc .updated { margin-top: 14px; font-size: 16px; color: var(--muted); }
.doc h2 { margin-top: 52px; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.doc h3 { margin-top: 28px; font-weight: 700; font-size: 19px; line-height: 1.3; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc code { font-size: 15px; overflow-wrap: anywhere; }
.doc .summary { margin-top: 32px; padding: 6px 24px 22px; border-radius: 24px; background: var(--lilac); }
.doc details { margin-top: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.doc summary { cursor: pointer; padding: 18px 22px; font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-weight: 500; color: var(--indigo); }
.doc details[open] summary::after { content: "−"; }
.doc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.doc details summary:focus-visible { border-radius: 18px; }
.footer-small { padding-top: 96px; }

/* Hover states only where there's a pointer that hovers: on a phone a tap
   would leave them stuck. Order matters: buttons override the link color. */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--ink); }
  .btn-dark:hover { color: #FFFFFF; }
  .btn-sun:hover { color: var(--ink); }
  .nav-links a:hover { background: var(--page); }
  .nav-links .nav-cta:hover { background: var(--ink); color: #FFFFFF; }
  .copy:hover { background: #D9DFFF; }
  .cmd .copy:hover { background: #313863; }
  .lang-rows:hover .lang-row { animation-play-state: paused; }
}

/* Controls: no double-tap zoom delay, no text selection on tap-and-hold. */
a, button, label { touch-action: manipulation; }
button, .billing label { user-select: none; -webkit-user-select: none; }

/* In-page links (#pro, #install, #refunds) land with a little room above. */
[id] { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
