/* ==========================================================================
   NapLog design system
   Nursery gentle: cloud blue, milk white, peach and mint.
   Fredoka over Nunito. Pillowy cards, cloud scallops, very soft shadows.
   ========================================================================== */

:root {
  /* --- brief palette --- */
  --bg: #F6FAFD;
  --surface: #FFFFFF;
  --ink: #20303D;
  --primary: #4E9CC7;
  --accent: #FFB0A0;
  --muted: #65798A;

  /* --- derived tints and shades --- */
  --primary-deep: #2E7BA6;
  --primary-dark: #235E80;
  --primary-soft: #BEDDEF;
  --primary-mist: #E4F1F9;
  --primary-haze: #EFF7FC;

  --accent-deep: #E0705C;
  --accent-soft: #FFD5CB;
  --accent-mist: #FFEDE8;

  --mint: #9FE0CB;
  --mint-deep: #2F8C72;
  --mint-soft: #CFF1E6;
  --mint-mist: #E9F8F3;

  --ink-soft: #4A5F70;
  --ink-faint: #7A8C9B;
  --line: #DCE8F1;
  --line-soft: #EAF2F8;

  /* --- spacing scale --- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 44px;
  --s8: 60px;
  --s9: 84px;
  --s10: 112px;

  /* --- radii: everything is pillowy --- */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-2xl: 52px;
  --r-pill: 999px;

  /* --- very soft shadows, never hard --- */
  --sh-1: 0 2px 6px rgba(32, 48, 61, .04), 0 8px 20px -14px rgba(78, 156, 199, .40);
  --sh-2: 0 4px 12px rgba(32, 48, 61, .05), 0 22px 44px -28px rgba(78, 156, 199, .55);
  --sh-3: 0 6px 18px rgba(32, 48, 61, .06), 0 40px 70px -40px rgba(78, 156, 199, .60);
  --sh-peach: 0 20px 44px -28px rgba(224, 112, 92, .55);
  --sh-inset: inset 0 2px 0 rgba(255, 255, 255, .9);

  /* --- type scale --- */
  --f-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.15rem;
  --t-3xl: 2.75rem;
  --t-4xl: 3.4rem;

  --wrap: 1180px;
  --ease-soft: cubic-bezier(.34, .8, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  /* faint nursery sky wash */
  background-image:
    radial-gradient(760px 420px at 8% -60px, rgba(255, 176, 160, .16), transparent 70%),
    radial-gradient(900px 520px at 96% 40px, rgba(159, 224, 203, .18), transparent 72%),
    radial-gradient(1200px 700px at 50% 120%, rgba(78, 156, 199, .10), transparent 70%);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 var(--s4);
}

h1 { font-size: clamp(2.1rem, 5.4vw, var(--t-4xl)); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.9vw, var(--t-3xl)); letter-spacing: -.012em; }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s4); color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.15rem; color: var(--ink-soft); }
li { margin-bottom: var(--s2); }

/* --------------------------------------------------------- a11y basics */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s4); top: -80px;
  z-index: 200;
  background: var(--surface);
  color: var(--primary-dark);
  font-family: var(--f-display);
  padding: var(--s3) var(--s5);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  transition: top .22s var(--ease-soft);
}
.skip-link:focus { top: var(--s4); }

