/* KidsFocus How-to guides — Brand-aligned ADHD-friendly design */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand colours matching tokens.css */
  --pink: #ED1F5D;        /* Decorative ONLY */
  --pink-text: #CC1551;   /* AA-accessible pink for text/buttons */
  --pink-hover: #A80F43;
  --pink-soft: #FEE5EE;

  --parent-bg: #F0F0F0;     /* matches main-site --background */
  --parent-action: #01696F;
  --parent-action-hover: #01535A;

  --bg: var(--parent-bg);
  --surface: #FCFCFC;       /* matches main-site --card */

  --ink: #1A1A1A;
  --ink-2: #212121;         /* matches main-site --muted-foreground */

  /* Feature cards & Accents */
  --accent-2: #FDE047;    /* --kid-yellow */
  --mint: #16A34A;        /* --success */
  --sky: #38BDF8;         /* --kid-blue */
  --lilac: #A855F7;       /* --kid-purple */

  --line: #E8E8E8;          /* matches main-site --border */
  --radius: 12px;
  --radius-lg: 24px;

  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

*:focus-visible {
  outline: 3px solid var(--pink-text);
  outline-offset: 2px;
  border-radius: 4px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER / NAV */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 20px 0 80px;
}
.logo-focus { color: var(--pink-text); }

/* SITE HEADER — mirrors MarketingNav (sticky, blurred, same links) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 240, 240, 0.8); /* bg-background/80 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.site-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.site-nav a:hover { background: rgba(0, 0, 0, 0.05); }
.site-nav a[aria-current="page"] { color: var(--pink-text); font-weight: 600; }
.site-actions { display: flex; align-items: center; gap: 8px; }
.btn-signin {
  background: var(--pink-text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn-signin:hover { background: var(--pink-hover); }
/* JS-free mobile menu (details/summary) — desktop nav hidden under md */
.site-menu { display: none; position: relative; }
section[id] { scroll-margin-top: 72px; }

.hero-body {
  max-width: 780px;
  padding-top: 40px;
}
.eyebrow {
  display: inline-block;
  background: var(--surface);
  color: var(--pink-text);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
h1 {
  font-size: clamp(36px, 6vw, 60px); /* main-site hero: text-4xl/5xl/6xl */
  line-height: 1.25;
  margin: 24px 0 24px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.accent { color: var(--pink-text); }
.lede {
  font-size: clamp(18px, 2.5vw, 20px); /* main-site hero lede: text-lg/xl */
  line-height: 1.625;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 32px;
  font-weight: 400;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), background 0.2s cubic-bezier(0.2, 0, 0, 1);
  font-size: 16px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--pink-text);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--pink-hover); box-shadow: var(--shadow-hover); }
.btn-lg { padding: 16px 32px; font-size: 18px; }

/* SECTION HEADINGS */
h2 {
  font-size: clamp(30px, 4vw, 36px); /* main-site sections: text-3xl/4xl */
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-lede {
  color: var(--ink-2);
  font-size: 18px;
  margin: 0 0 40px;
  max-width: 620px;
  font-weight: 400;
}

/* GUIDES GRID */
.guides { padding: 80px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1);
  border-top: 6px solid var(--pink); /* Decorative pink is fine here */
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-1 { border-top-color: var(--pink); }
.card-2 { border-top-color: var(--accent-2); }
.card-3 { border-top-color: var(--mint); }
.card-4 { border-top-color: var(--sky); }
.card-5 { border-top-color: var(--lilac); }
.card-6 { border-top-color: var(--parent-action); }

.badge {
  display: inline-flex;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  align-self: flex-start;
}
.card h3 {
  font-size: 20px; /* main-site card titles: text-xl bold */
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-weight: 700;
}
.card p {
  color: var(--ink-2);
  margin: 0 0 24px;
  font-size: 16px;
}
.cta {
  font-weight: 600;
  color: var(--pink-text);
  margin-top: auto;
  transition: color 0.15s ease;
}
.card:hover .cta {
  color: var(--pink-hover);
}

/* FOOTER */
/* SITE FOOTER — mirrors MarketingFooter */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(227, 227, 227, 0.3); /* bg-muted/30 */
  padding: 56px 16px 32px;
}
.site-footer-inner { max-width: 1152px; margin: 0 auto; }
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}
.site-footer-brand p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.625;
  margin: 0;
  max-width: 280px;
}
.site-footer h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer ul a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 4px 0;
}
.site-footer ul a:hover { text-decoration: underline; }
.site-footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer-bottom p { margin: 0; }

/* ---- GUIDE PAGE STYLES ---- */
.guide-header {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 24px 0 60px;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--pink-text); }

.guide-title {
  max-width: 780px;
}
.guide-title h1 {
  font-size: clamp(36px, 5vw, 60px); /* same scale as main-site hero */
  margin: 12px 0 16px;
  font-weight: 700;
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.meta span {
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.article h2 {
  font-size: 30px; /* text-3xl */
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}
.article h3 {
  font-size: 20px; /* text-xl */
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}
.article p, .article li {
  color: var(--ink);
  font-size: 16px; /* main-site base */
  line-height: 1.75;
  font-weight: 400;
}
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); font-weight: 600; }

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 24px 74px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--pink-text);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-shot {
  margin: 22px 0 2px;
}
.step-shot img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-shot figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.callout {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.callout.mint { border-left-color: var(--mint); }
.callout.sky { border-left-color: var(--sky); }
.callout.lilac { border-left-color: var(--lilac); }
.callout h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.callout p { margin: 0; color: var(--ink); font-size: 16px; }

.nav-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.nav-next a {
  color: var(--pink-text);
  text-decoration: none;
  font-weight: 600;
}
.nav-next a:hover { color: var(--pink-hover); }

.hero-emoji {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 12px;
}
.hero-emoji img {
  width: 60px;
  height: 60px;
  display: inline-block;
}
.emoji-inline {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  display: inline-block;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 50px; }
  .guides { padding: 50px 0; }
  .article { padding: 30px 20px 70px; }
  .steps li { padding: 20px 16px 20px 62px; }
  .steps li::before {
    left: 16px;
    top: 20px;
  }
  .step-shot {
    margin-left: -46px;
  }
  h1 { font-size: 36px; } /* main-site mobile hero: text-4xl */
}

/* Site header/footer responsive (md = 768px, matching the React app) */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    color: var(--ink);
  }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu summary::before { content: "\2630"; } /* ☰ */
  .site-menu[open] summary::before { content: "\2715"; } /* ✕ */
  .site-menu summary:hover { background: rgba(0, 0, 0, 0.05); }
  .site-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 210px;
    padding: 6px 0;
  }
  .site-menu-list a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .site-menu-list a:last-child { border-bottom: 0; }
  .site-menu-list a:hover { background: rgba(0, 0, 0, 0.04); }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}

/* SHARE STRIP — Facebook share CTA injected above the footer on every guide */
.share-strip { padding: 0 0 48px; text-align: center; }
.share-strip p { color: var(--ink-2); font-weight: 600; margin: 0 0 12px; }
