/* Landing page. Tokens live in tokens.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--canvas);
  overflow-x: hidden;
}
/* Same haze as the app's screen background, on its own fixed layer so
   scrolling doesn't repaint it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 92, 96, 0.42), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(44, 32, 30, 0.55), transparent 65%);
}
/* Rotated hero phones poke past the edges on narrow phones; clip them so mobile
   browsers don't widen the page to fit (body overflow-x alone doesn't stop that). */
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
::selection { background: rgba(107, 213, 207, 0.3); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 20px; }

.eyebrow {
  margin: 0 0 14px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 3.3px;
  text-transform: uppercase;
  color: var(--accent);
}
.section-meta {
  margin: 0;
  font: 400 12px/1 var(--mono);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-3);
}
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.6px; }
.body { color: var(--text-2); font-size: 17px; margin: 16px 0 0; max-width: 46ch; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-end), #b6f0ec, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s var(--ease-in-out) infinite;
}
@keyframes shimmer { 50% { background-position: 100% 0; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 9, 16, 0.35);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.nav.scrolled { background: rgba(6, 9, 16, 0.72); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font: 700 20px/1 var(--display); }
.brand img { border-radius: 10px; transition: transform 0.5s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { position: relative; color: var(--text-2); font: 500 14px/1 var(--body); transition: color 0.2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.pill-soft {
  display: inline-flex; align-items: center; height: 40px;
  padding: 0 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(107, 213, 207, 0.25);
  font: 500 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.3s, box-shadow 0.3s;
}
.pill-soft:hover { background: rgba(107, 213, 207, 0.22); box-shadow: 0 0 18px rgba(107, 213, 207, 0.3); }

/* Scroll progress along the bottom of the nav (browsers with scroll timelines). */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--body);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.3s;
}
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: var(--glow-btn); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5s var(--ease-in-out) 2s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-primary svg { width: 22px; height: 22px; fill: currentColor; }
.btn-primary small { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.75; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(107, 213, 207, 0.5), 0 0 14px rgba(107, 213, 207, 0.3); }
.btn-ghost { color: var(--text); background: var(--surface-strong); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
/* Non-interactive badge (Coming soon): the look of the primary button, none of its feedback. */
.btn.is-static { cursor: default; }
.btn.is-static:hover, .btn.is-static:active { transform: none; box-shadow: var(--glow-btn); }
.btn.is-static::after { content: none; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: min(calc(100svh - 68px), 820px); padding-top: 48px; padding-bottom: 48px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -1.5px; }
.lead { color: var(--text-2); font-size: 18px; margin: 22px 0 0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta-line {
  margin: 28px 0 0; color: var(--text-3);
  font: 400 12px/1 var(--mono); letter-spacing: 2.4px; text-transform: uppercase;
}
.meta-line i { font-style: normal; color: var(--accent); margin: 0 6px; }
.meta-line span { white-space: nowrap; }

/* Hero phones. Position with left/top so `rotate`, `scale` and `translate`
   stay free for the entrance, float and tilt animations. */
.hero-phones { position: relative; height: 620px; --cw: 260px; --sw: 220px; --lx: 1.12; --rx: 0.12; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 213, 207, 0.28), transparent 65%);
  filter: blur(20px);
  animation: breathe 6s var(--ease-in-out) infinite;
}
@keyframes breathe { 50% { opacity: 0.6; scale: 0.92; } }
.phone {
  position: relative;
  width: 260px; aspect-ratio: 9 / 20;
  border-radius: 38px; padding: 8px;
  background: #0b0f15;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.stage .phone { position: absolute; }
.phone-c { z-index: 2; width: var(--cw); left: calc(50% - var(--cw) / 2); top: calc(50% - var(--cw) * 10 / 9); }
.phone-l, .phone-r { width: var(--sw); top: calc(50% - var(--sw) * 1.02); opacity: 0.9; }
.phone-l { left: calc(50% - var(--sw) * var(--lx)); rotate: -8deg; }
.phone-r { left: calc(50% + var(--sw) * var(--rx)); rotate: 8deg; }

/* Sources */
.sources {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sources ul { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.sources li { font: 700 18px/1 var(--display); color: var(--text-2); letter-spacing: 0.2px; transition: color 0.3s; }
.sources li:hover { color: var(--text); }
.sources li.accent { color: var(--accent); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feature {
  position: relative; overflow: hidden; padding: 28px;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}
/* Spotlight that follows the pointer (--mx/--my set in JS). */
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 213, 207, 0.12), transparent 60%);
  transition: opacity 0.4s;
}
.feature:hover { border-color: rgba(107, 213, 207, 0.3); background: var(--surface-strong); translate: 0 -4px; }
.feature:hover::before { opacity: 1; }
.feature h3 { font-size: 20px; margin-top: 20px; letter-spacing: -0.2px; }
.feature p { color: var(--text-2); margin: 8px 0 0; font-size: 15px; }
.ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s;
}
.feature:hover .ico { transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 18px rgba(107, 213, 207, 0.35); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Showcase */
.showcase { display: grid; gap: 112px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.show-row.reverse .show-media { order: 2; }
.show-media { position: relative; display: flex; justify-content: center; }
.show-media::before {
  content: ""; position: absolute; inset: 15% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 213, 207, 0.18), transparent 65%);
  filter: blur(24px);
  animation: breathe 7s var(--ease-in-out) infinite;
}
.show-media .phone { width: 280px; z-index: 1; will-change: translate; }
.show-media .phone-back {
  position: absolute; z-index: 0; width: 240px;
  transform: translate(46%, 6%) rotate(6deg); opacity: 0.55;
}
/* In a reversed row the phones are on the right: the back one leans inward,
   toward the copy, not off the page. */
.show-row.reverse .phone-back { transform: translate(-46%, 6%) rotate(-6deg); }
.show-copy h2 { max-width: 14em; }

/* Create (AI Studio). Mirrors the app's Create tab: panel card with a teal
   glow, gold Coming soon chip, typing prompt and a locked Generate button. */
.create-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  padding: 56px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(107, 213, 207, 0.18), transparent 60%),
    var(--panel);
  border: 1px solid rgba(107, 213, 207, 0.22);
}
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(230, 168, 92, 0.12); border: 1px solid rgba(230, 168, 92, 0.3);
  color: var(--gold); font: 500 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.soon svg { width: 12px; height: 12px; fill: currentColor; }
