/* Baby Bloom — babybloom.vargary.com
 *
 * Hand-written stylesheet, no framework. Every design token mirrors the app:
 * palette from lib/theme/app_theme.dart, aurora recipe from
 * lib/widgets/shared/aurora_full.dart, premium-dark from
 * premium_dark_background.dart, card/CTA conventions from design_system.dart
 * and the marketing canvas (test/marketing/canvas/). Keep web and app in sync
 * by changing tokens here, not per-rule colors.
 */

/* ---------- fonts (self-hosted; latin-ext carries Hungarian ő/ű) ---------- */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  /* brand trio (app logo gradient / aurora orbs) */
  --brand-blue: #8eb1ee;
  --brand-pink: #fc99e0;
  --brand-lavender: #c097f9;

  /* surfaces + ink (marketing canvas palette) */
  --bg: #fcfcfe;
  --bg-wash: #f4f6f8;
  --ink: #1f2a4d;
  --ink-muted: #47506b;
  --ink-faint: #6b7490;

  /* on-aurora card recipe (AppTheme.getNeumorphicDecoration onAurora) */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.055);
  --card-shadow: 0 8px 18px rgba(0, 0, 0, 0.094);

  /* gradient CTA (welcome_screen._buildGradientCta, deepened a step for AA) */
  --cta-start: #637ca6;
  --cta-end: #8e70b8;
  --cta-shadow: 0 10px 24px rgba(99, 124, 166, 0.43);

  --link: #695389; /* lerp(tertiary, black, .45) — the app's on-aurora link */

  --pill-bg: rgba(255, 255, 255, 0.72);
  --pill-border: rgba(31, 42, 77, 0.1);
  --hairline: rgba(31, 42, 77, 0.08);

  --nav-bg: rgba(252, 252, 254, 0.78);

  /* per-trackable accents (TrackableColors, light) */
  --tint-feeding: #6b9bd1;
  --tint-sleep: #9b8fdb;
  --tint-diaper: #e085cb;
  --tint-pumping: #7ac4d4;
  --tint-activity: #e09774;
  --tint-mood: #e5c76a;
  --tint-growth: #5fc9a8;
  --tint-health: #e5899a;
  --tint-milestone: #b491d6;
  --tint-diary: #8f8fb8;
  --tint-vocabulary: #8bb876;
  --tint-potty: #5bc0be;
  --tint-essentials: #80cbc6;

  --tile-ink-mix: 78%; /* how far tile titles lean toward ink */

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --radius-cta: 18px;

  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --aurora-blue: rgba(142, 177, 238, 0.47);
  --aurora-pink: rgba(252, 153, 224, 0.43);
  --aurora-lavender: rgba(192, 151, 249, 0.41);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* premium dark: #12151D → #0E1016 with a #5C6FB2 crown glow */
    --bg: #12151d;
    --bg-wash: #171b25;
    --ink: #f2f5ff;
    --ink-muted: #b3bbd4;
    --ink-faint: #8b93ad;

    --card-bg: #232a3e;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);

    --link: #e4d3fc; /* lerp(tertiary, white, .58) */

    --pill-bg: rgba(255, 255, 255, 0.06);
    --pill-border: rgba(255, 255, 255, 0.16);
    --hairline: rgba(255, 255, 255, 0.09);

    --nav-bg: rgba(18, 21, 29, 0.72);

    /* per-trackable accents (TrackableColors, dark) */
    --tint-feeding: #7aa5d9;
    --tint-sleep: #a99fe9;
    --tint-diaper: #fc99e0;
    --tint-pumping: #88c5d8;
    --tint-activity: #ed9c7a;
    --tint-mood: #f0cc78;
    --tint-growth: #6dd4b0;
    --tint-health: #ed95a5;
    --tint-milestone: #ddc3f0;
    --tint-diary: #b0b0d0;
    --tint-vocabulary: #9bc688;
    --tint-potty: #6dd0ce;
    --tint-essentials: #8fd9d2;

    --tile-ink-mix: 70%;

    --aurora-blue: rgba(92, 111, 178, 0.4);
    --aurora-pink: rgba(162, 54, 123, 0.28);
    --aurora-lavender: rgba(123, 69, 174, 0.3);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* sticky nav clearance for anchor jumps */
  /* decorative glows (hero/cta ::before) intentionally bleed past their
     containers; clip on both roots so no horizontal scroll can ever appear */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(180deg, #12151d 0%, #0e1016 100%) fixed, #0e1016;
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

::selection {
  background: rgba(192, 151, 249, 0.35);
}

:focus-visible {
  outline: 3px solid var(--brand-lavender);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 800;
  border-radius: 0 0 var(--radius-m) 0;
  box-shadow: var(--card-shadow);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* the aurora crown: three brand orbs behind the nav + hero (aurora_full.dart
   geometry, translated from a phone canvas to a desktop band) */
.aurora {
  position: relative;
  isolation: isolate;
}

.aurora::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(120vh, 1180px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 420px at 12% -80px, var(--aurora-blue), transparent 70%),
    radial-gradient(circle 400px at 88% 60px, var(--aurora-pink), transparent 70%),
    radial-gradient(circle 460px at -4% 620px, var(--aurora-lavender), transparent 70%);
}

/* premium-dark starfield: understated texture, not a literal night sky */
@media (prefers-color-scheme: dark) {
  .aurora::before {
    background:
      radial-gradient(circle 640px at 50% -140px, rgba(92, 111, 178, 0.38), transparent 72%),
      radial-gradient(circle 400px at 88% 80px, rgba(162, 54, 123, 0.16), transparent 70%),
      radial-gradient(circle 1.1px at 12% 18%, rgba(255, 255, 255, 0.2) 99%, transparent),
      radial-gradient(circle 0.9px at 27% 7%, rgba(255, 255, 255, 0.16) 99%, transparent),
      radial-gradient(circle 1.3px at 41% 24%, rgba(255, 255, 255, 0.22) 99%, transparent),
      radial-gradient(circle 0.8px at 55% 11%, rgba(255, 255, 255, 0.14) 99%, transparent),
      radial-gradient(circle 1.1px at 66% 29%, rgba(255, 255, 255, 0.18) 99%, transparent),
      radial-gradient(circle 0.9px at 74% 5%, rgba(255, 255, 255, 0.15) 99%, transparent),
      radial-gradient(circle 1.4px at 86% 21%, rgba(255, 255, 255, 0.24) 99%, transparent),
      radial-gradient(circle 0.8px at 93% 38%, rgba(255, 255, 255, 0.13) 99%, transparent),
      radial-gradient(circle 1px at 8% 44%, rgba(255, 255, 255, 0.15) 99%, transparent),
      radial-gradient(circle 1.2px at 33% 52%, rgba(255, 255, 255, 0.17) 99%, transparent),
      radial-gradient(circle 0.9px at 61% 47%, rgba(255, 255, 255, 0.14) 99%, transparent),
      radial-gradient(circle 1.1px at 79% 58%, rgba(255, 255, 255, 0.16) 99%, transparent);
  }
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* The page is ~12k px tall; without this, initial layout (and every font-swap
   relayout) walks the whole document. Off-screen sections skip layout/paint
   and render as they approach. The hero stays always-rendered (LCP). */
main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw + 0.9rem, 3.7rem);
}

