/* ==========================================================================
   Indo German Tax — German tax refunds for Indians
   Design language: German official form (Vordruck).
   - Field colour is Vordruck green, not white or cream.
   - All money and official references are set in monospace: they are data.
   - German bureaucratic terms are marked and tappable for a plain gloss.
   - Structure is form-panels, not editorial rules.
   ========================================================================== */

:root {
  /* Ground — the form paper */
  --field:      #E7ECE4;
  --panel:      #F5F8F3;
  --panel-2:    #DFE6DC;
  --rule:       #C2CEBE;

  /* Ink & structure */
  --ink:        #16211C;
  --ink-2:      #4A5A51;
  --amt:        #2C4A3B;   /* official green — structure, headings, tags */

  /* Accents, one job each */
  --stamp:      #A32035;   /* deadlines and expiry only */
  --gold:       #B0770A;   /* money recovered only */
  --gold-wash:  #F6EBD4;
  --wa:         #107A43;   /* WhatsApp actions only — darkened to 5.4:1 on white */
  --wa-bright:  #25D366;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --measure: 64ch;
  --radius: 3px;
  --gap: clamp(1rem, 3vw, 1.75rem);
  --pad-sec: clamp(3.25rem, 9vw, 6rem);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

/* Several elements here are display:flex and are toggled with the hidden
   attribute from JS, which display:flex would otherwise defeat. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Long German compounds ("Berufshaftpflichtversicherung", "Antragsveranlagung")
   must break rather than overflow their column. break-word only splits a word
   when it would otherwise spill; auto-hyphenation (keyed off <html lang>) makes
   the break read correctly in German. */
p, li, dd, dt, summary, blockquote,
.p, .lede, .note, .h1, .h2, .h3, .eyebrow,
.seg__amount, .seg__tag, .fee__name, .fee__what, .fee__stake, .fee__unit,
.ledger__body, .todo, .foot__legal {
  overflow-wrap: break-word;
}
:root[lang="de"] p, :root[lang="de"] li, :root[lang="de"] dd,
:root[lang="de"] .p, :root[lang="de"] .lede, :root[lang="de"] .note,
:root[lang="de"] .seg__amount, :root[lang="de"] .fee__what,
:root[lang="de"] .ledger__body, :root[lang="de"] .faq__a,
:root[lang="de"] .todo, :root[lang="de"] .foot__legal {
  hyphens: auto;
}

/* Paper grain. Fixed, cheap, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--amt); text-underline-offset: .18em; }

:focus-visible {
  outline: 2.5px solid var(--stamp);
  outline-offset: 2px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--panel);
  padding: .7rem 1.1rem; z-index: 100; text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap {
  width: min(100% - 2.25rem, 74rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.wrap--narrow { width: min(100% - 2.25rem, 50rem); }

/* ---------------------------------------------------------- typography -- */
.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amt);
  margin: 0 0 1rem;
}
.eyebrow--stamp { color: var(--stamp); }

.h1 {
  font-size: clamp(2.15rem, 7.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 800;
  margin: 0 0 1.15rem;
  max-width: 18ch;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.024em;
  font-weight: 800;
  margin: 0 0 .85rem;
  text-wrap: balance;
}
.h3 {
  font-size: 1.075rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  font-weight: 750;
  margin: 0 0 .4rem;
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: 0 0 1.6rem;
}
.p { max-width: var(--measure); margin: 0 0 1rem; }
.p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.55; }

.note {
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: .01em;
}

/* Inline citation to an official source — hugs the preceding term, never wraps
   away from it, and stays visually quiet. */
.ref {
  font-family: var(--mono);
  font-size: .76em;
  letter-spacing: .01em;
  vertical-align: baseline;
  opacity: .85;
}

/* Money and official data are always mono. */
.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.num--gold { color: var(--gold); }

/* German bureaucratic term — the signature. Tap for a plain-English gloss. */
.de {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02em;
  color: var(--amt);
  background: none;
  border: 0;
  border-bottom: 1.5px dotted var(--amt);
  padding: 0 .04em;
  margin: 0;
  cursor: help;
  font-weight: 500;
  line-height: inherit;
  /* Keep the German term whole — never break at its hyphen ("Steuer-ID")
     or at the slash in "Anmeldung / Abmeldung". It wraps to the next line
     as one unit only when it genuinely does not fit. */
  white-space: nowrap;
}
.de:hover { background: var(--panel-2); }
.de__gloss {
  display: inline;
  font-family: var(--mono);
  font-style: normal;
  font-size: .74rem;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .12em .45em;
  margin-inline-start: .35em;
  white-space: normal;
}