:focus-visible {
  outline: 3px solid var(--primary-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }

/* -------------------------------------------------------- cloud motifs */
/* A cloud is a pill with two bumps. Used as a decorative drifting shape. */
.cloud {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-pill);
  opacity: .78;
  pointer-events: none;
  z-index: 0;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud::before { width: 62%; height: 150%; left: 8%; bottom: 32%; }
.cloud::after  { width: 46%; height: 118%; right: 10%; bottom: 30%; }

.cloud--a { width: 168px; height: 56px; animation: drift 26s var(--ease-soft) infinite; }
.cloud--b { width: 116px; height: 40px; animation: drift 34s var(--ease-soft) infinite reverse; }
.cloud--c { width: 210px; height: 66px; animation: bob 20s ease-in-out infinite; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(38px, -14px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes bob {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-24px, 10px, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Scalloped cloud edge that separates bands. */
.scallop {
  position: relative;
  height: 44px;
  margin: 0;
  background-repeat: repeat-x;
  background-size: 88px 88px;
  background-position: center -44px;
}
.scallop--white {
  background-image: radial-gradient(circle at 44px 44px, var(--surface) 44px, rgba(255, 255, 255, 0) 45px);
}
.scallop--mist {
  background-image: radial-gradient(circle at 44px 44px, var(--primary-mist) 44px, rgba(228, 241, 249, 0) 45px);
}
.scallop--peach {
  background-image: radial-gradient(circle at 44px 44px, var(--accent-mist) 44px, rgba(255, 237, 232, 0) 45px);
}
.scallop--flip { transform: rotate(180deg); }

/* --------------------------------------------------------- site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--s3) 0;
  transition: padding .3s var(--ease-soft), background .3s var(--ease-soft);
}
.site-header::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(246, 250, 253, 0);
  backdrop-filter: blur(0);
  transition: background .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  z-index: -1;
}
.site-header.is-stuck { padding: var(--s2) 0; }
.site-header.is-stuck::after {
  background: rgba(246, 250, 253, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -26px rgba(35, 94, 128, .7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  box-shadow: var(--sh-1), var(--sh-inset);
  max-width: calc(var(--wrap) - 24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}
.brand svg { width: 38px; height: 38px; flex: 0 0 38px; }
.brand b { color: var(--primary-deep); font-weight: 600; }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s var(--ease-soft), color .2s var(--ease-soft);
}
.nav a:hover { background: var(--primary-mist); color: var(--primary-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--primary-mist);
  color: var(--primary-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:active { transform: scale(1.06, .9); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft), background .22s var(--ease-soft);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--primary-deep);
  color: #FFFFFF;
  box-shadow: 0 14px 28px -16px rgba(35, 94, 128, .9);
}
.btn--primary:hover { background: var(--primary-dark); color: #FFFFFF; transform: translateY(-2px); }
.btn--primary:active { transform: scale(1.05, .9) translateY(0); }

.btn--peach {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--sh-peach);
}
.btn--peach:hover { background: var(--accent-soft); color: var(--ink); transform: translateY(-2px); }
.btn--peach:active { transform: scale(1.05, .9); }

.btn--ghost {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { background: var(--primary-haze); color: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost:active { transform: scale(1.05, .9); }

.btn--wide { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: var(--t-base); }
.header-cta { flex: 0 0 auto; }

/* ------------------------------------------------------------ sections */
.band { position: relative; padding: var(--s9) 0; }
.band--tight { padding: var(--s8) 0; }
.band--white { background: var(--surface); }
.band--mist { background: var(--primary-mist); }
.band--peach { background: var(--accent-mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-mist);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s4);
}
.eyebrow--peach { color: var(--accent-deep); background: var(--accent-mist); }
.eyebrow--mint { color: var(--mint-deep); background: var(--mint-mist); }
.band--mist .eyebrow { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: var(--s8); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: var(--t-md); }

.lede { font-size: var(--t-md); color: var(--ink-soft); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: var(--s7) 0 var(--s9); overflow: hidden; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: var(--s8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s5); }
.hero-sub { font-size: var(--t-md); max-width: 34rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  padding: 0; margin: 0;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0;
}
.trust-strip svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--mint-deep); }

/* The hero photo sits in a pillow frame with a cloud shelf under it. */
.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-3);
  border: 10px solid var(--surface);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -22px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--surface);
  opacity: .7;
  filter: blur(2px);
  z-index: -1;
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  box-shadow: var(--sh-2);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink);
  z-index: 3;
}
.hero-chip span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: .05em; text-transform: uppercase; }
.hero-chip--nap { left: -18px; top: 16%; animation: bob 14s ease-in-out infinite; }
.hero-chip--bottle { right: -14px; bottom: 12%; animation: bob 18s ease-in-out infinite reverse; }
.hero-chip i {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--mint-mist);
  color: var(--mint-deep);
  font-style: normal;
}
.hero-chip--bottle i { background: var(--accent-mist); color: var(--accent-deep); }
.hero-chip svg { width: 18px; height: 18px; }

