/* ============================================================
   When Will I Plateau.com — styles
   House style: warm-fitness take on the Red Goggles portfolio.
   Paper background, Source Serif 4 display, system sans UI.
   Mobile-first; calculator dominates above the fold.
   ============================================================ */

:root {
  /* surfaces */
  --paper:      #f6f8f7;
  --surface:    #ffffff;
  --surface-2:  #f0f4f1;

  /* ink */
  --ink:        #16201c;
  --ink-soft:   #51605a;
  --ink-faint:  #7c8a83;

  /* lines */
  --line:       #e2e8e4;
  --line-soft:  #edf1ee;

  /* accent — fitness green */
  --accent:        #1f8a5b;
  --accent-press:  #19724b;
  --accent-tint:   #e8f3ec;
  --accent-tint-2: #d6eadd;

  /* clay — the stall marker, used sparingly */
  --clay:       #c8743a;
  --clay-tint:  #f7ece2;

  /* warning */
  --warn:       #b4561d;
  --warn-tint:  #fbeee2;

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(22, 32, 28, .05), 0 1px 1px rgba(22, 32, 28, .04);
  --shadow-md: 0 4px 16px rgba(22, 32, 28, .07), 0 1px 3px rgba(22, 32, 28, .05);
  --shadow-lg: 0 18px 48px rgba(22, 32, 28, .12), 0 4px 12px rgba(22, 32, 28, .06);

  --maxw: 1160px;
  --content: 720px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-decoration-color: color-mix(in oklab, var(--accent) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent-press); }

.tnum { font-variant-numeric: tabular-nums; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  z-index: 200; font-size: 15px;
}
.skip:focus { left: 0; }

/* ---------- layout shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; display: block; flex: none;
  box-shadow: 0 1px 2px rgba(22,32,28,.14);
}
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); white-space: nowrap;
}
.brand__tld { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 7px 11px; border-radius: var(--r-sm); white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__cta {
  color: var(--accent) !important; font-weight: 600;
}
@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 38px 0 18px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(30px, 4.8vw, 46px);
  max-width: 19ch;
  margin-bottom: 16px;
  line-height: 1.07;
}
.hero h1 .hl { color: var(--accent); }
.hero h1 .h1sub {
  display: block; font-size: .5em; color: var(--ink-soft); font-weight: 500;
  margin-top: 14px; line-height: 1.3; letter-spacing: 0; max-width: 30ch;
}
.hero__sub {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--ink-soft); max-width: 56ch; margin-bottom: 20px;
  line-height: 1.5;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: 14px; color: var(--ink-faint);
}
.hero__meta .chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; color: var(--ink-soft); font-weight: 500;
}
.hero__meta .chip svg { color: var(--accent); }

/* ---------- main grid (content + sticky sidebar) ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}
@media (min-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
}

.col-main { min-width: 0; }

/* ---------- ad slots ---------- */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 22px 0;
  color: var(--ink-faint);
}
.ad-slot-label {
  display: none;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px; align-self: center;
}
/* Real visitor behaviour: label only shows on an actual AdSense fill */
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }

/* reserve dimensions to prevent CLS */
.ad-slot--top-banner   { min-height: 100px; }       /* 320x100 mobile */
.ad-slot--pre-result   { min-height: 250px; }       /* 300x250 */
.ad-slot--mid-content  { min-height: 250px; }       /* 300x250 mobile */
.ad-slot--sidebar      { min-height: 600px; }       /* 300x600 */
@media (min-width: 1040px) {
  .ad-slot--top-banner  { min-height: 90px; }        /* 728x90 desktop */
  .ad-slot--mid-content { min-height: 90px; }        /* 728x90 desktop */
}

/* In development there is no AdSense; show a neutral reserved placeholder
   so the layout reads as intentional. On a live site the loader fills these. */
.ad-slot__ph {
  width: 100%; max-width: 728px; min-height: inherit;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background:
     repeating-linear-gradient(135deg, transparent 0 11px, rgba(22,32,28,.012) 11px 22px),
     var(--surface-2);
  color: var(--ink-faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.ad-slot--pre-result .ad-slot__ph,
.ad-slot--sidebar .ad-slot__ph { max-width: 300px; }
.ad-slot--pre-result .ad-slot__ph { height: 250px; }
.ad-slot--sidebar .ad-slot__ph { height: 600px; }

/* sticky sidebar rail */
.rail { display: none; }
@media (min-width: 1040px) {
  .rail { display: block; }
  .rail__inner { position: sticky; top: 84px; }
  .rail .ad-slot { margin: 0; }
}

/* ---------- calculator ---------- */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.calc__head {
  padding: 22px 24px 0;
}
.calc__head h2 {
  font-size: 23px; margin-bottom: 4px;
}
.calc__head p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.calc__body { padding: 20px 24px 24px; }

/* primary lever: intake */
.lever {
  background: linear-gradient(180deg, var(--accent-tint) 0%, color-mix(in oklab, var(--accent-tint) 50%, var(--surface)) 100%);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  margin-bottom: 22px;
}
.lever__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lever__label { font-size: 14px; font-weight: 600; color: var(--accent-press); letter-spacing: .01em; }
.lever__val { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; }
.lever__val small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 3px; }
.lever__hint { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 14px; }

/* range input */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #ffffff var(--fill, 50%));
  border: 1px solid var(--accent-tint-2);
}
input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--accent-tint-2);
}
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%; margin-top: -10px;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(22,32,28,.18);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(22,32,28,.18);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-tint-2); }
.lever__scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }

