/* Squirrel Squad · Locked Brand Tokens + Components
   Direction (updated 2026-04-21): V2 cream base + V1 hero energy + V3 button confidence.
   Cream #FFF8EE is the base on ALL pages including hero. Purple/yellow/coral are ACCENTS only.
   Hero box art gets a soft yellow/coral glow halo (V1's energy on cream, not purple bg).
   CTAs keep V3 chunky drop-shadow. See site/_briefs/BRIEF.md for full spec.
   Use only these classes/tokens — do not invent new colors or fonts. */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* colors */
  --purple: #4A1E8B;
  --purple-deep: #2D0A5C;
  --purple-soft: #6B3FA0;
  --yellow: #FFD347;
  --coral: #FF6B9D;
  --mint: #A8E6C9;

  --cream: #FFF8EE;
  --cream-warm: #F9F3E6;
  --border: #E8DFD0;
  --ink: #1A1530;
  --ink-soft: #4a3d5e;
  --muted: #6a5a7e;

  /* per-habit backgrounds (from card art) */
  --h-sleep-bg: #E8EEFF;
  --h-sleep-accent: #5B78D9;
  --h-food-bg: #DFF5EA;
  --h-food-accent: #3FA86E;
  --h-exercise-bg: #F3E6FA;
  --h-exercise-accent: #8A5ECB;
  --h-mind-bg: #FFE4EC;
  --h-mind-accent: #D94878;

  /* status */
  --done: #3FA86E;
  --progress: #F4BB3A;
  --next: #5BC0EB;
  --blocked: #E63946;

  /* type */
  --f-display: 'Fredoka', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* spacing */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 18px 40px -20px rgba(74, 30, 139, .2);
  --shadow-chunky: 5px 5px 0 var(--ink);
  --shadow-chunky-lg: 6px 6px 0 var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--purple);
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.05;
  text-decoration: none;
}
.nav__logo .brand { display: flex; align-items: center; gap: 6px; }
.nav__logo .tagline {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .3px;
  margin-top: 2px;
  opacity: .8;
  text-transform: none;
}
.nav__links {
  display: flex; gap: 26px;
  list-style: none;
  font-size: 14px; font-weight: 500;
}
.nav__links a { opacity: .8; transition: opacity .15s, color .15s; }
.nav__links a:hover { opacity: 1; color: var(--coral); }
@media (max-width: 768px) { .nav__links { display: none; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; }
h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 14px; }
h3 { font-size: 26px; margin-bottom: 10px; }
h4 { font-size: 20px; margin-bottom: 8px; }
.text-coral { color: var(--coral); }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 620px; }

/* ---------- Pills / Tags ---------- */
.pill {
  display: inline-block;
  background: #FFE4EC; color: var(--coral);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase;
}
.pill--purple { background: #EFE8F4; color: var(--purple); }
.pill--yellow { background: #FFF5D6; color: #a07d1b; }

/* ---------- Buttons (V3 chunky drop-shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 17px;
  padding: 15px 32px;
  border-radius: 14px;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-chunky-lg);
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; }

/* ---------- Hero (V2 cream base with V1 energy retained)
   — cream warmth replaces the purple gradient
   — energy comes from big Fredoka type, yellow halo, purple accent word,
     coral accent word, sparkles, and the box shadow depth.               */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 62%);
  opacity: .45; pointer-events: none; z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; bottom: -200px; left: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 62%);
  opacity: .22; pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__sparkle {
  position: absolute;
  font-size: 30px;
  opacity: .65;
  pointer-events: none;
  z-index: 1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: var(--ink); font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.hero h1 .y { color: var(--purple); }
.hero h1 .c { color: var(--coral); }
.hero__sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 30px; max-width: 500px; }
.hero__box-wrap { position: relative; }
.hero__box-wrap img {
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-chunky-lg);
}
.hero__box-wrap::before {
  content: "";
  position: absolute; inset: -32px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 60%);
  opacity: .55; z-index: -1;
  border-radius: 50%;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--yellow); color: var(--ink);
  padding: 20px 0;
  font-family: var(--f-display); font-weight: 600;
  border-bottom: 3px solid var(--ink);
}
.stats-bar__row {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; text-align: center;
}
.stats-bar b { font-size: 24px; display: block; }
.stats-bar span { font-size: 13px; opacity: .7; }

/* ---------- Section (V2 warmth for interiors) ---------- */
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--warm { background: var(--cream-warm); }
.section--white { background: #fff; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__lead { color: var(--ink-soft); margin: 0 auto 48px; max-width: 560px; text-align: center; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card__icon { font-size: 36px; margin-bottom: 10px; }
.card__body { font-size: 14.5px; color: var(--ink-soft); }

/* Habit color-coded cards */
.habit-card {
  padding: 32px 26px;
  border-radius: var(--r-lg);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-chunky);
  transition: transform .15s, box-shadow .15s;
  text-align: center;
}
.habit-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.habit-card--sleep { background: var(--h-sleep-bg); }
.habit-card--food { background: var(--h-food-bg); }
.habit-card--exercise { background: var(--h-exercise-bg); }
.habit-card--mind { background: var(--h-mind-bg); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }

/* ---------- Steps (numbered) ---------- */
.step { text-align: center; padding: 24px 18px; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  margin-bottom: 14px;
  border: 3px solid var(--ink);
}

