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

/* ===========================
   CSS Custom Properties
=========================== */
:root {
  --clr-primary: #b4fde1;
  --clr-secondary: #add8e6;
  --clr-ink: #172620;
  --clr-white: #ffffff;
  --clr-card-bg: #e8fef5;
  --clr-card-bg2: #ddf0f8;
  --clr-muted: #3d5a50;
  --clr-border: #172620;
  --clr-accent: #0fa36b;
  --clr-accent2: #3a8fa8;
  --clr-shadow-light: rgba(23, 38, 32, 0.12);
  --clr-shadow-dark: rgba(23, 38, 32, 0.25);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --border-w: 3px;
  --border: var(--border-w) solid var(--clr-border);
  --shadow-clay: 4px 4px 0px var(--clr-border), inset -2px -2px 6px var(--clr-shadow-light);
  --shadow-card: 3px 3px 0px var(--clr-border), inset -1px -1px 4px var(--clr-shadow-light);
  --font: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
  --max-content: 760px;
  --max-wide: 1200px;
  --transition-bounce: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--clr-ink);
  background-color: #f0fdf7;
  overflow-x: hidden;
}

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

a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition-bounce), opacity var(--transition-bounce);
}

a:hover {
  color: var(--clr-accent2);
  opacity: 0.85;
}

ol, ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--clr-ink);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); margin-top: 1.5rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.1rem; }

hr {
  border: none;
  border-top: var(--border-w) solid var(--clr-border);
  border-radius: 99px;
  margin: 0.6rem 0 1.2rem;
  opacity: 0.25;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===========================
   Announce Strip
=========================== */
.announce-strip {
  background: var(--clr-ink);
  color: var(--clr-primary);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: 0.03em;
}

/* ===========================
   Site Header
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-primary);
  border-bottom: var(--border);
  box-shadow: 0 3px 0 var(--clr-border);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--clr-ink);
  flex-shrink: 0;
}

.brand:hover { opacity: 0.85; color: var(--clr-ink); }

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--clr-ink);
  color: var(--clr-primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  border: var(--border);
  box-shadow: var(--shadow-clay);
  flex-shrink: 0;
}

.brand-mark {
  border-radius: var(--radius-sm);
  border: var(--border);
  box-shadow: var(--shadow-clay);
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Header actions */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CTA buttons (header & overlay) */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  border: var(--border);
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
  white-space: nowrap;
}

.cta-signup {
  background: var(--clr-ink);
  color: var(--clr-primary);
  box-shadow: var(--shadow-clay);
}

.cta-signup:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--clr-border);
  color: var(--clr-primary);
  opacity: 1;
}

.cta-login {
  background: var(--clr-primary);
  color: var(--clr-ink);
  box-shadow: var(--shadow-clay);
}

.cta-login:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--clr-border);
  color: var(--clr-ink);
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--clr-secondary);
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-clay);
  flex-shrink: 0;
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
}

.hamburger:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--clr-border);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--clr-ink);
  border-radius: 3px;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* ===========================
   Overlay Menu
=========================== */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--clr-primary);
  border: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease-out;
}

.overlay-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-menu nav ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.overlay-menu nav ol li a {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-ink);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: var(--border);
  background: var(--clr-white);
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
  min-height: 44px;
}

.overlay-menu nav ol li a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--clr-border);
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  background: var(--clr-secondary);
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-clay);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.overlay-close:hover { transform: scale(1.1); }

.overlay-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===========================
   Hero Section (Home)
