/* Shared by every page. Light is the default; dark only from the footer switch. */

/* Fonts live on our own server, like NexStudents, so they are already cached on the next page
   and the words never jump from a stand-in font (Paul, 2026-11-23: the menu "grows"). */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand: #f7ecdc;
  --sand-2: #efdcc2;
  --card: #fffaf2;
  --card-hover: #ffffff;
  --ink: #2b2118;
  --ink-soft: #6b5a4a;
  --line: #e6d3b8;
  --line-strong: #b89c78;
  --ocean: #0e6f8a;
  --sunset: #b9541a;
  --sunset-ink: #ffffff;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .08);
  --ring: #fffaf2;
}
/* Light is the default (Paul, 2026-11-23). Dark only when the reader picks it
   with the Day/Night switch in the footer, never from the phone's own setting.
   Same switch as NexStudents (modelled on lttstore). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --sand: #0f1d24;
  --sand-2: #0b161c;
  --card: #172a33;
  --card-hover: #1c333e;
  --ink: #f6ead8;
  --ink-soft: #b9a98f;
  --line: #25404c;
  --line-strong: #4d7282;
  --ocean: #5cc3dc;
  --sunset: #ef8a4c;
  --sunset-ink: #1a0f07;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --ring: #172a33;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%) fixed;
  background-color: var(--sand);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
/* No blue tap box on phones (Paul, 2026-11-23). Our own :active press shows the tap
   instead, and touch-action removes the old double-tap-zoom wait. */
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }


.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
  /* Every page is at least one full screen tall, footer at the bottom, so short pages
     (Gear, Shop) never make the phone's address bar or the scrollbar jump in and out
     when the menu switches pages (Paul, 2026-11-23: "the big adjustors"). 100vh is the
     LARGE viewport on phones, on purpose. 53px = the menu bar. */
  min-height: calc(100vh - 53px);
  display: flex;
  flex-direction: column;
}
.page > footer { margin-top: auto; padding-top: 36px; }

/* Hero */
.hero {
  position: relative;
  margin: 0 -16px;
  height: 210px;
  background: url("/img/beach.jpg") center 62% / cover no-repeat;
  background-image: image-set(url("/img/beach.webp") type("image/webp"), url("/img/beach.jpg") type("image/jpeg"));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--sand) 100%);
}
@media (min-width: 512px) {
  .page { padding-top: 24px; }
  .hero { margin: 0; border-radius: 24px; overflow: hidden; height: 230px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.08) 100%); }
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px;
  height: 132px;
  margin: -70px auto 0;
  border-radius: 50%;
  border: 5px solid var(--ring);
  box-shadow: var(--shadow);
  object-fit: cover;
  background: var(--card);
}

.intro { text-align: center; margin-top: 14px; }
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 8px auto 0;
  max-width: 36ch;
  text-wrap: balance;
  color: var(--ink-soft);
  font-size: 1rem;
}
.places {
  margin: 10px 0 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ocean);
}

