/* getpemberley.com — one stylesheet for every page. Light only. */

/* Fallbacks sized to the web fonts' metrics, so swapping in Noto Serif and Be Vietnam Pro
   doesn't move the layout. */
@font-face {
  font-family: "Noto Serif Fallback";
  src: local("Georgia");
  size-adjust: 103%;
  ascent-override: 104%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Be Vietnam Pro Fallback";
  src: local("Arial");
  size-adjust: 108%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --page: #F9F4F1;
  --surface: #FFFFFF;
  --edge: #EBEDF3;
  --shadow: 0 1px 3px rgba(0, 27, 101, .06);
  --navy: #001B65;
  --ink: #001B65;
  --ink-2: #263D7C;
  --muted: #626E90;
  --royal: #0141FF;
  --sky: #76C3FB;
  --sky-tint: #E3F2FE;
  --lilac: #E8A8FC;
  --lilac-soft: #F3DCFD;
  --pale-blue: #CCE8FC;
  --orange: #FC6C00;
  --yellow: #F4C455;

  --serif: "Noto Serif", "Noto Serif Fallback", Georgia, serif;
  --sans: "Be Vietnam Pro", "Be Vietnam Pro Fallback", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --card-radius: 24px;
  --hero-radius: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--royal); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Type */
.serif-head, h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.label {
  display: block;
  color: var(--royal);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}
.lede { color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.num { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* Buttons: every one a pill */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.pill-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.pill-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(0, 27, 101, .22); }
.pill-royal { background: var(--royal); color: #fff; }
.pill-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.pill-navy:hover, .pill-royal:hover { filter: brightness(1.12); }
.pill-outline:hover { background: rgba(0, 27, 101, .05); }
.pill svg { width: 20px; height: 20px; flex: none; }

/* Doodles: line drawings tinted by mask, always decorative */
.doodle {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  pointer-events: none;
}
.d-sparkles { --src: url("/assets/doodles/sparkles.svg"); aspect-ratio: 795 / 1020; }
.d-mug { --src: url("/assets/doodles/mug-steam.svg"); aspect-ratio: 499 / 1026; }
.d-lamp { --src: url("/assets/doodles/lamp-shade.svg"); aspect-ratio: 626 / 1025; }
.d-starburst { --src: url("/assets/doodles/starburst.svg"); aspect-ratio: 755 / 1020; }
.d-book { --src: url("/assets/doodles/book-open.svg"); aspect-ratio: 825 / 979; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 244, 241, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--edge);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 32px; margin: 0 auto; }
.nav a { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-row .pill { min-height: 44px; padding: 0 22px; font-size: 16px; margin-left: auto; }
@media (min-width: 760px) { .nav + .pill { margin-left: 0; } }
@media (max-width: 759px) {
  .nav { display: none; }
  .brand img { height: 30px; }
}

/* Sections */
section { position: relative; scroll-margin-top: 72px; }
.band { background: var(--surface); border-block: 1px solid var(--edge); }
.pad { padding-block: 112px; }
@media (max-width: 759px) { .pad { padding-block: 72px; } }

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

/* Hero */
.hero { padding-block: 96px 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.tag {
  display: inline-block;
  background: var(--pale-blue);
  color: var(--navy);
  font-size: 14px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 { margin-bottom: 28px; }
.hero .lede { max-width: 520px; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.checks {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  max-width: 400px;
  margin: 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 15px;
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--royal); flex: none; }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 520px; padding: 24px 0; }
.hero-art .phone { margin: 0 auto; }
.hero-sparkles {
  position: absolute; top: -12px; right: 52px;
  width: 64px; color: var(--lilac);
}
.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 27, 101, .12);
}
.float-quote { top: 74px; right: 0; width: 228px; padding: 18px 18px 20px; }
.float-quote .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.float-quote .hl { font-size: 17px; }
.float-quote cite { display: block; margin-top: 12px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.float-year { bottom: 52px; left: 8px; width: 222px; padding: 18px 18px 20px; }
.float-year .meta { font-size: 13px; color: var(--muted); }
.float-year .big { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 8px; color: var(--ink); }
.float-year .big .num { font-size: 44px; line-height: 1; }
.float-year .big span:last-child { font-size: 15px; color: var(--ink-2); }
.bar { height: 6px; border-radius: 999px; background: var(--sky-tint); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--sky); }
.float-year .pace { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

@media (max-width: 959px) {
  .hero { padding-block: 56px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Phone frame */
.phone {
  position: relative;
  width: 300px;
  max-width: 76vw;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  background: var(--navy);
  padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 27, 101, .18);
}
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--page);
}
.phone .screen picture { display: block; width: 100%; height: 100%; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(0,27,101,.035) 0 12px, transparent 12px 24px),
    var(--page);
}