h2 {
  font-size: clamp(1.7rem, 2.4vw + 0.8rem, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  color: var(--ink-muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow, var(--link));
  margin-bottom: 0.9rem;
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

/* ---------- shared components ---------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-l);
  box-shadow: var(--card-shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-cta);
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  font-family: var(--font);
  font-size: 1.1875rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  filter: saturate(0.25) brightness(1.1);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-cta);
  border: 1.5px solid var(--pill-border);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--brand-lavender);
  background: rgba(192, 151, 249, 0.08);
}

.badge-link img {
  display: block;
  width: 194px;
  height: 75px;
}

.microline {
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.icon-dot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--tint, var(--brand-blue)) 16%, transparent);
  color: var(--tint, var(--brand-blue));
}

.icon-dot svg {
  width: 24px;
  height: 24px;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(31, 42, 77, 0.18);
}

.nav-links {
  display: none;
  gap: 1.4rem;
  margin-inline: auto;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  margin-left: auto;
}

.nav-cta img {
  display: block;
  width: 129px;
  height: 50px;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0 0.9rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* colored glow lift behind the phone — the welcome hero's shadow recipe */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% -8%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 30%, var(--aurora-pink), transparent 62%),
    radial-gradient(circle at 72% 68%, var(--aurora-lavender), transparent 62%);
}

.phone {
  width: min(420px, 82vw);
  filter: drop-shadow(0 24px 44px rgba(31, 42, 77, 0.32));
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

/* ---------- trust strip ---------- */

.trust {
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- promise trio ---------- */

.trio {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.trio-card {
  padding: 1.7rem 1.5rem;
}

.trio-card h3 {
  margin: 0.95rem 0 0.4rem;
}

.trio-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

@media (min-width: 720px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- alternating feature rows ---------- */

.feature-row {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media img {
  width: min(340px, 74vw);
  filter: drop-shadow(0 20px 36px rgba(31, 42, 77, 0.28));
}

.feature-copy .lede {
  margin-bottom: 1.4rem;
}

.benefit-list {
  display: grid;
  gap: 1.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.benefit-list strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.benefit-list span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footnote {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-weight: 600;
}

@media (min-width: 860px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .feature-row.flip .feature-media {
    order: 2;
  }
}

/* two phones side by side (milestones + activities) */
.duo-media {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
}

.duo-media img {
  width: min(250px, 42vw);
  filter: drop-shadow(0 18px 30px rgba(31, 42, 77, 0.26));
}

.duo-media img:first-child {
  transform: translateY(1.6rem) rotate(-2.5deg);
}

.duo-media img:last-child {
  transform: translateY(-0.4rem) rotate(2deg);
}

/* ---------- smart alerts ---------- */

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 820px;
  margin: 2.2rem auto 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(31, 42, 77, 0.07);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--brand-blue));
}

.allclear {
  max-width: 620px;
  margin: 2.4rem auto 0;
  padding: 1.3rem 1.6rem;
  text-align: center;
}

.allclear strong {
  color: var(--tint-growth);
}

.allclear p {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- 12-tracker grid ---------- */

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.tile {
  --tint: var(--brand-blue);
  padding: 1.15rem 1rem 1.05rem;
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--tint) 10%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--tint) 26%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tile svg {
  width: 26px;
  height: 26px;
  color: color-mix(in srgb, var(--tint) 82%, var(--ink));
}

.tile strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) var(--tile-ink-mix), var(--tint));
}

