/* Quitzilla site. Tokens follow the iOS app design system (see .ai/assets.md); edited directly, the build adds ?v= hashes. */
:root {
  --bg: #f9f9fc;
  --surface: #ffffff;
  --text: #0b0b0f;
  --muted: #6e6e73;
  --accent: #ff5269;
  --accent-strong: #d4304a; /* accent text on light backgrounds and fills behind white text, both at least 4.5:1 */
  --track: #e8ebf0;
  --line: #e6e7ee;
  --gold: #f5b300;
  --ink: #0b0b0f;
  --shadow: 0 10px 24px rgba(60, 70, 110, .08), 0 2px 6px rgba(60, 70, 110, .04);
  --shadow-lift: 0 24px 48px rgba(60, 70, 110, .14), 0 4px 12px rgba(60, 70, 110, .06);
  --radius-card: 24px;
  --radius-small: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; overflow-wrap: break-word; }
/* Long German and Dutch compounds break with a hyphen instead of overflowing narrow screens; short words stay whole */
:lang(de), :lang(nl) { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
/* Korean wraps at spaces between words, not between syllables, so 완전히 or 되찾은 stay whole */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { overflow-x: clip; }
input, button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 112px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 10px; font-size: clamp(34px, 4.6vw, 52px); }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 19px; font-weight: 500; }
.eyebrow { color: var(--accent-strong); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link { display: inline-block; margin-top: 16px; color: var(--accent-strong); font-weight: 600; }

/* Reveal on scroll (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(249, 249, 252, .8); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(11, 11, 15, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 22%; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(255, 82, 105, .35); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.button:hover { background: #c02841; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 82, 105, .42); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.button-small:hover { box-shadow: 0 8px 18px rgba(255, 82, 105, .3); }

/* Store badges: official artwork, equal visible height, proportions kept */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-badge { display: inline-block; border-radius: 10px; transition: transform .2s var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 50px; width: auto; }

/* Phone frame around raw 1320×2868 captures */
.phone { width: 320px; padding: 10px; border-radius: 54px; background: var(--ink); box-shadow: 0 40px 80px rgba(60, 70, 110, .22), 0 6px 16px rgba(60, 70, 110, .12), inset 0 0 0 1.5px #2b2f36; }
.phone img { width: 100%; border-radius: 44px; background: var(--surface); }
.phone-small { width: 230px; padding: 8px; border-radius: 40px; }
.phone-small img { border-radius: 33px; }
.phone-stack { display: grid; }
.phone-stack .stack-img { grid-area: 1 / 1; opacity: 0; transform: scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.phone-stack .stack-img.is-active { opacity: 1; transform: none; }

/* Habit icon: the app's glyph tinted with the habit colour */
.habit-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--habit) 14%, #fff); }
.glyph { display: block; width: 22px; height: 22px; background: var(--habit); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.blob { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.blob-coral { width: 720px; height: 720px; right: -120px; top: -220px; background: radial-gradient(closest-side, rgba(255, 82, 105, .26), rgba(255, 82, 105, 0)); }
.blob-blue { width: 620px; height: 620px; left: -260px; top: 25%; background: radial-gradient(closest-side, rgba(75, 123, 236, .16), rgba(75, 123, 236, 0)); animation-duration: 26s; animation-direction: alternate-reverse; }
.blob-gold { width: 520px; height: 520px; right: 28%; bottom: -260px; background: radial-gradient(closest-side, rgba(247, 204, 70, .22), rgba(247, 204, 70, 0)); animation-duration: 30s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; padding-block: 72px 112px; }
.hero h1 { margin-top: 18px; font-size: clamp(46px, 6.6vw, 82px); line-height: 1.01; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: #f0405a; }
.lead { margin-top: 24px; max-width: 32em; color: var(--muted); font-size: 20px; font-weight: 500; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-rating { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-rating a { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; text-decoration: none; }
.hero-rating a:hover { color: var(--text); }
.hero-rating .star { color: var(--gold); }
.hero-visual { position: relative; display: flex; justify-content: center; padding-block: 24px; }
.phone-float { animation: rise 1s .1s var(--ease) both, float 7s 1.2s ease-in-out infinite; }
.float-card { position: absolute; left: -2%; top: 20%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lift); animation: pop .8s .6s var(--ease) both, float 7s 1.6s ease-in-out infinite reverse; }
.float-card-text { display: grid; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 13px; font-weight: 600; }
.float-card strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.float-pill { position: absolute; right: 2%; bottom: 18%; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; transform: rotate(-4deg); box-shadow: var(--shadow-lift); animation: pop-tilt .8s .9s var(--ease) both; }

/* Calculator */
.calc { background: linear-gradient(180deg, var(--bg), #fff 18%, #fff 82%, var(--bg)); }
.calc-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 64px; }
.calc-visual { position: relative; }
.calc-visual::before { content: ""; position: absolute; inset: -12% -30%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--habit) 22%, transparent), transparent); transition: background .5s; }
.calc-panel { padding: 36px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-lift); }
.habit-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.habit-picker legend { padding: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .habit-icon { width: 32px; height: 32px; border-radius: 999px; }
.chip .glyph { width: 18px; height: 18px; }
.chip:has(input:checked) { border-color: var(--habit); background: color-mix(in srgb, var(--habit) 9%, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--habit) 22%, transparent); }
.chip:has(input:focus-visible) { outline: 3px solid var(--habit); outline-offset: 2px; }
.chips-more { margin-top: 14px; color: var(--muted); font-size: 15px; }
.calc-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; }
.field label { color: var(--muted); font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.field input:focus { outline: none; border-color: var(--habit); background: #fff; }
.field input[aria-invalid] { border-color: var(--accent-strong); background: #fff5f6; }
.field-error { color: var(--accent-strong); font-size: 14px; font-weight: 600; line-height: 1.35; }
.field-error:empty { display: none; }
.affix { position: relative; display: block; }
.affix-sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.affix input { padding-left: 34px; }
.calc-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
.calc-note.is-hidden { visibility: hidden; }
.calc-results { margin-top: 24px; }
.result-label { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.result-counter strong { display: block; margin-top: 2px; color: var(--habit); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: color .4s; }
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tile { padding: 16px; border-radius: var(--radius-small); background: var(--bg); }
.tile strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-goal { position: relative; padding-right: 64px; }
.tile-goal strong { font-size: 16px; line-height: 1.3; }
.ring { position: absolute; right: 14px; top: 50%; width: 42px; height: 42px; transform: translateY(-50%) rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-track { stroke: var(--track); }
.ring-value { stroke: var(--habit); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .6s var(--ease), stroke .4s; }
.result-year { min-height: 1.55em; margin-top: 16px; font-weight: 600; }
/* --habit-ink: the habit colour darkened by the build for white text at 4.5:1 */
.calc-form .button { margin-top: 24px; background: var(--habit-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--habit) 35%, transparent); }
.calc-form .button:hover { background: color-mix(in srgb, var(--habit-ink) 88%, #000); }
.calc-noscript p { color: var(--muted); }

/* Habit page calculator: the habit it is set to, and example rewards filled from the savings */
.calc-habit { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.calc-habit .habit-icon { width: 40px; height: 40px; border-radius: 999px; }
.rewards { margin-top: 20px; padding: 20px; border-radius: var(--radius-small); background: var(--bg); }
.rewards-heading { font-weight: 800; }
.rewards-text { margin-top: 2px; color: var(--muted); font-size: 14px; }
.reward-list { display: grid; gap: 14px; margin-top: 16px; }
/* Name, price and state share a line while they fit; otherwise price and state wrap below the name instead of overlapping */
.reward { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.reward-name { min-width: 0; font-weight: 700; }
.reward-price { flex: 1 0 auto; color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reward-state { margin-left: auto; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.reward.is-ready .reward-state { color: #11793f; }
.reward-bar { flex: 0 0 100%; order: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.reward-bar::after { content: ""; display: block; width: calc(var(--progress, 0) * 100%); height: 100%; border-radius: inherit; background: var(--habit); transition: width .6s var(--ease), background .3s; }
.reward.is-ready .reward-bar::after { background: #20bf6b; }
/* Time pages (nothing to spend): two fields and two tiles, and the app's goals on the way */
/* Two inputs and two tiles: a time page (no money) or a money page without time (minutes field hidden) */
.calc-form-two .fields, .calc-form-two .result-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-form-time .result-year:empty { display: none; }
/* No money and no time: only the date, the counter and the goal */
.calc-form-none .fields, .calc-form-none .result-tiles { grid-template-columns: minmax(0, 1fr); }
.goal-path { margin-top: 20px; padding: 20px; border-radius: var(--radius-small); background: var(--bg); }
.goal-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.goal { position: relative; isolation: isolate; overflow: hidden; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal.is-reached { background: var(--habit-ink); box-shadow: none; color: #fff; }
.goal.is-reached::before { content: "✓ "; }
.goal.is-next { box-shadow: inset 0 0 0 2px var(--habit); color: var(--text); }
.goal.is-next::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--progress, 0) * 100%); background: color-mix(in srgb, var(--habit) 22%, transparent); transition: width .6s var(--ease); }
.reclaim-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding: 0; list-style: none; }
.reclaim-list li { padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.reclaim-period { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.reclaim-value { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* How it works: scroll story */
.story { display: grid; grid-template-columns: minmax(0, 540px) auto; justify-content: center; gap: clamp(64px, 10vw, 140px); }
.story-steps { position: relative; display: grid; padding-left: 44px; }
.story-steps::before { content: ""; position: absolute; left: 6px; top: 18vh; bottom: 18vh; width: 2px; border-radius: 2px; background: var(--track); }
.story-step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 72vh; opacity: .28; transition: opacity .5s var(--ease); }
.story-step::before { content: ""; position: absolute; left: -44px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--track); transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step.is-active::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 82, 105, .18); transform: scale(1.15); }
.story-step h3 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 42px); }
.story-step p { margin-top: 16px; color: var(--muted); font-size: 20px; font-weight: 500; }
.step-num { color: var(--accent-strong); font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.story-inline { display: none; }
.story-sticky { position: sticky; top: max(96px, calc(50vh - 340px)); align-self: start; }
.story-sticky::before { content: ""; position: absolute; inset: -10% -35%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 82, 105, .16), transparent); }

/* Habit page features: alternating rows of a visual and its story */
.feature-list { display: grid; gap: 120px; max-width: 1040px; margin-inline: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.feature:nth-child(even) .feature-visual { order: 2; }
.feature-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; }
.feature-visual::before { content: ""; position: absolute; inset: -8% -12%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--habit) 16%, transparent), transparent); }
.feature .phone { width: 290px; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 42px); }
.feature-copy p { margin-top: 16px; color: var(--muted); font-size: 20px; font-weight: 500; }
.reasons-card { width: min(100%, 390px); padding: 22px 18px; text-align: left; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-lift); }
.reasons-title { padding-inline: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.reasons-list { display: grid; gap: 10px; margin-top: 14px; counter-reset: reason; }
.reasons-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg); font-weight: 600; line-height: 1.35; counter-increment: reason; }
.reasons-list li::before { content: counter(reason); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--habit) 12%, #fff); color: color-mix(in srgb, var(--habit) 70%, #000); font-size: 14px; font-weight: 800; }
.js .feature.reveal .reasons-list li { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 140ms + 250ms); }
.js .feature.reveal.is-visible .reasons-list li { opacity: 1; transform: none; }
.reasons-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.note-bubble { position: absolute; left: -6%; top: 27%; max-width: 270px; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); box-shadow: var(--shadow-lift); font-weight: 600; line-height: 1.4; text-align: left; animation: float 7s 1s ease-in-out infinite; }
.note-bubble small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }

/* Reviews and ratings */
.proof { background: #fff; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 20px; }
.rating-card { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 32px 20px; border-radius: var(--radius-card); background: var(--bg); text-align: center; }
.rating-store { font-weight: 700; }
.rating-value { font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.stars { background: linear-gradient(90deg, var(--gold) var(--fill, 100%), #d9dde3 var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 22px; letter-spacing: 3px; }
.rating-count { color: var(--muted); font-size: 15px; font-weight: 600; }
.nyt-card { position: relative; display: grid; align-content: center; gap: 16px; margin: 0; padding: 36px 40px; border-radius: var(--radius-card); background: var(--ink); color: #fff; overflow: hidden; }
.nyt-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 82, 105, .45), transparent); }
.nyt-label { color: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 600; }
.nyt-label em { color: #fff; font-family: Georgia, "Times New Roman", serif; font-style: normal; font-weight: 700; font-size: 18px; }
.nyt-card blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.nyt-card figcaption { color: rgba(255, 255, 255, .7); font-size: 14px; }
.nyt-card figcaption a { color: #fff; font-weight: 600; }
.review-feature blockquote { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: rgba(255, 255, 255, .82); }
.review-feature-title { margin-bottom: 12px; color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.proof-note { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
/* Reviews: a swipeable row by default; scroll by themselves only on hover screens with motion welcome (pause button in site.js) */
.marquee { margin-top: 56px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.marquee:focus-visible { outline-offset: -3px; }
.marquee-track { display: flex; width: max-content; }
.review-list { display: flex; gap: 20px; padding-inline: var(--gutter); }
.review-list[aria-hidden] { display: none; }
.review-card { display: grid; align-content: start; gap: 8px; width: 340px; padding: 24px 26px; border-radius: var(--radius-card); background: var(--bg); scroll-snap-align: start; }
.marquee-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 16px; }
.marquee-foot .proof-note { margin-top: 0; }
.marquee-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s; }
.marquee-toggle:hover { color: var(--text); border-color: #cfd1da; }
.marquee-icon { width: 10px; height: 11px; border-inline: 3.5px solid currentColor; }
.marquee-toggle.is-paused .marquee-icon { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 10px solid currentColor; border-right-width: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .marquee { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .js .marquee-track { animation: marquee 48s linear infinite; }
  .js .review-list { padding-inline: 0 20px; }
  .js .review-list[aria-hidden] { display: flex; }
  .js .marquee:hover .marquee-track, .js .marquee:focus-within .marquee-track, .js .marquee.is-paused .marquee-track { animation-play-state: paused; }
}
.stars-small { font-size: 16px; letter-spacing: 2px; }
.review-title { font-weight: 700; }
.review-quote { color: #3a3a40; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-list details { border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .2s; }
.faq-list details:hover { box-shadow: var(--shadow-lift); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-small); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); }

/* Download */
.download { padding-block: 24px 112px; }
.download-inner { position: relative; display: grid; justify-items: center; gap: 14px; padding: 80px 24px; border-radius: 40px; background: var(--ink); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.download-glow { position: absolute; left: 50%; top: -40%; z-index: -1; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 82, 105, .5), rgba(255, 82, 105, 0)); transform: translateX(-50%); animation: glow 6s ease-in-out infinite alternate; }
.download-icon { border-radius: 22%; box-shadow: 0 16px 40px rgba(255, 82, 105, .45); margin-bottom: 10px; }
.download h2 { font-size: clamp(34px, 4.6vw, 52px); }
.download p { color: rgba(255, 255, 255, .72); font-size: 19px; font-weight: 500; }
.download .store-badges { justify-content: center; margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 15px; }
/* The brand column keeps its width; long page names in other languages wrap instead */
.footer-inner { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 24px 48px; }
.footer-pages { grid-template-columns: auto; }
.footer-pages:empty { display: none; }
.footer-brand p { margin-top: 10px; }
.footer-brand .brand { color: var(--text); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; }
.footer-legal span { color: var(--text); font-weight: 600; margin-right: 6px; }

/* Language switch (shown once a second locale is enabled) */
.lang-switch { position: relative; }
.lang-switch summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* The list hangs from the sticky header, so the page cannot scroll it into view: on a short screen it scrolls itself */
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow); }
.lang-switch a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.lang-switch a[aria-current] { color: var(--accent-strong); font-weight: 700; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pop-tilt { from { opacity: 0; transform: translateY(18px) rotate(-4deg) scale(.94); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes glow { from { opacity: .7; transform: translateX(-50%) scale(.92); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }

@media (max-width: 1000px) {
  .story { display: block; }
  .story-sticky { display: none; }
  .story-steps { gap: 72px; padding-left: 0; }
  .story-steps::before, .story-step::before { display: none; }
  .story-step { min-height: 0; max-width: none; opacity: 1; align-items: center; text-align: center; }
  .story-step p { max-width: 30em; }
  .story-inline { display: block; margin-bottom: 28px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nyt-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* Anchor links leave the header before longer labels in other languages crowd it */
  .site-nav { display: none; }
  .header-inner > .brand { margin-right: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 72px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero .store-badges, .hero-rating a { justify-content: center; }
  /* The habit screen peeks out above the calculator, so picking a habit still changes it */
  .calc-grid { grid-template-columns: 1fr; gap: 0; }
  .calc-visual { display: flex; justify-content: center; height: 300px; overflow: hidden; }
  .calc-visual .phone { width: 220px; padding: 8px; border-radius: 40px; }
  .calc-visual .phone img { border-radius: 33px; }
  .calc-panel { position: relative; margin-top: -56px; }
  .fields, .result-tiles { grid-template-columns: 1fr 1fr; }
  .fields .field:first-child, .tile-goal { grid-column: 1 / -1; }
  .calc-form-two .fields .field:first-child, .calc-form-two .tile-goal { grid-column: auto; }
  .feature-list { gap: 88px; }
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-copy p { max-width: 30em; margin-inline: auto; }
  /* One centred column: the note overlaps the phone's left edge and stays on screen */
  .note-bubble { left: max(0px, calc(50% - 265px)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-block: 80px; }
  .header-inner { gap: 8px; }
  .button-small { padding: 0 16px; }
  .phone { width: 250px; border-radius: 44px; padding: 8px; }
  .phone img { border-radius: 37px; }
  .float-card { left: -4px; top: 12%; padding: 10px 14px 10px 10px; }
  .float-card strong { font-size: 16px; }
  .float-pill { right: -4px; bottom: 14%; font-size: 17px; padding: 10px 16px; }
  .store-badge img { height: 46px; }
  .calc-panel { padding: 24px 18px; border-radius: 26px; }
  .fields, .result-tiles, .calc-form-two .fields, .calc-form-two .result-tiles { grid-template-columns: 1fr; }
  .reclaim-list { grid-template-columns: 1fr; gap: 8px; }
  .reclaim-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .reclaim-value { margin-top: 0; font-size: 18px; }
  .tile strong { font-size: 20px; }
  .story-step p, .feature-copy p { font-size: 18px; }
  .feature .phone { width: 250px; }
  .note-bubble { left: 0; top: 26%; max-width: 220px; padding: 12px 14px; font-size: 15px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rating-card { padding: 24px 12px; }
  .rating-value { font-size: 48px; }
  .nyt-card { padding: 28px 24px; }
  .review-card { width: 290px; }
  .download-inner { padding: 64px 20px; border-radius: 32px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The narrowest phones: the icon stands for the brand, so a longer download label in other languages still fits */
@media (max-width: 374px) {
  .header-inner > .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