/* Highlighter: yellow behind each line */
.hl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  line-height: 31px;
}
.hl mark {
  background: var(--yellow);
  color: inherit;
  padding: 1px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tour */
.tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.tour-art { position: relative; display: grid; place-items: center; padding: 40px 0; }
.tour-art::before {
  content: "";
  position: absolute;
  width: min(400px, 100%);
  height: 86%;
  border-radius: 200px;
  background: var(--lilac-soft);
}
.tour-art .phone { position: relative; }
.tour-screen { position: absolute; inset: 0; transition: opacity .28s ease, visibility 0s; }
.tour-screen[hidden] { display: block; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
@media (prefers-reduced-motion: reduce) { .tour-screen, .tour-screen[hidden] { transition: none; } }
.tour-copy h2 { margin-bottom: 22px; }
.tour-copy .lede { margin-bottom: 32px; }
.tour-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tour-pills button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--page);
  color: var(--ink);
  font: 600 16px/1.2 var(--sans);
  cursor: pointer;
}
.tour-pills button:hover { background: #F1EBE7; }
.tour-pills button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tour-caption {
  background: var(--sky-tint);
  border-radius: 20px;
  padding: 20px 22px;
  min-height: 108px;
}
.tour-caption strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.tour-caption span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 959px) {
  .tour-grid { grid-template-columns: 1fr; gap: 32px; }
  .tour-copy { order: -1; }
}

