/* H-31 — Feature deep-dive pages. Shared visual system.
 * Pulls the same brand palette from landing.html so deep-dives feel
 * native to the marketing surface. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --pink: #E91E80;
  --orange: #F37323;
  --yellow: #FFB400;
  --teal: #2BB58E;
  --plum: #5B2A86;

  --bg: #FAF7F2;
  --bg-soft: #FFFCF6;
  --card: #FFFFFF;
  --ink: #181412;
  --ink-soft: #4A413A;
  --ink-muted: #8A8077;
  --line: rgba(24, 20, 18, 0.08);

  --grad: linear-gradient(95deg, var(--pink) 0%, #ED5048 55%, var(--orange) 100%);
  --shadow-pop: 0 12px 30px -10px rgba(233, 30, 128, 0.35), 0 18px 50px -20px rgba(243, 115, 35, 0.30);
  --shadow-card: 0 18px 40px -22px rgba(24, 20, 18, 0.18), 0 4px 12px -4px rgba(24, 20, 18, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--pink); color: #fff; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; position: relative; }
.wrap-tight { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* Nav (matches landing.html) */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-cta {
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px;
  text-decoration: none; color: var(--ink);
  background: transparent; border: 1.5px solid var(--line);
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.nav-links { display: inline-flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.feature-hero {
  padding: 56px 0 32px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) {
  .feature-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(243, 115, 35, 0.10);
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow.pink { background: rgba(233, 30, 128, 0.10); color: var(--pink); }
.eyebrow.teal { background: rgba(43, 181, 142, 0.12); color: var(--teal); }
.eyebrow.plum { background: rgba(91, 42, 134, 0.10); color: var(--plum); }

.feature-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 800;
  margin: 0 0 18px;
}
.feature-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-hero p.lead {
  font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft);
  margin: 0 0 24px; max-width: 36ch;
}
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cta.primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-pop); }
.cta.primary:hover { transform: translateY(-1px); }
.cta.ghost { border: 1.5px solid var(--line); color: var(--ink); }
.cta.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Hero device frame */
.device-shot {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
  aspect-ratio: 430 / 932;
  max-width: 380px;
  margin-left: auto;
}
.device-shot img, .device-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Storytelling sections */
section.feature-section { padding: 56px 0; border-top: 1px solid var(--line); }
section.feature-section:first-of-type { border-top: 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
section.feature-section h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 16px;
}
section.feature-section p { color: var(--ink-soft); max-width: 64ch; }
section.feature-section p.big { font-size: 19px; color: var(--ink); max-width: 56ch; }

/* Two-column showcase */
.showcase {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
.showcase.flip { grid-template-columns: 1.1fr 0.9fr; }
.showcase.flip .showcase-text { order: 2; }
.showcase.flip .showcase-media { order: 1; }
@media (max-width: 880px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 24px; }
  .showcase.flip .showcase-text, .showcase.flip .showcase-media { order: 0; }
}
.showcase-media { position: relative; }
.showcase-media .device-shot { margin: 0 auto; max-width: 320px; }
.showcase-text h3 {
  font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.015em;
}
.showcase-text p { font-size: 17px; }

/* Pull-quote / micro-block */
.pull {
  background: var(--bg-soft);
  border-left: 3px solid var(--pink);
  padding: 22px 24px; border-radius: 14px;
  font-size: 19px; line-height: 1.5; color: var(--ink); font-weight: 500;
  margin: 22px 0;
}

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 32px 0;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px; box-shadow: var(--shadow-card);
}
.stat .v { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.stat .v.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 13.5px; color: var(--ink-muted); margin-top: 4px; }

/* Feature checklist */
ul.bullets { list-style: none; padding: 0; margin: 20px 0 0; }
ul.bullets li {
  position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line);
  font-size: 16.5px; color: var(--ink);
}
ul.bullets li:last-child { border-bottom: 0; }
ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(233, 30, 128, 0.08);
}

/* Final CTA band */
.final-cta {
  background: var(--ink); color: var(--bg);
  border-radius: 32px; padding: 56px 36px;
  margin: 48px 0; text-align: center;
}
.final-cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; letter-spacing: -0.02em; }
.final-cta p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 24px; font-size: 17.5px; }

/* Related features row */
.related {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 36px 0;
}
@media (max-width: 880px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: block; padding: 22px 22px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--card);
  text-decoration: none; color: var(--ink);
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(233, 30, 128, 0.18); }
.related .badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 8px;
}
.related h4 { font-size: 18px; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.01em; }
.related p { color: var(--ink-muted); margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px; color: var(--ink-muted);
}
footer .foot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
footer .foot-links { display: inline-flex; gap: 22px; flex-wrap: wrap; }
footer .foot-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
footer .foot-links a:hover { color: var(--ink); }

