/* ===================== Design tokens =====================
   Palette: #ebc580 (amber, sparing accent) · #fbf7f2 (primary bg)
   #9c9c9c (gray) · #3e3e3e (ink) · #b6ada5 (taupe) · #e6ddd5 (tan)
   Everything else is a shade/tint derived from these six. Mostly solid
   fills — gradients are reserved for a couple of true "brand moment" spots.
   --c-amber and --c-amber-deep are intentionally the same value: every
   amber/gold accent on the site (text and illustration alike) should match
   exactly, rather than splitting into a "light fill" vs "dark text" shade. */
:root {
  --ink: #3e3e3e;
  --ink-2: #6d6d6d;
  --c-amber: #ebc580;
  --c-amber-deep: #ebc580;

  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #e6ddd5;
  --text: #3e3e3e;
  --text-muted: #9c9c9c;
  --border: #e6ddd5;
  --shadow: 0 10px 30px -12px rgba(62, 62, 62, .14);
  --shadow-lg: 0 25px 60px -15px rgba(62, 62, 62, .22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

/* Hand-drawn squiggle accent under emphasized headline phrases. */
.text-accent { position: relative; color: var(--text); white-space: normal; }
.squiggle { display: block; width: 100%; height: 10px; margin-top: 2px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--c-amber); stroke-width: 3; stroke-linecap: round; }
.text-evry { color: var(--c-amber-deep); }
.word-rotate { display: inline-block; transition: opacity .35s ease; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .15s; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--ink);
  color: #fbf7f2;
  box-shadow: 0 8px 20px -6px rgba(62, 62, 62, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(62, 62, 62, .45); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--c-amber-deep); color: var(--c-amber-deep); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* Scaled visually (not via width/font-size) so it grows without affecting
   flex layout — nav-links and nav-actions never shift as a result. */
.site-header .brand { transform: scale(1.3); transform-origin: left center; }
.brand-textlogo { height: 30px; width: auto; }
.site-header .brand-textlogo { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; margin: 0 auto; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--text-muted); }
.mobile-menu.open { display: flex; }

/* ===================== Hero =====================
   No decorative glow here — it was bleeding a faint tint across the section,
   making it read as slightly off-white next to the stats bar below. */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; background: var(--surface); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

/* ===================== Illustration art =====================
   The hand-drawn illustrations are shown large and borderless — no card
   mat, no shadow frame. Their baked-in cream background (~#fdf9f3) is a
   near-exact match for --bg, so they sit flush against the page. */
.art { display: block; width: 100%; height: auto; }

.hero-art-girl-large { width: 100%; max-width: 460px; }

/* ===================== Phone mockup (iPhone 17 style) =====================
   All phones share one fixed-size design (276 x 580) for their screen content.
   .phone-sm doesn't restyle that content — it shrinks the whole thing with a
   single transform: scale(), so every mockup is a pixel-perfect miniature of
   the same layout and never stretches or distorts its own ratio. */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  background: #24211c;
  border-radius: 58px;
  border: 12px solid #24211c;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.phone::before, .phone::after {
  content: '';
  position: absolute;
  background: #24211c;
  z-index: -1;
}
/* side buttons */
.phone::before { left: -3px; top: 118px; width: 3px; height: 58px; border-radius: 3px 0 0 3px; }
.phone::after { right: -3px; top: 150px; width: 3px; height: 86px; border-radius: 0 3px 3px 0; }
.phone-sm { width: 260px; border-width: 10px; border-radius: 50px; }
.phone-sm::before { top: 102px; height: 50px; }
.phone-sm::after { top: 130px; height: 74px; }

.phone-viewport {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  border-radius: 46px;
}
/* scale = phone-sm inner width (260 - 2*10) / hero inner width (300 - 2*12) = 240 / 276 */
.phone-sm .phone-viewport { height: 504.35px; border-radius: 40px; }

.phone-screen {
  position: relative;
  width: 276px;
  height: 580px;
  background: #fbf7f2;
  padding: 42px 16px 16px;
  display: flex;
  flex-direction: column;
  color: #3e3e3e;
  transform-origin: top left;
}
.phone-sm .phone-screen { transform: scale(0.8695652); }

.dynamic-island {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px;
  background: #24211c;
  border-radius: 20px;
  z-index: 5;
}

