/* Public site: "kitchen table". A conversation set like a play script, the day along a
   dotted line, setup as a recipe card, Dottie's promises on notepaper.
   Brand tokens and buttons come from /assets/brand.css. */

body {
  font-size: 18px;
}

.wrap {
  max-width: 1200px; /* the same as the homepage, so the header doesn't shift between pages */
  margin: 0 auto;
  padding: 0 var(--s5);
}

.narrow {
  max-width: 760px;
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 var(--s4);
  }
}

/* A row of polka dots, used as a divider. */
.dot-rule {
  height: 10px;
  background-image: radial-gradient(circle, var(--pop) 3px, transparent 3.5px);
  background-size: 22px 10px;
  background-position: center;
  opacity: 0.85;
  border: none;
  margin: 0;
}

/* ---------- Header (matches the homepage) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 248 236 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.logo-face {
  width: 46px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn.btn-small {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

/* On phones and tablets, the page links fold into a small menu. */
.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] .nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
}

.nav-menu-list {
  display: none;
}

.nav-menu-list a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav-menu-list a:hover {
  background: var(--bg);
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-menu {
    display: none;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 24px;
  }

  .btn.btn-small {
    padding: 0 16px;
  }
}

/* ---------- Type helpers ---------- */

.display {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  margin: 0 0 var(--s5);
}

.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--accent);
}

.title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 var(--s4);
}

.intro {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 var(--s6);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: var(--s4) 0 0;
}

.section {
  padding: var(--s9) 0;
}

.section.tight {
  padding: var(--s8) 0;
}

@media (max-width: 720px) {
  .section {
    padding: var(--s8) 0;
  }
}

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

.hero {
  padding: var(--s8) 0 var(--s9);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s7);
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}

.btn-big {
  min-height: 56px;
  padding: 15px 30px;
  font-size: 1.08rem;
}

/* Dottie sits on a butter-yellow "plate" ringed with polka dots. */
.plate {
  position: relative;
  justify-self: center;
  width: min(80vw, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--tint) 0 58%, transparent 58.5%),
    radial-gradient(circle, var(--pop) 4px, transparent 4.5px) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%);
  mask: radial-gradient(circle, #000 70%, transparent 71%);
  opacity: 0.95;
}

.plate .dottie {
  position: relative;
  width: 74%;
}

.hello-tag {
  position: absolute;
  right: -2%;
  top: 8%;
  transform: rotate(6deg);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 650;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--ink);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .plate {
    order: -1;
    width: min(72vw, 320px);
  }
}

/* ---------- The conversation, set like a play script ---------- */

.script {
  position: relative;
  background: var(--tint);
  border-radius: 28px;
  padding: var(--s7) var(--s7) var(--s6);
  max-width: 880px;
  margin: 0 auto;
}

/* Perforated edge, like a tear-off notepad. */
.script::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 14px;
  height: 8px;
  background-image: radial-gradient(circle, var(--bg) 3.5px, transparent 4px);
  background-size: 18px 8px;
}

.script-meta {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 var(--s5);
  font-variant-caps: all-small-caps;
  font-size: 1.05rem;
}

.script-lines {
  display: grid;
  gap: var(--s4);
  margin: 0;
}

.line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s4);
  align-items: baseline;
}

.speaker {
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: right;
}

.words {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
}

.line.dottie-line .speaker {
  color: var(--pop);
}

.line.dottie-line .words {
  font-style: italic;
}

.stage {
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
  margin: var(--s2) 0 0;
  padding-left: calc(120px + var(--s4));
}

.script-caption {
  text-align: center;
  color: var(--muted);
  margin: var(--s5) auto 0;
  max-width: 36em;
}

@media (max-width: 640px) {
  .script {
    padding: var(--s6) var(--s5) var(--s5);
  }

  .line {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .speaker {
    text-align: left;
  }

  .stage {
    padding-left: 0;
  }
}

/* ---------- A day with Dottie, along a dotted line ---------- */

.day {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
  list-style: none;
  padding: 0;
}

.day::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 27px;
  height: 6px;
  background-image: radial-gradient(circle, var(--line-strong) 2.5px, transparent 3px);
  background-size: 14px 6px;
}