.hero .cloud--a { top: 6%; left: 4%; }
.hero .cloud--b { top: 46%; left: -3%; }
.hero .cloud--c { bottom: 4%; right: 6%; opacity: .55; }

/* ------------------------------------------------------------- problem */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.pain-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s6) var(--s5) var(--s5);
  box-shadow: var(--sh-1), var(--sh-inset);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.pain-card h3 { font-size: var(--t-md); margin-bottom: var(--s3); }
.pain-card p { font-size: var(--t-sm); margin-bottom: var(--s4); }
.pain-cost {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-mist);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.pain-num {
  position: absolute;
  top: -14px; left: var(--s5);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* ------------------------------------------------------------ how it works */
.how-layout {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: var(--s8);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 var(--s6) 76px;
  counter-increment: step;
  margin: 0;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-1);
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--primary-deep);
}
.step::after {
  content: "";
  position: absolute;
  left: 27px; top: 62px; bottom: 12px;
  width: 3px;
  border-radius: var(--r-pill);
  background: repeating-linear-gradient(to bottom, var(--primary-soft) 0 7px, transparent 7px 15px);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s2); }
.step p { font-size: var(--t-sm); margin-bottom: 0; }

.how-figure { position: relative; margin: 0; }
.how-figure img {
  width: 100%;
  border-radius: var(--r-2xl);
  border: 10px solid var(--surface);
  box-shadow: var(--sh-3);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.how-figure figcaption {
  margin-top: var(--s4);
  font-size: var(--t-sm);
  color: var(--ink-faint);
  text-align: center;
}

/* ------------------------------------------------------------ features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.feature {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--sh-1), var(--sh-inset);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.feature h3 { font-size: var(--t-md); margin-bottom: var(--s3); }
.feature p { font-size: var(--t-sm); margin-bottom: 0; }
.feature-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 22px;
  margin-bottom: var(--s5);
  background: var(--primary-mist);
  color: var(--primary-dark);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature:nth-child(2) .feature-icon { background: var(--accent-mist); color: var(--accent-deep); }
.feature:nth-child(3) .feature-icon { background: var(--mint-mist); color: var(--mint-deep); }
.feature:nth-child(5) .feature-icon { background: var(--mint-mist); color: var(--mint-deep); }
.feature:nth-child(6) .feature-icon { background: var(--accent-mist); color: var(--accent-deep); }

/* ------------------------------------------------------------ outcomes */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.outcome {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s6) var(--s6);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.outcome::before {
  content: "";
  position: absolute;
  top: -60px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--primary-haze);
}
.outcome:nth-child(2)::before { background: var(--accent-mist); }
.outcome:nth-child(3)::before { background: var(--mint-mist); }
.outcome > * { position: relative; }
.outcome-figure {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--primary-dark);
  letter-spacing: -.03em;
  display: block;
  margin-bottom: var(--s3);
}
.outcome:nth-child(2) .outcome-figure { color: var(--accent-deep); }
.outcome:nth-child(3) .outcome-figure { color: var(--mint-deep); }
.outcome h3 { font-size: var(--t-md); margin-bottom: var(--s3); }
.outcome p { font-size: var(--t-sm); margin-bottom: 0; }

