/* Parent Move Plan: design tokens and components
   Style family: Warm. Paper background, deep teal brand, terracotta only for buy buttons.
   Motif (visual rhyme): the amber "due this week" band from the spreadsheet, and the DAY chip. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* six sizes; audience 45-65 -> body 20px */
  --text-xs: 1rem;       /* 16 labels, fine print */
  --text-sm: 1.125rem;   /* 18 secondary text, buttons */
  --text-md: 1.25rem;    /* 20 body (Source Sans runs small) */
  --text-lg: 1.5rem;     /* 24 subheads */
  --text-xl: 2.125rem;   /* 34 section titles (mobile h1) */
  --text-2xl: 3rem;      /* 48 h1 desktop */

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F3EEE6;
  --line: #E4DCCF;
  --ink: #2B2622;
  --ink-70: rgb(43 38 34 / .74);
  --ink-60: rgb(43 38 34 / .64);
  --teal-50: #E8F0EF;
  --teal-100: #D3E3E1;
  --teal-700: #2F5D62;
  --teal-800: #24494D;
  --amber: #FDF1D8;
  --amber-line: #EBCB86;
  --red-bg: #F9DEDA;

  --buy: #B4532A;        /* exclusive: purchase buttons only */
  --buy-hover: #9A4522;
  --buy-active: #843A1C;

  --radius-sm: 6px; --radius-md: 12px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(43 38 34 / .05), 0 8px 24px rgb(43 38 34 / .06);
  --focus-ring: 0 0 0 3px rgb(47 93 98 / .35);
  --tap-min: 48px;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-text); color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-size: var(--text-md); line-height: 1.55; background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-800); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--space-4); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--text-xl); }
h2 { font-size: 1.875rem; }
h3 { font-family: var(--font-text); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 900px) { h1 { font-size: var(--text-2xl); } h2 { font-size: 2.5rem; } .hero h1 { font-size: 3rem; } }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
.lede { font-size: 1.25rem; color: var(--ink-70); }
@media (min-width: 900px) { .lede { font-size: var(--text-lg); line-height: 1.45; } }
.muted { color: var(--ink-70); }
.small { font-size: var(--text-xs); color: var(--ink-70); }
ul, ol { padding-left: 1.3em; margin: 0 0 var(--space-4); max-width: var(--measure); }
li { margin-bottom: var(--space-2); }
strong { font-weight: 700; }

/* The motif: amber highlighter = "due this week" row from the plan */
.hl { background: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 94%, transparent 94%); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }
.narrow { max-width: 760px; }
.section { padding: var(--space-16) 0; }
@media (min-width: 900px) { .section { padding: var(--space-24) 0; } }
.section--sand { background: var(--sand); }
.section--tight { padding: var(--space-12) 0; }
.section__head { max-width: 46rem; margin-bottom: var(--space-8); }

/* DAY chip (visual rhyme with the plan) */
.day { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--text-xs)/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-sm); padding: 6px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day--amber { background: var(--amber); border-color: var(--amber-line); color: #6B4A0B; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(251 248 243 / .96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); transition: transform .2s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font: 600 1.25rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--text-sm); padding: 10px 12px; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal-800); font-weight: 700; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); padding: 0 14px; font: 600 var(--text-sm)/1 var(--font-text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; }
.nav-toggle:hover { background: var(--sand); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: var(--space-2) 0 var(--space-4); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 var(--space-4); color: var(--ink); text-decoration: none; font-size: var(--text-md); border-radius: var(--radius-sm); }
.mobile-nav a:hover { background: var(--sand); }
@media (min-width: 900px) { .nav { display: flex; gap: var(--space-1); } .nav-toggle, .mobile-nav, .mobile-nav.is-open { display: none; } }

/* Buttons: four states, hover darkens, nothing moves */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 56px; padding: 14px 28px; border-radius: var(--radius-pill);
  font: 700 var(--text-sm)/1.2 var(--font-text); border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn--buy { background: var(--buy); color: #fff; }
.btn--buy:hover { background: var(--buy-hover); color: #fff; }
.btn--buy:active { background: var(--buy-active); box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-800); color: #fff; }
.btn--primary:active { box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
@media (max-width: 599px) { .btn--block-sm { width: 100%; } }

/* Hero */
.hero { padding: var(--space-10) 0 var(--space-12); }
@media (min-width: 900px) { .hero { padding: var(--space-16) 0 var(--space-16); } }
.hero__grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-12); } }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin: var(--space-6) 0 var(--space-4); }
.proof-line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: 0; font-size: var(--text-xs); color: var(--ink-70); }
.proof-line li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.proof-line svg { width: 18px; height: 18px; color: var(--teal-700); flex: none; }