=========================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary) 60%, var(--clr-secondary) 100%);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: #f0fdf7;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-section .content-with-aside {
  flex-direction: row;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-copy {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 40px;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-media {
  flex: 0 0 400px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder {
  width: 280px;
  height: 280px;
  background: var(--clr-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-toy {
  font-size: 5rem;
  animation: soft-bounce 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-img {
  border-radius: var(--radius-lg);
  border: var(--border);
  box-shadow: var(--shadow-clay);
  object-fit: cover;
  width: 100%;
  height: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: var(--clr-ink);
  color: var(--clr-primary);
  border: var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--clr-border);
  color: var(--clr-primary);
  opacity: 1;
}

/* ===========================
   Topic Banner
=========================== */
.topic-banner {
  background: linear-gradient(120deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
  border-bottom: var(--border);
  padding: 60px 20px 48px;
}

.topic-banner-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.topic-banner h1 {
  margin: 0.4rem 0 0.6rem;
}

.topic-lead {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 0;
}

/* ===========================
   Article Header
=========================== */
.article-header-section {
  background: var(--clr-card-bg);
  border-bottom: var(--border);
  padding: 48px 20px 40px;
}

.article-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.article-header-inner h1 {
  margin: 0.5rem 0 0.6rem;
}

.article-lead {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 0;
}

.article-hero-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow-clay);
  max-width: 700px;
}

.article-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===========================
   Inner Header (About / Privacy)
=========================== */
.inner-header-section {
  background: var(--clr-card-bg2);
  border-bottom: var(--border);
  padding: 56px 20px 44px;
}

.inner-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.inner-header-inner h1 {
  margin: 0.5rem 0 0.6rem;
}

/* ===========================
   Eyebrow & Stage Chips
=========================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--clr-ink);
  color: var(--clr-primary);
  border-radius: var(--radius-sm);
  border: 2px solid var(--clr-border);
  margin-bottom: 8px;
}

.stage-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--clr-border);
  margin-bottom: 8px;
}

.stage-awareness  { background: var(--clr-primary); color: var(--clr-ink); }
.stage-consideration { background: var(--clr-secondary); color: var(--clr-ink); }
.stage-decision   { background: var(--clr-accent); color: #fff; }

/* ===========================
   Breadcrumb
=========================== */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.breadcrumb ol li {
  font-size: 0.82rem;
  color: var(--clr-muted);
}

.breadcrumb ol li::after {
  content: ' /';
  margin-left: 4px;
  color: var(--clr-muted);
}

.breadcrumb ol li:last-child::after { display: none; }

.breadcrumb ol li a {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* ===========================
   Byline
=========================== */
.byline {
  font-size: 0.88rem;
  color: var(--clr-muted);
  margin-bottom: 0.6rem;
}

.byline strong { color: var(--clr-ink); }

/* ===========================
   Content Layout (shared)
=========================== */
.content-section {
  padding: 48px 20px 64px;
}

.content-with-aside {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.content-main {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--max-content);
}

/* Body copy styles */
.content-main p { margin-bottom: 1.1rem; }

.content-main ul,
.content-main ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.content-main ol { list-style: decimal; }

.content-main li { margin-bottom: 0.4rem; }

.content-main a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.content-main th,
.content-main td {
  border: 2px solid var(--clr-ink);
  padding: 8px 12px;
  text-align: left;
}

.content-main th {
  background: var(--clr-ink);
  color: var(--clr-primary);
}

.content-main tr:nth-child(even) td {
  background: var(--clr-card-bg);
}

blockquote {
  border-left: 4px solid var(--clr-accent);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--clr-card-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* ===========================
   Sidebar
=========================== */
.sidebar {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--clr-card-bg);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border-bottom: 5px solid var(--clr-ink);
}

.sidebar-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 4px;
}

.sidebar-nav li {
  margin-bottom: 6px;
}

.sidebar-nav li a {
  display: block;
  font-size: 0.88rem;
  color: var(--clr-accent);
  text-decoration: underline;
  padding: 3px 0;
  min-height: 28px;
}

.rg-card {
  background: var(--clr-card-bg2);
}

.rg-notice {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   Child Blocks (Sibling <a> with <strong>)
=========================== */
.child-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
  background: var(--clr-white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--clr-ink);
  box-shadow: var(--shadow-clay);
  border-bottom: 5px solid var(--clr-ink);
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
  animation: stagger-in 400ms ease-out both;
}

.child-block:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--clr-border);
  color: var(--clr-ink);
  opacity: 1;
}

.child-block strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-ink);
  display: block;
}