/* --------------------------------------------------------- social proof */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-bottom: var(--s8);
}
.testimonial {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s6) var(--s6);
  margin: 0;
  box-shadow: var(--sh-1), var(--sh-inset);
}
.testimonial::before {
  content: "";
  position: absolute;
  left: var(--s6); top: -16px;
  width: 56px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 14px 0 0 -6px var(--mint), 28px 0 0 -12px var(--primary-soft);
}
.testimonial p {
  font-size: var(--t-sm);
  color: var(--ink);
  margin-bottom: var(--s5);
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-top: 2px dotted var(--line);
  padding-top: var(--s4);
}
.avatar {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  background: var(--primary-mist);
  color: var(--primary-dark);
}
.testimonial:nth-child(2) .avatar { background: var(--accent-mist); color: var(--accent-deep); }
.testimonial:nth-child(3) .avatar { background: var(--mint-mist); color: var(--mint-deep); }
.cite-name { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-style: normal; }
.cite-meta { display: block; font-size: var(--t-xs); color: var(--ink-faint); font-style: normal; }

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: var(--s7) var(--s6);
  box-shadow: var(--sh-2);
  text-align: center;
}
.result strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: var(--s2);
}
.result span { font-size: var(--t-sm); color: var(--ink-soft); }

/* ------------------------------------------------------------- pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: var(--s7) var(--s6) var(--s6);
  box-shadow: var(--sh-1), var(--sh-inset);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--best {
  box-shadow: var(--sh-3);
  border: 3px solid var(--accent-soft);
  transform: translateY(-14px);
}
.tier-flag {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--sh-peach);
}
.tier h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.tier-for { font-size: var(--t-sm); color: var(--ink-faint); margin-bottom: var(--s5); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 2px dotted var(--line);
}
.tier-price b {
  font-family: var(--f-display);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.03em;
}
.tier-price span { font-size: var(--t-sm); color: var(--ink-faint); }
.tier ul { list-style: none; margin: 0 0 var(--s6); padding: 0; }
.tier li {
  position: relative;
  padding-left: 30px;
  font-size: var(--t-sm);
  margin-bottom: var(--s3);
  color: var(--ink-soft);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 19px; height: 19px;
  border-radius: var(--r-pill);
  background: var(--mint-mist);
  box-shadow: inset 0 0 0 2px var(--mint-soft);
}
.tier li::after {
  content: "";
  position: absolute;
  left: 6px; top: 12px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--mint-deep);
  border-bottom: 2px solid var(--mint-deep);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin: var(--s7) auto 0;
  max-width: 640px;
  text-align: center;
  font-size: var(--t-sm);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  box-shadow: var(--sh-1);
}

/* ----------------------------------------------------------------- faq */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  margin-bottom: var(--s3);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s4);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s5) var(--s5);
  font-family: var(--f-display);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q:hover { color: var(--primary-dark); }
.faq-q .faq-mark {
  margin-left: auto;
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--primary-mist);
  color: var(--primary-dark);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-soft), background .3s var(--ease-soft);
}
.faq-q .faq-mark svg { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-mark { transform: rotate(180deg); background: var(--accent-mist); color: var(--accent-deep); }
.faq-q:active { transform: scale(1.01, .97); }
.faq-a { padding: 0 var(--s5) var(--s5); }
.faq-a p { font-size: var(--t-sm); margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ------------------------------------------------------------- contact */
.contact-shell {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--s8);
  align-items: start;
}
.contact-copy ul { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.contact-copy li {
  position: relative;
  padding-left: 32px;
  font-size: var(--t-sm);
  margin-bottom: var(--s3);
}
.contact-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  background: var(--accent-mist);
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}

.form-card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: var(--s7);
  box-shadow: var(--sh-3);
}
.field { margin-bottom: var(--s5); }
.field label {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--primary-haze);
  border: 2px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 13px 16px;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: none; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--accent-deep); background: var(--accent-mist); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.err {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--accent-deep);
  margin-top: 6px;
  min-height: 1px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: var(--s5);
}
.consent input {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  margin-top: 3px;
  accent-color: var(--primary-deep);
}
.form-foot {
  margin-top: var(--s4);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  text-align: center;
}

