/* ==========================================================================
   Blossom Game — stylesheet
   Mobile-first, performance-focused. No external dependencies.
   ========================================================================== */

/* Self-hosted display font (variable, single file for all weights) */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* ---------- Design tokens ---------- */
:root {
  --rose: #ff5c8a;
  --rose-soft: #ff8fb3;
  --rose-deep: #e63e73;
  --purple: #7c5cff;
  --purple-soft: #a78bfa;
  --sky: #38bdf8;
  --mint: #34d399;
  --sun: #ffcc4d;
  --ink: #22143a;
  --muted: #5b5470;
  --cream: #fff9f5;
  --paper: #ffffff;
  --line: #f0e4ec;

  --shadow-sm: 0 2px 8px rgba(34, 20, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(34, 20, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(34, 20, 58, 0.16);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem); }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(56px, 8vw, 110px); position: relative; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08em; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: #ffe6ee;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow.purple { color: #5b3ae0; background: #ece7ff; }
.eyebrow.sky    { color: #0284c7; background: #e0f4ff; }
.eyebrow.mint   { color: #059669; background: #dcfce9; }

.lead { font-size: 1.12em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 20px rgba(255, 92, 138, 0.35);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 92, 138, 0.45); }
.btn:active { transform: translateY(0); }

.btn--lg { font-size: 1.12rem; padding: 18px 36px; min-height: 60px; }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--rose-soft), var(--rose)); }

.btn--secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--line);
}
.btn--secondary:hover { box-shadow: var(--shadow-md); border-color: var(--rose-soft); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.28); box-shadow: none; }

