/* =========================================================
   Tech Neck — marketing site styles
   Aesthetic: warm cream, forest green accent, clean sans +
   italic serif highlights (calai.app-inspired)
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f3eee5;
  --bg-2: #ebe4d4;
  --ink: #1a1a1a;
  --ink-2: #3f3a33;
  --muted: #6b6358;
  --line: #e2d9c7;
  --card: #ffffff;
  --green: #2f6b48;
  --green-2: #275b3d;
  --green-soft: #e7efe7;
  --gold: #ffd77a;
  --warn: #c73e1d;
  --warn-soft: #fce6de;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05),
    0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 6px 24px rgba(26, 26, 26, 0.08),
    0 1px 3px rgba(26, 26, 26, 0.05);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, 0.12),
    0 8px 24px rgba(26, 26, 26, 0.06);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1180px;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

em,
.italic {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: var(--container);
  height: var(--nav-h);
  padding: 10px 14px 10px 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-logo img,
.nav-logo svg {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.footer-brand .nav-logo img,
.footer-brand .nav-logo svg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}
.btn-full {
  width: 100%;
}
.btn-primary {
  background: var(--ink);
  color: #f6f2ea;
}
.btn-primary:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #f6f2ea;
}

/* ---------- SHARED ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 72, 0.15);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

/* ======================================================
   HERO — sticky scroll-driven posture transformation
   ====================================================== */
.hero {
  position: relative;
  min-height: 320vh;
  padding-top: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 24px;
}

.hero-grid {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-title {
  margin: 18px 0 20px;
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  color: var(--green);
}

.hero-sub {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatars {
  display: inline-flex;
}
.avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-right: -10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.hero-meta-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}
.stars {
  color: #e6a31a;
  letter-spacing: 0.05em;
  font-size: 13px;
}

/* FIGURE */
.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.hero-figure svg#figure {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(26, 26, 26, 0.08));
}

.hero-readout {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 200px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.readout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.readout-label {
  color: var(--muted);
  font-weight: 500;
}
.readout-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.readout-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  min-width: 90px;
}
.readout-bar-fill {
  display: block;
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #c73e1d, #e6a31a 50%, #2f6b48);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.readout-state {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-weight: 600;
  color: var(--warn);
  transition: color 0.2s ease;
}
.readout-state.good {
  color: var(--green);
}
.readout-state.warn {
  color: #b97a12;
}