.app-topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 8px; }
.app-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #9c9c9c; }
.app-title { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 4px; margin: 2px 0; color: #3e3e3e; }
.app-title svg { color: #9c9c9c; }
.app-date { font-size: 11px; color: #9c9c9c; }
.app-topbtns { display: flex; align-items: center; gap: 8px; }
.app-icon-btn { width: 32px; height: 32px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; }
.app-icon-btn svg { width: 15px; height: 15px; }
.app-icon-btn.grad { background: #3e3e3e; }
.app-icon-btn.outline { background: #fff; border: 1px solid #e6ddd5; color: #6d6d6d; }

.app-progress { margin-bottom: 14px; }
.app-progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: #9c9c9c; margin-bottom: 6px; }
.app-progress-labels .pct { font-weight: 700; color: #3e3e3e; }
.progress-track { height: 7px; background: #e6ddd5; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #3e3e3e; border-radius: 999px; transition: width 1s ease; }

.task-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(62, 62, 62, .06);
}
.task-card-ai { border: 1px solid #ebc580; }
.task-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd0bc; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.task-body { flex: 1; min-width: 0; }
.task-body p { font-size: 13.5px; font-weight: 500; margin-bottom: 5px; color: #3e3e3e; }
.task-trash { width: 15px; height: 15px; color: #b6ada5; flex-shrink: 0; }

.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-green { background: rgba(182, 173, 165, .25); color: #6d6d6d; }
.tag-purple { background: rgba(235, 197, 128, .35); color: #ebc580; }

.app-bottomnav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid #ede1ce;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #9c9c9c; padding: 6px 12px; border-radius: 14px; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active { background: #3e3e3e; color: #fbf7f2; }

/* ===================== Stats bar ===================== */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.stat-star { font-size: 18px; color: #ebc580; margin-left: 2px; }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ===================== Sections ===================== */
.section { padding: 100px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; line-height: 1.6; }

/* Features */
/* Tab bar only shows on mobile (see responsive section) — lets small
   screens jump to one feature instead of scrolling all six full cards. */
.feature-tabs { display: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 22px; height: 22px; }
.grad-1 { background: #3e3e3e; }
.grad-2 { background: #6d6d6d; }
.grad-3 { background: #9c9c9c; }
.grad-4 { background: #ebc580; color: #3e3e3e; }
.grad-4 svg { stroke: #3e3e3e; }
.grad-5 { background: #8c8073; }
.grad-6 { background: #b6ada5; color: #3e3e3e; }
.grad-6 svg { stroke: #3e3e3e; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* AI spotlight */
.ai-section { position: relative; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.ai-visual { display: flex; align-items: center; justify-content: center; }
.ai-art-dog-large { width: 100%; max-width: 460px; }
.ai-points { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.ai-point { display: flex; gap: 18px; }
.ai-point-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: transparent; -webkit-text-stroke: 1.3px var(--c-amber-deep); flex-shrink: 0; padding-top: 2px; }
.ai-point h4 { font-size: 16.5px; margin-bottom: 4px; }
.ai-point p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* How it works */
.how-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.how-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.how-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: #3e3e3e; color: #fbf7f2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin: 0 auto 16px;
}
.how-step h3 { font-size: 17px; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.how-connector { width: 40px; height: 2px; background: var(--border); }

/* Illustration / brand moment — text above, image below, both centered. */
.illo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.illo-copy { max-width: 640px; }
.illo-copy p { color: var(--text-muted); font-size: 17px; line-height: 1.65; }
.illo-copy h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.illo-visual { display: flex; justify-content: center; }
.illo-art-cat { width: 100%; max-width: 460px; }

/* Screenshots */
.screens-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }

/* Testimonials — big centered title/stars, then a review-card ticker that
   auto-scrolls continuously (JS-driven, see script.js). Pauses on hover and
   on tap/click-hold; flicking it gives it a momentary speed boost. Cards are
   duplicated at runtime so the loop can wrap seamlessly. */
.testimonials-section { overflow: hidden; }
.testimonials-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.testimonials-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.testimonials-head p { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.big-stars { display: flex; justify-content: center; gap: 16px; }
.big-stars svg { width: 68px; height: 68px; color: var(--c-amber); flex-shrink: 0; }

.testimonial-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
  padding: 8px 0 4px;
  user-select: none;
}
.testimonial-scroll:active { cursor: grabbing; }
.testimonial-scroll::-webkit-scrollbar { display: none; }
.testimonial-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 24px;
}
.testimonial-card {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-who strong { display: block; font-size: 14px; }
.testimonial-who span { font-size: 12.5px; color: var(--text-muted); }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fbf7f2; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.testimonial-card p { font-size: 14.5px; line-height: 1.65; color: var(--text); }
/* A pale gold reads poorly as plain text on white, so the mention is a tinted
   chip instead — the accent color stays exactly #ebc580, just as a highlight
   rather than low-contrast foreground text. */
.t-mention {
  background: rgba(235, 197, 128, .3);
  color: var(--ink);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; }
.price-card-featured { border: 2px solid var(--c-amber-deep); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #ebc580; color: #3e3e3e; font-size: 11px; font-weight: 700; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price-amt { font-family: var(--font-display); font-size: 40px; font-weight: 800; }
.price-per { color: var(--text-muted); font-size: 14px; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-list li { font-size: 14px; color: var(--text); padding-left: 26px; position: relative; }
.price-list li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(235, 197, 128, .3);
}
.price-list li::after {
  content: '✓';
  position: absolute; left: 2px; top: 1px;
  font-size: 10px; font-weight: 800; color: var(--c-amber-deep);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: none; text-align: left; font-size: 15.5px; font-weight: 600; color: var(--text); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; color: var(--text-muted); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 22px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* CTA — one deliberate solid-ink moment with a single amber accent button. */
.cta-section { padding: 100px 0; }
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: #3e3e3e;
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  color: #fbf7f2;
}
.cta-inner h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.cta-inner p { opacity: .75; margin-bottom: 30px; font-size: 15.5px; }
.cta-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.cta-form input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 999px; border: none; font-size: 15px; }
.cta-form input:focus { outline: 3px solid rgba(235, 197, 128, .4); }
.cta-form .btn-primary { background: #ebc580; color: #3e3e3e; box-shadow: none; }
.cta-fine { margin-top: 16px; font-size: 12.5px; opacity: .65; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-textlogo { height: 46px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 14px 0 20px; max-width: 260px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.footer-contact a { font-size: 14px; color: var(--text); }
.footer-contact a:hover { color: var(--c-amber-deep); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.social-links svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text); padding: 6px 0; }
.footer-col a:hover { color: var(--c-amber-deep); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.store-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.store-badge { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: 14.5px; }
.store-badge small { font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .ai-inner { grid-template-columns: 1fr; }
  .ai-visual { order: -1; }
  .illo-inner { grid-template-columns: 1fr; text-align: center; }
  .illo-copy { margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-connector { width: 2px; height: 30px; margin: 0 auto; }
}

/* Nav switches to the hamburger menu earlier than the layout breakpoints below,
   since the full nav-links row + Get Started button crowd the header well before 720px. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hide-mobile { display: none; }
  .hamburger { display: flex; }
  /* Take nav-actions out of flow so .brand becomes the only flex item and
     centers in the bar, with the hamburger pinned to the left independently. */
  .nav-inner { position: relative; justify-content: center; }
  .nav-actions { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  /* The desktop brand scale grows from its left edge (so it can't shift the
     nav links); on mobile it's the only item, so scale from center instead
     for true centering. */
  .site-header .brand { transform-origin: center center; }
}

@media (max-width: 720px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Consolidated feature tabs: one small icon row picks which single card
     shows below, instead of stacking all six full cards to scroll past. */
  .feature-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
  .feature-tab {
    width: 44px; height: 44px;
    border-radius: 12px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    opacity: .45;
    transform: scale(.92);
    transition: opacity .2s ease, transform .2s ease;
  }
  .feature-tab svg { width: 20px; height: 20px; }
  .feature-tab.active { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c-amber-deep); }
  .feature-grid { grid-template-columns: 1fr; }
  /* Only the active card shows; switching tabs must be instant, not wait on
     a scroll-triggered reveal that may never have fired for a hidden card. */
  .feature-card { display: none; opacity: 1; transform: none; }
  .feature-card.active { display: block; }
  .testimonial-card { flex-basis: 82vw; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .store-badges { flex-wrap: wrap; }
  .section { padding: 70px 0; }
  .hero { padding: 56px 0 50px; }
  .hero-art-girl-large { max-width: 340px; }
  .ai-art-dog-large { max-width: 280px; }
  .illo-art-cat { max-width: 340px; }
  .big-stars { gap: 12px; }
  .big-stars svg { width: 72px; height: 72px; }
  /* Hero phone shrinks from 300px to match .phone-sm's 260px on small screens.
     Match .phone-sm's bezel/radius tokens too so both read as the same device size. */
  .phone { width: 260px; border-width: 10px; border-radius: 50px; }
  .phone:not(.phone-sm) .phone-viewport { height: 504.35px; border-radius: 40px; }
  .phone:not(.phone-sm) .phone-screen { transform: scale(0.8695652); }
  .phone:not(.phone-sm)::before { top: 102px; height: 50px; }
  .phone:not(.phone-sm)::after { top: 130px; height: 74px; }
  .cta-form { flex-direction: column; }
  .cta-form input, .cta-form .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .phone { width: 100%; max-width: 260px; }
  .big-stars { gap: 8px; }
  .big-stars svg { width: 56px; height: 56px; }
}