.tile span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---------- family / care circle ---------- */

.family-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.role-cards {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.role-card {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
}

.role-card .icon-dot {
  border-radius: 50%;
}

.role-card strong {
  display: block;
}

.role-card span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* static mock of the /i/ invite page */
.invite-mock {
  max-width: 380px;
  margin-inline: auto;
  padding: 2rem 1.7rem;
  text-align: center;
  rotate: 1.5deg;
}

.invite-mock img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(31, 42, 77, 0.22);
}

.invite-mock h3 {
  margin: 1rem 0 0.3rem;
}

.invite-mock .who {
  color: var(--ink-muted);
  margin: 0 0 1.2rem;
}

.invite-mock .who b {
  color: var(--link);
}

.invite-mock .mock-btn {
  display: block;
  padding: 0.85rem;
  border-radius: var(--radius-cta);
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--cta-shadow);
}

.invite-mock .mock-code {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-s);
  background: var(--bg-wash);
  border: 1px dashed var(--pill-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

@media (min-width: 860px) {
  .family-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.6rem;
  align-items: stretch;
}

.price-card {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.price-card.pro {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, var(--brand-blue), var(--brand-lavender), var(--brand-pink)) border-box;
}

.price-card .plan-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.price-card.pro .plan-tag {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  border: 0;
  color: #fff;
}

.price-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.price-card .plan-sub {
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
  font-size: 0.97rem;
}

.check-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.6rem;
  list-style: none;
  font-size: 0.97rem;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.check-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--tint-growth);
}

.price-cta {
  margin-top: auto;
}

@media (min-width: 780px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 2.4rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-radius: var(--radius-l);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 800;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--link);
  border-bottom: 2.5px solid var(--link);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ---------- final CTA ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  text-align: center;
  overflow: clip;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle 380px at 18% 20%, var(--aurora-blue), transparent 70%),
    radial-gradient(circle 360px at 82% 30%, var(--aurora-pink), transparent 70%),
    radial-gradient(circle 400px at 50% 110%, var(--aurora-lavender), transparent 70%);
}

.cta-band img.cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(31, 42, 77, 0.28);
}

.cta-band h2 {
  margin-top: 1.2rem;
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.6rem 0 2.2rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 1.4rem;
  line-height: 1.7;
}

/* ---------- sheet pages (auth flows, invite, 404) ---------- */

.sheet-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sheet-card {
  width: min(420px, 100%);
  padding: 2.2rem 1.9rem;
  text-align: center;
}

.sheet-card > img.sheet-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(31, 42, 77, 0.22);
}

.sheet-card h1 {
  font-size: 1.55rem;
  margin: 1.1rem 0 0.5rem;
}

.sheet-card .sheet-sub {
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
}

.sheet-footer {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.sheet-footer a {
  color: var(--link);
}

.field {
  text-align: left;
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-m);
  border: 1.5px solid var(--pill-border);
  background: var(--bg-wash);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
}

.field input:focus {
  outline: none;
  border-color: var(--brand-lavender);
  box-shadow: 0 0 0 3px rgba(192, 151, 249, 0.25);
}

.field-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d64562;
}

.banner {
  display: none;
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-m);
  font-size: 0.93rem;
  font-weight: 700;
  text-align: left;
}

.banner.error {
  background: rgba(214, 69, 98, 0.12);
  border: 1px solid rgba(214, 69, 98, 0.35);
  color: #c23a55;
}

.banner.success {
  background: rgba(95, 201, 168, 0.14);
  border: 1px solid rgba(95, 201, 168, 0.4);
  color: #2e8b6d;
}

@media (prefers-color-scheme: dark) {
  .field-error {
    color: #f2879d;
  }

  .banner.error {
    color: #f2879d;
  }

  .banner.success {
    color: #7ddcba;
  }
}

.is-visible {
  display: block;
}

.code-badge {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--bg-wash);
  border: 1px dashed var(--pill-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- motion (opt-in only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .phone-float {
    animation: floaty 7s ease-in-out infinite;
  }

  @keyframes floaty {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-12px);
    }
  }

  /* scroll-driven reveal — progressive enhancement; unsupported browsers
     simply see the content (no JS fallback needed, none wanted) */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise-in ease-out both;
      animation-timeline: view();
      animation-range: entry 8% entry 52%;
    }
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(26px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