.child-desc {
  font-size: 0.82rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

.child-date {
  font-size: 0.76rem;
  color: var(--clr-muted);
  margin-top: 4px;
}

.topic-children {
  margin-top: 2.5rem;
}

/* Stagger animation */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.child-blocks .child-block:nth-child(1) { animation-delay: 0ms; }
.child-blocks .child-block:nth-child(2) { animation-delay: 80ms; }
.child-blocks .child-block:nth-child(3) { animation-delay: 160ms; }
.child-blocks .child-block:nth-child(4) { animation-delay: 240ms; }
.child-blocks .child-block:nth-child(5) { animation-delay: 320ms; }

/* ===========================
   Author Card (About)
=========================== */
.author-card {
  background: var(--clr-card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-clay);
  margin-bottom: 2rem;
  border-bottom: 5px solid var(--clr-ink);
}

.author-card h2 {
  margin-top: 0;
}

.author-credentials {
  color: var(--clr-muted);
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.author-bio {
  margin-bottom: 0;
}

/* ===========================
   Home Content Section
=========================== */
.home-content {
  background: #f0fdf7;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--clr-ink);
  color: var(--clr-primary);
  border-top: var(--border);
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  padding: 48px 0 36px;
  flex-wrap: wrap;
}

.footer-brand-col {
  flex: 1 1 280px;
}

.footer-brand-col .brand {
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.footer-brand-col .brand-chip {
  background: var(--clr-primary);
  color: var(--clr-ink);
  box-shadow: 3px 3px 0 rgba(180, 253, 225, 0.3);
}

.footer-brand-col .brand-name {
  color: var(--clr-primary);
}

.footer-blurb {
  font-size: 0.88rem;
  color: #8ec4ac;
  margin-bottom: 0.8rem;
  max-width: 320px;
}

.footer-rg {
  color: #6aad92;
  margin-bottom: 0.8rem;
}

.trust-links {
  font-size: 0.82rem;
}

.trust-links a {
  color: var(--clr-secondary);
  text-decoration: underline;
}

.trust-links a:hover { color: var(--clr-primary); opacity: 1; }

.footer-links-col {
  flex: 0 1 240px;
}

.footer-links-col ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col ol li a {
  font-size: 0.88rem;
  color: #8ec4ac;
  text-decoration: underline;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-links-col ol li a:hover {
  color: var(--clr-primary);
  opacity: 1;
}

.footer-bottom {
  border-top: 2px solid rgba(180, 253, 225, 0.15);
  padding: 16px 0;
  font-size: 0.8rem;
  color: #5a917a;
  text-align: center;
}

/* ===========================
   Parallax (hero media)
=========================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    will-change: transform;
  }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .content-with-aside {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    flex: none;
  }

  .hero-section .content-with-aside {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media {
    flex: none;
    max-width: 240px;
    margin-bottom: 16px;
  }

  .hero-placeholder {
    width: 200px;
    height: 200px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links-col {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .header-inner { padding: 0 14px; }

  .cta {
    font-size: 0.8rem;
    padding: 0 12px;
    min-height: 44px;
  }

  h1 { font-size: 1.65rem; }

  .content-section { padding: 32px 14px 48px; }

  .article-header-section,
  .topic-banner,
  .inner-header-section { padding: 36px 14px 28px; }

  .child-blocks {
    flex-direction: column;
  }

  .child-block {
    flex: none;
    width: 100%;
  }

  .sidebar-card { padding: 14px; }

  .author-card { padding: 18px; }

  .footer-inner { padding: 0 14px; }

  .overlay-menu nav ol li a {
    font-size: 1rem;
    padding: 10px 16px;
  }
}

/* ===========================
   Reduced Motion
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .chip-toy { animation: none; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}