/* Product frame: real template previews */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.frame__bar { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sand); font-size: var(--text-xs); color: var(--ink-70); }
.frame__bar b { color: var(--ink); font-weight: 700; }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: var(--text-xs); color: var(--ink-70); margin-top: var(--space-3); }

/* Cards and grids */
.grid-3 { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.grid-2 { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

/* Week list (sample tasks) */
.tasklist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; max-width: none; }
.tasklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); margin: 0; }
.tasklist li:last-child { border-bottom: 0; }
.tasklist li.is-now { background: var(--amber); }
.tasklist b { display: block; font-weight: 700; }
.tasklist div > span { color: var(--ink-70); font-size: var(--text-sm); }
.tasklist .day { align-self: start; margin-top: 2px; }

/* Inside tabs (what's inside) */
.inside { display: grid; gap: var(--space-12); }
.inside__item { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .inside__item { grid-template-columns: 1fr 1.7fr; gap: var(--space-10); } .inside__item:nth-child(even) .inside__text { order: 2; } }
.tag { display: inline-block; font: 700 var(--text-xs)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); border: 1px solid var(--line); background: var(--surface); padding: 6px 8px; border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.tag--complete { color: var(--teal-800); border-color: var(--teal-100); background: var(--teal-50); }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--text-sm); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--sand); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--teal-800); font-weight: 700; }
.compare td.part { color: var(--ink-70); }
.compare th[scope="row"] { font-weight: 400; }

/* Pricing */
.plans { display: grid; gap: var(--space-6); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6) var(--space-6); }
.plan--featured { border: 2px solid var(--teal-700); box-shadow: var(--shadow-card); }
.plan__badge { position: absolute; top: -14px; left: var(--space-6); background: var(--teal-700); color: #fff; font: 700 var(--text-xs)/1 var(--font-text); padding: 8px 12px; border-radius: var(--radius-pill); }
.plan__name { font: 600 var(--text-lg)/1.1 var(--font-display); margin: 0 0 var(--space-1); }
.plan__for { color: var(--ink-70); margin-bottom: var(--space-4); }
.plan__price { font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: -0.02em; margin: var(--space-2) 0 var(--space-1); }
.plan__price small { font: 400 var(--text-sm)/1 var(--font-text); color: var(--ink-70); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-6); }
.plan li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-bottom: var(--space-3); }
.plan li svg { width: 22px; height: 22px; color: var(--teal-700); margin-top: 3px; }
.plan li.plus { font-weight: 700; }
.plan__cta { margin-top: auto; }
.policy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: var(--space-3); font-size: var(--text-xs); color: var(--ink-70); text-align: center; }
.anchor-note { margin-top: var(--space-8); padding: var(--space-5) var(--space-6); border-left: 4px solid var(--amber-line); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); }
.anchor-note p { max-width: none; }

/* Steps */
.steps { display: grid; gap: var(--space-6); counter-reset: step; list-style: none; padding: 0; max-width: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; }
.steps .day { margin-bottom: var(--space-3); }

/* Boundaries box */
.bounds { display: grid; gap: var(--space-3); list-style: none; padding: 0; max-width: none; }
.bounds li { display: grid; gap: 2px; padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin: 0; }
.bounds b { font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; min-height: 64px; padding: var(--space-4) 0; font-weight: 700; font-size: var(--text-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700); transform: rotate(45deg); margin-right: 6px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--teal-800); }
.faq .faq__a { padding: 0 0 var(--space-6); color: var(--ink); }

/* Recap */
.recap { text-align: left; }
.recap__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6); }
@media (min-width: 900px) { .recap__box { padding: var(--space-8); display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-10); align-items: center; } }

/* "Jump to plans" bar: only after hero CTA leaves the screen, hidden while pricing is visible */
.jumpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(43 38 34 / .06); padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom)); display: none; }
.jumpbar.is-visible { display: block; }
.jumpbar__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.jumpbar__text { font-size: var(--text-xs); color: var(--ink-70); line-height: 1.3; }
.jumpbar__text b { display: block; color: var(--ink); font-size: var(--text-sm); }
.jumpbar .btn { min-height: 48px; padding: 10px 20px; }
@media (min-width: 900px) { .jumpbar { display: none !important; } }