.moment {
  position: relative;
}

.time {
  display: inline-grid;
  place-items: center;
  min-width: 60px;
  height: 60px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  margin-bottom: var(--s4);
}

.moment:nth-child(4) .time {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.moment h3 {
  font-size: 1.3rem;
  margin: 0 0 var(--s2);
}

.moment p {
  margin: 0;
  color: var(--muted);
}

/* Narrow screens: the dotted line runs down the left, times sit on it in their own column. */
@media (max-width: 860px) {
  .day {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .day::before {
    left: 47px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 6px;
    height: auto;
    background-size: 6px 14px;
  }

  .moment {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: var(--s4);
  }

  .time {
    grid-row: span 2;
    justify-self: center;
    margin: 0;
    padding: 0 10px;
    font-size: 0.95rem;
  }
}

/* ---------- Setup as a recipe card ---------- */

.recipe {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
}

.recipe-side {
  background: var(--sky);
  padding: var(--s7);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.recipe-side h2 {
  margin: 0;
}

.recipe-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
  margin: 0;
}

.recipe-facts dt {
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.recipe-facts dd {
  margin: 0;
  color: var(--muted);
}

.ingredients {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s2);
}

.ingredients li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pop);
  margin-right: 10px;
  vertical-align: 1px;
}

.method {
  padding: var(--s7);
  margin: 0;
  list-style: none;
  counter-reset: method;
  display: grid;
  gap: var(--s5);
}

.method li {
  counter-increment: method;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s4);
}

.method li::before {
  content: counter(method);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--accent);
}

.method h3 {
  margin: 4px 0 6px;
  font-size: 1.25rem;
}

.method p {
  margin: 0;
  color: var(--muted);
}

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

  .recipe-side,
  .method {
    padding: var(--s6) var(--s5);
  }
}

/* ---------- For families: the dashboard on a phone ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

.phone {
  justify-self: center;
  width: min(86vw, 340px);
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: var(--s5) var(--s4);
  display: grid;
  gap: var(--s3);
}

.phone-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 700;
  font-size: 1.3rem;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--calm-soft);
  color: var(--calm);
  border-radius: 999px;
  padding: 4px 10px;
}

.phone-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--line);
}

.phone-card small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.phone-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 8px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 32%;
  background: var(--accent);
  border-radius: inherit;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s5);
}

.plain-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s3);
}

.plain-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pop) 18%, transparent);
}

.plain-list strong {
  display: block;
  font-size: 1.08rem;
}

.plain-list span {
  color: var(--muted);
}

/* ---------- Dottie's promises, on notepaper ---------- */

.notepaper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, transparent 62px, color-mix(in srgb, var(--pop) 45%, transparent) 62px 64px, transparent 64px),
    repeating-linear-gradient(var(--surface) 0 41px, var(--line) 41px 42px);
  background-color: var(--surface);
  border-radius: 6px 6px 22px 22px;
  padding: 42px var(--s6) 42px 90px; /* multiples of the 42px ruling keep text on the lines */
  box-shadow: var(--shadow-lift);
  transform: rotate(0.6deg);
}

.notepaper::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--sun) 70%, transparent);
  border-radius: 4px;
}

.notepaper h2 {
  margin: 0;
  line-height: 42px;
}

