/* ============================================================
   Learn Angrezi — English Learning
   Design tokens: pastel green + pastel purple
   Display: Bricolage Grotesque · Body: Plus Jakarta Sans · Label: Space Mono
   ============================================================ */

:root {
  --paper: #F8FAF8;
  --surface: #FFFFFF;
  --surface-2: #EDF6F0;
  --ink: #26332E;
  --ink-2: #52635B;
  --ink-3: #718078;
  --surface-strong: #1D2923;
  --coral: #A883C2;
  --coral-deep: #74528F;
  --teal: #82B99B;
  --teal-deep: #47795E;
  --gold: #C8B1DF;
  --violet: #8264A6;
  --line: rgba(38, 51, 46, 0.12);
  --line-2: rgba(38, 51, 46, 0.2);

  --shadow-sm: 0 2px 8px rgba(38, 51, 46, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(38, 51, 46, 0.18);
  --shadow-lg: 0 30px 60px -22px rgba(38, 51, 46, 0.28);

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

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18231E;
  --surface: #202D27;
  --surface-2: #2A3931;
  --ink: #EEF7F0;
  --ink-2: #C4D2C8;
  --ink-3: #9AAEA0;
  --surface-strong: #14211B;
  --coral: #D0AEE8;
  --coral-deep: #E2C6F4;
  --teal: #9BD3B1;
  --teal-deep: #B5E3C4;
  --gold: #D9C4EF;
  --violet: #D0B5E6;
  --line: rgba(238, 247, 240, 0.13);
  --line-2: rgba(238, 247, 240, 0.24);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 30px 60px -22px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--coral-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: var(--surface-strong); box-shadow: 0 12px 24px -10px rgba(168,131,194,.58); }
.btn-primary:hover { background: var(--coral-deep); color: var(--surface-strong); transform: translateY(-3px); box-shadow: 0 18px 30px -10px rgba(116,82,143,.55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.btn-dark { background: var(--surface-strong); color: #fff; }
.btn-dark:hover { background: var(--teal-deep); color: #fff; transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .site-header { background: rgba(24, 35, 30, .86); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 0.96rem; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--coral); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 18px 22px 26px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 92px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 15px 7px 9px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.hero h1 { margin-top: 22px; }
.hero h1 .accent { color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 .underline-svg { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 14px; }
.hero .typed-line { display: inline-block; min-height: 1.1em; color: var(--teal-deep); }
.hero .caret { display: inline-block; width: 3px; height: 1em; background: var(--coral); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; border-radius: 2px; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
.hero .lead { margin-top: 22px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 38px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.hero-stat .lbl { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.hero-visual { position: relative; overflow: clip; border-radius: var(--radius-lg); }

/* floating word chips in hero illustration */
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 8px 14px; font-weight: 700; font-size: 0.85rem;
  box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 7px;
  animation: bob 5s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; }
.float-chip.c1 { top: 8%; left: 3%; color: var(--coral-deep); animation-delay: 0s; }
.float-chip.c2 { top: 38%; right: 3%; color: var(--teal-deep); animation-delay: .8s; }
.float-chip.c3 { bottom: 8%; left: 5%; color: var(--violet); animation-delay: 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee strip ---------- */
.strip { background: var(--surface-strong); color: #fff; padding-block: 16px; overflow: hidden; }
.strip-track { display: flex; gap: 52px; white-space: nowrap; animation: scroll 28s linear infinite; width: max-content; }
.strip-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; opacity: .92; display: inline-flex; align-items: center; gap: 14px; }
.strip-track span::after { content: "✦"; color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon-badge svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.bg-coral { background: rgba(255,106,90,.12); color: var(--coral-deep); }
.bg-teal { background: rgba(20,184,166,.12); color: var(--teal-deep); }
.bg-gold { background: rgba(255,178,46,.16); color: #b9751a; }
.bg-violet { background: rgba(108,92,231,.12); color: var(--violet); }

.num-tag { font-family: var(--font-mono); font-weight: 700; color: var(--ink-3); font-size: 0.8rem; letter-spacing: .1em; }

/* ---------- Word of the day widget ---------- */
.wod {
  background: linear-gradient(150deg, #385646 0%, #263D31 60%, #4E3A62 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.wod::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(208,174,232,.38), transparent 70%); }
.wod-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.wod-word { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 12px 0 4px; color: #fff; letter-spacing: -.02em; }
.wod-pron { color: rgba(255,255,255,.62); font-style: italic; font-size: 1rem; }
.wod-def { margin-top: 16px; color: rgba(255,255,255,.88); font-size: 1.02rem; }
.wod-ex { margin-top: 12px; color: rgba(255,255,255,.7); font-size: .94rem; border-left: 3px solid var(--coral); padding-left: 14px; }
.wod-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.wod-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: var(--radius-pill); padding: 10px 20px; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .2s; font-family: var(--font-body); }
.wod-btn:hover { background: rgba(255,255,255,.2); }
.wod-btn svg { width: 16px; height: 16px; }

/* ---------- Steps / path ---------- */
.path { display: grid; gap: 18px; }
.path-step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .3s, transform .3s var(--ease); }
.path-step:hover { border-color: var(--coral); transform: translateX(6px); }
.path-num { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-strong); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; flex: none; }
.path-step:nth-child(2) .path-num { background: var(--coral); }
.path-step:nth-child(3) .path-num { background: var(--teal); }
.path-step:nth-child(4) .path-num { background: var(--violet); }
.path-step:nth-child(5) .path-num { background: var(--gold); color: var(--ink); }

/* ---------- Quote / encourage band ---------- */
.encourage { background: var(--surface-strong); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.encourage::after { content: ""; position: absolute; left: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(155,211,177,.38), transparent 70%); }
.encourage h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.encourage p { color: rgba(255,255,255,.74); max-width: 52ch; margin: 18px auto 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .25s; }
.faq-item[open] { border-color: var(--coral); }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); color: var(--coral); }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Blog cards ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.post-card .thumb svg { width: 100%; height: 100%; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.tag-pill { background: var(--surface-2); color: var(--ink-2); border-radius: var(--radius-pill); padding: 4px 12px; font-size: .74rem; font-weight: 700; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--coral-deep); }
.post-card p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.post-card .read { margin-top: 16px; font-weight: 700; color: var(--coral-deep); display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.post-card .read svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .read svg { transform: translateX(4px); }

/* ---------- Article ---------- */
.article-hero { padding-block: clamp(34px, 5vw, 60px) 8px; }
.article-hero .crumbs { font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.article-hero .crumbs a { color: var(--ink-3); }
.article-hero h1 { max-width: 20ch; }
.article-hero .lead { margin-top: 18px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.article-meta .who { font-weight: 700; color: var(--ink); font-size: .92rem; }
.article-meta .when { font-size: .8rem; color: var(--ink-3); }
.article-figure { margin: 8px 0 34px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.article-figure svg { width: 100%; height: auto; display: block; }

.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 22px; }
.prose p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.78; }
.prose h2 { margin-top: 46px; font-size: clamp(1.5rem, 3vw, 2.05rem); }
.prose h3 { margin-top: 34px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--coral); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--coral); background: var(--surface-2); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); font-style: normal; }
.prose .callout { background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.25); border-radius: var(--radius); padding: 22px 24px; }
.prose .callout strong { color: var(--teal-deep); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 30px 0; }
.prose figure svg { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { text-align: center; font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- Social share (token pills) ---------- */
.share { margin: 38px auto; max-width: 720px; }
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.share-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-pill); padding: 9px 16px; font-weight: 700; font-size: .85rem;
  font-family: var(--font-body); transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-btn:hover svg path, .share-btn:hover svg circle { transition: fill .2s; }
.share-x:hover { background: #000; border-color: #000; color: #fff; }
.share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-in:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.share-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-copy:hover { background: var(--surface-strong); border-color: var(--surface-strong); color: #fff; }
.share-copy.copied { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Newsletter ---------- */
.news { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px); border: 1px solid var(--line); }
.news-form { display: flex; gap: 12px; margin-top: 22px; max-width: 460px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); font-family: var(--font-body); font-size: 1rem; background: var(--surface); color: var(--ink); }
.news-form input:focus { outline: none; border-color: var(--coral); }
.news-note { font-size: .82rem; color: var(--ink-3); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-strong); color: rgba(255,255,255,.72); padding-block: clamp(48px, 7vw, 76px) 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,.66); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: .92rem; margin: 16px 0 20px; max-width: 38ch; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social-row a:hover { background: var(--coral); transform: translateY(-3px); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin-inline: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .share-bar { padding: 16px; }
}

/* ---------- Mobile-first refinements ---------- */
/* Base rules below intentionally target narrow screens. Larger layouts are opt-in. */
.wrap { padding-inline: 16px; }
.section { padding-block: 52px; }
.nav { height: 64px; gap: 10px; }
.brand { font-size: 1.08rem; gap: 8px; }
.brand .logo-mark { width: 34px; height: 34px; }
.nav-cta { gap: 8px; }
.nav-cta .btn { display: none; }
.nav-links { inset: 64px 0 auto 0; padding: 14px 16px 22px; }
.hero { padding-block: 36px 52px; }
.hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
.hero-visual { order: -1; max-width: 360px; margin-inline: auto; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hero-actions .btn { justify-content: center; width: 100%; white-space: normal; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.hero-stat .num { font-size: 1.3rem; }
.hero-stat .lbl { font-size: .72rem; line-height: 1.35; }
.float-chip { font-size: .72rem; padding: 6px 10px; }
.float-chip.c1 { left: 0; }
.float-chip.c2 { right: 0; }
.card { padding: 22px; }
.path-step { grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; }
.path-num { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
.wod, .encourage, .news { border-radius: 22px; }
.wod-actions { display: grid; grid-template-columns: 1fr; }
.wod-btn { justify-content: center; }
.post-card .body { padding: 20px; }
.faq-item summary { padding: 18px; font-size: 1rem; }
.faq-item .faq-body { padding: 0 18px 18px; }
.prose p, .prose ul, .prose ol { font-size: 1rem; }
.prose blockquote { padding: 16px 18px; font-size: 1.08rem; }
.share-bar { padding: 14px; }
.share-label { width: 100%; }
.share-btn { flex: 1 1 calc(50% - 10px); justify-content: center; padding-inline: 10px; }
.news { padding: 26px 20px; }
.news-form { display: grid; grid-template-columns: 1fr; }
.news-form input { min-width: 0; width: 100%; }
.news-form .btn { justify-content: center; }
.footer-grid { gap: 28px; }
.footer-bottom { margin-top: 32px; }

@media (min-width: 480px) {
  .wrap { padding-inline: 22px; }
  .hero-actions { display: flex; }
  .hero-actions .btn { width: auto; }
  .wod-actions { display: flex; }
  .share-label { width: auto; }
  .share-btn { flex: 0 1 auto; }
}

@media (min-width: 861px) {
  .nav { height: 72px; gap: 20px; }
  .brand { font-size: 1.22rem; gap: 11px; }
  .brand .logo-mark { width: 38px; height: 38px; }
  .nav-cta .btn { display: inline-flex; }
  .hero { padding-block: clamp(48px, 8vw, 92px); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-visual { order: initial; max-width: none; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { display: flex; gap: 30px; margin-top: 38px; }
  .hero-stat .num { font-size: 1.7rem; }
  .hero-stat .lbl { font-size: .82rem; }
  .float-chip { font-size: .85rem; padding: 8px 14px; }
  .float-chip.c1 { left: 3%; }
  .float-chip.c2 { right: 3%; }
  .path-step { grid-template-columns: auto 1fr; gap: 22px; padding: 24px; }
  .path-num { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 981px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