/* ------------------------------------------------------------ masthead -- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--field);
  background: color-mix(in srgb, var(--field) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  margin-inline-end: auto;
}
.wordmark__mark {
  width: 1.7rem; height: 1.7rem;
  border: 2px solid var(--amt);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--amt);
  flex: none;
}
.nav { display: none; gap: 1.4rem; }
.nav a {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--amt); text-decoration: underline; }
@media (min-width: 62rem) { .nav { display: flex; } }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.2;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.btn--wa {
  background: var(--wa);
  border-color: #0B4F33;
  color: #fff;
  box-shadow: 2px 2px 0 #0B4F33;
}
.btn--wa:hover { box-shadow: 3px 3px 0 #0B4F33; }
.btn--wa:active { box-shadow: 1px 1px 0 #0B4F33; }
.btn--sm { padding: .55rem .85rem; font-size: .85rem; box-shadow: 1.5px 1.5px 0 currentColor; }
.btn--sm.btn--wa { box-shadow: 1.5px 1.5px 0 #0B4F33; }
.btn--wide { width: 100%; }
.btn__icon { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
}

/* ------------------------------------------------------------- section -- */
.sec { padding-block: var(--pad-sec); position: relative; z-index: 1; }
.sec--tint { background: var(--panel-2); border-block: 1px solid var(--rule); }
.sec__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec__mark {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amt);
  border: 1.5px solid var(--amt);
  border-radius: var(--radius);
  padding: .3rem .6rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------- panel -- */
.panel {
  background: var(--panel);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3.5vw, 1.75rem);
}
.panel--amt { border-color: var(--amt); border-width: 2px; }
.panel--gold { background: var(--gold-wash); border-color: var(--gold); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 46rem) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 46rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 46rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- hero -- */
.hero { padding-block: clamp(2.75rem, 8vw, 5rem) clamp(2.5rem, 7vw, 4.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }

/* The signature: a filled-in form field with character cells. */
.formfield {
  background: var(--panel);
  border: 2px solid var(--amt);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
}
.formfield__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amt);
  margin-bottom: .7rem;
}
.formfield__zeile { color: var(--ink-2); }
.cells { display: flex; gap: 4px; flex-wrap: wrap; }
.cell {
  width: clamp(2rem, 8.5vw, 2.9rem);
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--amt);
  border-radius: 2px;
  background: var(--field);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 4.4vw, 1.6rem);
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  animation: cellfill .34s ease forwards;
}
.cell--thin { width: clamp(1rem, 4vw, 1.4rem); color: var(--amt); }
@keyframes cellfill { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cell { animation: none; opacity: 1; transform: none; }
}
.formfield__foot {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--rule);
}

/* Deadline stamp. */
.stamp {
  display: inline-block;
  transform: rotate(-2.4deg);
  border: 2.5px solid var(--stamp);
  border-radius: var(--radius);
  color: var(--stamp);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem .8rem;
  line-height: 1.35;
  background: #F0E3E2;
  background: color-mix(in srgb, var(--stamp) 6%, var(--field));
  box-shadow: inset 0 0 0 1.5px var(--field), inset 0 0 0 3px #D08A83;
  box-shadow: inset 0 0 0 1.5px var(--field), inset 0 0 0 3px color-mix(in srgb, var(--stamp) 40%, transparent);
}
.stamp b { display: block; font-size: .95rem; letter-spacing: .06em; }

.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.trustline li {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--amt);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .3rem .55rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ------------------------------------------------------------ segments -- */
.seg {
  background: var(--panel);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.seg--lead { border-color: var(--amt); border-width: 2px; }
.seg__tag {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stamp);
}
.seg__amount { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--rule); }
.seg .btn { margin-top: .35rem; }

/* -------------------------------------------------------------- ledger -- */
/* The process. Every row names who is responsible — that is the legal
   structure of this business, made visible. */
