@import url("https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&display=swap");

/* Self-hosted Geist & Geist Mono (from Seedly design system) */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/7178b3e590c64307-s.0i3h3th1vs4m7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/caa3a2e1cccd8315-s.p.0zr6hhvz-h9nw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/bbc41e54d2fcbd21-s.30bdpjkrtcces.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/797e433ab948586e-s.p.1v5bejj26fx9h.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/791bf8c4bb753ed6-s.p.0rg7ym60g9xsl.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Take Home Clarity — Seedly-matched design system */
:root {
  /* Core Seedly tokens */
  --canvas: #FFFFFF;
  --soil: #1B1713;
  --vine: #20794D;
  --sprout: #3DDB77;
  --paper: #FAFAF8;
  --sage: #EAEFE7;
  --muted: #6C6256;
  --border: #E0DBD1;
  --danger: #A52F1D;
  --signal: #E39C31;
  --hover: #EAEFE7;
  --on-vine: #FFFFFF;
  --on-soil: #FAFAF8;

  /* Typography & layout tokens */
  --font-display: "Zilla Slab", "Fraunces", Georgia, serif;
  --weight-display: 600;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 8px;
  --border-width: 1px;
  --button-height: 46px;
  --content-width: 1240px;
  --max: 1240px;
  --shadow-card: 0 4px 16px rgba(27, 23, 19, 0.05);
  --shadow-raised: 0 18px 48px rgba(27, 23, 19, 0.12);
  --shadow: var(--shadow-card);
  --motion-duration: 180ms;

  /* Semantic aliases for all existing pages */
  --ink: var(--soil);
  --ink-soft: var(--muted);
  --ink-mute: var(--muted);
  --line: var(--border);
  --bg: var(--canvas);
  --card: var(--canvas);
  --ok: var(--vine);
  --warn: #8A5300;
  --font: var(--font-body);
  --indigo-950: var(--soil);
  --indigo-900: var(--soil);
  --indigo-800: var(--vine);
  --indigo-700: var(--vine);
  --indigo-600: var(--vine);
  --indigo-500: var(--vine);
  --indigo-100: var(--sage);
  --indigo-50: var(--paper);
  --amber-500: var(--vine);
  --amber-400: var(--sprout);
  --amber-100: color-mix(in srgb, var(--signal) 14%, var(--canvas));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--soil);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; min-width: 0; max-width: 100%; }
::selection { background: var(--sage); color: var(--soil); }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }

a {
  color: var(--vine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--motion-duration);
}
a:hover { color: #165938; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--soil);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.3vw, 3.35rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); margin-top: 2.25rem; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 0.6rem; letter-spacing: -0.025em; }
p { margin: 0 0 1.15rem; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 600; color: var(--soil); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.36em;
}
.small { font-size: 0.9375rem; }
.mute, .muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.1875rem); color: var(--muted); line-height: 1.65; }
.heading-period, .brand-period { color: var(--vine); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Sticky Sage Header (matches goseedly.com) */
.site-header {
  background: var(--sage);
  color: var(--soil);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--soil) 8%, var(--sage));
  box-shadow: 0 2px 10px -3px rgba(55, 40, 24, 0.1);
}
.site-header__inner {
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 74px;
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--soil);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.brand:hover { color: var(--soil); }
.brand-mark-wrap {
  display: inline-flex;
  flex-shrink: 0;
}
.brand-mark,
.brand > img.mark,
.brand img:not(.brand__svg) {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark { white-space: nowrap; }
@media (max-width: 440px) {
  .brand { font-size: 1.16rem; gap: 0.42rem; }
  .brand-mark,
  .brand > img.mark,
  .brand img:not(.brand__svg) { width: 28px; height: 28px; border-radius: 7px; }
}
.brand__wordmark { display: flex; flex-direction: column; }
.brand__svg { width: min(220px, 55vw); height: auto; }
.brand__sub {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--vine);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--soil);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.45rem 0;
  position: relative;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--vine); }
