/* Challenge Contract: a light January morning. Cream paper, deep teal ink, a little citrus. */
:root {
  --bg: #f6f1e8;
  --bg-2: #efe8db;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;
  --ink: #12302f;
  --ink-soft: #4f6b69;
  --ink-mute: #6f8583;
  --line: rgba(18, 48, 47, .12);
  --line-strong: rgba(18, 48, 47, .2);
  --accent: #1f6f6a;
  --accent-strong: #185a56;
  --accent-soft: rgba(31, 111, 106, .09);
  --citrus: #e8803a;
  --citrus-ink: #a9531a;
  --citrus-soft: rgba(232, 128, 58, .12);
  --ok: #3f8f5a;
  --ok-soft: rgba(63, 143, 90, .11);
  --warn: #b9681f;
  --paper: #fffdf8;
  --paper-2: #fbf6ec;
  --radius: 18px;
  --radius-s: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 48, 47, .05), 0 2px 6px -2px rgba(18, 48, 47, .06);
  --shadow: 0 1px 2px rgba(18, 48, 47, .04), 0 14px 34px -16px rgba(18, 48, 47, .2);
  --shadow-lg: 0 2px 4px rgba(18, 48, 47, .05), 0 30px 60px -28px rgba(18, 48, 47, .38), 0 10px 22px -14px rgba(18, 48, 47, .18);
  --serif: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Older names kept so pages written against the first stylesheet still resolve. */
  --night: var(--bg); --night-2: var(--surface); --night-3: var(--bg-2);
  --line-soft: var(--line); --ice: var(--ink); --ice-dim: var(--ink-soft); --ice-mute: var(--ink-mute);
  --frost: var(--accent); --frost-strong: var(--accent); --ink-blue: var(--accent-strong);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(31, 111, 106, .18); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
img, svg, canvas { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.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; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 241, 232, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18.5px/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(18, 48, 47, .35); }
.brand-mark {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(18, 48, 47, .08), 0 4px 10px -4px rgba(18, 48, 47, .4);
  background:
    url("/assets/img/icon-48.png") center / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8.5 16.8l4.6 4.6L23.8 10.2' fill='none' stroke='%23f6f1e8' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='23.8' cy='10.2' r='2' fill='%23e8803a'/%3E%3C/svg%3E") center / 100% no-repeat,
    radial-gradient(circle at 30% 25%, #1f4f4c, #12302f 70%);
}
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(18, 48, 47, .05); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(72px, 9vw, 124px) 0 clamp(64px, 7vw, 100px);
  background:
    radial-gradient(520px 360px at 80% 46%, rgba(232, 128, 58, .16), transparent 70%),
    radial-gradient(900px 520px at 88% 10%, rgba(31, 111, 106, .14), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #e9f1ec 0%, #f2f1e9 55%, var(--bg) 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 241, 232, .9) 0%, rgba(246, 241, 232, .7) 34%, rgba(246, 241, 232, 0) 60%),
    linear-gradient(180deg, rgba(246, 241, 232, 0) 72%, var(--bg) 100%);
}
.hero.no-art::after { background: linear-gradient(180deg, rgba(246, 241, 232, 0) 72%, var(--bg) 100%); }
.hero-inner { text-align: left; }
.hero-inner > * { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .72);
  font: 600 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--citrus); }