.ledger { border-top: 1.5px solid var(--amt); }
.ledger__row {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .5rem .8rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 52rem) {
  .ledger__row { grid-template-columns: 2rem 8.5rem 1fr; align-items: baseline; }
}
.ledger__n {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--amt);
  padding-top: .12rem;
}
.ledger__who {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  padding: .18rem .4rem;
  justify-self: start;
  grid-column: 2;
  white-space: nowrap;
}
@media (min-width: 52rem) { .ledger__who { grid-column: auto; } }
.who--you { color: var(--stamp); }
.who--us { color: var(--amt); }
.who--stb { color: var(--gold); }
.who--amt { color: var(--ink-2); }
.ledger__body { grid-column: 2; }
@media (min-width: 52rem) { .ledger__body { grid-column: auto; } }
.ledger__body p { margin: .25rem 0 0; max-width: 58ch; }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.key li {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.key i {
  width: .7rem; height: .7rem; border-radius: 2px;
  border: 1.5px solid currentColor; display: inline-block; flex: none;
}

/* ---------------------------------------------------------------- quiz -- */
.quiz { max-width: 44rem; }
.quiz__bar {
  display: flex;
  gap: 3px;
  margin-bottom: 1.1rem;
}
.quiz__seg {
  height: 5px;
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 1px;
}
.quiz__seg.is-done { background: var(--amt); border-color: var(--amt); }
.quiz__step[hidden] { display: none; }
.quiz__q {
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -.018em;
  line-height: 1.25;
  margin: 0 0 .35rem;
}
.quiz__hint { margin: 0 0 1rem; }
.quiz__opts { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--field);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  cursor: pointer;
  font-size: .975rem;
  line-height: 1.4;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.opt:hover { border-color: var(--amt); background: var(--panel); }
.opt__box {
  width: 1.15rem; height: 1.15rem;
  border: 1.5px solid var(--amt);
  border-radius: 2px;
  flex: none;
  margin-top: .12rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--panel);
  line-height: 1;
}
.opt.is-on { border-color: var(--amt); background: var(--panel); box-shadow: inset 0 0 0 1px var(--amt); }
.opt.is-on .opt__box { background: var(--amt); }
.opt.is-on .opt__box::after { content: "\2713"; }
.quiz__nav { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.verdict__head {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px dashed var(--rule);
  padding-bottom: .9rem;
  margin-bottom: 1rem;
}
.verdict__list { margin: 0 0 1.1rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.verdict__list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: .55rem;
  align-items: start;
  font-size: .95rem;
  line-height: 1.5;
}
.verdict__list i {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
  color: var(--amt);
}
.verdict__list li.is-flag i { color: var(--stamp); }
.verdict__list li.is-money i { color: var(--gold); }

/* ----------------------------------------------------------------- fee -- */
.fee { border-top: 2px solid var(--amt); }
.fee__row {
  display: grid;
  gap: .35rem .9rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 52rem) {
  .fee__row { grid-template-columns: 1fr auto; align-items: baseline; }
}
.fee__name { font-weight: 750; font-size: 1.06rem; letter-spacing: -.012em; }
.fee__what { color: var(--ink-2); font-size: .9rem; line-height: 1.5; max-width: 52ch; margin: .3rem 0 0; }
.fee__price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  white-space: nowrap;
}
.fee__unit { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.fee__stake {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--amt);
  margin-top: .45rem;
}
.switch {
  display: inline-flex;
  border: 1.5px solid var(--amt);
  border-radius: var(--radius);
  overflow: hidden;
}
.switch button {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  padding: .35rem .7rem;
  border: 0;
  background: var(--panel);
  color: var(--amt);
  cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--amt); color: var(--panel); }

/* Language toggle in the masthead — a .switch sized down to sit beside the
   Chat button, and always visible (it lives outside .nav). */
.langswitch { flex: none; align-self: center; }
.langswitch button {
  padding: .3rem .55rem;
  font-size: .68rem;
  letter-spacing: .06em;
  line-height: 1;
}
@media (max-width: 26rem) {
  .langswitch button { padding: .3rem .45rem; }
  .masthead__in { gap: .6rem; }
}

/* ----------------------------------------------------------- checklist -- */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .95rem;
  line-height: 1.45;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0; top: .2rem;
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid var(--amt);
  border-radius: 2px;
  background: var(--field);
}