/* -------------------------------------------------------------- byline */
.byline {
  display: flex;
  align-items: center;
  gap: var(--s4);
  max-width: 760px;
  margin: var(--s8) auto 0;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s5);
  box-shadow: var(--sh-1);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.byline .avatar { background: var(--accent-mist); color: var(--accent-deep); }
.byline p { margin: 0; font-size: var(--t-sm); }

/* -------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #D6E2EC;
  padding: var(--s9) 0 var(--s5);
  margin-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 44px;
  background-image: radial-gradient(circle at 44px 0, var(--bg) 44px, rgba(246, 250, 253, 0) 45px);
  background-size: 88px 44px;
  background-repeat: repeat-x;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: var(--s7);
  padding-bottom: var(--s7);
}
.site-footer h2, .site-footer h3 {
  font-size: var(--t-sm);
  color: #FFFFFF;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.site-footer p { color: #B9CBD8; font-size: var(--t-sm); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #D6E2EC; text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--s4);
  text-decoration: none;
}
.footer-brand svg { width: 38px; height: 38px; }
.socials { display: flex; gap: 10px; margin-top: var(--s5); }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  color: #FFFFFF;
  transition: background .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.socials a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #A9BDCB;
}
.footer-base a { font-size: var(--t-xs); }

/* --------------------------------------------------------- inner pages */
.page-hero {
  position: relative;
  padding: var(--s8) 0 var(--s7);
  overflow: hidden;
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero .cloud--a { top: 12%; right: 8%; }
.page-hero .cloud--b { bottom: 14%; right: 22%; }

.prose {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 5vw, 60px);
  box-shadow: var(--sh-2);
  max-width: 860px;
  margin: 0 auto;
}
.prose h2 {
  font-size: var(--t-xl);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 2px dotted var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--t-md); margin-top: var(--s5); }
.prose dl { margin: 0 0 var(--s5); }
.prose dt { font-family: var(--f-display); font-weight: 600; color: var(--ink); margin-top: var(--s3); }
.prose dd { margin: 0 0 var(--s2); color: var(--ink-soft); }
.prose .meta-note {
  background: var(--primary-mist);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  font-size: var(--t-sm);
}

.author-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s7);
  align-items: start;
}
.author-portrait {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: var(--s4);
  box-shadow: var(--sh-2);
  position: sticky;
  top: 110px;
}
.author-portrait img { border-radius: var(--r-xl); width: 100%; }
.author-portrait ul { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.author-portrait li { margin-bottom: 8px; font-size: var(--t-sm); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
}
.map-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--sh-1);
}
.map-card h2 { font-size: var(--t-md); margin-bottom: var(--s4); }
.map-card ul { list-style: none; padding: 0; margin: 0; }
.map-card li { margin-bottom: var(--s3); font-size: var(--t-sm); }
.map-card a { font-family: var(--f-display); font-weight: 600; }
.map-card span { display: block; color: var(--ink-faint); font-size: var(--t-xs); }

.notice-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--sh-3);
}
.notice-card .big-mark {
  width: 96px; height: 96px;
  margin: 0 auto var(--s5);
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--mint-mist);
  color: var(--mint-deep);
}
.notice-card .big-mark svg { width: 46px; height: 46px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s6); }
.code-404 {
  font-family: var(--f-display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--primary-soft);
  letter-spacing: -.04em;
  margin-bottom: var(--s4);
}

/* -------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- breakpoints */
@media (max-width: 1080px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .outcome-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tier--best { transform: none; }
  .author-layout { grid-template-columns: 1fr; }
  .author-portrait { position: static; max-width: 320px; }
}