/* field grid */
.fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field__opt { font-weight: 500; color: var(--ink-faint); font-size: 11.5px; text-transform: none; letter-spacing: 0; }

.input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; transition: border-color .12s, box-shadow .12s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.input::placeholder { color: var(--ink-faint); }

/* number + unit composite */
.input-unit { position: relative; display: flex; align-items: stretch; }
.input-unit .input { padding-right: 52px; }
.input-unit__u {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-faint);
}

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg--full { display: flex; }
.seg button {
  flex: 1; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 9px; padding: 9px 12px; cursor: pointer;
  transition: color .12s; white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}
.seg--unit { padding: 2px; }
.seg--unit button { padding: 6px 12px; font-size: 13px; }

/* feet/inches composite for height */
.height-imperial { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.height-imperial.hidden, .height-metric.hidden { display: none; }

select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2351605a' stroke-width='1.8'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 38px; }

/* ---------- result ---------- */
.result { scroll-margin-top: 80px; }
.result__sentence {
  background: linear-gradient(165deg, #14201c 0%, #1c2c25 100%);
  color: #eef4f0; border-radius: var(--r-xl); padding: 26px 26px 24px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.result__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #8fd3b0; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.result__sentence p {
  font-family: var(--serif); font-size: clamp(21px, 3.2vw, 27px); line-height: 1.34; margin: 0;
  color: #f4f8f5;
}
.result__sentence b { color: #fff; font-weight: 600; }
.result__sentence .u-weight { color: #8fd3b0; }
.result__sentence .u-date  { color: #f0c69a; }
.result__sentence .u-cal   { color: #a9dcf2; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 15px 14px; text-align: left;
}
.stat__k { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.stat__v { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; color: var(--ink); }
.stat__v small { font-size: 14px; color: var(--ink-soft); font-family: var(--sans); margin-left: 2px; font-weight: 600; }
.stat__sub { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.stat--weight .stat__v { color: var(--accent-press); }
.stat--date   .stat__v { color: var(--clay); }
.stat--cal    .stat__v { color: var(--ink); }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stat__k { margin-bottom: 0; }
  .stat__sub { display: none; }
}

/* chart */
.chart-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 18px 18px 14px; margin-top: 16px; box-shadow: var(--shadow-sm);
}
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.chart-card__head h3 { font-size: 16px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend i.curve { background: var(--accent); }
.chart-legend i.plateau { background: var(--clay); height: 0; border-top: 2px dashed var(--clay); }
.chart-legend i.goal { background: var(--ink-faint); height: 0; border-top: 2px dotted var(--ink-faint); }
.chart-wrap { width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: auto; }

/* the "why" + resume note */
.notecard {
  display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r-lg);
  margin-top: 16px; font-size: 14.5px; line-height: 1.55;
}
.notecard__icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.notecard h4 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; margin: 0 0 3px; }
.notecard p { margin: 0; }
.notecard--why { background: var(--accent-tint); border: 1px solid var(--accent-tint-2); color: var(--ink); }
.notecard--why .notecard__icon { background: var(--accent); color: #fff; }
.notecard--why h4 { color: var(--accent-press); }
.notecard--resume { background: var(--surface); border: 1px solid var(--line); }
.notecard--resume .notecard__icon { background: var(--accent-tint); color: var(--accent-press); }
.notecard--warn { background: var(--warn-tint); border: 1px solid color-mix(in oklab, var(--warn) 28%, var(--warn-tint)); }
.notecard--warn .notecard__icon { background: var(--warn); color: #fff; }
.notecard--warn h4 { color: var(--warn); }
.notecard--floor { background: var(--clay-tint); border: 1px solid color-mix(in oklab, var(--clay) 26%, var(--clay-tint)); }
.notecard--floor .notecard__icon { background: var(--clay); color: #fff; }
.notecard--floor h4 { color: var(--clay); }
.notecard .lever-cta {
  display: inline-block; margin-top: 9px; font-weight: 600; font-size: 13.5px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer;
}
.notecard .lever-cta:hover { background: var(--accent-press); }
.notecard .lever-cta.secondary { background: transparent; color: var(--accent-press); border: 1.5px solid var(--accent-tint-2); margin-left: 8px; }

.assumptions {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  font-size: 13.5px;
}
.assumptions summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary .chev { transition: transform .15s; color: var(--ink-faint); }
.assumptions[open] summary .chev { transform: rotate(90deg); }
.assumptions__body { padding: 0 16px 14px; color: var(--ink-soft); line-height: 1.55; }
.assumptions__body ul { margin: 8px 0 0; padding-left: 18px; }
.assumptions__body li { margin-bottom: 6px; }
.assumptions__body code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

.reviewed {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-faint);
}
.reviewed .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* shared section heading */
.section { padding: 18px 0; scroll-margin-top: 80px; }
.section__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section h2 { font-size: clamp(25px, 4vw, 33px); margin-bottom: 14px; max-width: 22ch; }
.prose { max-width: var(--content); }
.prose p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.66; margin-bottom: 1.1em; }
.prose h3 { font-size: 21px; margin: 26px 0 8px; }
.prose strong { color: var(--ink); }
.prose ul { color: var(--ink-soft); padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* steps */
.steps { display: grid; gap: 14px; margin: 18px 0 6px; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.step__n { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-press); font-family: var(--serif); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }
.step h3 { font-size: 17px; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: var(--content); }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .chev { flex: none; color: var(--accent); transition: transform .18s; }
.faq__item[open] summary .chev { transform: rotate(45deg); }
.faq__item .faq__a { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; }
.faq__a p { margin: 0 0 .8em; }
.faq__a p:last-child { margin-bottom: 0; }

/* crosslinks */
.crosslinks { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 680px) { .crosslinks { grid-template-columns: 1fr 1fr; } }
.crosslink {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; transition: border-color .14s, transform .14s, box-shadow .14s;
}
.crosslink:hover { border-color: var(--accent-tint-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.crosslink__mark { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-press); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; }
.crosslink h3 { font-family: var(--sans); font-size: 15.5px; margin-bottom: 3px; color: var(--ink); }
.crosslink p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.crosslink .dom { color: var(--accent-press); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { display: grid; gap: 30px; padding: 44px 0 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); max-width: 34ch; margin: 0; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 13px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col button.linklike {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left;
}
.footer-col a:hover, .footer-col button.linklike:hover { color: var(--accent); }
.footer-col .ext::after { content: "↗"; font-size: 11px; margin-left: 4px; color: var(--ink-faint); }

.footer-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.footer-legal { padding: 22px 0 14px; }
.footer-legal p { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; max-width: 92ch; margin: 0 0 14px; }
.footer-legal p strong { color: var(--ink-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-bottom: 30px; }
.footer-bottom .copy { font-size: 12.5px; color: var(--ink-faint); }
.footer-bottom button.linklike { color: var(--ink-soft); font-weight: 600; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.footer-bottom button.linklike:hover { color: var(--accent); }

/* ---------- mobile sticky ad ---------- */
.mobile-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 4px 40px 4px 8px;
  box-shadow: 0 -4px 14px rgba(22,32,28,.06);
}
.mobile-sticky[hidden] { display: none; }
.mobile-sticky .ad-slot { margin: 0; }
.mobile-sticky .ad-slot__ph { height: 50px; min-height: 50px; max-width: 320px; }
.mobile-sticky__close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
}
@media (min-width: 1040px) { .mobile-sticky { display: none !important; } }

/* ---------- modal (privacy) ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(16,24,20,.5);
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-scrim[hidden] { display: none; }
.modal-scrim:not([hidden]) { display: flex; }
@media (min-width: 680px) { .modal-scrim { align-items: center; padding: 24px; } }
.modal {
  background: var(--surface); width: 100%; max-width: 620px; max-height: 88vh;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateY(14px); transition: transform .25s ease;
}
@media (min-width: 680px) { .modal { border-radius: var(--r-xl); } }
.modal-scrim.open .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 20px; }
.modal__close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__body { padding: 20px 22px; overflow-y: auto; }
.modal__body h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.modal__body p, .modal__body li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.modal__body .lead { background: var(--accent-tint); border: 1px solid var(--accent-tint-2); border-radius: var(--r-md); padding: 13px 15px; color: var(--ink); }
.modal__body ul { padding-left: 18px; }
.modal__body li { margin-bottom: 6px; }
.modal__foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.btn {
  font: inherit; font-weight: 600; font-size: 14.5px; border-radius: var(--r-md); padding: 11px 18px; cursor: pointer; border: 1.5px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }
.btn--ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }

body.modal-open { overflow: hidden; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* utility */
.hidden { display: none !important; }
.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; }