.nav a[aria-current="page"]:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--vine);
}
.nav a.nav-cta {
  background: var(--vine);
  color: var(--on-vine);
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.nav a.nav-cta:hover {
  color: var(--on-vine);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 80px rgba(0, 0, 0, 0.08);
}
.nav a.nav-cta:active {
  transform: scale(0.96);
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--soil);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  font: 600 0.9rem/1 var(--font-ui);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--vine); outline-offset: 2px; }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--soil);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle__text { letter-spacing: 0.01em; }
body.nav-locked { overflow: hidden; }

@media (max-width: 899px) {
  .site-header__inner {
    width: calc(100% - 32px);
    flex-wrap: nowrap;
    position: relative;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: -16px;
    right: -16px;
    top: 100%;
    background: var(--sage);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.15rem;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    box-shadow: var(--shadow-raised);
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav a[aria-current="page"]:not(.nav-cta)::after { display: none; }
  .nav a.nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    border-bottom: 0;
    min-height: var(--button-height);
  }
  .nav a:focus-visible { outline: 2px solid var(--vine); outline-offset: 2px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
  .nav { display: flex !important; position: static; }
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--vine);
  outline-offset: 2px;
}

/* Main layout */
.wrap {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  overflow-x: clip;
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); padding: 1.5rem 0 3rem; }
}
.narrow { max-width: 50rem; }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--vine); text-decoration: underline; }
.breadcrumb span { margin: 0 0.45rem; color: var(--muted); }

/* Trust block */
.trust-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.trust-block img.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--vine);
  flex-shrink: 0;
}
.trust-block strong { color: var(--soil); }
.trust-block .trust-meta { color: var(--muted); display: block; margin-top: 0.25rem; font-size: 0.875rem; }

/* Cards & panels */
.card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) { .card { padding: 1.15rem; } }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.callout {
  background: color-mix(in srgb, var(--signal) 10%, var(--canvas));
  border: 1px solid color-mix(in srgb, var(--signal) 34%, var(--border));
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  margin: 1.35rem 0;
  font-size: 0.95rem;
}
.callout--info {
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
}
.callout h3 { margin-top: 0; font-size: 1.05rem; }

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.calc-grid > *,
.results,
.offer-card {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--soil);
}
.field input, .field select {
  width: 100%;
  min-height: var(--button-height);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--soil);
  caret-color: var(--vine);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--vine);
  box-shadow: 0 0 0 1px var(--vine);
}
.field input:disabled, .field select:disabled {
  background: var(--paper);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.75;
}
.field-hint { font-size: 0.84rem; color: var(--muted); margin-top: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

details.more-options {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  margin: 0.75rem 0 1.15rem;
  background: var(--paper);
}
details.more-options summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--vine);
  font-size: 0.95rem;
  padding: 0.3rem 0;
}
details.more-options[open] summary { margin-bottom: 0.75rem; }

/* Buttons (Seedly primary & secondary) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--button-height);
  background: var(--vine);
  color: var(--on-vine);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}
.btn:hover:not(:disabled) {
  color: var(--on-vine);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 80px rgba(0, 0, 0, 0.08);
}
.btn:active:not(:disabled) {
  transform: scale(0.96);
}
.btn:disabled, button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--amber { background: var(--vine); color: var(--on-vine); }
.btn--amber:hover:not(:disabled) { color: var(--on-vine); }
.btn--amber + .btn {
  background: var(--canvas);
  color: var(--soil);
  border-color: var(--border);
}
.btn--amber + .btn:hover:not(:disabled) {
  background: var(--sage);
  border-color: var(--soil);
  color: var(--soil);
  box-shadow: none;
}
.btn--block { width: 100%; }
p:has(> .btn + .btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Results */
.results { min-height: 12rem; }
.result-hero {
  background: var(--soil);
  color: var(--on-soil);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
}
.result-hero .label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sprout);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.result-hero .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0 0.35rem;
  color: #FFFFFF;
}
.result-hero .sub { font-size: 0.92rem; color: color-mix(in srgb, var(--on-soil) 85%, var(--soil)); }
.result-hero .sub strong { color: var(--sprout); }

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.35rem;
}
@media (max-width: 720px) {
  .table-wrap table.data:has(thead th:nth-child(4)) {
    min-width: 38rem;
  }
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
table.data caption {
  background: var(--paper);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  text-align: left;
}
table.data th, table.data td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data th {
  background: var(--paper);
  color: var(--soil);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
}
table.data td.num, table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.9rem;
}
table.data tr.total td {
  font-weight: 700;
  background: var(--sage);
  border-top: 2px solid var(--vine);
}
table.data tr.neg td.num { color: var(--danger); }
table.data tr.take td { background: var(--sage); font-weight: 600; color: var(--soil); }

