/* Apple-style marketing page. System font stack: SF Pro on Apple devices, platform UI font elsewhere. */
:root {
  --teal: #35cbab;
  --blue: #2f7fb0;
  --navy: #36567d;
  --orange: #ff9152;
  --ai-1: #54ff9b;
  --ai-2: #44f2ef;

  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #1f8f9e;          /* links & primary buttons, AA on white */
  --accent-hover: #177480;
  --shadow: 0 2px 6px rgb(0 0 0 / .04), 0 18px 40px -12px rgb(0 0 0 / .14);
  --radius: 28px;
  --heat-0: #e8e8ed;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1f;
    --bg-tint: #262629;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #48484a;
    --accent: #4fd1c5;
    --accent-hover: #7ee0d7;
    --shadow: 0 2px 6px rgb(0 0 0 / .5), 0 24px 50px -16px rgb(0 0 0 / .8);
    --heat-0: #3a3a3c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.47 var(--font); letter-spacing: -.022em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -.04em; }
h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 44px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5em; background: linear-gradient(90deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker-ai { background-image: linear-gradient(90deg, var(--ai-1), var(--ai-2)); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--muted); max-width: 42em; font-weight: 400; }
.grad { background: linear-gradient(95deg, var(--teal) 10%, var(--blue) 55%, var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { font-size: .9rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 980px; font-weight: 500; font-size: 1.05rem; color: #fff; background: var(--accent); transition: background .2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn { color: #000; } }
.btn-small { padding: 5px 13px; font-size: .8rem; }
.btn-full { width: 100%; margin-top: 8px; }

/* NAV — thin, translucent, like apple.com */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 6px 10px; color: var(--text); opacity: .8; font-size: .8rem; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--text); opacity: .8; font-size: .8rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { opacity: 1; background: var(--bg-tint); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: grid; }
.lang-menu a { padding: 8px 12px; border-radius: 8px; font-size: .92rem; color: var(--text); }
.lang-menu a:hover { background: var(--bg-tint); text-decoration: none; }
.lang-menu a[aria-current] { font-weight: 600; color: var(--accent); }

/* iPHONE MOCKUP
   Screenshots are 920×2000 (≈ iPhone 15/16 ratio). The frame is sized from --w so bezel,
   corner radius and Dynamic Island scale together. */
.iphone { --w: 290px; width: var(--w); margin: 0; flex: none; position: relative; }
.iphone-frame { position: relative; padding: calc(var(--w) * .038); border-radius: calc(var(--w) * .175); background: #0b0b0c;
  box-shadow: inset 0 0 0 calc(var(--w) * .006) #4a4a4e, inset 0 0 0 calc(var(--w) * .014) #1d1d1f, 0 50px 90px -40px rgb(0 0 0 / .55), 0 30px 50px -30px rgb(0 0 0 / .35); }
.iphone-frame img { width: 100%; aspect-ratio: 920 / 2000; object-fit: cover; border-radius: calc(var(--w) * .14); background: #000; }
.iphone-frame::after { /* Dynamic Island */ content: ''; position: absolute; top: calc(var(--w) * .065); left: 50%; translate: -50% 0; width: calc(var(--w) * .3); height: calc(var(--w) * .088); border-radius: 999px; background: #000; }
.iphone::before, .iphone::after { /* side buttons */ content: ''; position: absolute; width: calc(var(--w) * .012); background: #2a2a2d; border-radius: 2px; }
.iphone::before { left: calc(var(--w) * -.01); top: 22%; height: 7%; box-shadow: 0 calc(var(--w) * .2) 0 #2a2a2d; }
.iphone::after { right: calc(var(--w) * -.01); top: 27%; height: 11%; }

/* HERO */
.hero { padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero-copy { display: grid; justify-items: center; }
.hero-copy .lead { margin-inline: auto; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; }
.stores img { height: 48px; width: auto; }
.stores img.gp { height: 68px; margin: -10px -9px; } /* Google's badge ships with built-in padding */
.stores a { border-radius: 10px; transition: transform .2s; }
.stores a:hover { transform: scale(1.03); }
.stores-center { justify-content: center; }
.hero-phones { --p: 0; display: flex; justify-content: center; align-items: flex-end; margin: 72px auto 0; padding-bottom: 20px; perspective: 1400px; }
.hero-phones .iphone-main { --w: min(330px, 70vw); z-index: 2; transform: translateY(calc(var(--p) * -24px)) scale(calc(1 + var(--p) * .04)); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-phones .iphone-side { --w: min(270px, 56vw); }
.iphone-left { margin-right: calc(-90px + var(--p) * 60px); transform: translateY(calc(60px - var(--p) * 30px)) rotate(calc(-2deg - var(--p) * 6deg)); animation: rise-side 1.2s .15s cubic-bezier(.2,.8,.2,1) both; }
.iphone-right { margin-left: calc(-90px + var(--p) * 60px); transform: translateY(calc(60px - var(--p) * 30px)) rotate(calc(2deg + var(--p) * 6deg)); animation: rise-side 1.2s .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; translate: 0 120px; } }
@keyframes rise-side { from { opacity: 0; translate: 0 180px; } }
.hero-copy > * { animation: fade-up .9s cubic-bezier(.2,.8,.2,1) 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; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
.hero-stats { list-style: none; padding: 0; margin: 56px auto 0; display: flex; justify-content: center; gap: clamp(32px, 8vw, 96px); }
.hero-stats li { display: grid; }
.hero-stats strong { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.hero-stats span { color: var(--muted); font-size: .92rem; }

/* LANGUAGES — static flag grid, chips pop in one after another */
.flags { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flags li { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .05); white-space: nowrap; font-size: .92rem; font-weight: 500;
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .5s ease, transform .6s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--i, 0) * 28ms); }
.flags.in li { opacity: 1; transform: none; }
.flags li:hover { transform: translateY(-3px) scale(1.04); transition-delay: 0s; }
.flags img { width: 28px; height: 28px; border-radius: 50%; }

/* SECTIONS */
.section { padding: 130px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head .lead { margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.split > *, .modes-layout > * { min-width: 0; }
.split-rev { grid-template-columns: auto 1fr; }
.split .iphone { --w: 300px; }

/* PHASES */
.phases { list-style: none; padding: 0; margin: 36px 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.phases li { display: grid; gap: 2px; text-align: center; }
.ph-bar { height: 150px; display: flex; align-items: flex-end; border-radius: 14px; background: var(--bg-tint); overflow: hidden; margin-bottom: 8px; }
.ph-bar::after { content: ''; width: 100%; height: var(--h); border-radius: 14px; background: linear-gradient(0deg, var(--teal), var(--blue) 75%, var(--navy)); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.phases.in .ph-bar::after { transform: scaleY(1); }
.phases li:nth-child(2) .ph-bar::after { transition-delay: .08s; }
.phases li:nth-child(3) .ph-bar::after { transition-delay: .16s; }
.phases li:nth-child(4) .ph-bar::after { transition-delay: .24s; }
.phases li:nth-child(5) .ph-bar::after { transition-delay: .32s; }
.phases li:nth-child(6) .ph-bar::after { transition-delay: .40s; }
.phases strong { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.phases small { color: var(--muted); font-size: .76rem; line-height: 1.25; }

/* MODES */
.modes-layout { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.modes-layout .iphone { --w: 280px; }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mode { background: var(--surface); border-radius: 22px; padding: 22px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; color: var(--text); }
.mode:hover { transform: scale(1.02); box-shadow: var(--shadow); text-decoration: none; }
.mode h3 { margin-bottom: .25em; }
.mode p { color: var(--muted); font-size: .92rem; margin: 0; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-ai { background: #0f0f11; color: #f5f5f7; }
.mode-ai p { color: #a1a1a6; }

/* AI — black section like Apple's "Pro" pages */
.section-dark { background: #0f0f11; color: #f5f5f7; }
.section-dark .lead { color: #a1a1a6; }
.ai-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; }
.ai-item { margin: 0; display: grid; justify-items: center; text-align: center; gap: 28px; }
.ai-item .iphone { --w: min(290px, 78vw); }
.ai-item .iphone-frame { background: #1a1a1c; box-shadow: inset 0 0 0 calc(var(--w) * .006) #5a5a5e, inset 0 0 0 calc(var(--w) * .014) #2a2a2d, 0 40px 90px -30px rgb(68 242 239 / .18); }
.ai-item figcaption { max-width: 300px; }
.ai-item p { color: #a1a1a6; margin: 0; font-size: .98rem; }
.note-dark { color: #86868b; margin-top: 56px; max-width: 640px; }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--bg-tint); border-radius: var(--radius); padding: 32px; }
.tile p { color: var(--muted); margin: 0; font-size: .98rem; }
.tile-ico { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.tile-wide { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-bottom: 0; overflow: hidden; }
.tile-copy { padding-bottom: 32px; }
.tile-phone { align-self: end; height: 420px; overflow: hidden; }
.tile-phone .iphone { --w: 250px; }

/* PROGRESS */
.progress-visual { position: relative; padding: 0 0 40px 0; }
.progress-visual .iphone { --w: 290px; }
.stats-card { position: absolute; right: -150px; bottom: 0; width: 330px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--bg-tint); border-radius: 14px; padding: 10px 12px; }
.kpi small { display: block; color: var(--muted); font-size: .75rem; }
.kpi strong { font-size: 1.35rem; font-weight: 700; }
.heat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: .75rem; gap: 8px; flex-wrap: wrap; }
.heat-legend { display: inline-flex; align-items: center; gap: 3px; }
.heat-legend i { display: block; width: 9px; height: 9px; border-radius: 2px; background: var(--heat-0); }
.heatmap { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.heatmap i { display: block; aspect-ratio: 1; min-width: 0; border-radius: 2px; background: var(--heat-0); }
.l1 { background: color-mix(in srgb, var(--teal) 30%, var(--heat-0)) !important; }
.l2 { background: color-mix(in srgb, var(--teal) 55%, var(--heat-0)) !important; }
.l3 { background: color-mix(in srgb, var(--teal) 80%, var(--heat-0)) !important; }
.l4 { background: var(--blue) !important; }
.split-rev .split-copy { padding-left: 150px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.checks li { color: var(--muted); padding-left: 16px; border-left: 2px solid var(--line); }
.checks li strong { color: var(--text); display: block; font-weight: 600; }

/* PRO */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto 24px; }
.plan { border-radius: var(--radius); padding: 36px; background: var(--bg-tint); position: relative; }
.plan h3 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: .15em; }
.plan-sub { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { position: absolute; left: 0; top: 0; font-weight: 700; width: 18px; text-align: center; }
.plan li.y::before { content: '✓'; color: var(--accent); }
.plan li.p::before { content: '◐'; color: var(--orange); }
.plan li.n { color: var(--muted); }
.plan li.n::before { content: '–'; color: var(--muted); }
.plan-pro { background: var(--surface); box-shadow: var(--shadow); outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: -2px; }
.badge { position: absolute; top: -12px; right: 28px; background: var(--accent); color: #fff; font-weight: 600; font-size: .75rem; padding: 5px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .badge { color: #000; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 300; color: var(--muted); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { color: var(--muted); margin: -6px 0 22px; max-width: 62ch; }

/* CTA */
.cta { padding: 140px 0; text-align: center; }
.cta-inner { display: grid; justify-items: center; }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px; box-shadow: var(--shadow); background: #fff; }
.cta .lead { margin-inline: auto; }

/* FOOTER */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .78rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.footer-brand p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 0; justify-content: flex-end; }
.footer-links a { color: var(--muted); padding: 0 10px; border-left: 1px solid var(--line); }
.footer-links a:first-child { border-left: 0; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0; grid-column: 1 / -1; }

/* Scroll animations. JS adds .reveal (+ variant) and toggles .in; --d staggers siblings. */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1), filter .9s ease; transition-delay: var(--d, 0s); }
.reveal-left { transform: translateX(-80px) rotate(-5deg); }
.reveal-right { transform: translateX(80px) rotate(5deg); }
.reveal-scale { transform: scale(.88); }
.reveal.in { opacity: 1; transform: none; filter: none; }
[data-parallax] { will-change: translate; }
/* Heatmap cells fill column by column */
.heatmap i { opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s cubic-bezier(.3,1.5,.5,1); transition-delay: var(--d, 0s); }
.heatmap.in i { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .split, .split-rev, .modes-layout { grid-template-columns: 1fr; gap: 56px; justify-items: center; }
  .split-copy { text-align: center; }
  .split-copy .lead { margin-inline: auto; }
  .split-rev .split-copy { padding-left: 0; order: -1; }
  .checks { text-align: left; max-width: 520px; margin-inline: auto; }
  .ai-phones { grid-template-columns: 1fr; gap: 72px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; grid-row: auto; }
  .stats-card { right: -60px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 88px 0; }
  .hero { padding-top: 56px; }
  .iphone-left, .iphone-right { display: none; }
  .hero-phones { margin-top: 48px; }
  .phases { gap: 6px; }
  .ph-bar { height: 110px; }
  .modes { grid-template-columns: 1fr; }
  .bento, .plans { grid-template-columns: 1fr; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-phone { justify-self: center; height: 340px; }
  .progress-visual { padding-bottom: 150px; }
  .stats-card { right: 50%; translate: 50% 0; width: min(330px, calc(100vw - 32px)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-links a:first-child { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .flags li, .heatmap i { opacity: 1; transform: none; filter: none; }
  .ph-bar::after { transform: none; }
}
/* 7 tiles in a 3-column bento leave one alone in the last row; let it span the full width. */
@media (min-width: 1061px) { .bento > .tile:last-child { grid-column: 1 / -1; } }
/* Background rhythm: SRS sits on the tint, modes on plain background. */
#srs .ph-bar { background: var(--surface); }
#modes .mode:not(.mode-ai) { background: var(--bg-tint); }
/* Language chips need to stand out from the tinted section in both themes. */
.flags li { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 6px 14px -8px rgb(0 0 0 / .18); padding: 7px 18px 7px 7px; }
@media (prefers-color-scheme: dark) { .flags li { background: #3a3a3c; border-color: #545458; } }