/* Article (guides) */
.article { padding: var(--space-10) 0 var(--space-16); }
.article__meta { font-size: var(--text-xs); color: var(--ink-70); margin-bottom: var(--space-6); }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal-700); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-5) var(--space-6); margin: var(--space-6) 0 var(--space-8); }
.answer p:last-child, .answer ul:last-child, .answer ol:last-child { margin-bottom: 0; }
.answer__label { font: 700 var(--text-xs)/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-800); margin-bottom: var(--space-3); display: block; }
.article h2 { margin-top: var(--space-12); }
.article h3 { margin-top: var(--space-8); }
.article table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--surface); }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article thead th { background: var(--sand); }
.toc { background: var(--sand); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-8); }
.toc ol { margin: 0; }
.toc a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.toc li { margin-bottom: 0; }
.toc a:hover { text-decoration: underline; }
.note { background: var(--sand); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin: var(--space-8) 0; font-size: var(--text-sm); }
.note p:last-child { margin-bottom: 0; }
.product-box { display: grid; gap: var(--space-4); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-md); padding: var(--space-6); margin: var(--space-10) 0; }
.product-box h2, .product-box h3 { margin: 0; font-family: var(--font-display); font-weight: 560; font-size: var(--text-lg); }
.product-box p { margin: 0; }
.product-box .btn { justify-self: start; }
.sources { font-size: var(--text-xs); color: var(--ink-70); }
.sources li { margin-bottom: var(--space-2); overflow-wrap: anywhere; }
.guide-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); max-width: none; }
.guide-list a { display: block; padding: var(--space-5) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--teal-700); color: var(--ink); }
.guide-list b { display: block; font: 600 var(--text-lg)/1.25 var(--font-display); margin-bottom: 4px; color: var(--ink); }
.guide-list b + span { display: block; color: var(--ink-70); font-size: var(--text-sm); }

/* Tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
@media (min-width: 900px) { .tool { padding: var(--space-8); } }
.tool fieldset { border: 0; padding: 0; margin: 0 0 var(--space-8); }
.tool legend { font: 600 1.5rem/1.2 var(--font-display); margin-bottom: var(--space-2); padding: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--text-sm); }
.input, .select { width: 100%; min-height: var(--tap-min); padding: 10px 14px; font: inherit; font-size: var(--text-md); color: var(--ink); background: var(--surface); border: 1px solid #CFC5B6; border-radius: var(--radius-sm); }
.input:focus, .select:focus { border-color: var(--teal-700); }
.input[aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: var(--text-xs); min-height: 0; }
.person { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); margin-bottom: var(--space-3); }
@media (min-width: 760px) { .person { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } }
.link-btn { background: none; border: 0; color: var(--teal-700); font: 700 var(--text-sm)/1 var(--font-text); cursor: pointer; min-height: var(--tap-min); padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--teal-800); }
.checks { display: grid; gap: 2px; list-style: none; padding: 0; max-width: none; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 2px var(--space-6); } }
.checks li { margin: 0; }
.checks label { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 12px 8px; border-radius: var(--radius-sm); cursor: pointer; min-height: var(--tap-min); }
.checks label:hover { background: var(--sand); }
.checks input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-700); }
.checks .meta { font-size: var(--text-xs); color: var(--ink-70); white-space: nowrap; }
.result { margin-top: var(--space-8); }
.result__person { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-4); background: var(--paper); }
.result__person h3 { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.result__person h3 span { font: 400 var(--text-sm)/1.4 var(--font-text); color: var(--ink-70); }
.bar { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; margin: var(--space-2) 0 var(--space-4); }
.bar i { display: block; height: 100%; background: var(--teal-700); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); z-index: 40; display: none; }
.toast.is-visible { display: block; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-xs); color: var(--ink-70); margin: 0 0 var(--space-6); }
.privacy-note svg { width: 20px; height: 20px; flex: none; color: var(--teal-700); margin-top: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-12) 0 var(--space-24); font-size: var(--text-xs); color: var(--ink-70); }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--space-12); } }
.site-footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font: 700 var(--text-xs)/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--ink-70); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { max-width: 32rem; }

/* Legal pages */
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-10); }
.missing { background: #FFE9A8; outline: 2px dashed #C08A00; padding: 0 4px; }

/* Thank-you pages */
.download-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); max-width: none; }
.download-list li { margin: 0; display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
@media (min-width: 760px) { .download-list li { grid-template-columns: 1fr auto; align-items: center; } }
.download-list b { display: block; font-size: var(--text-md); }
.download-list span { color: var(--ink-70); font-size: var(--text-sm); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .jumpbar, .no-print { display: none !important; } body { background: #fff; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 16px; color: #fff; }
.phase-list { list-style: none; padding: 0; max-width: none; display: grid; gap: var(--space-3); }
.phase-list li { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); margin: 0; }
.phase-list b { display: block; }
.phase-list span.muted { font-size: var(--text-sm); }
@media (max-width: 599px) { .phase-list li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Standalone text links get a full tap target */
.textlink { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .plan__price { font-size: 2.5rem; } }
@media (min-width: 900px) { .sticky-col { position: sticky; top: 96px; } }
@media (max-width: 759px) {
  .person { grid-template-columns: 1fr 1fr; }
  .person .field:first-child { grid-column: 1 / -1; }
  .person .js-remove { grid-column: 1 / -1; justify-self: end; }
}

/* Photos (Pexels stock, see 09-bilder/bildnachweis.md) */
.photo { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.grid-2 .photo { margin-top: var(--space-8); }
.recap__box .photo { margin-bottom: var(--space-6); }
@media (min-width: 900px) { .recap__box .photo { margin-bottom: 0; } }
.hero-media { position: relative; }
.hero-media__photo { border-radius: var(--radius-md); overflow: hidden; }
.hero-media__photo img { width: 100%; height: auto; }
.hero-media__sheet { position: relative; width: 92%; margin: -56px 0 0 auto; }
@media (min-width: 900px) {
  .hero-media { padding-bottom: 150px; }
  .hero-media__sheet { position: absolute; right: -24px; bottom: 0; width: 80%; margin: 0; }
}
.card--media { overflow: hidden; padding-top: 0; }
.card__img { display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; height: auto; margin: 0 calc(-1 * var(--space-6)) var(--space-5); }
.article__img { margin: var(--space-6) 0 var(--space-8); }
.article__img img { width: 100%; height: auto; border-radius: var(--radius-md); }
.guide-list a.has-thumb { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5); align-items: center; }
.guide-list .thumb { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 599px) { .guide-list a.has-thumb { grid-template-columns: 88px 1fr; gap: var(--space-4); } .guide-list .thumb { width: 88px; height: 66px; } }

/* Personal date planner (no storage; dates are calculated in the browser) */
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-6) 0; max-width: 34rem; }
.planner label { display: block; font-weight: 700; margin-bottom: var(--space-3); }
.planner label .muted { font-weight: 400; }
.planner__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.planner__row .input { flex: 1 1 180px; width: auto; }
.planner__row .btn { min-height: 48px; padding: 10px 20px; }
.planner__result { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
.planner__result:empty { display: none; }
.tasklist li.is-past { opacity: .6; }

/* Look inside + enlarge */
.look-inside { margin-top: var(--space-16); }
.page-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 760px) { .page-row { grid-template-columns: repeat(5, 1fr); } }
.page-thumb img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); background: #fff; }
.page-thumb figcaption { margin-top: var(--space-2); }
.zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); }
.zoom-btn:hover img { box-shadow: 0 0 0 3px var(--teal-100); }
dialog.zoom { padding: 0; border: 0; border-radius: var(--radius-md); max-width: min(96vw, 1400px); max-height: 94vh; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
dialog.zoom::backdrop { background: rgb(43 38 34 / .6); }
dialog.zoom img { display: block; max-width: 100%; max-height: calc(94vh - 60px); width: auto; height: auto; margin: 0 auto; }
dialog.zoom .zoom__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 6px 6px 6px var(--space-4); border-bottom: 1px solid var(--line); font-size: var(--text-xs); color: var(--ink-70); }
.fit { margin-top: var(--space-10); }
.fit h3 { margin-bottom: var(--space-4); }