/* Chart */
.chart-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.15rem 0;
  margin-bottom: 1rem;
}
.chart-box svg.donut { width: min(220px, 70vw); height: auto; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; min-width: 12.5rem; }
.legend li { display: flex; align-items: center; gap: 0.55rem; margin: 0.35rem 0; }
.legend .swatch {
  width: 0.85rem; height: 0.85rem; border-radius: 3px; flex-shrink: 0;
  border: 1px solid rgba(27, 23, 19, 0.12);
}
.legend .amt { margin-left: auto; font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }

.marginal-badge {
  display: inline-flex;
  align-items: center;
  background: var(--sage);
  color: var(--vine);
  border-radius: 4px;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
}
.marginal-badge.trap {
  background: color-mix(in srgb, var(--danger) 12%, var(--canvas));
  color: var(--danger);
}

/* Dark Soil Footer with Seedly ground-edge mask */
.site-footer {
  background: var(--soil);
  color: var(--on-soil);
  margin-top: 3.5rem;
  padding: 60px 0 28px;
  font-size: 0.9rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -4px;
  height: 5px;
  background: var(--soil);
  pointer-events: none;
  -webkit-mask-image: url("../images/footer-ground-edge.svg");
  mask-image: url("../images/footer-ground-edge.svg");
  -webkit-mask-size: 960px 5px;
  mask-size: 960px 5px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
.site-footer a { color: var(--on-soil); text-decoration: none; }
.site-footer a:hover { color: var(--sprout); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.footer-grid h3 {
  font-family: var(--font-ui);
  color: var(--sprout);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 0 0 0.85rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0.45rem 0; }
.footer-bottom {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: color-mix(in srgb, var(--on-soil) 68%, var(--soil));
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .footer-grid, .footer-bottom { width: calc(100% - 32px); }
}

/* Glossary / prose / chips / grids */
.glossary-term { scroll-margin-top: 6rem; }
.def-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--soil); margin-top: 1.25rem; }
.def-list dd { margin: 0.35rem 0 0; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--soil);
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.chip:hover { border-color: var(--vine); background: var(--sage); color: var(--vine); }

.related-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
}
.related-grid a {
  display: block;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1.05rem;
  text-decoration: none;
  color: var(--soil);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--motion-duration), box-shadow var(--motion-duration), transform var(--motion-duration);
}
.related-grid a:hover {
  border-color: var(--vine);
  background: var(--paper);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
  color: var(--vine);
}
.related-grid a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; margin-top: 0.25rem; }

.privacy-note {
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
  margin-top: 1rem;
}

/* Accordions / FAQ (Seedly clean border-bottom rhythm inside .card) */
.faq details {
  background: var(--canvas);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  padding: 0.25rem 0;
}
.faq details:last-of-type { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  min-height: 44px;
  padding: 0.85rem 0;
  color: var(--soil);
}
.faq summary:hover { color: var(--vine); }
.faq details p, .faq details .faq-body { margin: 0 0 1rem; color: var(--muted); font-size: 0.97rem; }

