:root {
  --paper: #f8f1e8;
  --paper-deep: #eadfce;
  --card: #fffaf4;
  --ink: #263230;
  --ink-soft: #455c58;
  --muted: #61736e;
  --rust: #c96b57;
  --rust-dark: #984838;
  --rust-soft: #f3d9d1;
  --sage: #a8b99f;
  --sage-soft: #e1eadc;
  --blue: #91adb2;
  --blue-soft: #e0eaeb;
  --yellow: #d7b467;
  --yellow-soft: #f5e8c8;
  --line: rgba(30, 41, 40, .14);
  --line-strong: rgba(30, 41, 40, .28);
  --shadow-sm: 0 8px 24px rgba(31, 42, 39, .08);
  --shadow: 0 24px 70px rgba(31, 42, 39, .13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 31px;
  --tap: 48px;
  --wrap: 1160px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(215, 180, 103, .22), transparent 25rem),
    radial-gradient(circle at 4% 58%, rgba(145, 173, 178, .16), transparent 28rem),
    radial-gradient(circle at 78% 82%, rgba(201, 107, 87, .10), transparent 24rem),
    var(--paper);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.wrap { width: min(calc(100% - 28px), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 40, .08);
  background: rgba(248, 241, 232, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; }
.brand-name { min-width: 0; display: grid; line-height: 1.08; }
.brand-name strong {
  overflow: hidden;
  font-size: .89rem;
  font-weight: 900;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand-name small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .035em;
}
.desktop-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-pill,
.icon-button {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, .82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.header-pill {
  padding: 0 12px;
  gap: 7px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 850;
}
.header-pill .count {
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rust-dark);
  color: white;
  font-size: .72rem;
  line-height: 1;
}
.icon-button { width: var(--tap); padding: 0; font-size: 1.45rem; }
.header-pill:hover,
.icon-button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: white; }

.hero { padding: 24px 0 30px; }
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(25px, 6vw, 38px);
  display: grid;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 29px 20px 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 180, 103, .19), transparent 13rem),
    linear-gradient(145deg, rgba(255, 250, 244, .99), rgba(248, 241, 232, .94));
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--rust-dark);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .115em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 11ch;
  margin-bottom: 17px;
  font-size: clamp(2.75rem, 13vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 950;
}
.hero h1 em { color: var(--rust); font-style: normal; }
.hero-lede {
  max-width: 39rem;
  margin-bottom: 21px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 4.4vw, 1.28rem);
  line-height: 1.57;
}
.hero-actions { display: grid; gap: 10px; }
.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.stats-open,
.mini-button {
  min-height: var(--tap);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button,
.secondary-button,
.ghost-button { padding: 12px 17px; }
.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 0 11px 24px rgba(38, 50, 48, .16);
}
.primary-button:hover { transform: translateY(-2px); background: #17211f; box-shadow: 0 15px 31px rgba(38, 50, 48, .22); }
.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
}
.secondary-button:hover { transform: translateY(-2px); background: white; }
.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
}
.ghost-button:hover { border-color: var(--line-strong); background: rgba(255, 250, 244, .78); }
.text-button {
  min-height: 44px;
  padding: 8px 3px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--rust-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: .43;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.micro-trust {
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.micro-trust li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, .76);
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
}
.hero-visual {
  position: relative;
  min-height: 270px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eadfce;
  isolation: isolate;
}
.hero-visual picture,
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-visual img {
  object-fit: cover;
  object-position: center 43%;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(38, 50, 48, .17), transparent);
}
.hero-visual figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border: 1px solid rgba(38, 50, 48, .24);
  border-radius: 13px;
  background: rgba(255, 250, 244, .94);
  color: var(--ink-soft);
  box-shadow: 0 9px 26px rgba(38, 50, 48, .14);
  font-size: .78rem;
  line-height: 1.25;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-visual figcaption strong { color: var(--ink); }