.create-copy .body { max-width: 40ch; }
.prompt {
  display: flex; align-items: center; gap: 12px;
  /* Room for two lines, so the box never grows while it types. */
  min-height: 76px; margin-top: 28px; padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong);
  font: 400 16px/1.4 var(--body); color: var(--text);
}
.prompt svg, .generate svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prompt svg { color: var(--accent); }
.prompt-line { min-width: 0; }
.caret { color: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.generate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; margin-top: 12px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border);
  color: var(--text-3); font: 600 16px/1 var(--body);
}
.generate svg { width: 16px; height: 16px; }
.steps {
  list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.steps li {
  counter-increment: step; padding: 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: 2px; color: var(--accent);
}
.steps b { display: block; font: 600 15px/1.3 var(--body); }
.steps span { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.create-media { position: relative; display: flex; justify-content: center; }
.create-media::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 168, 92, 0.16), transparent 65%);
  filter: blur(24px);
}
.create-media .phone { width: 290px; }

/* Gallery */
.gallery { padding-left: 0; padding-right: 0; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.marquee {
  overflow: hidden; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 8px; }
.track {
  display: flex; gap: 16px; width: max-content;
  list-style: none; margin: 0; padding: 0;
}
/* home.js duplicates the items first, so the loop is seamless. */
.looping .track { animation: scroll 70s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; }
.marquee:hover .track,
.gallery:focus-within .track,
.gallery.paused .track { animation-play-state: paused; }
.gallery-tools { display: flex; align-items: center; gap: 16px; }
.pause {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface-strong); color: var(--text-2);
  border: 1px solid var(--border-strong);
  font: 500 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.pause[hidden] { display: none; }
.pause:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.pause:focus-visible, .btn:focus-visible, .wp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pause svg { width: 12px; height: 12px; fill: currentColor; }
.pause .i-play { display: none; }
.gallery.paused .pause .i-play { display: block; }
.gallery.paused .pause .i-pause { display: none; }
@keyframes scroll { to { transform: translateX(calc(-50% - 8px)); } }

.wp {
  position: relative; flex: none;
  width: 220px; aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: translate 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.wp img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out); }
.wp:hover { translate: 0 -6px; border-color: rgba(107, 213, 207, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(107, 213, 207, 0.15); }
.wp:hover img { scale: 1.07; }
.wp div {
  position: absolute; inset: auto 0 0 0; padding: 60px 16px 16px;
  background: linear-gradient(to top, rgba(6, 9, 16, 0.88), rgba(6, 9, 16, 0.35) 55%, transparent);
}
.wp b { display: block; font: 600 16px/1.2 var(--body); }
.wp span {
  display: block; margin-top: 6px;
  font: 400 10px/1.3 var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; align-items: center; }
.link { display: inline-block; margin-top: 12px; padding: 14px 0; font: 500 12px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; transition: letter-spacing 0.4s var(--ease-out); }
.link:hover { letter-spacing: 3px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 18px 20px 18px 60px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--r-md);
}
.checks li::before {
  content: ""; position: absolute; left: 20px; top: 20px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad) center / cover;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.5 15.5-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4Z'/%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='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-1.5 15.5-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks b { display: block; font: 600 16px/1.3 var(--body); }