/* ----------------------------------------------------------------- faq -- */
.faq { border-top: 1.5px solid var(--amt); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.25rem 1rem 0;
  font-weight: 700;
  font-size: 1.01rem;
  line-height: 1.4;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--amt);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 0 1.15rem; }
.faq__a p { max-width: 62ch; margin: 0 0 .7rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- footer -- */
.foot {
  background: var(--ink);
  color: var(--panel-2);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 6.5rem;
  position: relative;
  z-index: 1;
}
.foot a { color: var(--panel); }
.foot .wordmark { color: var(--panel); }
.foot .wordmark__mark { border-color: var(--panel-2); color: var(--panel-2); }
.foot__grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 52rem) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot__h {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9DB0A3;
  margin: 0 0 .8rem;
}
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.foot__legal {
  border-top: 1px solid #2E3B34;
  padding-top: 1.35rem;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.65;
  color: #9DB0A3;
}
.foot__legal p { max-width: 78ch; margin: 0 0 .6rem; }
@media (min-width: 52rem) { .foot { padding-bottom: clamp(2.5rem, 6vw, 3.5rem); } }

/* ------------------------------------------------------- sticky mobile -- */
/* The traffic is a phone ad click. The chat button lives in the thumb zone. */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 18;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--field);
  background: color-mix(in srgb, var(--field) 94%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--rule);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.dock.is-up { transform: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
@media (min-width: 52rem) { .dock { display: none; } }

/* --------------------------------------------------------- doc (legal) -- */
.doc { padding-block: clamp(2.25rem, 6vw, 3.5rem) var(--pad-sec); }
.doc h2 {
  font-size: 1.3rem;
  letter-spacing: -.018em;
  margin: 2.25rem 0 .7rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--rule);
}
.doc h3 { font-size: 1.02rem; margin: 1.4rem 0 .4rem; }
.doc p, .doc li { max-width: 66ch; }
.doc p { margin: 0 0 .85rem; }
.doc ul, .doc ol { margin: 0 0 .85rem; padding-left: 1.15rem; }
.doc li { margin-bottom: .4rem; }
.doc dl { margin: 0 0 1rem; }
.doc dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amt); margin-top: .9rem; }
.doc dd { margin: .15rem 0 0; }

.todo {
  background: color-mix(in srgb, var(--stamp) 8%, var(--field));
  border: 1.5px dashed var(--stamp);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--ink);
}
.todo b { color: var(--stamp); letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; display: block; margin-bottom: .3rem; }

/* --------------------------------------------------------- scroll-in ---- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- WhatsApp off --
   While <html> carries class="wa-off", every WhatsApp button, the floating
   dock and the closing WhatsApp call-to-action are hidden. Remove the class
   from index.html to switch them all back on. */
.wa-off .btn--wa,
.wa-off .dock,
.wa-off #final { display: none !important; }

/* ------------------------------------------------------- enquiry form -- */
/* Official green (--amt) for the primary non-WhatsApp action: it is
   structure, not an accent, so it keeps the one-job-per-accent rule. */
.btn--go { background: var(--amt); border-color: var(--amt); color: var(--panel); box-shadow: 2px 2px 0 var(--ink); }

.lead { max-width: 44rem; display: grid; gap: 1.25rem; }
.lead__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-weight: 650; font-size: .95rem; padding: 0; }
.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;              /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: .7rem .8rem;
}
.input:hover { border-color: var(--amt); }
.input:focus { outline: 2px solid var(--amt); outline-offset: 1px; border-color: var(--amt); }
.input::placeholder { color: var(--ink-2); opacity: .7; }
textarea.input { resize: vertical; min-height: 5.5rem; }
.lead .is-invalid, .lead .is-invalid .opt { border-color: var(--stamp); }

.lead .opt input { accent-color: var(--amt); width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; flex: none; }
.lead .opt:has(input:checked) { border-color: var(--amt); background: var(--panel); box-shadow: inset 0 0 0 1px var(--amt); }
.lead .opt:has(input:focus-visible) { outline: 2px solid var(--amt); outline-offset: 2px; }
.lead__years { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.lead__consent { font-size: .9rem; }

.lead__foot { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.lead__status { margin: 0; }
.lead__status.is-error { color: var(--stamp); }
.lead__done { text-align: left; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