.promises {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promises li {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.28rem;
  line-height: 42px;
}

.signature {
  margin: 0;
  line-height: 42px;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: 1.7rem;
  color: var(--accent);
}

@media (max-width: 640px) {
  .notepaper {
    padding: 42px var(--s4) 42px 56px;
    background:
      linear-gradient(90deg, transparent 38px, color-mix(in srgb, var(--pop) 45%, transparent) 38px 40px, transparent 40px),
      repeating-linear-gradient(var(--surface) 0 41px, var(--line) 41px 42px);
    background-color: var(--surface);
  }

  .promises li {
    font-size: 1.1rem;
  }
}

/* ---------- Pricing in one sentence ---------- */

.price-line {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 650;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.15;
  margin: 0 0 var(--s5);
  text-wrap: balance;
}

.price-line mark {
  background: linear-gradient(transparent 58%, var(--sun) 58% 92%, transparent 92%);
  color: inherit;
  padding: 0 0.1em;
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
}

.closing .dottie {
  width: 170px;
  margin: 0 auto var(--s4);
}

.closing .intro {
  margin-left: auto;
  margin-right: auto;
}

.closing .actions {
  justify-content: center;
}

/* ---------- Subpages ---------- */

.page-head {
  padding: var(--s8) 0 var(--s6);
}

.page-head .intro {
  margin-bottom: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.75rem;
  margin: var(--s7) 0 var(--s3);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose li + li {
  margin-top: var(--s2);
}

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

.callout {
  background: var(--tint);
  border-left: 6px solid var(--pop);
  border-radius: 0 16px 16px 0;
  padding: var(--s4) var(--s5);
  color: var(--ink);
}

/* Price tags */
.tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: start;
}

@media (max-width: 720px) {
  .tags {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.tag {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: var(--s6) var(--s5) var(--s5);
  display: grid;
  gap: var(--s3);
  box-shadow: 0 6px 0 var(--ink);
}

/* The punched hole of a price tag. */
.tag::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--bg);
}

.tag.featured {
  background: var(--tint);
}

.tag h2 {
  font-size: 1.5rem;
  margin: 0;
}

.amount {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.amount small {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.tag ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.tag li + li {
  margin-top: 4px;
}

.tag li::marker {
  color: var(--pop);
}

.tag .btn {
  margin-top: var(--s2);
}

/* FAQ: questions separated by dots, no boxes */
.qa {
  border-top: 1px solid var(--line);
}

.qa details {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s5) 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 650;
  font-size: 1.3rem;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pop);
  transition: background-color 180ms ease-out;
}

.qa details[open] summary::after {
  background: var(--pop);
}

.qa details p {
  margin: 0 0 var(--s5);
  color: var(--muted);
  max-width: 40em;
}

/* ---------- Footer (matches the homepage) ---------- */

.site-footer {
  padding: 64px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 48px;
}

.footer-brand {
  flex: 1 1 220px;
  max-width: 260px;
}

.footer-brand p {
  margin: 14px 0 0;
  font-size: 16px;
}

/* Columns of links: Dottie, who it's for, guides, compare, account. */
.footer-links {
  display: grid;
  flex: 3 1 560px;
  grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr));
  gap: 32px 20px;
  min-width: 0;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-group h2 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-links a {
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px dotted var(--pop);
}

.footer-legal p {
  max-width: 820px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-legal p + p {
  margin-top: 12px;
  font-size: 14px;
}

.footer-legal a {
  color: inherit;
}

@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Dottie and Teddy ---------- */

.friends {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s7);
  align-items: center;
}

.friend-faces {
  display: flex;
  gap: var(--s5);
}

.friend-faces figure {
  margin: 0;
  text-align: center;
}

.friend-faces .dottie {
  width: 150px;
}

.friend-faces figcaption {
  display: grid;
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 0.92rem;
}

.friend-faces strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.3rem;
  color: var(--ink);
}