.checks span { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Get */
.get { text-align: center; display: flex; flex-direction: column; align-items: center; }
.get img { border-radius: 20px; box-shadow: 0 0 48px rgba(107, 213, 207, 0.35); margin-bottom: 28px; animation: bob 5s var(--ease-in-out) infinite; }
@keyframes bob { 50% { translate: 0 -8px; box-shadow: 0 0 64px rgba(107, 213, 207, 0.5); } }
.get .body { margin-bottom: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.footer nav a { display: inline-block; padding: 12px 0; color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer nav a:hover { color: var(--text); }
.footer .brand img { border-radius: 8px; }
.credits { color: var(--text-3); font-size: 13px; margin: 20px auto 0; }

/* ---------- Motion (only when JS runs; content stays visible without it) ---------- */

/* Hero copy: staggered rise on load. */
.js .hero-copy > * { animation: rise 1s var(--ease-out) backwards; }
.js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.27s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.39s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.51s; }
@keyframes rise {
  from { opacity: 0; translate: 0 28px; filter: blur(6px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}
.js .nav { animation: drop 0.9s var(--ease-out) backwards; }
@keyframes drop { from { opacity: 0; translate: 0 -100%; } }

/* Hero phones: rise and fan out, then float. */
.js .phone-c { animation: phone-in 1.3s var(--ease-out) 0.25s both, float 7s var(--ease-in-out) 1.6s infinite; }
.js .phone-l { animation: fan-l 1.4s var(--ease-out) 0.55s both, float 8s var(--ease-in-out) 2s infinite; }
.js .phone-r { animation: fan-r 1.4s var(--ease-out) 0.55s both, float 7.5s var(--ease-in-out) 2.4s infinite; }
@keyframes phone-in { from { opacity: 0; translate: 0 80px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fan-l { from { opacity: 0; rotate: 0deg; translate: 40% 40px; scale: 0.9; } to { opacity: 0.9; rotate: -8deg; translate: 0 0; scale: 1; } }
@keyframes fan-r { from { opacity: 0; rotate: 0deg; translate: -40% 40px; scale: 0.9; } to { opacity: 0.9; rotate: 8deg; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Scroll reveals. JS adds .reveal, then .in when the element enters view.
   Only the waiting state is styled; the entrance is a keyframe animation that
   fills backwards only, so afterwards the element's own translate, filter
   and transitions (hover lift, float) apply untouched. */
.reveal:not(.in) { opacity: 0; }
.reveal.in { animation: reveal 1.1s var(--ease-out) calc(var(--i, 0) * 90ms) backwards; }
.reveal.from-left  { --from: -48px 0; }
.reveal.from-right { --from: 48px 0; }
.reveal.zoom.in { animation-name: reveal-zoom; }
@keyframes reveal { from { opacity: 0; translate: var(--from, 0 36px); filter: blur(4px); } }
@keyframes reveal-zoom { from { opacity: 0; scale: 0.94; filter: blur(4px); } }
/* The final icon floats once it has risen in. */
.get img.reveal.in { animation: reveal 1.1s var(--ease-out) calc(var(--i, 0) * 90ms) backwards, bob 5s var(--ease-in-out) 1.4s infinite; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 56px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 560px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  /* Nine cards in two columns leave one over: it takes the full row. */
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .show-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .show-row.reverse .show-media { order: 0; }
  .show-copy { display: flex; flex-direction: column; align-items: center; }
  .privacy { grid-template-columns: 1fr; padding: 36px; }
  .create-card { grid-template-columns: 1fr; padding: 40px; text-align: center; }
  .create-copy { display: flex; flex-direction: column; align-items: center; }
  .prompt, .generate, .steps { width: 100%; max-width: 520px; text-align: left; }
  .reveal.from-left, .reveal.from-right { --from: 0 36px; }
}
@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .nav-links { display: none; }
  .pill-soft { margin-left: auto; }
  .hero-phones { height: 470px; --cw: 210px; --sw: 170px; --lx: 1; --rx: 0; }
  .phone { border-radius: 32px; padding: 6px; }
  .phone img { border-radius: 26px; }
  .features { grid-template-columns: 1fr; }
  .showcase { gap: 80px; }
  .show-media .phone { width: 230px; }
  .show-media .phone-back { display: none; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .wp { width: 170px; }
  .privacy { padding: 28px 20px; }
  .create-card { padding: 28px 20px; gap: 36px; border-radius: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .create-media .phone { width: 240px; }
  .sources { justify-content: center; text-align: center; }
  .sources ul { justify-content: center; }
  .meta-line { font-size: 11px; letter-spacing: 1.6px; }
  .meta-line i { margin: 0 4px; }
  .sources li { font-size: 16px; }
  .sources ul { gap: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.in) { opacity: 1; }
  .marquee { overflow-x: auto; }
}