.btn--sun { --btn-bg: linear-gradient(135deg, #ffd873, var(--sun)); color: #6b4a12; box-shadow: 0 8px 20px rgba(255,204,77,0.45); }
.btn--sun:hover { box-shadow: 0 12px 26px rgba(255,204,77,0.55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 245, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span b { color: var(--rose-deep); }

.nav-links {
  display: none;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: #ffe6ee; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 11px 20px; min-height: 44px; font-size: 0.98rem; }
.nav-cta-desktop { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  z-index: 99;
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu > div { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px var(--gutter) 22px; display: grid; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: #ffe6ee; }
.mobile-menu .btn { margin-top: 10px; width: 100%; color: #fff; }
.mobile-menu .btn:hover { background: linear-gradient(135deg, var(--rose-soft), var(--rose)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 480px at 82% -8%, #ffe3ef 0%, rgba(255,227,239,0) 60%),
    radial-gradient(900px 500px at 6% 8%, #e7efff 0%, rgba(231,239,255,0) 55%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--rose), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead { max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.hero-stats .num { font-size: 1.7rem; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.hero-stats .lbl { font-size: 0.9rem; color: var(--muted); }

/* Interactive flower demo */
.hero-visual { position: relative; display: flex; justify-content: center; }
.demo-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-head .title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.demo-head .badge { font-size: 0.75rem; font-weight: 600; color: #059669; background: #dcfce9; padding: 5px 11px; border-radius: var(--radius-pill); }

.demo-word {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: #fff5f8;
  border: 2px dashed var(--rose-soft);
  border-radius: 14px;
  margin-bottom: 8px;
  padding: 6px 12px;
  text-transform: uppercase;
}
.demo-word .placeholder { color: #cbb8c4; font-weight: 500; letter-spacing: normal; font-size: 1rem; text-transform: none; }
.demo-msg { text-align: center; min-height: 24px; font-size: 0.92rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.demo-msg.win { color: #059669; }

.flower {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  margin: 6px auto 14px;
}
.petal-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  margin: -15% 0 0 -15%;
  border: none;
  border-radius: 50% 50% 50% 50%;
  background: linear-gradient(140deg, #fff, #ffeaf1);
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  transform: rotate(var(--a)) translateY(-92px) rotate(calc(-1 * var(--a)));
}
.petal-btn:hover { transform: rotate(var(--a)) translateY(-98px) rotate(calc(-1 * var(--a))) scale(1.06); }
.petal-btn.used {
  background: linear-gradient(140deg, var(--rose-soft), var(--rose));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,92,138,0.4);
}
.flower-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%; height: 34%;
  margin: -17% 0 0 -17%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--sun));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #7a3b1d;
  box-shadow: inset 0 -6px 14px rgba(0,0,0,0.08);
}
.demo-actions { display: flex; gap: 10px; }
.demo-actions .btn { flex: 1; min-height: 46px; padding: 12px 16px; font-size: 0.98rem; }

.floaty { position: absolute; opacity: 0.85; z-index: 0; pointer-events: none; }
.floaty.f1 { top: 6%; right: 4%; width: 54px; animation: bob 6s ease-in-out infinite; }
.floaty.f2 { bottom: 8%; left: 2%; width: 42px; animation: bob 7s ease-in-out infinite 0.6s; }
.floaty.f3 { top: 44%; right: -8px; width: 34px; animation: bob 5.5s ease-in-out infinite 1.2s; }

@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }

/* ---------- Marquee (keyword strip) ---------- */
.strip { background: var(--ink); color: #fff; padding-block: 16px; overflow: hidden; }
.strip-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
}
.strip-track span { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; opacity: 0.92; }
.strip-track span::before { content: "✿"; color: var(--rose-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: #fff;
}
.icon-badge svg { width: 28px; height: 28px; }
.bg-rose { background: linear-gradient(135deg, var(--rose-soft), var(--rose)); }
.bg-purple { background: linear-gradient(135deg, var(--purple-soft), var(--purple)); }
.bg-sky { background: linear-gradient(135deg, #7dd3fc, var(--sky)); }
.bg-mint { background: linear-gradient(135deg, #6ee7b7, var(--mint)); }
.bg-sun { background: linear-gradient(135deg, #ffdd80, var(--sun)); color: #7a3b1d; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Intro / two column ---------- */
.split { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.tag-list li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 9px 15px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.tag-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--rose)); }

.media-card {
  background: linear-gradient(160deg, #fff, #fff5f8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

/* ---------- How it works: steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-soft), var(--purple));
  color: #fff; font-weight: 700; font-size: 1.3rem;
}
.step h3 { margin-bottom: 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Benefit sections with alt backgrounds ---------- */
.bg-soft-rose { background: linear-gradient(180deg, #fff, #fff2f7); }
.bg-soft-purple { background: linear-gradient(180deg, #faf8ff, #f3efff); }
.bg-soft-sky { background: linear-gradient(180deg, #f5fbff, #eaf6ff); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink .section-head p, .bg-ink .lead, .bg-ink p { color: #d9d2e6; }

/* Feature list with check */
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checklist li svg { width: 22px; height: 22px; margin-top: 3px; color: var(--mint); flex: none; }
.checklist li b { font-weight: 600; }
.checklist li span { color: var(--muted); }

/* stat pills */
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.mini-stats .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.mini-stats .box .n { font-size: 1.6rem; font-weight: 700; color: var(--purple); }
.mini-stats .box .t { font-size: 0.88rem; color: var(--muted); }

/* ---------- Daily challenge ---------- */
.daily-card {
  background: linear-gradient(135deg, #ff7aa2, #ff5c8a 55%, #ff8f6b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.daily-card::after {
  content: "";
  position: absolute; inset: auto -60px -80px auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.daily-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.daily-card h2 { color: #fff; }
.daily-card p { color: rgba(255,255,255,0.92); }
.streak {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.streak .day {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.streak .day.done { background: #fff; color: var(--rose-deep); }
.streak .day.today { background: var(--sun); color: #6b4a12; border-color: var(--sun); }

/* ---------- Audience tabs ---------- */
.tabs { max-width: 900px; margin-inline: auto; }
.tablist {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 28px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.15s ease, background 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--rose-soft), var(--rose)); box-shadow: 0 6px 16px rgba(255,92,138,0.35); }
.tab svg { width: 20px; height: 20px; }

.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-card {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.emoji-orb {
  width: clamp(96px, 20vw, 150px);
  aspect-ratio: 1;
  border-radius: 30px;
  display: grid; place-items: center;
  font-size: clamp(3rem, 9vw, 4.6rem);
  margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--rose);
  border-bottom: 2.5px solid var(--rose);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(124,92,255,0.5), transparent 60%),
    radial-gradient(700px 320px at 85% 100%, rgba(255,143,107,0.45), transparent 60%),
    linear-gradient(135deg, #3a1d6e, #5b2a8c);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.final-cta h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.final-cta p { color: rgba(255,255,255,0.9); max-width: 560px; margin-inline: auto 20px; margin-bottom: 28px; }
.final-cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc7db; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #a99fc0; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #b7aecb; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: #9a90b3;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center; color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social a:hover { background: var(--rose); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
  .panel-card { grid-template-columns: auto 1fr; }
  .final-cta p { margin-bottom: 30px; }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sub-pages (About, Contact, Terms, Privacy, DMCA)
   ========================================================================== */

/* Page banner */
.page-hero {
  padding-block: clamp(40px, 7vw, 72px);
  text-align: center;
  background:
    radial-gradient(800px 360px at 78% -20%, #ffe3ef 0%, rgba(255,227,239,0) 60%),
    radial-gradient(700px 360px at 10% 0%, #e7efff 0%, rgba(231,239,255,0) 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.08em; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  list-style: none; margin: 0 0 18px; padding: 0;
  font-size: 0.9rem; color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--rose); margin-left: 6px; }
.breadcrumb a { color: var(--rose-deep); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* Legal / article prose */
.prose {
  max-width: 820px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 52px);
}
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--rose-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--rose); }
.prose strong { color: var(--ink); }
.prose .updated {
  display: inline-block;
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; }

/* Contact */
.contact-grid { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 7px; }
.field label .req { color: var(--rose-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose-soft);
  background: #fff;
}
.field .error-text { display: none; color: var(--rose-deep); font-size: 0.85rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--rose); }
.field.invalid .error-text { display: block; }

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  background: #dcfce9;
  color: #059669;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-status.show { display: flex; }
.form-status svg { width: 22px; height: 22px; flex: none; }

.info-stack { display: grid; gap: 16px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.info-card .icon-badge { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
.info-card .icon-badge svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { color: var(--rose-deep); font-weight: 500; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
}

/* Footer legal links */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 12px;
}
.footer-legal a { color: #b7aecb; font-size: 0.9rem; }
.footer-legal a:hover { color: #fff; }