/* Reveal animation (simple — no JS dependency, plays on load) */
.reveal { opacity: 0; transform: translateY(14px); animation: revealIn 700ms 80ms forwards ease-out; }
.reveal.delay-1 { animation-delay: 160ms; }
.reveal.delay-2 { animation-delay: 240ms; }
.reveal.delay-3 { animation-delay: 320ms; }
@keyframes revealIn { to { opacity: 1; transform: none; } }

/* Hub-specific (index.html) */
.hub-hero { padding: 64px 0 36px; text-align: center; }
.hub-hero h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; }
.hub-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-hero p { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 24px 0 64px; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: block; padding: 28px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); text-decoration: none; color: var(--ink);
  transition: transform 240ms, box-shadow 240ms, border-color 240ms;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(233, 30, 128, 0.20); }
.hub-card .hub-emoji {
  font-size: 30px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(243, 115, 35, 0.10); margin-bottom: 16px;
}
.hub-card .hub-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 8px;
}
/* ─────────────────────────────────────────────────────────────
   Phone polish (≤640px) — applies to every deep-dive page.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap, .wrap-tight { padding: 0 18px; }
  body { font-size: 16px; }

  /* Nav — hide secondary text links, keep logo + CTA */
  nav { padding: 16px 0 0; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 13.5px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }

  /* Hero */
  .feature-hero { padding: 28px 0 16px; gap: 22px; }
  .eyebrow { font-size: 11px; padding: 6px 12px; }
  .feature-hero h1 { font-size: clamp(30px, 8vw, 38px); margin: 0 0 14px; }
  .feature-hero p.lead { font-size: 16px; margin: 0 0 18px; }

  /* CTAs — full width, stacked */
  .cta-row { flex-direction: column; gap: 10px; width: 100%; }
  .cta { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

  /* Device shot — tighter */
  .device-shot { max-width: 280px; margin: 0 auto; border-radius: 24px; }

  /* Sections */
  section.feature-section { padding: 40px 0; }
  section.feature-section h2 { font-size: clamp(24px, 7vw, 32px); }
  section.feature-section p.big { font-size: 17px; }

  /* Showcases stay stacked (already at 880px) but media gets tighter */
  .showcase, .showcase.flip { gap: 22px; }
  .showcase-media .device-shot { max-width: 260px; }
  .showcase-text h3 { font-size: 21px; }
  .showcase-text p { font-size: 16px; }

  /* Pull-quote */
  .pull { font-size: 17px; padding: 18px 20px; margin: 18px 0; }

  /* Stats */
  .stats { gap: 12px; margin: 22px 0; }
  .stat { padding: 18px 18px; border-radius: 16px; }

  /* Bullets */
  ul.bullets li { font-size: 15.5px; padding: 9px 0 9px 28px; }
  ul.bullets li::before { width: 14px; height: 14px; top: 15px; }

  /* Final CTA band */
  .final-cta { padding: 36px 22px; border-radius: 24px; margin: 32px 0; }
  .final-cta h2 { font-size: clamp(24px, 7vw, 30px); margin: 0 0 12px; }
  .final-cta p { font-size: 16px; margin: 0 auto 18px; }

  /* Related cards */
  .related { gap: 12px; margin: 24px 0; }
  .related a { padding: 18px 18px; border-radius: 16px; }
  .related h4 { font-size: 16px; }
  .related p { font-size: 13.5px; }

  /* Hub (index.html) */
  .hub-hero { padding: 32px 0 18px; }
  .hub-hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .hub-hero p { font-size: 16px; max-width: 100%; }
  .hub-grid { gap: 14px; padding: 16px 0 48px; }
  .hub-card { padding: 22px 20px; border-radius: 18px; }
  .hub-card .hub-emoji { width: 48px; height: 48px; font-size: 26px; margin-bottom: 12px; }
  .hub-card h3 { font-size: 18px; }
  .hub-card p { font-size: 14px; }

  /* Footer */
  footer { padding: 28px 0 40px; }
  footer .foot-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer .foot-links { gap: 12px 18px; font-size: 13.5px; }
}

/* Tiny phones (≤360px) — defensive squeeze */
@media (max-width: 360px) {
  .wrap, .wrap-tight { padding: 0 14px; }
  .feature-hero h1 { font-size: 28px; }
  .device-shot { max-width: 240px; }
}