.myanth-bust {
  font-size: 1rem;
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.myanth-bust strong { color: var(--soil); }
.img-inline { display: inline-block; vertical-align: middle; }

/* Guide pages */
.guide-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.guide-hero svg, .guide-hero img { width: 100%; height: auto; display: block; }
.persona {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.persona h3 { margin-top: 0; }
.persona-tag {
  display: inline-block;
  background: var(--sage);
  color: var(--vine);
  border: 1px solid color-mix(in srgb, var(--vine) 28%, var(--border));
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.65rem;
}
.persona--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 760px) {
  .persona--illustrated {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 1.5rem;
  }
}
.persona__media {
  margin: 0;
  min-width: 0;
}
.persona__media picture,
.persona__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  outline: 1px solid rgba(27, 23, 19, 0.1);
  outline-offset: -1px;
}
.persona__copy { min-width: 0; }
.persona__copy p:last-child { margin-bottom: 0; }
.insight {
  background: var(--soil);
  color: var(--on-soil);
  border: 1px solid color-mix(in srgb, var(--sprout) 24%, var(--soil));
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.insight strong { color: var(--sprout); }
.insight a { color: var(--sprout); }
.guide-nav {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin: 1.5rem 0;
}
.bridge-box {
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}
.bridge-box h3 { margin-top: 0; }
.bridge-box p:last-child { margin-bottom: 0; }

.compare-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 1.15rem 0;
}
.compare-strip .tile {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.compare-strip .tile .k {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.compare-strip .tile .v {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--soil);
  margin-top: 0.25rem;
}
.compare-strip .tile.win { border-color: var(--vine); background: var(--sage); }
.compare-strip .tile.win .v { color: var(--vine); }
.compare-strip .tile.lose {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: color-mix(in srgb, var(--danger) 6%, var(--canvas));
}
.compare-strip .tile.lose .v { color: var(--danger); }

/* NHS, teacher, compare */
.band-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  margin-bottom: 1rem;
}
.band-grid a {
  display: block;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.8rem 0.95rem;
  text-decoration: none;
  color: var(--soil);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--motion-duration), box-shadow var(--motion-duration), transform var(--motion-duration);
}
.band-grid a:hover {
  border-color: var(--vine);
  background: var(--sage);
  color: var(--vine);
  transform: translateY(-2px);
}
.band-grid a span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
table.step-table { width: 100%; }
table.step-table tr.is-selected td { background: var(--sage); }
table.step-table tr.is-selected td:first-child { font-weight: 600; color: var(--vine); }

.compare-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 900px) { .compare-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.offer-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}
.offer-card h3 { margin-top: 0; }
.offer-card legend, .offer-card .offer-tag {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--soil);
  font-size: 0.95rem;
  padding: 0;
}
fieldset.offer-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.delta-strip {
  background: var(--soil);
  color: var(--on-soil);
  border: 1px solid color-mix(in srgb, var(--sprout) 24%, var(--soil));
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
.delta-strip strong { color: var(--sprout); }
.delta-strip .delta-sub { display: block; margin-top: 0.35rem; font-size: 0.88rem; opacity: 0.92; }
.delta-strip .delta-sub span { margin-right: 1rem; white-space: nowrap; }
table.data td.win { background: var(--sage); font-weight: 600; color: var(--vine); }
table.data td.lose { background: color-mix(in srgb, var(--danger) 8%, var(--canvas)); color: var(--danger); }

.mini-stats { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0.85rem 0 1.35rem; }
.mini-stats .tile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.mini-stats .tile strong {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--soil);
}
.footer-grid .band-links { columns: 2; column-gap: 1rem; }
.footer-grid .band-links li { break-inside: avoid; }
.offer-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--soil);
  vertical-align: middle;
}
.offer-tag.win { background: var(--sage); border-color: var(--vine); color: var(--vine); }
.offer-tag.lose { background: color-mix(in srgb, var(--danger) 10%, var(--canvas)); border-color: var(--danger); color: var(--danger); }

/* Calculation progress overlay */
html.thc-loading-open { overflow: hidden; }
.thc-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 23, 19, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.thc-loading.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.thc-loading__panel {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  padding: 1.25rem 1.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  text-align: center;
}
.thc-loading__img {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius);
}
.thc-loading__label { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--soil); }

/* Editorial flow & outline components */
/* Intro expandable block */
.intro-block { margin: 0 0 1.25rem; }
.intro-details {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}
.intro-summary {
  list-style: none;
  cursor: pointer;
  display: inline;
}
.intro-summary::-webkit-details-marker {
  display: none;
}
.intro-summary:focus-visible {
  outline: 2px solid var(--vine);
  outline-offset: 3px;
  border-radius: 4px;
}
.intro-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--vine);
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 0.45rem;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-read-more:hover {
  color: #165938;
}
.intro-expanded {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.intro-expanded p {
  margin-bottom: 0.85rem;
}
.intro-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--vine);
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  margin-top: 0.25rem;
}
.intro-collapse-btn:hover {
  color: #165938;
}
.card + .trust-block {
  margin-top: 0;
  margin-bottom: 2.25rem;
}