.app-section { padding: 30px 0 38px; scroll-margin-top: 80px; }
.tool-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, .94);
  box-shadow: var(--shadow);
}
.tool-topline {
  padding: 18px 17px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-topline > strong { font-size: .88rem; }
.progress-label { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.progress-track { height: 8px; overflow: hidden; background: rgba(30, 41, 40, .08); }
.progress-bar { width: 25%; height: 100%; border-radius: 0 999px 999px 0; background: var(--rust); transition: width .24s ease; }
.tool-panel { padding: 24px 16px 20px; }
.tool-heading {
  max-width: 18ch;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.tool-copy { max-width: 42rem; margin-bottom: 19px; color: var(--ink-soft); }
.choice-list { display: grid; gap: 9px; }
.choice-card {
  width: 100%;
  min-height: 76px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .82);
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(30, 41, 40, .025);
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.choice-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.choice-card[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sage-soft);
  box-shadow: inset 0 0 0 1px var(--ink), 0 7px 17px rgba(30, 41, 40, .08);
}
.choice-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
}
.choice-card:nth-child(4n + 1) .choice-icon { background: var(--rust-soft); }
.choice-card:nth-child(4n + 2) .choice-icon { background: var(--sage-soft); }
.choice-card:nth-child(4n + 3) .choice-icon { background: var(--blue-soft); }
.choice-card:nth-child(4n) .choice-icon { background: var(--yellow-soft); }
.choice-card[aria-pressed="true"] .choice-icon { background: var(--ink); color: white; }
.choice-copy { min-width: 0; display: grid; gap: 2px; }
.choice-copy strong { line-height: 1.23; }
.choice-copy small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.choice-arrow { color: var(--rust); font-size: 1.1rem; font-weight: 900; }
.tool-controls { margin-top: 17px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.tool-controls:has(> :only-child) { grid-template-columns: 1fr; }

.result-panel { background: var(--card); }
.result-head {
  position: relative;
  overflow: hidden;
  padding: 27px 18px 24px;
  background: var(--ink);
  color: white;
}
.result-head::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -72px;
  top: -88px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .9;
}
.result-head > * { position: relative; z-index: 1; }
.result-head .eyebrow { color: var(--yellow-soft); }
.result-head h2 { max-width: 18ch; margin-bottom: 10px; font-size: clamp(2rem, 9vw, 3.7rem); line-height: .98; letter-spacing: -.05em; }
.result-head p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .72); font-weight: 750; }
.result-body { padding: 20px 16px 24px; }
.boundary-note {
  padding: 15px 16px;
  border-radius: 17px;
  display: grid;
  gap: 4px;
  background: var(--yellow-soft);
  border-left: 5px solid var(--yellow);
}
.boundary-note strong { font-size: .75rem; letter-spacing: .075em; text-transform: uppercase; }
.boundary-note span { color: #53471e; }
.task-steps {
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: task-step;
  display: grid;
  gap: 10px;
}
.task-steps li {
  counter-increment: task-step;
  min-height: 64px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  align-items: center;
  background: white;
}
.task-steps li::before {
  content: counter(task-step);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  font-weight: 900;
}
.timer-card {
  margin-top: 18px;
  padding: 21px 16px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, var(--sage-soft), rgba(255, 253, 248, .88));
  text-align: center;
}
.timer-label { margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.timer-display { margin-bottom: 16px; font-size: clamp(3.1rem, 17vw, 5.8rem); line-height: 1; letter-spacing: -.065em; font-weight: 950; font-variant-numeric: tabular-nums; }
.timer-actions { display: grid; gap: 8px; }
.result-actions { margin-top: 14px; display: grid; gap: 9px; }
.done-card { padding: 34px 18px 30px; text-align: center; background: linear-gradient(145deg, var(--sage-soft), var(--card)); }
.done-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 17px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 2.8rem;
  transform: rotate(-4deg);
}
.done-card h2 { margin-bottom: 8px; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1; letter-spacing: -.045em; }
.done-card p { max-width: 36rem; margin-inline: auto; color: var(--ink-soft); }
.done-card .primary-button { width: 100%; margin-top: 10px; }
.done-card .text-button { margin-top: 8px; }

