/* WordNest Jr — marketing site styles
   Cozy picture-book aesthetic. Light theme only, intentionally. */

:root {
  color-scheme: light;

  --paper: #F7F0DF;
  --paper-alt: #F3EAD6;
  --card: #FFFDF7;
  --ink: #4A3F2E;
  --ink-soft: #6B5E48;
  --green: #7FA35C;
  /* Text/accent green — darkened from #5E7E42 to clear WCAG AA 4.5:1 for
     small text (eyebrows, links, tagline) on the cream papers. */
  --green-deep: #4E6B37;
  --orange: #F49B33;
  --orange-deep: #D97E1A;
  --line: #E7DCC2;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 10px 30px -12px rgba(74, 63, 46, 0.22), 0 2px 8px -2px rgba(74, 63, 46, 0.10);
  --shadow-card: 0 6px 20px -8px rgba(74, 63, 46, 0.16);

  --font-display: 'Quicksand', 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

p {
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0 0 1em 0;
}

a {
  color: var(--green-deep);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  padding: 20px 0 0 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px 0;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-mark {
  width: 96px;
  height: 96px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  max-width: 16ch;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.store-badge-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.hero-ground {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin-top: 10px;
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 10px;
}

/* ---------- Steps (how it feels) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  text-align: center;
}

.step-card svg {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ---------- Phonics trail ---------- */

.trail-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.trail-illustration {
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}

.trail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trail-item svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 2px;
}

.trail-item h4 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.trail-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.guarantee-banner {
  background: var(--paper-alt);
  border: 1px dashed var(--green);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--green-deep);
  text-align: center;
}

/* ---------- Kindness list ---------- */

.kindness-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.kindness-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.kindness-item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.kindness-item span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Trust card ---------- */

.trust-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.trust-card h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 240, 223, 0.1);
  border: 1px solid rgba(247, 240, 223, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-pill svg {
  width: 18px;
  height: 18px;
}

.trust-card p {
  color: #E4DCC6;
  max-width: 50ch;
  margin: 0;
}

/* ---------- Parents ---------- */

.parents-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

.parents-copy h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.parents-copy p {
  color: var(--ink-soft);
}

.parents-copy ul {
  margin: 0 0 1em 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.parents-copy li {
  margin-bottom: 8px;
}

.price-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ink);
}

.price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.price-trial {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.price-fine {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.footer-fine {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 10px;
}

/* ---------- Privacy page ---------- */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px 24px;
}

.legal-todo {
  background: #FDECC8;
  border: 2px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #7A4A0A;
  margin-bottom: 32px;
}

.legal-wrap h1 {
  font-size: 2rem;
}

.legal-wrap h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

.legal-wrap p, .legal-wrap li {
  color: var(--ink-soft);
}

.legal-back {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .trail-grid {
    grid-template-columns: 1fr;
  }

  .kindness-list {
    grid-template-columns: 1fr;
  }

  .parents-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }

  /* In-page jump links are optional wayfinding on this one-pager; below
     600px they would overflow past the viewport (horizontal scroll), so
     drop them and let the brand stand alone. */
  .nav-links {
    display: none;
  }

  .hero {
    padding: 40px 0 28px 0;
  }

  section {
    padding: 44px 0;
  }

  .trail-card {
    padding: 24px 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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