.hero h1 { font: 600 clamp(40px, 6.2vw, 72px)/1.02 var(--serif); margin: 0 0 22px; color: var(--ink); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--accent); }
.hero-sub { margin: 0; max-width: 520px; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.countdown {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255, 253, 248, .78); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; line-height: 1.35; color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.countdown::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--citrus); box-shadow: 0 0 0 4px var(--citrus-soft); }
.countdown[hidden] { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--sans); padding: 13px 18px; border-radius: 12px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:hover { border-color: rgba(31, 111, 106, .45); color: var(--accent-strong); background: #fff; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  background: linear-gradient(180deg, #23807a, var(--accent)); border-color: var(--accent-strong); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 24px -12px rgba(31, 111, 106, .75);
}
.btn.primary:hover { background: linear-gradient(180deg, #1f7570, var(--accent-strong)); color: #fff; }
.btn.ghost { background: rgba(255, 253, 248, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: none; }
.btn.large { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--ink-soft); font: 500 14px/1.4 var(--sans); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(18, 48, 47, .3); }
.link-btn:hover { color: var(--accent-strong); }

/* ---------- Builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 52px); padding: 8px 0 80px; align-items: start; scroll-margin-top: 80px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow-sm); }

.progress { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 26px; padding: 0; }
.progress li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-mute); padding: 8px 7px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); transition: color .25s, background .25s, border-color .25s; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress li span { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 11px; font-weight: 600; transition: all .25s; }
.progress li.done { color: var(--ok); background: var(--ok-soft); border-color: rgba(63, 143, 90, .28); }
.progress li.done span { background: var(--ok); border-color: var(--ok); color: transparent; position: relative; }
.progress li.done span::after { content: ""; position: absolute; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.step + .step { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.step h2 { font: 600 21px/1.25 var(--serif); margin: 0 0 6px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; letter-spacing: -.005em; }
.step h2 > span { flex-basis: 100%; color: var(--accent); font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.hint { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-mute); }
.sub-label { margin: 20px 0 4px; font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

label.field { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 14px 0 7px; }
label.field small { font-weight: 400; color: var(--ink-mute); }
input[type="text"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  color-scheme: light; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #98a8a6; }
input:hover, select:hover, textarea:hover { border-color: rgba(31, 111, 106, .4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 106, .14); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f6a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Challenge picker */
.ch-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ch-card {
  --ch-accent: var(--accent);
  position: relative; display: flex; align-items: flex-start; gap: 12px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); padding: 14px 40px 14px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ch-card:first-child { grid-column: 1 / -1; padding: 16px 44px 16px 16px; }
.ch-card:hover { border-color: rgba(31, 111, 106, .45); box-shadow: var(--shadow-sm); }
.ch-card:active { transform: scale(.99); }
.ch-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(31, 111, 106, .1); background: color-mix(in srgb, var(--ch-accent) 11%, #fff); color: var(--ch-accent);
}
.ch-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.ch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-name { font: 600 16.5px/1.25 var(--serif); letter-spacing: -.005em; }
.ch-desc { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.ch-meta { margin-top: 4px; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ch-accent); }
.ch-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; transition: all .2s var(--ease); }
.ch-check::after { content: ""; position: absolute; left: 5px; top: 5.5px; width: 7px; height: 3.5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.ch-card[aria-checked="true"] { border-color: var(--accent); background: linear-gradient(180deg, #fff, #f3f8f6); box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 24px -16px rgba(31, 111, 106, .7); }
.ch-card[aria-checked="true"] .ch-check { background: var(--accent); border-color: var(--accent); }
.ch-card[aria-checked="true"] .ch-check::after { transform: rotate(-45deg) scale(1); }
.ch-custom { margin-top: 4px; }
.ch-custom[hidden], .ch-safety[hidden] { display: none; }
.callout.ch-safety { margin: 14px 0 0; font-size: 14px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-btn {
  font: 600 15px/1.2 var(--sans); color: var(--ink); text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.seg-btn small { font-weight: 400; font-size: 13px; color: var(--ink-mute); }
.seg-btn:hover { border-color: rgba(31, 111, 106, .45); }
.seg-btn[aria-pressed="true"] { border-color: var(--accent); background: #f3f8f6; box-shadow: 0 0 0 1px var(--accent) inset; color: var(--accent-strong); }
.date-summary { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }
.date-summary b { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group + .chip-group { margin-top: 16px; }
.chip-group h3 { margin: 0 0 9px; font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.chip {
  font: inherit; font-size: 14px; color: var(--ink); background: #fff; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; min-height: 38px;
  display: inline-flex; align-items: center; gap: 6px; text-align: left;
  transition: background .2s, border-color .2s, color .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.chip::before { content: "+"; font-weight: 600; color: var(--accent); width: 10px; text-align: center; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.chip[aria-pressed="true"]::before { content: "\2713"; color: #fff; }
.chip.more { border-style: dashed; color: var(--accent); background: transparent; }
.chip.more::before { content: none; }
.chip[hidden] { display: none; }
.motto-ideas { margin-top: 10px; }
.motto-ideas .chip { font-style: italic; font-family: var(--serif); }
.motto-ideas .chip::before { content: none; }

.rule-count { font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
.rule-count.good { background: var(--ok-soft); color: var(--ok); }
.rule-count.warn { background: var(--citrus-soft); color: var(--citrus-ink); }

.rule-list { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: rule; }
.rule-list li { display: flex; align-items: center; gap: 12px; padding: 9px 6px 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 8px; font-size: 15px; animation: rule-in .25s var(--ease); }
@keyframes rule-in { from { opacity: 0; transform: translateY(-4px); } }
.rule-list li::before { counter-increment: rule; content: counter(rule); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.rule-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rule-list button { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--ink-mute); cursor: pointer; font-size: 20px; line-height: 1; }
.rule-list button:hover { color: var(--ink); background: rgba(18, 48, 47, .06); }
.rule-list:empty::after { content: "No rules yet. Tap a suggestion above."; display: block; margin-top: 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-mute); font-size: 14px; text-align: center; }
.add-rule { display: flex; gap: 8px; margin-top: 10px; }
.add-rule input { flex: 1; min-width: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--ink-soft); cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.check strong { color: var(--ink); font-weight: 600; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

/* ---------- Preview ---------- */
.preview { position: sticky; top: 88px; scroll-margin-top: 80px; }
.preview-label { display: flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 4px 0 14px; }
.preview-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 143, 90, .16); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 143, 90, .04); } }
.paper-wrap { position: relative; }
.seal { position: absolute; right: -14px; bottom: -22px; width: clamp(84px, 11vw, 116px); height: auto; filter: drop-shadow(0 8px 12px rgba(18, 48, 47, .28)); transform: rotate(-12deg); pointer-events: none; }

.contract {
  background:
    radial-gradient(120% 70% at 50% 0%, #fff, transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: 6px;
  padding: clamp(30px, 4.4vw, 50px) clamp(26px, 4.2vw, 48px) clamp(34px, 4.6vw, 54px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(18, 48, 47, .05);
  font-family: var(--serif); position: relative;
}
.contract::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(18, 48, 47, .22); border-radius: 3px; pointer-events: none; }
.contract::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(18, 48, 47, .1); border-radius: 2px; pointer-events: none; }
.contract .c-kicker { font: 600 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.contract .c-title { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; text-align: center; margin: 12px 0 6px; letter-spacing: -.015em; line-height: 1.12; overflow-wrap: anywhere; }
.contract .c-dates { text-align: center; font: 500 13.5px/1.4 var(--sans); color: var(--ink-soft); padding-bottom: 18px; position: relative; }
.contract .c-dates::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 2px; margin-left: -22px; border-radius: 2px; background: var(--citrus); }
.contract .c-body { font-size: 16.5px; line-height: 1.6; margin: 20px 0 10px; }
.contract ol { margin: 0 0 14px; padding-left: 24px; font-size: 16.5px; }
.contract ol li { padding: 3px 0 3px 4px; }
.contract ol li::marker { color: var(--accent); font-weight: 600; }
.contract .c-clause { font-size: 14px; color: var(--ink-soft); font-style: italic; margin: 6px 0; }
.contract .c-motto { text-align: center; font-size: 19px; font-style: italic; margin: 20px 0 6px; color: var(--accent); }
.contract .c-sign { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 28px; align-items: end; }
.contract .c-line { border-top: 1px solid rgba(18, 48, 47, .7); padding-top: 7px; font: 600 10px/1.3 var(--sans); color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; }
.contract .c-sig { font: 38px/1 var(--hand); color: #1b4e4b; min-height: 40px; padding-bottom: 2px; overflow-wrap: anywhere; }
.contract .c-date { font: 15px/1 var(--sans); padding-bottom: 8px; }
.contract .c-empty { color: var(--ink-soft); font-style: italic; }

.exports { display: grid; gap: 12px; margin-top: 34px; }
.exports > .btn.primary { width: 100%; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); padding: 14px; border-radius: 14px; min-height: 108px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.tile svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.tile b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.tile small { font-size: 12.5px; color: var(--ink-mute); line-height: 1.35; }
.tile:hover { border-color: rgba(31, 111, 106, .45); background: #fff; box-shadow: var(--shadow); }
.tile:active { transform: scale(.98); }
.tile[aria-busy="true"] { opacity: .6; cursor: progress; }
.exports .link-btn { justify-self: center; }
.export-note { font-size: 13px; color: var(--ink-mute); margin: 8px 0 0; text-align: center; min-height: 1.3em; }

/* Wallpaper theme picker (generator) */
.wp-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 2px; }
.wp-pick-label { font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.wp-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-theme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 5px;
  font: 500 14px/1 var(--sans); color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .2s, background .2s;
}
.wp-theme:hover { border-color: var(--accent); }
.wp-theme[aria-checked="true"] { border-color: var(--accent); background: #f3f8f6; color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent); }
.wp-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wp-swatch { width: 18px; height: 30px; flex: none; border-radius: 5px; border: 1px solid rgba(18, 48, 47, .18); }
.wp-theme[data-theme="fresh"] .wp-swatch { background: url("/assets/img/wp-fresh.webp") center / cover, radial-gradient(circle at 70% 100%, rgba(232, 128, 58, .45), transparent 60%), linear-gradient(#e4f0ec, #f6f1e8 60%, #f3e4d2); }
.wp-theme[data-theme="night"] .wp-swatch { background: url("/assets/img/wp-night.webp") center / cover, radial-gradient(circle at 70% 100%, rgba(232, 160, 90, .4), transparent 60%), linear-gradient(#081b1e, #0e2a2e 55%, #17393d); }
.wp-theme[data-theme="minimal"] .wp-swatch { background: linear-gradient(#f6f1e8, #f6f1e8) padding-box; box-shadow: inset 0 0 0 2px #f6f1e8, inset 0 0 0 3px rgba(18, 48, 47, .3); }

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: rgba(18, 48, 47, .96); color: #f6f1e8; font-size: 14.5px; box-shadow: 0 18px 40px -14px rgba(18, 48, 47, .6); animation: toast-in .3s var(--ease); }
.toast svg { width: 18px; height: 18px; color: #9fd8cf; flex: none; stroke-width: 2.4; }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Content sections ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.section h2 { font: 600 clamp(27px, 3.4vw, 38px)/1.15 var(--serif); color: var(--ink); margin: 0 0 16px; letter-spacing: -.015em; text-wrap: balance; }
.section p, .section li { color: var(--ink-soft); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section .kicker { color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--citrus); }
.section-lede { max-width: 620px; margin: -4px 0 0; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.steps > div { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.steps i svg { width: 22px; height: 22px; }
.steps b { display: block; color: var(--ink); font: 600 19px/1.3 var(--serif); margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 44px; }
.prose h3 { font: 600 21px/1.3 var(--serif); color: var(--ink); margin: 30px 0 8px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.faq .prose > .kicker + h2, .prose > .kicker + h2 { margin-top: 0; }
.faq details { background: var(--surface); border-radius: 14px; margin-top: 10px; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; padding: 17px 50px 17px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }
.cta { text-align: center; }
.cta p { margin: 0 0 18px; }

/* Pick a challenge (home) */
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.pick-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
a.pick-card:hover { border-color: rgba(31, 111, 106, .4); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.pick-card h3 { margin: 4px 0 0; font: 600 20px/1.25 var(--serif); letter-spacing: -.01em; }
.pick-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.pick-tag { align-self: flex-start; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 9px; border-radius: 999px; }
.pick-go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--accent); }
.pick-go::after { content: " \2192"; transition: margin .2s; }
a.pick-card:hover .pick-go::after { margin-left: 4px; }
.pick-card.featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 32px; padding: clamp(24px, 3.4vw, 34px);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(232, 128, 58, .12), transparent 70%),
    radial-gradient(520px 260px at 0% 100%, rgba(31, 111, 106, .1), transparent 70%),
    var(--surface);
  border-color: rgba(31, 111, 106, .22);
}
.pick-card.featured .pick-tag { grid-column: 1; justify-self: start; color: var(--citrus-ink); background: var(--citrus-soft); }
.pick-card.featured h3 { grid-column: 1; font-size: clamp(26px, 3vw, 32px); }
.pick-card.featured p { grid-column: 1; max-width: 560px; font-size: 16px; }
.pick-actions { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 10px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.guide-card b { color: var(--ink); font: 600 18px/1.3 var(--serif); }
.guide-card b::after { content: " \2192"; color: var(--accent); font-family: var(--sans); font-weight: 500; }
.guide-card span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.guide-card:hover { border-color: rgba(31, 111, 106, .4); transform: translateY(-2px); box-shadow: var(--shadow); }

.callout { background: var(--accent-soft); border: 1px solid rgba(31, 111, 106, .14); border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 24px 0; color: var(--ink); }
.section .callout, .article .callout { color: var(--ink); }
.callout strong { color: var(--ink); }
.callout.safety { background: #fdf3ea; border-color: rgba(232, 128, 58, .22); border-left-color: var(--citrus); }
.callout.note { background: var(--surface); border-color: var(--line); border-left-color: var(--accent); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.tm-note { margin: 32px 0 0; color: var(--ink-mute); line-height: 1.5; }

/* ---------- Article pages ---------- */
body:not(:has(.hero)) {
  background:
    radial-gradient(1100px 360px at 75% -140px, rgba(31, 111, 106, .12), transparent 70%),
    radial-gradient(700px 300px at 100% -60px, rgba(232, 128, 58, .1), transparent 70%),
    var(--bg) no-repeat;
}
.article { padding: clamp(40px, 6vw, 68px) 0 72px; }
.article h1 { font: 600 clamp(34px, 4.8vw, 52px)/1.08 var(--serif); color: var(--ink); margin: 0 0 16px; letter-spacing: -.02em; text-wrap: balance; }
.article .lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); margin: 0 0 28px; text-wrap: pretty; }
.article h2 { font: 600 clamp(25px, 3vw, 32px)/1.2 var(--serif); color: var(--ink); margin: 46px 0 12px; letter-spacing: -.012em; }
.article h2[id] { scroll-margin-top: 88px; }
.article p, .article li { color: var(--ink-soft); }
.article strong { color: var(--ink); }
.article ol li::marker, .article ul li::marker { color: var(--accent); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--ink); font-weight: 600; }
.article td { color: var(--ink-soft); }
.article .eyebrow { margin-bottom: 14px; }

/* ---------- Tracker ---------- */
.tracker-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.tracker-head .lede { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 14px; }
.stat { background: var(--surface); border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 600 30px/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.stat span { font-size: 13px; color: var(--ink-mute); }
.bar { height: 8px; border-radius: 99px; background: rgba(18, 48, 47, .07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #3c9a8f 70%, var(--citrus)); border-radius: 99px; transition: width .6s var(--ease); }
.today { margin-top: 32px; }
.today h2 { margin: 0 0 4px; font: 600 24px/1.2 var(--serif); color: var(--ink); }
.todo { list-style: none; padding: 0; margin: 16px 0 0; }
.todo li { margin-top: 10px; }
.todo label { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 14px; padding: 16px 18px; cursor: pointer; font-size: 16px; color: var(--ink); min-height: 60px; transition: border-color .2s, background .2s, transform .12s; -webkit-tap-highlight-color: transparent; }
.todo label:hover { border-color: rgba(31, 111, 106, .35); }
.todo label:active { transform: scale(.995); }
.todo input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid rgba(31, 111, 106, .45); background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s var(--ease); }
.todo input::after { content: ""; width: 10px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); margin-top: -2px; }
.todo input:checked { background: var(--ok); border-color: var(--ok); }
.todo input:checked::after { transform: rotate(-45deg) scale(1); }
.todo input:disabled { opacity: .4; cursor: not-allowed; }
.todo label:has(input:checked) { border-color: rgba(63, 143, 90, .4); background: #f1f8f3; color: #2d6a43; }
.todo label:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgba(45, 106, 67, .35); }
.notice { margin-top: 14px; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.notice.warn { background: #fdf3ea; border: 1px solid rgba(232, 128, 58, .3); color: #7a4316; }
.notice.good { background: #f1f8f3; border: 1px solid rgba(63, 143, 90, .3); color: #2d6a43; }
.grid-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-top: 16px; }
.grid-days button {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font: 500 12.5px/1 var(--sans); cursor: pointer; padding: 0; transition: transform .12s, background .2s, border-color .2s;
}
.grid-days button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(31, 111, 106, .45); }
.grid-days button[data-level="1"] { background: rgba(31, 111, 106, .14); color: var(--accent-strong); }
.grid-days button[data-level="2"] { background: rgba(31, 111, 106, .32); color: var(--accent-strong); }
.grid-days button[data-level="3"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.grid-days button[data-future] { opacity: .45; cursor: default; background: transparent; }
.grid-days button[aria-current="date"] { outline: 2px solid var(--citrus); outline-offset: 1px; }
.grid-days button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.empty-state { text-align: center; padding: 44px 24px; margin-top: 24px; }
.empty-state h2 { font: 600 26px/1.2 var(--serif); color: var(--ink); margin: 0 0 8px; }
.empty-state p { color: var(--ink-soft); }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.celebrate i { position: absolute; top: -20px; width: 8px; height: 8px; border-radius: 2px; background: var(--citrus); opacity: .9; animation: flake 1.8s cubic-bezier(.3, .4, .6, 1) forwards; }
@keyframes flake { to { transform: translate(var(--dx, 0), 105vh) rotate(var(--rot, 180deg)); opacity: 0; } }

/* Share progress + install hint (tracker) */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.share-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-soft); }
.share-note:empty { display: none; }
.install-hint {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 16px; padding: 14px 52px 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #eef6f3, var(--surface)); border: 1px solid rgba(31, 111, 106, .2);
}
.install-hint[hidden] { display: none; }
.install-text { flex: 1 1 240px; min-width: 0; }
.install-title { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.install-body { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.install-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-mute); font-size: 22px; line-height: 1; cursor: pointer; }
.install-close:hover { color: var(--ink); background: rgba(18, 48, 47, .06); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-mute); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 360px; }
.foot-brand p { margin: 10px 0 0; line-height: 1.55; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 560px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent-strong); text-decoration: underline; }
.site-foot .brand { color: var(--ink); }
.site-foot .brand:hover { text-decoration: none; }
.foot-legal { flex-basis: 100%; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-mute); }
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); }

.jump { display: none; }
.print-sheet { display: none; }
.btn[aria-busy="true"], .btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .jump.in-form { opacity: 1; transform: none; pointer-events: auto; }
  body:has(.jump.in-form:not([hidden])) .toast-region { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .jump[hidden] { display: none; }
}
@media (max-width: 700px) {
  .hero { padding: 0 0 44px; }
  .hero::after { content: none; }
  .hero-art { position: relative; inset: auto; z-index: 0; height: min(48vw, 260px); -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent); mask-image: linear-gradient(180deg, #000 58%, transparent); }
  .hero-art img { object-position: 82% 50%; }
  .hero-inner { position: relative; margin-top: -36px; }
  .hero.no-art { padding-top: 36px; }
  .hero.no-art .hero-inner { margin-top: 0; }
  .hero h1 { margin-bottom: 16px; }
  .eyebrow { margin-bottom: 16px; }
  .hero-cta { margin-top: 24px; }
  .pick-card.featured { grid-template-columns: minmax(0, 1fr); }
  .pick-actions { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
  .pick-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .site-head { position: static; }
  .site-head .wrap { gap: 2px 16px; padding: 10px 0 8px; min-height: 0; }
  .nav { margin-left: -12px; font-size: 14.5px; }
  .nav a { padding: 6px 11px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust { gap: 6px 16px; font-size: 13.5px; }
  .countdown { font-size: 13.5px; border-radius: 14px; }
  .panel { border-radius: 18px; }
  .progress { gap: 5px; }
  .progress li { font-size: 0; justify-content: center; padding: 7px 4px; }
  .progress li span { font-size: 11px; }
  .ch-cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ch-card { align-items: center; padding: 11px 44px 11px 12px; }
  .ch-card:first-child { align-items: flex-start; padding: 14px 44px 14px 14px; }
  .ch-card:not(:first-child) .ch-desc { display: none; }
  .ch-card:not(:first-child) .ch-icon { width: 34px; height: 34px; border-radius: 10px; }
  .ch-card:not(:first-child) .ch-icon svg { width: 18px; height: 18px; }
  .ch-card:not(:first-child) .ch-meta { margin-top: 1px; }
  .ch-name { font-size: 16px; }
  .ch-card:not(:first-child) .ch-check { top: 50%; margin-top: -10px; right: 14px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .export-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; column-gap: 12px; }
  .tile svg { margin: 0; }
  .tile small { flex-basis: 100%; padding-left: 34px; margin-top: -2px; }
  .contract .c-sign { grid-template-columns: minmax(0, 1fr); }
  .seal { right: -6px; bottom: -16px; }
  .pick-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .pick-card { padding: 20px; }
  .wp-pick { justify-content: flex-start; }
  .wp-themes { width: 100%; }
  .wp-theme { flex: 1 1 0; justify-content: center; }
  .share-row .btn, .install-hint .btn { flex: 1 1 auto; }
  .article .tracker-head .lede { font-size: 16px; margin-bottom: 4px; }
  .stats { gap: 8px; margin: 18px 0 10px; }
  .stat { padding: 11px 13px; border-radius: 13px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 12px; line-height: 1.35; display: block; }
  .today { margin-top: 24px; }
  .site-foot nav { gap: 6px 18px; }
}

/* ---------- Print: the contract, then a month-style calendar ---------- */
@media print {
  @page { size: auto; margin: 12mm; }
  html, body { background: #fff !important; color: #000; }
  .site-head, .site-foot, .hero, .panel, .section, .exports, .export-note, .preview-label, .jump, .toast-region, .no-print, .wp-pick, .share-row, .install-hint { display: none !important; }
  .builder { display: block; padding: 0; width: auto; }
  .preview { position: static; }
  .paper-wrap { max-width: 172mm; margin: 0 auto; break-after: page; }
  .contract { box-shadow: none; background: #fff; border-radius: 0; padding: 16mm 14mm 18mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .contract .c-sign { grid-template-columns: 1.4fr 1fr; }
  .seal { right: 6mm; bottom: 6mm; width: 30mm; filter: none; }
  .print-sheet { display: block; color: var(--ink); font-family: var(--sans); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-cal + .print-cal { break-before: page; }
  .cal-head { text-align: center; margin-bottom: 4mm; }
  .cal-kicker { margin: 0; font: 600 7.5pt/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #4f6b69; }
  .cal-head h2 { margin: 2.5mm 0 1.5mm; font: 600 21pt/1.1 var(--serif); color: #12302f; }
  .cal-sub { margin: 0; font-size: 9.5pt; color: #4f6b69; }
  .cal-rules { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1mm 5mm; align-items: baseline; margin: 0 0 4mm; padding: 3mm 4mm; border: .3mm solid #c9d2d0; border-radius: 2mm; }
  .cal-rules h3 { margin: 0; font: 600 7.5pt/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1f6f6a; }
  .cal-rules ol { margin: 0; padding: 0 0 0 5mm; columns: 2; column-gap: 8mm; font: 500 9.5pt/1.45 var(--serif); color: #12302f; }
  .cal-rules ol li::marker { color: #1f6f6a; font-weight: 600; }
  .cal-how { grid-column: 1 / -1; margin: 1mm 0 0; font-size: 8pt; font-style: italic; color: #4f6b69; }
  table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
  table.cal caption { caption-side: top; text-align: left; padding: 0 0 2mm; font: 600 13pt/1.2 var(--serif); color: #12302f; }
  table.cal th { padding: 0 0 1.5mm; font: 600 7.5pt/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #4f6b69; text-align: left; padding-left: 1.5mm; }
  table.cal td { height: 27mm; border: .3mm solid #b8c3c1; vertical-align: top; padding: 1.5mm 1.6mm; }
  table.cal td.out { background: #f6f3ec; }
  table.cal td.out .cal-date { color: #c3cbc9; }
  .cal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1mm; }
  .cal-date { font: 600 11pt/1 var(--serif); color: #12302f; white-space: nowrap; }
  .cal-day { font: 500 6.5pt/1 var(--sans); color: #6f8583; white-space: nowrap; }
  .cal-boxes { display: flex; flex-wrap: wrap; gap: 1.2mm; margin-top: 3mm; }
  .cal-boxes i { display: block; width: 4.4mm; height: 4.4mm; border: .3mm solid #4f6b69; border-radius: .9mm; font: normal 500 5.5pt/4.1mm var(--sans); text-align: center; color: #9aaaa8; }
  .cal-foot { margin: 2.5mm 0 0; text-align: center; font-size: 7pt; letter-spacing: .1em; color: #8a9b99; }
}

/* ---------- Page components carried over from the first content pages ---------- */
/* Wallpaper gallery: phone-shaped cards; a swipeable row on small screens. */
.wp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 24px); margin: 26px 0 8px; }
.wp-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wp-phone-screen { position: relative; width: 100%; padding: 6px; border-radius: 30px; background: linear-gradient(180deg, #24433f, #0e2a2e); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.wp-phone-screen::before { content: ""; position: absolute; top: 14px; left: 50%; width: 26%; height: 9px; transform: translateX(-50%); border-radius: 99px; background: #081b1e; z-index: 1; }
.wp-phone-screen img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--bg-2); }
.wp-phone:hover .wp-phone-screen { transform: translateY(-4px); }
.wp-phone figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wp-phone figcaption b { font: 600 18px/1.2 var(--serif); color: var(--ink); }
.wp-phone figcaption span { font-size: 13.5px; color: var(--ink-mute); }
.wp-swipe-hint { display: none; }
.wp-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 8px; padding: 26px 20px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.wp-cta .btn { min-width: min(100%, 280px); }
.article .wp-cta p { margin: 0; font-size: 14px; color: var(--ink-mute); }
@media (max-width: 640px) {
  .wp-gallery { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .wp-gallery::-webkit-scrollbar { display: none; }
  .wp-phone { flex: 0 0 62%; scroll-snap-align: center; }
  .wp-swipe-hint { display: block; margin: 0; text-align: center; font-size: 13px; color: var(--ink-mute); }
}

/* Countdown / highlight card. */
.arc-clock { margin: 8px 0 12px; padding: clamp(20px, 3.4vw, 28px); border-radius: var(--radius); border: 1px solid rgba(31, 111, 106, .2); box-shadow: var(--shadow); background: radial-gradient(120% 140% at 0% 0%, rgba(31, 111, 106, .1), transparent 60%), var(--surface); }
.article .arc-clock p { margin: 0; }
.arc-clock-kicker { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.article .arc-clock .arc-clock-main { margin-top: 12px; font: 600 clamp(22px, 3.2vw, 28px)/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.arc-clock-bar { margin-top: 16px; }
.arc-clock-bar[hidden] { display: none; }
.article .arc-clock .arc-clock-sub, .article .arc-clock .arc-clock-late { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.article .arc-clock .arc-clock-action { margin-top: 18px; }
.date-table th[scope="row"], .date-table td:nth-child(2) { white-space: nowrap; }

/* Timeline of phases. */
.phases { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 12px; }
.prose .phases > li { margin: 0; }
.phases > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.phase-weeks { font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 6px; }
.prose .phases h3 { margin: 0 0 6px; }
.phases p { margin: 0 0 6px; }
.phases ul { margin: 0; padding-left: 20px; }
.phases ul li { margin: 4px 0; font-size: 15px; }
.article .plan-table th[scope="row"] { color: var(--accent); font-weight: 600; white-space: nowrap; }
.plan-table .sets { white-space: nowrap; color: var(--ink); }

/* Quote cards with quiet pill buttons. */
.quote-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.quote-jump a, .quote-actions .pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font: 500 14px/1.2 var(--sans); color: var(--ink-soft); text-decoration: none; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s; -webkit-tap-highlight-color: transparent;
}
.quote-jump a:hover, .quote-actions .pill:hover { color: var(--accent-strong); border-color: var(--accent); }
.quote-actions .pill[hidden] { display: none; }
.quote-actions .pill.is-done, .quote-actions .pill.is-done:hover { color: var(--ok); border-color: rgba(63, 143, 90, .5); background: var(--ok-soft); }
.quote-grid { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .quote-grid > li { margin: 0; }
.quote { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 16px 22px; box-shadow: var(--shadow-sm); }
.quote::before { content: "\201C"; position: absolute; top: 2px; right: 16px; font: 500 64px/1 var(--serif); color: rgba(31, 111, 106, .14); pointer-events: none; }
.article .quote-text { margin: 0; padding-right: 22px; font: italic 500 21px/1.35 var(--serif); color: var(--ink); text-wrap: pretty; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-actions .pill { min-height: 36px; padding: 6px 13px; font-size: 13px; }
@media (max-width: 640px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-actions .pill { min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .phases > li { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .article .plan-table { font-size: 14px; }
  .article .plan-table th, .article .plan-table td { padding: 10px 6px; }
  .article h2[id] { scroll-margin-top: 24px; }
}
.badge-link { display: inline-block; margin-top: 14px; opacity: .7; transition: opacity .2s; } .badge-link:hover { opacity: 1; } .badge-link img { display: block; }
.calc .stat b, .stat b { overflow-wrap: anywhere; }