/* Core -> Complete: the Core payment is credited in full, only the difference is charged */
.swap { margin: var(--space-12) 0; padding: var(--space-8) var(--space-6); background: var(--surface); border: 2px solid var(--teal-700); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.swap h2 { margin: var(--space-2) 0 var(--space-3); }
.swap__visual { display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: stretch; gap: var(--space-3); margin: var(--space-6) 0; }
.swap__tile { display: grid; align-content: start; gap: 6px; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper); }
.swap__name { font: 600 var(--text-md)/1.1 var(--font-display); }
.swap__price { font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: -.02em; }
.swap__tile--from .swap__price { color: var(--ink-60); }
.swap__badge { justify-self: start; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font: 700 var(--text-xs)/1.2 var(--font-text); animation: swapback 1.2s .4s ease both; }
.swap__tile--to { border: 2px solid var(--teal-700); background: var(--teal-50); }
.swap__plus { font-size: var(--text-xs); color: var(--ink-70); }
.swap__arrow { width: 40px; align-self: center; color: var(--teal-700); }
@keyframes swapback { 0% { transform: translateX(24px); opacity: 0; } 60% { transform: translateX(-3px); opacity: 1; } 100% { transform: none; } }
@media (max-width: 599px) { .swap__visual { grid-template-columns: 1fr; } .swap__arrow { transform: rotate(90deg); justify-self: center; } }
.swap__math { width: 100%; max-width: 30rem; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: var(--text-md); }
.swap__math td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.swap__math td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.swap__credit td { color: var(--teal-800); }
.swap__total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: var(--text-lg); }
.swap .btn { margin-bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .swap__badge { animation: none; } }