.scroll-cue {
  position: absolute;
  bottom: -4px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  animation: bob 2.5s ease-in-out infinite;
}
.scroll-cue svg {
  animation: nudge 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ======================================================
   HOW IT WORKS
   ====================================================== */
.how {
  padding: 120px 0 80px;
  position: relative;
}

.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.zone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zone:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.zone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.zone-tag {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.zone-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.zone-pill--good {
  background: var(--green-soft);
  color: var(--green-2);
}
.zone-pill--warn {
  background: #fbefd6;
  color: #8a6512;
}
.zone-pill--bad {
  background: var(--warn-soft);
  color: var(--warn);
}
.zone-illo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.zone h3 {
  margin: 6px 0 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.zone p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

/* ======================================================
   FEATURES
   ====================================================== */
.features {
  padding: 100px 0;
  background: var(--bg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.feature:hover {
  transform: translateY(-3px);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ======================================================
   PARENTS
   ====================================================== */
.parents {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #ede6d6 100%);
}
.parents-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.parents-copy .eyebrow {
  margin-bottom: 18px;
}
.parents-copy .h2 em {
  color: var(--green);
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.parents-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}
.parents-card:hover {
  transform: rotate(0);
}
.parents-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.parents-card-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 107, 72, 0.15);
}
.parents-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.score-val {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.score-val span {
  font-size: 36px;
  color: var(--muted);
  font-weight: 500;
}
.score-label {
  color: var(--muted);
  font-size: 14px;
}
.parents-chart {
  height: 120px;
  margin-bottom: 8px;
}
.parents-chart svg {
  width: 100%;
  height: 100%;
}
.parents-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.parents-badge {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft);
  color: var(--green-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
}

/* ======================================================
   QUOTES
   ====================================================== */
.quotes {
  padding: 100px 0;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
}
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-stars {
  color: #e6a31a;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.quote p {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 4px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.quote figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* ======================================================
   FAQ
   ====================================================== */
.faq {
  padding: 100px 0;
  background: var(--bg);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.faq-item:hover {
  border-color: #d7ccb5;
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  display: none;
}
.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-2);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-icon {
  background: var(--green-soft);
}
.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}
.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
}

/* ======================================================
   PRICING
   ====================================================== */
.pricing {
  padding: 100px 0;
  background: var(--bg);
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  background: var(--ink);
  color: #f6f2ea;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.plan--featured .plan-sub,
.plan--featured .plan-list {
  color: #c8c0ae;
}
.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: #3b2d06;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-head {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.75;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.plan-price span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}
.plan-sub {
  color: var(--muted);
  margin: 0 0 22px;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.plan-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  margin-right: 10px;
}
.plan--featured .plan-list li::before {
  color: var(--gold);
}
.plan--featured .btn-primary {
  background: var(--gold);
  color: #3b2d06;
}
.plan--featured .btn-primary:hover {
  background: #ffe6a1;
  color: #3b2d06;
}

/* ======================================================
   CTA
   ====================================================== */
.cta {
  padding: 120px 0;
  text-align: center;
}
.cta-inner .h2 {
  font-size: clamp(44px, 6vw, 80px);
}
.cta-inner .h2 em {
  color: var(--green);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--ink);
  color: #c8c0ae;
  padding: 60px 0 24px;
}
.footer-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f6f2ea;
  font-weight: 700;
  font-size: 18px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 40px;
}
.footer-cols h4 {
  color: #f6f2ea;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-cols a {
  display: block;
  color: #a79e8c;
  font-size: 14.5px;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover {
  color: #f6f2ea;
}
.footer-copy {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: #8a806e;
  border-top: 1px solid #2a2621;
  padding-top: 20px;
}

/* ======================================================
   LEGAL PAGES (Privacy, Terms)
   ====================================================== */
.legal {
  padding: calc(var(--nav-h) + 80px) 0 120px;
  background: var(--bg);
}
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.legal-back:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}
.legal-head {
  margin: 28px 0 48px;
}
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}
.legal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.legal-title em {
  color: var(--green);
}
.legal-meta {
  color: var(--muted);
  font-size: 14px;
}
.legal-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-body p {
  margin: 0 0 18px;
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
}
.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-body li {
  margin: 6px 0;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-body a:hover {
  color: var(--green-2);
}
.legal-body code,
.legal-body .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
  background: #ebe4d4;
  padding: 1px 6px;
  border-radius: 4px;
}
.legal-note {
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 640px) {
  .legal {
    padding: calc(var(--nav-h) + 48px) 0 72px;
  }
  .legal-head { margin: 20px 0 32px; }
  .legal-body { font-size: 15.5px; }
  .legal-body h2 { font-size: 20px; margin-top: 36px; }
  .legal-body h3 { font-size: 16px; }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

/* ---------- TABLET ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }

  .hero { min-height: 260vh; }
  .hero-sticky {
    min-height: 0;
    height: 100vh;
    padding: calc(var(--nav-h) + 10px) 0 10px;
    overflow: hidden; /* keep figure inside the sticky box */
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
    height: 100%;
  }
  .hero-text {
    text-align: center;
    margin: 0 auto;
    max-width: 540px;
  }
  .hero-title {
    font-size: clamp(34px, 7.2vw, 52px);
    margin: 12px 0 14px;
  }
  .hero-sub {
    margin: 0 auto 18px;
    font-size: 16px;
    max-width: 500px;
  }
  .hero-cta {
    justify-content: center;
    margin-bottom: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero-meta { display: none; }

  /* Figure + readout stacked vertically (no more HUD overlay on top of
     the character) on every single-column layout. */
  .hero-figure {
    aspect-ratio: auto;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .hero-figure svg#figure {
    width: min(46vh, 320px);
    height: min(46vh, 320px);
    filter: drop-shadow(0 20px 28px rgba(26, 26, 26, 0.08));
    display: block;
  }
  .hero-readout {
    position: static;
    display: block;
    margin: 0 auto;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: min(300px, 78vw);
    max-width: 300px;
    font-size: 12.5px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
  }
  .scroll-cue { display: none; }

  /* Section spacing */
  .how { padding: 100px 0 72px; }
  .features, .parents, .quotes, .pricing, .faq { padding: 80px 0; }
  .cta { padding: 88px 0; }
  .section-head { margin-bottom: 44px; }

  /* Grids */
  .zones,
  .feature-grid,
  .quote-grid,
  .quote-grid--2x2 { grid-template-columns: 1fr 1fr; }
  .parents-grid { grid-template-columns: 1fr; gap: 32px; }
  .parents-card { transform: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ---------- PHONE ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 54px; }
  body { font-size: 16px; }

  .container { padding: 0 18px; }

  .nav {
    top: 8px;
    padding: 5px 6px 5px 12px;
    gap: 6px;
    width: calc(100% - 16px);
    height: var(--nav-h);
    border-radius: 999px;
  }
  .nav-name { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }

  /* Hero — give the content real breathing room under the nav, then
     stack: title → sub → CTA → character → readout. */
  .hero { min-height: 220vh; }
  .hero-sticky {
    padding: calc(var(--nav-h) + 36px) 0 16px;
  }
  .hero-grid { gap: 10px; }
  .eyebrow { font-size: 11px; padding: 4px 9px; }
  .hero-title {
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.05;
    margin: 8px 0 10px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.45;
    max-width: 380px;
    margin: 0 auto 14px;
  }
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
    margin: 0 auto 4px;
    gap: 8px;
  }
  .hero-cta-secondary { display: none; }
  .hero-cta .btn {
    width: auto;
    white-space: nowrap;
  }
  .btn-lg { padding: 10px 18px; font-size: 14px; }

  /* Figure wrapper needs to stop being a square so the readout can sit
     directly underneath the character without a big empty gap. */
  .hero-figure {
    aspect-ratio: auto;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-figure svg#figure {
    width: min(42vh, 240px);
    height: min(42vh, 240px);
    display: block;
  }
  /* Un-absolute the readout on phones and drop it under the character. */
  .hero-readout {
    position: static;
    display: block;
    margin: 0 auto;
    min-width: 0;
    width: min(260px, 80vw);
    max-width: 260px;
    top: auto;
    left: auto;
    transform: none;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
  }
  .readout-row { margin-bottom: 6px; gap: 10px; }
  .readout-label { font-size: 11.5px; }
  .readout-value { font-size: 13.5px; }
  .readout-bar { min-width: 80px; height: 6px; }
  .readout-state { padding-top: 6px; margin-top: 2px; font-size: 12px; }

  /* Section padding + headings */
  .how { padding: 72px 0 56px; }
  .features, .parents, .quotes, .pricing, .faq { padding: 64px 0; }
  .cta { padding: 72px 0; }
  .section-head { margin-bottom: 32px; max-width: 100%; }
  .section-sub { font-size: 15.5px; }
  .h2 { font-size: clamp(30px, 7.5vw, 42px); }

  /* Stack every grid to one column */
  .zones,
  .feature-grid,
  .quote-grid,
  .quote-grid--2x2,
  .plans { grid-template-columns: 1fr; gap: 14px; }
  .plan--featured { transform: none; }

  /* Zone cards — more compact */
  .zone { padding: 22px; gap: 12px; }
  .zone-illo { max-width: 180px; margin: 0 auto; width: 100%; }
  .zone h3 { font-size: 20px; }
  .zone p { font-size: 15px; }

  /* Feature cards */
  .feature { padding: 22px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .feature h3 { font-size: 18px; }

  /* Parents */
  .parents-card { padding: 22px; border-radius: var(--radius-md); }
  .score-val { font-size: 56px; }
  .score-val span { font-size: 28px; }
  .parents-chart { height: 100px; }
  .lead { font-size: 16px; }
  .checklist li { font-size: 15px; }

  /* Quotes */
  .quote { padding: 24px; gap: 12px; }
  .quote p { font-size: 16px; line-height: 1.5; }
  .quote figcaption { font-size: 13px; }

  /* FAQ */
  .faq-item { padding: 0 18px; }
  .faq-item summary { padding: 18px 0; font-size: 15.5px; gap: 14px; }
  .faq-item p { font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }

  /* Pricing */
  .plan { padding: 26px; }
  .plan-price { font-size: 44px; }
  .plan-ribbon { top: 12px; right: 12px; font-size: 11px; }

  /* CTA */
  .cta-inner .h2 { font-size: clamp(40px, 9vw, 60px); }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }

  /* Footer */
  .footer { padding: 48px 0 20px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-copy { margin-top: 32px; }
}

/* ---------- SMALL PHONE ---------- */
@media (max-width: 400px) {
  .container { padding: 0 14px; }

  .nav {
    padding: 4px 6px 4px 10px;
    width: calc(100% - 14px);
    top: 6px;
  }
  .nav-logo img,
  .nav-logo svg { width: 26px; height: 26px; border-radius: 6px; }
  .nav-cta { padding: 7px 12px; font-size: 12.5px; }
  .nav-cta svg { width: 14px; height: 14px; }

  .hero { min-height: 210vh; }
  .hero-sticky { padding: calc(var(--nav-h) + 24px) 0 10px; }
  .eyebrow { display: none; }
  .hero-title { font-size: clamp(24px, 8.2vw, 32px); margin: 4px 0 8px; }
  .hero-sub { font-size: 13px; line-height: 1.4; margin-bottom: 12px; max-width: 320px; }
  .btn-lg { padding: 9px 14px; font-size: 13px; gap: 6px; }
  .btn-lg svg { width: 15px; height: 15px; }
  .hero-cta { gap: 6px; }
  .hero-figure { gap: 10px; }
  .hero-figure svg#figure {
    width: min(38vh, 200px);
    height: min(38vh, 200px);
  }
  .hero-readout {
    width: min(240px, 85vw);
    padding: 8px 12px;
    font-size: 11.5px;
  }
  .readout-value { font-size: 13px; }
  .readout-bar { min-width: 70px; height: 5px; }

  .h2 { font-size: clamp(26px, 8vw, 36px); }
  .section-head { margin-bottom: 28px; }

  .quote { padding: 20px; }
  .quote p { font-size: 15px; }
  .faq-item { padding: 0 14px; }
  .faq-item summary { font-size: 14.5px; padding: 16px 0; gap: 10px; }
  .plan { padding: 22px; }
  .plan-price { font-size: 38px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- SHORT VIEWPORTS ---------- */
/* Landscape phones or browser windows with limited height. */
@media (max-width: 960px) and (max-height: 740px) {
  .hero-figure svg#figure {
    width: min(34vh, 200px);
    height: min(34vh, 200px);
  }
  .hero-title { font-size: clamp(22px, 5.2vw, 32px); margin: 4px 0 6px; }
  .hero-sub { font-size: 13px; line-height: 1.38; margin-bottom: 10px; }
  .hero-sticky { padding: calc(var(--nav-h) + 16px) 0 8px; }
  .hero-grid { gap: 6px; }
  .hero-text .eyebrow { display: none; }
}

/* Extra short (landscape phones, < 520px height) - hide readout to save room */
@media (max-width: 960px) and (max-height: 520px) {
  .hero-readout { display: none; }
  .hero-figure svg#figure {
    width: min(44vh, 180px);
    height: min(44vh, 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
  .scroll-cue svg { animation: none; }
}