/* Guide and reviews */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}
.guide {
  background: var(--lilac-soft);
  border-radius: var(--card-radius);
  padding: 40px;
}
.guide .d-mug { width: 64px; color: var(--navy); margin-bottom: 24px; }
.guide h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 18px; }
.guide p { color: var(--ink); font-size: 17px; line-height: 1.7; }
.guide .sig { margin-top: 22px; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reviews .label { grid-column: 1 / -1; margin-bottom: 0; }
.review { padding: 24px 26px; }
.review-lg { grid-column: 1 / -1; padding: 28px 28px 26px; }
.stars { display: flex; gap: 3px; color: var(--orange); margin-bottom: 14px; }
.stars svg { width: 18px; height: 18px; }
.review blockquote {
  margin: 0 0 16px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 17px; line-height: 1.55; color: var(--ink);
}
.review-lg blockquote { font-size: 22px; line-height: 1.45; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--royal); color: #fff; font-weight: 600; font-size: 16px;
  flex: none;
}
.who b { display: block; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.who small { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 959px) { .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .reviews { grid-template-columns: 1fr; }
  .guide { padding: 28px 24px; }
}

/* How it works */
.center { text-align: center; }
.section-head { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.step { background: var(--page); border-radius: var(--card-radius); padding: 30px 32px 34px; }
.step .num { display: block; color: var(--royal); font-size: 54px; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
@media (max-width: 859px) { .steps { grid-template-columns: 1fr; } }

/* What you can do */
.features-head h2 { max-width: 600px; margin-bottom: 48px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 28px 28px 32px; }
.feature .panel {
  background: var(--page);
  border-radius: 18px;
  min-height: 148px;
  margin-bottom: 30px;
  display: grid; place-items: center;
  padding: 16px;
  overflow: hidden;
}
.feature h3 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: 23px; line-height: 1.25; margin-bottom: 12px;
}
.feature p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
@media (max-width: 959px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 619px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 399px) {
  .feature { padding: 22px 20px 26px; }
  .feature .panel { padding: 16px 10px; }
  .shelf-pills { gap: 6px; }
  .chip { padding: 5px 10px; }
}

.shelf-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 270px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 999px; padding: 6px 13px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on em { font-style: normal; font-size: 11px; background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 999px; }
.panel-quote { width: 100%; padding: 0 8px; }
.panel-quote .hl { font-size: 17px; }
.panel-quote small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.goal { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 84px; height: 84px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring .in .num { font-size: 30px; color: var(--ink); }
.ring .in small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.goal b { display: block; font-size: 14px; font-weight: 600; }
.goal span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.goal span svg { width: 12px; height: 12px; color: var(--orange); }
.club { text-align: center; }
.stack { display: flex; justify-content: center; margin-bottom: 10px; }
.stack span {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px;
  border: 2px solid var(--page);
  margin-left: -8px;
}
.stack span:first-child { margin-left: 0; background: var(--navy); color: #fff; }
.stack span:nth-child(2) { background: var(--pale-blue); color: var(--navy); }
.stack span:nth-child(3) { background: var(--lilac-soft); color: var(--navy); }
.club p { font-size: 13px; color: var(--ink-2); }
.club p b { color: var(--ink); font-weight: 600; }
.covers { position: relative; width: 190px; height: 116px; }
.cover {
  position: absolute; top: 10px;
  width: 64px; height: 96px;
  border-radius: 5px;
  padding: 7px 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 14px rgba(0, 27, 101, .12);
  color: var(--navy);
}
.cover small { font-size: 6px; font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.cover b { font-size: 11px; font-weight: 600; line-height: 1.1; }
.cover-1 { left: 6px; background: var(--pale-blue); transform: rotate(-8deg); }
.cover-3 { right: 6px; background: var(--lilac-soft); transform: rotate(8deg); }
.cover-2 { left: 63px; top: 2px; background: var(--navy); color: #fff; z-index: 1; width: 66px; height: 102px; }
.wish {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 250px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 14px;
  padding: 10px 14px;
}
.wish .spine { width: 34px; height: 50px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 7px; font-weight: 600; display: flex; align-items: flex-end; padding: 4px; overflow: hidden; }
.wish b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wish span { display: inline-block; font-size: 11px; font-weight: 600; color: var(--royal); border: 1.5px solid var(--royal); border-radius: 999px; padding: 2px 9px; }

/* Keep the good stuff */
.keep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.keep-grid h2 { margin-bottom: 22px; }
.nomore { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nomore div { background: var(--page); border-radius: var(--card-radius); padding: 22px 22px 26px; }
.nomore h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.nomore p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 959px) { .keep-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 519px) { .nomore { grid-template-columns: 1fr; } }

/* Picture this */
.picture { background: var(--navy); color: #fff; overflow: hidden; }
.picture::before {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  opacity: .035;
  -webkit-mask: url("/assets/doodles/grid.svg") center / cover no-repeat;
  mask: url("/assets/doodles/grid.svg") center / cover no-repeat;
  pointer-events: none;
}
.picture .wrap { position: relative; }
.picture-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.picture .label { color: var(--lilac); }
.picture h2 { color: #fff; margin-bottom: 32px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 17px; }
.ticks li { display: flex; align-items: center; gap: 14px; }
.ticks .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex: none; }
.ticks .tick svg { width: 14px; height: 14px; }
.story {
  position: relative;
  justify-self: center;
  width: 300px; max-width: 100%;
  min-height: 420px;
  background: var(--royal);
  border-radius: var(--hero-radius);
  padding: 22px 28px 30px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.story .bars { display: flex; gap: 6px; margin-bottom: 34px; }
.story .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.story .bars i.on { background: #fff; }
.story .d-starburst { position: absolute; top: 46px; right: 28px; width: 54px; color: var(--sky); }
.story .num { font-size: 120px; line-height: .9; color: #fff; }
.story h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 30px; line-height: 1.12; margin: 14px 0 10px; }
.story p { font-size: 15px; }
.story .chip-pill { margin-top: auto; align-self: flex-start; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
@media (max-width: 859px) { .picture-grid { grid-template-columns: 1fr; } }

/* Questions */
.faq { max-width: 880px; margin: 0 auto; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--edge); }
.faq summary {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 28px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid var(--navy);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  flex: none;
  transition: transform .15s ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::before { transition: none; } }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq details p { padding: 0 28px 24px; margin-top: -6px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* Final call */
.final {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px; align-items: center;
  background: var(--lilac-soft);
  border-radius: var(--card-radius);
  padding: 72px 72px;
  overflow: hidden;
}
.final h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 18px; }
.final .lede { max-width: 470px; margin-bottom: 30px; color: var(--ink); }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px rgba(0, 27, 101, .12); }
.final-cta .free { font-size: 15px; color: var(--ink-2); }
.final .d-lamp { width: 170px; color: var(--navy); margin-right: 32px; }
@media (max-width: 859px) {
  .final { grid-template-columns: 1fr; padding: 48px 28px; }
  .final .d-lamp { position: absolute; right: -20px; top: 24px; width: 96px; opacity: .9; margin: 0; }
  .final h2 { padding-right: 70px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--edge); padding-block: 48px 56px; margin-top: 96px; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 15px; }
.foot-brand .amazon { font-size: 13px; margin-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.foot-links a { color: var(--ink); text-underline-offset: 3px; }
.copyright { color: var(--muted); font-size: 14px; margin-top: 40px; }

/* Things that would otherwise be inline styles (the CSP allows none) */
.review { margin: 0; }
.steps { list-style: none; padding: 0; margin-top: 0; }
.w-9of24 { width: 37.5%; }
.c-want { --c: var(--sky); }
.c-reading { --c: var(--royal); }
.c-finished { --c: var(--navy); }
.c-dropped { --c: var(--orange); }

@media (max-width: 399px) {
  :root { --gutter: 20px; }
  .pill-lg { padding: 0 20px; font-size: 16px; white-space: normal; text-align: center; text-wrap: balance; }
  .header-row { gap: 12px; }
  .header-row .pill { padding: 0 16px; font-size: 15px; }
  .brand img { height: 26px; }
}

/* Policy pages: Termageddon's text in a white card. Its markup brings a reset scoped to its own
   div's id, so every rule here starts from #legal plus a class, which outranks it. */
.legal h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.1; max-width: 760px; margin: 0 auto 32px; }
.legal-card { max-width: 760px; margin: 0 auto; padding: 40px 44px 44px; min-height: 100vh; }
@media (max-width: 599px) { .legal-card { padding: 28px 22px 32px; } }
#legal .policy_embed_div { font-family: var(--sans); color: var(--ink-2); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
#legal .policy_embed_div :is(p, li, td, th, dd, dt, summary, a, strong, em, b, span, div) { font-family: inherit; font-size: inherit; line-height: inherit; }
#legal .policy_embed_div h1 { display: none; }
#legal .policy_embed_div .tg-intro-heading { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#legal .policy_embed_div :is(h2, h3, h4) { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; margin: 36px 0 12px; }
#legal .policy_embed_div h2 { font-size: 26px; }
#legal .policy_embed_div h3 { font-size: 21px; }
#legal .policy_embed_div h4 { font-size: 18px; }
#legal .policy_embed_div p { margin: 0 0 14px; }
#legal .policy_embed_div :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
#legal .policy_embed_div li { margin: 4px 0; }
#legal .policy_embed_div a { color: var(--royal); text-decoration: underline; text-underline-offset: 2px; }
#legal .policy_embed_div strong, #legal .policy_embed_div b { font-weight: 600; color: var(--ink); }
#legal .policy_embed_div hr { border: 0; border-top: 1px solid var(--edge); margin: 28px 0; }
#legal .policy_embed_div table { border-collapse: collapse; width: 100%; font-size: 14px; }
#legal .policy_embed_div :is(td, th) { border: 1px solid var(--edge); padding: 8px 10px; vertical-align: top; text-align: left; }
#legal .policy_embed_div .tg-last-updated-date { color: var(--muted); font-size: 14px; }
#legal .policy_embed_div .tg-toc { background: var(--page); border-radius: 18px; padding: 20px 24px; margin: 20px 0 28px; }
#legal .policy_embed_div .tg-toc-heading { font-size: 18px; margin: 0 0 8px; }
#legal .policy_embed_div .tg-toc-list { list-style: none; padding: 0; margin: 0; }
#legal .policy_embed_div .tg-toc-item { margin: 6px 0; }

/* 404 */
.not-found .d-book { width: 96px; color: var(--navy); margin: 0 auto 28px; }
.not-found h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.not-found .lede { margin-bottom: 32px; }

/* Phones: the pass of 28 October 2026. Everything here is about a 320–430pt screen. */
@media (max-width: 599px) {
  .lede { font-size: 18px; }

  /* The hero's two buttons, one width, stacked */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .pill { width: 100%; }

  /* A smaller phone, so the two cards hang off its edges instead of covering its screen */
  .hero-art { padding: 8px 0 12px; }
  .hero-art .phone { width: 236px; }
  .hero-sparkles { top: -8px; right: 4px; width: 44px; }
  .float-quote { top: 44px; right: 0; width: 158px; padding: 12px 12px 14px; border-radius: 16px; }
  .float-quote .meta { font-size: 12px; margin-bottom: 6px; }
  .float-quote .hl { font-size: 14px; line-height: 25px; }
  .float-quote cite { font-size: 12px; margin-top: 8px; }
  .float-year { bottom: 40px; left: 0; width: 150px; padding: 12px 14px 14px; border-radius: 16px; }
  .float-year .meta { font-size: 12px; }
  .float-year .big .num { font-size: 34px; }
  .float-year .big span:last-child { font-size: 13px; }
  .float-year .pace { font-size: 12px; margin-top: 8px; }

  /* Tour pills: two even columns rather than a ragged wrap */
  .tour-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-pills button { padding: 0 12px; }

  .review-lg blockquote { font-size: 19px; }
  .review, .review-lg { padding: 22px 22px 22px; }

  .section-head { margin-bottom: 32px; }
  .step { padding: 24px 24px 26px; }
  .step .num { font-size: 42px; margin-bottom: 10px; }
  .steps { margin-bottom: 36px; gap: 14px; }
  .steps + .center .pill { width: 100%; }

  .feature .panel { margin-bottom: 22px; }
  .features { gap: 16px; }
  .features-head h2 { margin-bottom: 32px; }

  .story { min-height: 380px; }

  .faq summary { padding: 18px 20px; align-items: flex-start; }
  .faq summary::before { margin-top: 7px; }
  .faq details p { padding: 0 20px 20px 38px; }

  /* Final card: the lamp leads instead of sitting on the words, then the icon and "Free on
     iPhone" side by side over a full-width button */
  .final { padding: 32px 24px 36px; gap: 0; }
  .final .d-lamp { position: static; order: -1; width: 72px; margin: 0 0 18px; opacity: 1; }
  .final h2 { padding-right: 0; }
  .final-cta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; }
  .final-cta .app-icon { grid-row: 1; }
  .final-cta .free { grid-row: 1; grid-column: 2; }
  .final-cta .pill { grid-row: 2; grid-column: 1 / -1; width: 100%; }

  .site-footer { margin-top: 72px; padding-block: 40px 48px; }
  .foot-links { gap: 10px 20px; }
  .copyright { margin-top: 28px; }
}