.intro-block h2 { margin-top: 0; font-size: 1.35rem; }
.prose-flow p, .prose-flow ul, .prose-flow ol { max-width: 72ch; }
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.chip-bar__label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-right: 0.25rem; }
.chip-bar .chip-row { margin: 0; }

/* Editorial sections below the interactive tool */
.editorial-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
}
#calculator + .editorial-section {
  border-top: 0;
  padding-top: 0.75rem;
}
.editorial-section > h2:first-child,
.editorial-section > h3:first-child {
  margin-top: 0;
}
@media (max-width: 760px) {
  .editorial-section { padding: 1.65rem 0; }
}

/* Confidence scale */
.confidence-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1rem 0;
}
.conf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: var(--canvas);
}
.conf-card strong { display: block; margin-bottom: 0.3rem; color: var(--soil); }
.conf-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.conf-card--ok { border-color: color-mix(in srgb, var(--vine) 28%, var(--border)); background: var(--sage); }
.conf-card--warn { border-color: color-mix(in srgb, var(--signal) 38%, var(--border)); background: color-mix(in srgb, var(--signal) 10%, var(--canvas)); }
.conf-card--check { border-color: color-mix(in srgb, var(--danger) 32%, var(--border)); background: color-mix(in srgb, var(--danger) 6%, var(--canvas)); }

/* Annotated walkthrough */
.walkthrough-ui {
  border: 0;
  border-radius: var(--radius);
  background: var(--sage);
  padding: 1.2rem;
  margin: 1.15rem 0 1.35rem;
}
.walkthrough-ui__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soil);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.walkthrough-ui__badge {
  background: var(--canvas);
  color: var(--vine);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.walkthrough-ui__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}
.walkthrough-field {
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
  border-radius: 0;
  padding: 0.8rem 0 0;
}
.walkthrough-field__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soil);
  margin-bottom: 0.35rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--vine);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.walkthrough-field__value {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--soil);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}
.walkthrough-field__note { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 0; }

/* Illustrative fictional payslip card */
.payslip-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}
.payslip-mock__head {
  background: var(--soil);
  color: var(--on-soil);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.payslip-mock__head strong { color: var(--sprout); }
.payslip-mock__meta {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  padding: 0.8rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.payslip-mock__cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding: 0.95rem 1rem;
}
.payslip-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.payslip-line--hl {
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--vine) 28%, var(--border));
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.payslip-line--code {
  display: inline-block;
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--vine) 30%, var(--border));
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--vine);
}
.payslip-line .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.payslip-mock__foot {
  background: var(--sage);
  border-top: 2px solid var(--vine);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 700;
}
.payslip-mock__caption {
  padding: 0.6rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* FAQ H3 inside summary */
.faq summary h3 {
  display: inline;
  font-family: var(--font-ui);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  color: inherit;
  margin: 0;
  line-height: inherit;
}

/* NHS redacted payslip + contract pair */
.doc-pair {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 1rem 0 1.25rem;
}
.doc-pair .payslip-mock { margin: 0; }
.redacted {
  display: inline-block;
  background: var(--soil);
  color: var(--on-soil);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.contract-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contract-card__body { padding: 0.9rem 1rem; flex: 1; font-size: 0.9rem; }

/* Two-column part-time gross comparison */
.gross-compare {
  border: 0;
  border-radius: var(--radius);
  background: var(--sage);
  padding: 1.2rem;
  margin: 1rem 0 1.25rem;
}
.gross-compare__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soil);
}
.gross-compare__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.gross-compare__box {
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--vine) 22%, var(--border));
  border-radius: 0;
  padding: 0.8rem 0 0;
}
.gross-compare__box strong { display: block; color: var(--soil); margin-bottom: 0.25rem; }
.gross-compare__amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 700; color: var(--vine); }

/* Diagnostic flowchart */
.flow-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 1rem 0 0.5rem;
}
.flow-step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  font-size: 0.88rem;
}
.flow-step strong { display: block; color: var(--soil); margin-bottom: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