/* ---------- Reservation banner ---------- */
.reserve {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  color: var(--ink);
  text-align: center;
}
.reserve__counter {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}
.reserve__counter b { color: var(--purple-deep); font-size: 28px; margin: 0 6px; }

/* ---------- Combined "Get Squirrel Squad" CTA (orange band)
   Single section with shop button + email subscribe.
   Replaces the old separate cta-shop / cta-subscribe bands. */
.cta-combined {
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  color: var(--ink);
  padding: 64px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  text-align: center;
}
.cta-combined .pill { background: #fff; color: var(--ink); }
.cta-combined h2 { color: var(--ink); font-size: clamp(30px, 4.4vw, 42px); margin: 12px 0 12px; }
.cta-combined p { color: var(--ink); max-width: 580px; margin: 0 auto 26px; font-size: 16.5px; line-height: 1.55; opacity: .9; }
.cta-combined .cta-combined__shop { font-size: 17px; padding: 15px 36px; }
.cta-combined .cta-combined__divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 28px auto 18px; max-width: 460px;
  font-family: var(--f-display); font-weight: 700;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); opacity: .65;
}
.cta-combined .cta-combined__divider::before,
.cta-combined .cta-combined__divider::after {
  content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .25;
}
.cta-combined__form {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 460px; margin: 0 auto;
  justify-content: center;
}
.cta-combined__form input {
  flex: 1 1 220px; min-width: 0; padding: 13px 18px;
  border: 3px solid var(--ink); border-radius: 99px;
  font-family: var(--f-body); font-size: 15px; background: #fff; color: var(--ink);
}
.cta-combined__form input:focus { outline: none; }
.cta-combined__form button { white-space: nowrap; }

/* ---------- "As seen in" press strip with logo treatment ---------- */
.press-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 36px; padding: 28px 0;
}
.press-row .label {
  font-family: var(--f-display); font-weight: 700; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.press-row .logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-style: italic;
  font-size: 19px; color: #6a5a7e;
  letter-spacing: -.3px; opacity: .75;
  filter: grayscale(1);
}
.press-row .logo--block {
  font-family: var(--f-display); font-style: normal;
  text-transform: uppercase; letter-spacing: 2px; font-size: 15px;
}

/* ---------- Deep footer · 4-column grid, always horizontal
   Brand | Learn & Shop | Follow us | Stay in the loop
   No social row underneath — social lives inline next to links. */
.footer-deep {
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  font-size: 13px;
}
.footer-deep__inner {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0 32px;
}
.footer-deep__brand .footer-brand {
  font-family: var(--f-display); font-weight: 700;
  font-size: 22px; color: #fff; margin-bottom: 10px;
}
.footer-deep__brand .footer-tag {
  color: rgba(255,255,255,.62);
  font-size: 13px; line-height: 1.55; margin-bottom: 0;
}
.footer-deep__col h4,
.footer-deep__newsletter h4 {
  font-family: var(--f-display); font-weight: 700;
  font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 12px;
}
.footer-deep ul.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-deep ul.footer-links li { margin-bottom: 6px; }
.footer-deep ul.footer-links li a {
  color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px;
}
.footer-deep ul.footer-links li a:hover { color: var(--yellow); }
.footer-deep__newsletter p {
  color: rgba(255,255,255,.62); font-size: 12.5px;
  line-height: 1.5; margin-bottom: 12px;
}
.footer-sub-form { display: flex; gap: 6px; }
.footer-sub-form input {
  flex: 1; min-width: 0; padding: 9px 14px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  color: #fff; border-radius: 99px;
  font-family: var(--f-body); font-size: 12.5px;
}
.footer-sub-form input::placeholder { color: rgba(255,255,255,.45); }
.footer-sub-form input:focus { outline: none; border-color: var(--yellow); }
.footer-sub-form button {
  padding: 9px 14px; border: none; cursor: pointer;
  background: var(--yellow); color: var(--ink); border-radius: 99px;
  font-family: var(--f-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px;
  white-space: nowrap;
}
.footer-sub-form button:hover { background: var(--coral); color: #fff; }

/* "Follow us" column · social icons inline next to link col */
.footer-deep__follow ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.footer-deep__follow ul li { margin: 0; }
.footer-deep__follow ul a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.footer-deep__follow ul a svg {
  width: 15px; height: 15px; display: block; fill: currentColor;
}
.footer-deep__follow ul a:hover {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
  transform: translateY(-1px);
}

/* ---------- Footer legal (full-width band, tiny boilerplate) ---------- */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 18px;
  font-size: 11px;
  color: rgba(255,255,255,.42);
  line-height: 1.55;
}
.footer-legal__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 18px; margin-bottom: 8px;
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-legal a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-legal a:hover { color: var(--yellow); }
.footer-legal__boilerplate { font-size: 10.5px; color: rgba(255,255,255,.32); }

@media (max-width: 900px) {
  .footer-deep__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-deep__brand { grid-column: 1 / -1; }
  .footer-deep__newsletter { grid-column: 1 / -1; max-width: 360px; }
}
@media (max-width: 480px) {
  .footer-deep__inner { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 24px; }
  .footer-legal__top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Legacy footer (kept for transitional pages) ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 36px 0;
  font-size: 13px;
}
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--yellow); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.text-center { text-align: center; }
.rotate-minus { transform: rotate(-2deg); display: inline-block; }