@media (max-width: 900px) {
  :root { --s9: 64px; --s10: 80px; }
  .hero-grid, .how-layout, .contact-shell { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-figure { order: -1; }
  .hero-chip--nap { left: 8px; }
  .hero-chip--bottle { right: 8px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
  .map-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .header-inner { padding: var(--s2) var(--s2) var(--s2) var(--s4); position: relative; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: var(--s4);
    box-shadow: var(--sh-3);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 16px; font-size: var(--t-base); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .pain-grid, .feature-grid, .outcome-grid, .quote-grid, .results, .field-row {
    grid-template-columns: 1fr;
  }
  .band { padding: var(--s8) 0; }
  .form-card { padding: var(--s5); }
  .hero-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { padding-left: 62px; }
  .step::before { width: 46px; height: 46px; font-size: var(--t-base); }
  .step::after { left: 23px; top: 54px; }
  .byline { flex-direction: column; text-align: center; }
  .results { padding: var(--s6) var(--s5); }
}

@media (max-width: 380px) {
  .wrap { padding: 0 var(--s4); }
  .brand { font-size: 1.08rem; }
  .brand svg { width: 32px; height: 32px; flex: 0 0 32px; }
  .btn { padding: 13px 20px; }
}

@media (min-width: 1440px) {
  :root { --wrap: 1260px; }
}

/* -------------------------------------------------- reduced motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cloud--a, .cloud--b, .cloud--c, .hero-chip--nap, .hero-chip--bottle { animation: none; }
}

/* ------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .cloud, .scallop, .btn { display: none; }
  body { background: #FFFFFF; }
}

/* ==========================================================================
   The Daily Sheet: the magazine
   Same nursery world as the rest of the site. Pillowy cards, dotted rules,
   cloud drift, Fredoka over Nunito. Nothing new, only more of it.
   ========================================================================== */

/* The header now carries a seventh link, so let it breathe a little tighter
   in the band between the tablet menu and the full desktop bar. */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav ul { gap: 2px; }
  .nav a { padding: 9px 11px; }
}
.nav a[aria-current="page"] {
  background: var(--primary-mist);
  color: var(--primary-dark);
}

/* ---------------------------------------------------------- shared parts */
.standfirst {
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.crumb { margin-bottom: var(--s5); }
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-xs);
  font-weight: 700;
}
.crumb li { display: flex; align-items: center; gap: var(--s2); margin: 0; min-width: 0; }
.crumb li > span { min-width: 0; overflow-wrap: break-word; }
.crumb li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  flex: 0 0 5px;
}
.crumb a { color: var(--primary-dark); text-decoration: none; }
.crumb a:hover { color: var(--accent-deep); text-decoration: underline; }
.crumb [aria-current="page"] { color: var(--ink-faint); font-weight: 600; }

/* ------------------------------------------------------- magazine header */
.mag-hero { position: relative; padding: var(--s8) 0 var(--s7); overflow: hidden; }
.mag-hero .cloud--a { top: 16%; right: 7%; }
.mag-hero .cloud--b { bottom: 12%; right: 26%; }
.mag-hero .wrap { position: relative; z-index: 2; }
.mag-hero h1 { max-width: 15ch; }

.mag-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  list-style: none;
  margin: var(--s6) 0 0;
  padding: 0;
}
.mag-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-soft);
}
.mag-facts li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  background: var(--mint);
  flex: 0 0 10px;
}
.mag-facts li:nth-child(2)::before { background: var(--accent); }
.mag-facts li:nth-child(3)::before { background: var(--primary-soft); }

/* ------------------------------------------------------------- the cards */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1), var(--sh-inset);
  overflow: hidden;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.mag-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.mag-card:active { transform: scale(1.01, .99); }

.mag-card__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.mag-card__media { display: block; overflow: hidden; background: var(--primary-mist); }
.mag-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.mag-card:hover .mag-card__media img { transform: scale(1.04); }

.mag-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1 1 auto;
  padding: var(--s5) var(--s5) var(--s6);
}
.mag-card__angle {
  align-self: flex-start;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-mist);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.mag-card__title {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.008em;
  color: var(--ink);
  transition: color .2s var(--ease-soft);
}
.mag-card:hover .mag-card__title { color: var(--primary-dark); }
.mag-card__dek { font-size: var(--t-sm); line-height: 1.62; color: var(--ink-soft); }
.mag-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 2px dotted var(--line);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-faint);
}
.mag-card__read { display: inline-flex; align-items: center; gap: 7px; }
.mag-card__read::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