.friends .intro {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .friends {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .friend-faces {
    justify-content: center;
  }

  .friend-faces .dottie {
    width: 120px;
  }
}

/* ---------- Guides, comparisons and landing pages ---------- */

/* "Home › Guides › …" above the headline. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: var(--s2);
}

.crumbs a {
  color: inherit;
}

.headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  color: var(--accent);
}

/* "Updated 16 October 2026 · 7 minute read · By the Dottie team" */
.byline {
  margin: var(--s4) 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.article {
  max-width: 720px;
}

.article h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: var(--s7) 0 var(--s3);
  text-wrap: balance;
}

.article h3 {
  font-size: 1.3rem;
  margin: var(--s6) 0 var(--s2);
}

.article p,
.article li {
  color: var(--muted);
  text-wrap: pretty;
}

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

.article ul,
.article ol {
  padding-left: 1.3em;
}

.article li + li {
  margin-top: var(--s2);
}

.article a:not(.btn) {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

/* The short version, near the top of a guide. */
.key-points {
  background: var(--tint);
  border-radius: 20px;
  padding: var(--s5) var(--s6);
  margin: var(--s6) 0;
}

.key-points h2 {
  margin: 0 0 var(--s3);
  font-size: 1.3rem;
}

.key-points ul {
  margin: 0;
}

.key-points li {
  color: var(--ink);
}

/* Where to get real help: doctors, helplines, emergency numbers. */
.help-box {
  border: 2px solid var(--calm);
  background: var(--calm-soft);
  border-radius: 20px;
  padding: var(--s5) var(--s6);
  margin: var(--s6) 0;
}

.help-box h2,
.help-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.help-box p,
.help-box li {
  color: var(--ink);
}

.sources {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.sources h2 {
  font-size: 1.15rem;
  margin: 0 0 var(--s3);
}

.sources li {
  overflow-wrap: anywhere;
}

/* Side-by-side comparisons. Scrolls sideways on phones rather than squashing. */
.table-scroll {
  overflow-x: auto;
  margin: var(--s5) 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: var(--s3) var(--s4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.05rem;
  background: var(--tint);
}

.compare-table tbody th {
  font-weight: 700;
  width: 28%;
}

.compare-table tr:last-child > * {
  border-bottom: none;
}

.table-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: calc(var(--s3) * -1);
}

/* "Read next" cards at the end of a page. */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: grid;
  gap: var(--s2);
  height: 100%;
  padding: var(--s5);
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 150ms ease-out, border-color 150ms ease-out;
}

.related a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.2rem;
  line-height: 1.25;
}

.related span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* A friendly "here's where Dottie fits" box inside an article. */
.dottie-note {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s5);
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  padding: var(--s5) var(--s6);
  margin: var(--s7) 0;
}

.dottie-note .dottie {
  width: 88px;
}

.dottie-note h2,
.dottie-note h3 {
  margin: 0 0 var(--s2);
  font-size: 1.3rem;
}

.dottie-note p {
  margin: 0 0 var(--s3);
}

.dottie-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .key-points,
  .help-box,
  .dottie-note {
    padding: var(--s4) var(--s5);
  }

  .dottie-note {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dottie-note .dottie {
    width: 72px;
  }
}

/* An example page from the story book, like the ones in the family dashboard. */
.story-sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sun);
  border-radius: 8px 24px 24px 8px;
  box-shadow: var(--shadow-lift);
  padding: var(--s6);
  transform: rotate(-1deg);
}

.story-sample h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.6rem;
  margin: var(--s2) 0 var(--s4);
}

.story-sample p {
  line-height: 1.65;
  margin: 0 0 var(--s4);
}

.story-sample-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.story-sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0 !important;
}

.story-sample-tags span {
  font-size: 0.85rem;
  background: var(--sky);
  border-radius: 999px;
  padding: 3px 12px;
}

/* Pages written for older readers themselves: a step bigger. */
body.large-type {
  font-size: 20px;
}

body.large-type .plain-list span,
body.large-type .qa details p {
  font-size: 1.05em;
}

.hero .crumbs {
  margin-bottom: var(--s5);
}

/* On phones: keep the row labels in view while the columns scroll, and say it scrolls. */
@media (max-width: 640px) {
  .compare-table tbody th,
  .compare-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
  }

  .compare-table thead th:first-child {
    background: var(--tint);
  }

  .compare-table tbody th {
    width: 34%;
    min-width: 110px;
  }

  .table-scroll::before {
    content: "Swipe sideways to compare →";
    display: block;
    position: sticky;
    left: 0;
    padding: var(--s2) var(--s4);
    font-size: 0.8rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }
}