/* Link buttons */
.links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.link {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.link:hover { background: var(--card-hover); transform: translateY(-1px); }
.link:active { transform: scale(.98); }
.link:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.link .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ink);
}
.link svg { width: 22px; height: 22px; fill: currentColor; }
.link .text { text-align: center; }
.link .label { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.link .sub { display: block; font-size: .8125rem; color: var(--ink-soft); line-height: 1.3; }

.link.featured {
  background: var(--sunset);
  border-color: var(--sunset);
  color: var(--sunset-ink);
  min-height: 76px;
}
.link.featured:hover { background: var(--sunset); filter: brightness(1.05); }
.link.featured .icon { background: rgba(255,255,255,.22); color: var(--sunset-ink); }
.link.featured .sub { color: var(--sunset-ink); opacity: .85; }

/* Sections */
section.block {
  margin-top: 36px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
section.block p { margin: 0 0 12px; }
section.block p:last-child { margin-bottom: 0; }
.note {
  font-size: .875rem;
  color: var(--ink-soft);
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid var(--ocean);
  color: var(--ocean);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: var(--ocean); color: var(--card); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-fill { background: var(--ocean); color: var(--card); }
.btn-fill:hover { filter: brightness(1.08); }

.product-name { font-weight: 700; font-size: 1.125rem; margin: 0 0 4px; }
.product-what { margin: 0; color: var(--ink-soft); }
.product .note { margin-top: 12px; }

.email-line { margin: 14px 0 0; text-align: center; }
.email-line a {
  color: var(--ocean);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 36px;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
footer p { margin: 0 0 10px; }
.fbot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fbot .copy { margin: 0; }
/* Pages with no affiliate note start the footer here: no line above it. */
footer > .fbot:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* The slim Day/Night switch, the same one NexStudents uses. A button, not a
   checkbox: the state lives on <html> as data-theme and in jp:mode only.
   Colors swap instantly; only the knob's position animates. */
.mswitch {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font: inherit; font-weight: 700; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.mswitch-track {
  position: relative; width: 40px; height: 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-strong); flex: none;
}
.mswitch-knob {
  position: absolute; top: 50%; left: 2px; width: 9px; height: 9px; border-radius: 999px;
  background: var(--sunset);
  transform: translateY(-50%) translateX(26px);
  transition: transform .34s cubic-bezier(.4,.05,.2,1);
}
/* Knob right in day, left in night. */
:root[data-theme="dark"] .mswitch-knob { transform: translateY(-50%); }
.mswitch:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }

/* Top menu: the same four words on every page, never a hamburger. */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topnav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.topnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.topnav a { transition: background-color .1s ease, color .1s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a:active { background: var(--sand-2); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ocean); border-bottom-color: var(--ocean); }
.topnav a:focus-visible { outline: 3px solid var(--ocean); outline-offset: -3px; }
@media (min-width: 512px) { .topnav a { font-size: 1rem; } }

/* Header on the inner pages (Gear, Shop, Contact). */
.pagehead { text-align: center; padding-top: 32px; }
.pagehead h1 { font-size: 2.125rem; }
.pagehead .tagline { margin-top: 8px; }
.pagehead + section.block { margin-top: 28px; }

/* Shop card */
.offer-meta {
  margin: 0 0 12px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ocean);
}
.offer { text-align: center; }
.offer h2 { margin-bottom: 0; }
section.block .price { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 2.75rem; line-height: 1; margin: 12px 0 14px; color: var(--sunset); }
section.block .offer-what { color: var(--ink-soft); max-width: 34ch; margin: 0 auto 4px; text-wrap: balance; }
/* Shop button sized to its words, not the full card (Paul, 2026-11-23: "too large"). */
.offer .btn { width: min(100%, 260px); min-height: 52px; margin: 18px auto 0; font-size: 1.0625rem; }
/* The calendar icon pushed the words right of the card's centre line. An empty
   spacer the same size as the icon balances it, so "Book a Call" itself sits dead centre. */
.offer .btn::after { content: ""; width: 5px; flex: none; } /* optical centre, Paul 11-23 */
.secure { margin-top: 18px; }
section.block .secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.secure-line svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.secure-line .stripe-s { width: 14px; height: 14px; margin-left: 2px; }
.cards { display: flex; justify-content: center; gap: 14px; margin-top: 8px; color: var(--ink-soft); }
.cards svg { width: 30px; height: 30px; fill: currentColor; opacity: .8; }
section.block .offer-fine { margin-top: 14px; text-wrap: balance; }
.covers { margin: 0 0 12px; padding-left: 1.2em; }
.covers li { margin: 0 0 6px; }
.btn-sun { background: var(--sunset); border-color: var(--sunset); color: var(--sunset-ink); }
.btn-sun:hover { background: var(--sunset); color: var(--sunset-ink); filter: brightness(1.06); }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .link, .btn { transition: none; }
  .link:hover, .link:active { transform: none; }
}

/* ---------- The guide (/guide/): Mastering Your Marriage, a web page instead of the Canva PDF,
   so the screenshots never leave blank half-pages behind them (Paul, 2026-11-23). ---------- */
.page.guide { max-width: 760px; }
.guide-cover { position: relative; margin: 20px 0 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.guide-cover img { display: block; width: 100%; height: auto; }
.guide-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 16px; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.82) 100%);
}
.guide-title h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.guide-title p { margin: 4px 0 0; font-weight: 600; opacity: .92; }
.guide-updated { margin: 14px 0 0; text-align: center; font-size: .875rem; color: var(--ink-soft); }
.guide-pdf { width: min(100%, 260px); margin: 12px auto 0; font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.guide .btn.guide-link { width: min(100%, 320px); margin: 14px auto 0; }
.guide .center { text-align: center; }
.guide section.block { margin-top: 24px; scroll-margin-top: 64px; }
.guide h3 { font-size: 1.125rem; line-height: 1.3; margin: 26px 0 8px; text-wrap: balance; }
.guide h2 + h3, .guide .kicker + h2 + h3 { margin-top: 10px; }
.kicker { margin: 0 0 4px !important; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.callout {
  margin: 20px 0; padding: 16px 18px; border: 2px solid var(--sunset); border-radius: 16px; background: var(--card);
}
.callout h3 { margin-top: 0; color: var(--sunset); }
.callout ol { margin: 0; padding-left: 1.3em; }
.callout li { margin: 0 0 8px; }
.callout-soft { border: 1px solid var(--line); font-size: .9375rem; margin-top: 24px; }
.callout-soft p { margin: 0; }
.toc { margin-top: 20px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.toc h2 { font-size: 1.25rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 0 0 6px; }
.toc a, .guide section.block a:not(.btn):not(.video) { color: var(--ocean); font-weight: 600; text-underline-offset: 3px; }
.guide figure { margin: 14px 0; }
.guide figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.guide .fig-photo { max-width: 380px; margin-inline: auto; }
.facts { margin: 0 0 12px; padding-left: 1.2em; }
.facts li { margin: 0 0 6px; }
.steps-lite { margin: 0 0 12px; padding-left: 1.4em; }
.steps-lite li { margin: 0 0 8px; }
.steps { margin: 0 0 12px; padding-left: 1.6em; }
.steps > li { margin: 0 0 20px; padding-left: 4px; }
.steps > li::marker { font-weight: 700; color: var(--ocean); }
.warn {
  margin: 10px 0 !important; padding: 10px 12px; border-left: 4px solid var(--sunset); border-radius: 0 8px 8px 0; background: var(--sand);
}
.compare { display: grid; gap: 14px; margin: 16px 0; }
.compare-col { padding: 16px; background: var(--sand); border-radius: 14px; min-width: 0; }
.compare-col h3 { margin-top: 0; }
.compare-time { margin: -4px 0 10px !important; font-weight: 700; color: var(--sunset); }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.place { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 14px; align-items: center; margin: 14px 0; }
.place figure { margin: 0; }
.place p:last-child { margin-bottom: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 14px 0 4px; }
.video { display: block; margin: 16px 0; text-decoration: none; color: var(--ocean); font-weight: 700; }
.video img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 10px; margin-bottom: 6px; }

/* Save as PDF = the browser's print, laid out for paper: no menu or switch, plain white,
   and every picture kept whole and no taller than a page, so nothing leaves a big gap. */
@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme="dark"] {
    --sand: #fff; --sand-2: #fff; --card: #fff; --ink: #111; --ink-soft: #444; --line: #ccc;
    --ocean: #0e6f8a; --sunset: #b9541a; --shadow: none;
  }
  body { background: #fff; font-size: 11pt; }
  .topnav, .page > footer, .guide-pdf, .guide-link, .mswitch { display: none !important; }
  .page, .page.guide { max-width: none; padding: 0; min-height: 0; display: block; }
  .guide-cover { box-shadow: none; margin-top: 0; }
  .guide section.block, .toc { border: 0; box-shadow: none; padding: 0; margin-top: 18px; }
  .guide figure, .callout, .warn, .place, .pair { break-inside: avoid; }
  .guide h2, .guide h3 { break-after: avoid; }
  .guide figure img { width: auto; max-width: 100%; max-height: 105mm; margin-inline: auto; }
  .guide .fig-tall img { max-height: 170mm; }
  .video img { max-width: 70mm; }
}
@media (max-width: 480px) { .place { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; } }
/* Highlighter pen on the one line people must not miss (Paul, 2026-11-23). */
mark.hl { background: #ffe27a; color: #2b2118; padding: 1px 3px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:root[data-theme="dark"] mark.hl { background: #f2c94c; color: #1a0f07; }
/* Phone photos of paper (the LCR list, the sample LOA): big enough to read, not wider than the paper. */
.guide .fig-list { max-width: 520px; margin-inline: auto; }
.video img { max-width: 100%; }
/* The PMC video sits centered, picture and words (Paul, 2026-11-23). */
.video { max-width: 360px; margin-inline: auto; text-align: center; }
.video img { margin-inline: auto; }

/* Free guide card on the Shop: email in, guide unlocked. Outline button, so Book a Call stays the one main button. */
.offer + .offer { margin-top: 20px; }
.guide-form { display: grid; gap: 10px; max-width: 320px; margin: 16px auto 0; }
.guide-form input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--sand); color: var(--ink);
  font: inherit; font-size: 1rem; text-align: center;
}
.guide-form input[type="email"]::placeholder { color: var(--ink-soft); }
.guide-form input[type="email"]:focus-visible { outline: 3px solid var(--ocean); outline-offset: 1px; }
.guide-form .btn { width: 100%; margin: 0; font: inherit; font-weight: 700; font-size: 1.0625rem; background: transparent; cursor: pointer; }
.guide-form .btn:hover { background: var(--ocean); color: var(--card); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Optical centre for the download buttons (Paul, 2026-11-23: still "doesn't feel centered"):
   a spacer HALF the arrow's room, so the arrow + words sit between "words centred" and
   "group centred". Neither extreme looked right on its own. */
.guide-pdf::after { content: ""; width: 5px; flex: none; }
/* Book a Call (Paul, 2026-11-23, "try it"): words dead centre, the icon parked at the left edge. */
.btn-edge { position: relative; }
.btn-edge svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); }
.offer .btn-edge::after { content: none; }