/* The first article of the issue runs across the grid at a larger size. */
.mag-card.lead {
  grid-column: 1 / -1;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-2), var(--sh-inset);
}
.mag-card.lead .mag-card__link { flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card__media { flex: 0 0 52%; }
.mag-card.lead .mag-card__media img { height: 100%; min-height: 340px; aspect-ratio: auto; }
.mag-card.lead .mag-card__body { justify-content: center; gap: var(--s4); padding: var(--s7); }
.mag-card.lead .mag-card__angle { color: var(--accent-deep); background: var(--accent-mist); }
.mag-card.lead .mag-card__title { font-size: clamp(1.5rem, 2.7vw, var(--t-2xl)); line-height: 1.16; }
.mag-card.lead .mag-card__dek { font-size: var(--t-base); }
.mag-card.lead .mag-card__read::before { background: var(--mint); }

.mag-more { margin: var(--s8) 0 0; text-align: center; }

/* ---------------------------------------------------------- article page */
.art-top { position: relative; padding: var(--s7) 0 var(--s6); overflow: hidden; }
.art-top .cloud--a { top: 12%; right: 4%; }
.art-top .cloud--b { bottom: 8%; right: 24%; }
.art-top .wrap { position: relative; z-index: 2; }
.art-top h1 { max-width: 20ch; margin-bottom: var(--s5); }
.art-top .standfirst { max-width: 56ch; }

.art-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
  margin-top: var(--s6);
  padding: var(--s3) var(--s5) var(--s3) var(--s3);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1), var(--sh-inset);
  width: fit-content;
  max-width: 100%;
}
.art-byline__name {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.art-byline__name:hover { color: var(--primary-dark); text-decoration: underline; }
.art-byline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-faint);
}
.art-byline__meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-byline__meta span + span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
}

.art-figure { position: relative; max-width: 940px; margin: 0 auto; }
.art-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 10px solid var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-3);
}

.art-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-2);
}

/* Body typography: a measure near seventy characters and a calm rhythm. */
.art-body {
  max-width: 65ch;
  margin: 0 auto;
  font-size: var(--t-base);
  line-height: 1.78;
  color: var(--ink-soft);
}
.art-body > :first-child { margin-top: 0; }
.art-body p { margin: 0 0 var(--s5); }
.art-body h2 {
  font-size: var(--t-xl);
  line-height: 1.2;
  margin: var(--s8) 0 var(--s4);
  padding-top: var(--s5);
  border-top: 2px dotted var(--line);
}
.art-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.art-body h3 { font-size: var(--t-md); margin: var(--s6) 0 var(--s3); }
.art-body ul, .art-body ol { margin: 0 0 var(--s5); padding-left: 1.3rem; }
.art-body li { margin-bottom: var(--s3); line-height: 1.72; }
.art-body li::marker { color: var(--primary); }
.art-body blockquote {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s6);
  background: var(--primary-haze);
  border-left: 5px solid var(--primary-soft);
  border-radius: var(--r-lg);
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.art-body blockquote p { margin-bottom: 0; color: var(--ink); }
.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s5);
  font-size: var(--t-sm);
}
.art-body th, .art-body td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.art-body thead th {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--primary-mist);
}
.art-body tbody tr:nth-child(even) { background: var(--primary-haze); }

/* The assembler drops these contextual links between sections. */
.inline-read {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin: var(--s6) 0;
  padding: var(--s4) var(--s5);
  background: var(--mint-mist);
  border-radius: var(--r-lg);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--mint-deep);
}
.inline-read::before {
  content: "";
  flex: 0 0 10px;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: var(--r-pill);
  background: var(--mint);
}
.inline-read a { color: var(--ink); font-weight: 600; text-decoration-color: var(--mint); }
.inline-read a:hover { color: var(--mint-deep); }