.stats-strip { padding: 0 0 43px; }
.stats-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 21px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 253, 248, .74);
  box-shadow: var(--shadow-sm);
}
.stat { padding: 10px 11px; border-radius: 14px; background: var(--sage-soft); }
.stat:nth-child(2) { background: var(--blue-soft); }
.stat strong { display: block; font-size: 1.75rem; line-height: 1; }
.stat span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.stats-open {
  grid-column: 1 / -1;
  border: 0;
  background: none;
  color: var(--rust-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.value-section { padding: 46px 0 58px; border-top: 1px solid var(--line); background: rgba(255, 250, 244, .55); }
.section-heading { max-width: 13ch; margin-bottom: 12px; font-size: clamp(2.2rem, 10vw, 4.7rem); line-height: .96; letter-spacing: -.055em; }
.section-lede { max-width: 46rem; margin-bottom: 23px; color: var(--ink-soft); font-size: 1.05rem; }
.values-grid { display: grid; gap: 11px; }
.value-card {
  min-height: 205px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.value-card:nth-child(1) { background: #fff7f3; }
.value-card:nth-child(2) { background: #f4f8f1; }
.value-card:nth-child(3) { background: #f3f7f8; }
.value-number {
  width: 43px;
  height: 43px;
  margin-bottom: 24px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--rust-soft);
  color: var(--rust-dark);
  font-weight: 950;
}
.value-card:nth-child(2) .value-number { background: var(--sage-soft); color: var(--ink); }
.value-card:nth-child(3) .value-number { background: var(--blue-soft); color: var(--ink); }
.value-card h3 { margin-bottom: 7px; font-size: 1.22rem; }
.value-card p { margin-bottom: 0; color: var(--ink-soft); }

.help-band {
  margin-top: 45px;
  margin-bottom: 56px;
  padding: 25px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.help-band .eyebrow { color: var(--yellow-soft); }
.help-band h2 { max-width: 17ch; margin-bottom: 10px; font-size: clamp(1.8rem, 8vw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.help-band p { max-width: 48rem; color: rgba(255, 255, 255, .75); }
.help-band .secondary-button { margin-top: 4px; }

.site-footer {
  padding: 45px 0 108px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, .66);
}
.footer-grid { display: grid; gap: 25px; }
.footer-brand .brand { margin-bottom: 13px; }
.footer-brand p { max-width: 36rem; margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.footer-links a { font-weight: 800; }
.footer-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }

.mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 45;
  min-height: 69px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 250, 244, .97);
  box-shadow: 0 18px 50px rgba(30, 41, 40, .22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.mobile-nav a,
.mobile-nav button {
  min-height: 54px;
  padding: 5px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .67rem;
  font-weight: 850;
  cursor: pointer;
}
.mobile-nav a:first-child { background: var(--sage-soft); color: var(--ink); }
.mobile-nav svg { width: 21px; height: 21px; }

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 12px;
  display: grid;
  background: rgba(15, 24, 22, .57);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.drawer { justify-items: end; }
.drawer-panel,
.modal-panel {
  width: min(100%, 620px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border-radius: 27px;
  background: var(--card);
  box-shadow: 0 35px 85px rgba(0, 0, 0, .26);
}
.drawer-panel { width: min(91vw, 390px); height: 100%; border-radius: 27px 18px 18px 27px; }
.modal { align-items: end; }
.modal-panel { align-self: end; }
.drawer-head,
.modal-head {
  padding: 17px 17px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.drawer-head h2,
.modal-head h2 { margin: 0; }
.drawer-body,
.modal-body { padding: 17px; }
.drawer-links { display: grid; }
.drawer-links a {
  min-height: 55px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 850;
  text-decoration: none;
}
.drawer-links a span { color: var(--rust); }
.record-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 17px 0; }
.record-number { padding: 15px; border-radius: 17px; background: var(--sage-soft); }
.record-number strong { display: block; font-size: 2rem; line-height: 1; }
.record-number span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.record-list,
.later-list { display: grid; gap: 8px; }
.record-item,
.later-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.record-item strong,
.later-item strong { display: block; font-size: .9rem; line-height: 1.3; }
.record-item small,
.later-item small { color: var(--muted); font-size: .73rem; }
.later-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.later-actions { display: flex; gap: 5px; }
.mini-button {
  width: 39px;
  min-height: 39px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.mini-button.remove { color: var(--rust-dark); }
.empty-state { padding: 20px 14px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
.safety-gate { padding: 16px; border-radius: 17px; background: var(--rust-soft); color: #532b25; }
.safety-gate ul { margin: 10px 0 0; padding-left: 1.15rem; }
.safety-gate li + li { margin-top: 7px; }
.checkbox-line { margin: 17px 0; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checkbox-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rust); }
.modal-body > .primary-button { width: 100%; }
.modal-body > .text-button { width: 100%; margin-top: 8px; }

.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(89px + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(calc(100% - 24px), 560px);
  margin-inline: auto;
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 25px 70px rgba(30, 41, 40, .27);
}
.consent-banner > strong { font-size: 1rem; }
.consent-banner p { margin: 5px 0 13px; color: var(--ink-soft); font-size: .85rem; }
.consent-actions { display: grid; gap: 7px; }
.analytics-settings-button {
  position: fixed;
  right: 12px;
  bottom: calc(89px + env(safe-area-inset-bottom));
  z-index: 89;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(30, 41, 40, .18);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: min(calc(100% - 32px), 520px);
  padding: 11px 15px;
  border-radius: 999px;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 43px 0 27px;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -125px;
  border-radius: 50%;
  background: var(--sage-soft);
  opacity: .72;
  z-index: -1;
}
.page-hero h1 {
  max-width: 13ch;
  margin-bottom: 13px;
  font-size: clamp(2.55rem, 11vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.06em;
}
.page-hero p:last-child { max-width: 47rem; margin-bottom: 0; color: var(--ink-soft); font-size: 1.08rem; }
.article { padding: 0 0 70px; }
.prose {
  max-width: var(--reading);
  padding: 23px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, .92);
  box-shadow: var(--shadow);
}
.prose h2 { margin: 2.2rem 0 .72rem; font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7rem 0 .55rem; line-height: 1.15; }
.prose p,
.prose li { color: #354d49; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--rust-dark); font-weight: 800; }
.prose > :last-child { margin-bottom: 0; }
.note,
.warning {
  margin: 19px 0;
  padding: 16px 17px;
  border-radius: 17px;
}
.note { background: var(--sage-soft); border-left: 5px solid var(--sage); }
.warning { background: var(--rust-soft); border-left: 5px solid var(--rust); }
.note strong,
.warning strong { display: block; margin-bottom: 4px; }
.note p,
.warning p { margin-bottom: 0; }
.resource-grid { display: grid; gap: 10px; margin: 18px 0; }
.resource-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.resource-card.urgent { border-color: rgba(197, 84, 63, .34); background: #fff8f5; }
.resource-card h3 { margin-bottom: 7px; font-size: 1.05rem; }
.resource-card p { margin-bottom: 11px; font-size: .89rem; }
.resource-card a { font-size: .86rem; }
.source-card {
  margin-bottom: 11px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.source-card strong { display: block; }
.source-card small { display: block; margin: 3px 0 9px; color: var(--muted); }
.source-card p { margin-bottom: 10px; }

@media (min-width: 560px) {
  .hero-actions,
  .timer-actions,
  .result-actions,
  .consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions .ghost-button { grid-column: 1 / -1; }
  .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { min-height: 88px; }
  .tool-panel { padding: 29px 25px 25px; }
  .result-head { padding: 34px 27px 30px; }
  .result-body { padding: 26px 27px 29px; }
  .timer-card { padding: 25px 22px; }
  .stats-card { grid-template-columns: 1fr 1fr auto; align-items: center; }
  .stats-open { grid-column: auto; min-width: 180px; }
  .values-grid,
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-card:last-child { grid-column: 1 / -1; }
  .modal { align-items: center; }
  .modal-panel { align-self: center; border-radius: 28px; }
  .prose { padding: 32px 30px; }
}

@media (min-width: 860px) {
  .wrap { width: min(calc(100% - 48px), var(--wrap)); }
  .header-inner { min-height: 78px; }
  .brand-mark { width: 49px; height: 49px; flex-basis: 49px; }
  .brand-name strong { font-size: 1rem; }
  .brand-name small { font-size: .7rem; }
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a { padding: 9px 12px; border-radius: 11px; color: var(--ink-soft); font-size: .84rem; font-weight: 850; text-decoration: none; }
  .desktop-nav a:hover { background: rgba(255, 253, 248, .7); color: var(--ink); }
  .menu-button { display: none; }
  .hero { padding: 48px 0 58px; }
  .hero-card {
    min-height: 620px;
    grid-template: 1fr / 1fr;
  }
  .hero-copy,
  .hero-visual { grid-area: 1 / 1; }
  .hero-visual {
    min-height: 620px;
    aspect-ratio: auto;
  }
  .hero-visual img {
    object-position: center center;
  }
  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(248, 241, 232, .55) 0%, rgba(248, 241, 232, .12) 52%, transparent 70%);
  }
  .hero-visual::after {
    height: 26%;
    background: linear-gradient(to top, rgba(38, 50, 48, .13), transparent);
  }
  .hero-copy {
    align-self: center;
    width: min(56%, 630px);
    margin: 36px;
    padding: 38px 40px 36px;
    border: 1px solid rgba(38, 50, 48, .12);
    border-radius: 29px;
    background: rgba(255, 250, 244, .91);
    box-shadow: 0 28px 70px rgba(38, 50, 48, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .hero h1 { font-size: clamp(4.2rem, 7vw, 6.25rem); }
  .hero-lede { max-width: 34rem; font-size: 1.13rem; }
  .hero-actions { grid-template-columns: 1.05fr .95fr; }
  .hero-visual figcaption { left: auto; right: 22px; bottom: 22px; }
  .app-section { padding: 35px 0 58px; }
  .tool-shell { width: min(100%, 900px); margin-inline: auto; }
  .tool-topline { padding: 21px 28px 13px; }
  .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-controls { max-width: 440px; margin-left: auto; }
  .stats-card { width: min(100%, 900px); margin-inline: auto; padding: 18px; }
  .value-section { padding: 70px 0 80px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card:last-child { grid-column: auto; }
  .help-band { padding: 38px 40px; }
  .footer-grid { grid-template-columns: 1.35fr .65fr; align-items: start; }
  .mobile-nav { display: none; }
  .site-footer { padding-bottom: 52px; }
  .consent-banner,
  .toast { bottom: 22px; }
  .page-hero { padding: 70px 0 37px; }
  .article { padding-bottom: 95px; }
  .prose { padding: 41px 44px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .hero-card,
  .hero-visual { min-height: 650px; }
  .hero-copy { width: min(54%, 640px); margin: 42px; padding: 42px 44px 40px; }
}

@media (max-width: 380px) {
  .wrap { width: min(calc(100% - 20px), var(--wrap)); }
  .brand-name strong { font-size: .79rem; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
  .header-pill .label { display: none; }
  .header-pill { width: var(--tap); padding: 0; }
  .hero h1 { font-size: 2.55rem; }
  .tool-panel { padding-inline: 12px; }
  .choice-card { grid-template-columns: 39px minmax(0, 1fr) 16px; padding-inline: 10px; }
  .choice-icon { width: 39px; height: 39px; }
  .result-head,
  .result-body { padding-inline: 14px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  .primary-button,
  .secondary-button,
  .ghost-button,
  .choice-card,
  .done-mark,
  .mobile-nav { forced-color-adjust: none; }
}

@media print {
  .site-header,
  .hero,
  .stats-strip,
  .value-section,
  .help-band,
  .site-footer,
  .mobile-nav,
  .drawer,
  .modal,
  .consent-banner,
  .toast,
  #wizard-view,
  .result-actions,
  .timer-actions { display: none !important; }
  body { background: white; color: black; }
  .app-section { padding: 0; }
  .tool-shell { border: 0; box-shadow: none; }
  .result-panel { display: block !important; }
  .result-head { background: white; color: black; padding: 0 0 20px; }
  .result-head::after { display: none; }
  .result-head .eyebrow,
  .result-head p:last-child { color: black; }
  .result-body { padding: 0; }
  .boundary-note,
  .task-steps li,
  .timer-card { break-inside: avoid; border: 1px solid #777; background: white; }
}