/* ---------------------------------------------------------- call to action */
.art-cta {
  position: relative;
  max-width: 65ch;
  margin: var(--s8) auto 0;
  padding: var(--s7) var(--s6);
  background: var(--accent-mist);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-inset);
  overflow: hidden;
  text-align: center;
}
.art-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: -46px;
  width: 220px; height: 70px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: var(--surface);
  opacity: .55;
}
.art-cta h2 { font-size: var(--t-xl); margin-bottom: var(--s3); }
.art-cta p { max-width: 46ch; margin: 0 auto var(--s5); color: var(--ink-soft); }

/* ------------------------------------------------------------ author box */
.art-author {
  display: flex;
  gap: var(--s5);
  align-items: flex-start;
  max-width: 65ch;
  margin: var(--s7) auto 0;
  padding: var(--s5);
  background: var(--primary-haze);
  border-radius: var(--r-xl);
}
.art-author img {
  flex: 0 0 92px;
  width: 92px; height: 92px;
  border-radius: var(--r-pill);
  object-fit: cover;
  box-shadow: var(--sh-1);
}
.art-author__name {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s2);
}
.art-author p { font-size: var(--t-sm); margin: 0 0 var(--s3); }
.art-author a { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }

/* -------------------------------------------------------------- read also */
.read-also { position: relative; padding: var(--s8) 0 var(--s9); }
.read-also h2 { font-size: var(--t-xl); margin-bottom: var(--s6); }
.ra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.ra-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-1), var(--sh-inset);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.ra-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); color: inherit; }
.ra-card:active { transform: scale(1.01, .99); }
.ra-card__media { display: block; overflow: hidden; background: var(--primary-mist); }
.ra-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ra-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--s2); padding: var(--s5); }
.ra-card__date {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ra-card__title {
  font-family: var(--f-display);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
}
.ra-card:hover .ra-card__title { color: var(--primary-dark); }
.ra-card__dek { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-soft); }

/* ------------------------------------------------------ magazine at 900px */
@media (max-width: 1080px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead .mag-card__media { flex: 0 0 46%; }
  .mag-card.lead .mag-card__body { padding: var(--s6); }
}

@media (max-width: 760px) {
  .mag-grid, .ra-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .mag-card.lead .mag-card__link { flex-direction: column; }
  .mag-card.lead .mag-card__media { flex: 1 1 auto; }
  .mag-card.lead .mag-card__media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card__body { padding: var(--s5) var(--s5) var(--s6); }
  .art-figure img { border-width: 7px; }
  .art-author { flex-direction: column; }
}

@media (max-width: 420px) {
  .art-byline { padding: var(--s3); border-radius: var(--r-lg); }
  .art-byline__meta { font-size: 12px; }
  .art-body table { display: block; width: 100%; overflow-x: auto; }
  .art-cta { padding: var(--s6) var(--s5); }
  .mag-card__body, .ra-card__body { padding: var(--s4) var(--s4) var(--s5); }
  .mag-hero h1, .art-top h1 { max-width: none; }
}

/* ------------------------------------------- magazine on the older pages */
.art-cta .eyebrow { background: var(--surface); color: var(--accent-deep); }

.pub-list { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.pub-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s4);
  margin: 0;
  padding: var(--s3) 0;
  border-bottom: 2px dotted var(--line);
}
.pub-list li:last-child { border-bottom: 0; }
.pub-list a { font-family: var(--f-display); font-weight: 600; text-decoration: none; }
.pub-list a:hover { text-decoration: underline; }
.pub-list time {
  margin-left: auto;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-faint);
  white-space: nowrap;
}

.map-card--wide { grid-column: 1 / -1; }
.map-card--wide ul { columns: 2; column-gap: var(--s7); }
.map-card--wide li { break-inside: avoid; }
@media (max-width: 760px) {
  .map-card--wide ul { columns: 1; }
  .pub-list time { margin-left: 0; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
