/* ==========================================================================
   VeloCaddie — shared stylesheet
   One file for EN (/) and DE (/de/). No build step, no framework.
   Fonts are self-hosted: no request ever leaves the visitor's browser
   for a third party, which keeps the site clean under GDPR.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Morning-light palette: paper, forest ink, fairway green, a low sun accent */
  --paper:      #faf9f4;
  --paper-warm: #f3f1e8;
  --mint:       #e6efe6;
  --ink:        #16241c;
  --ink-2:      #4b5c51;
  --ink-3:      #7c8a80;
  --green:      #2c7a4b;
  --green-deep: #1a4a2f;
  --green-lift: #3d9b60;
  --sun:        #c98b2e;
  --line:       rgba(22, 36, 28, 0.13);
  --line-soft:  rgba(22, 36, 28, 0.07);
  --card:       #ffffff;
  --shadow:     0 1px 2px rgba(22, 36, 28, .04), 0 12px 32px -12px rgba(22, 36, 28, .16);
  --shadow-lg:  0 2px 4px rgba(22, 36, 28, .05), 0 32px 64px -24px rgba(22, 36, 28, .28);

  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;

  --wrap: 1140px;
  --wrap-narrow: 720px;
  --radius: 18px;
  --radius-lg: 28px;

  --step: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #101711;
    --paper-warm: #16201a;
    --mint:       #182a1f;
    --ink:        #eef3ec;
    --ink-2:      #a8b8ac;
    --ink-3:      #7d8f83;
    --green:      #5cbe80;
    --green-deep: #a9dcbc;
    --green-lift: #7ad39a;
    --sun:        #e0ae5c;
    --line:       rgba(238, 243, 236, 0.15);
    --line-soft:  rgba(238, 243, 236, 0.08);
    --card:       #18221b;
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.35), 0 32px 64px -24px rgba(0,0,0,.7);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

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

h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
section.tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.band-warm { background: var(--paper-warm); }
.band-mint { background: var(--mint); }

.band-ink {
  background: var(--green-deep);
  color: #f2f7f1;
}
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: #cfe9d7; }

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.band-ink .eyebrow { color: #8fd0a6; }

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-lift); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0d1610; } .btn-primary:hover { color: #0d1610; } }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink-3); }

.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span em { font-style: normal; color: var(--green); }

.site-nav { display: flex; align-items: center; gap: clamp(.8rem, .3rem + 1.4vw, 1.9rem); }
.site-nav a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current='page'] { color: var(--ink); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-left: clamp(.6rem, .2rem + 1vw, 1.2rem);
  border-left: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang a { color: var(--ink-3); text-decoration: none; }
.lang a:hover { color: var(--green); }
.lang .is-active { color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { gap: .75rem; }
  .site-nav .nav-link { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -35% -10% auto -10%;
  height: 105%;
  background:
    radial-gradient(45% 55% at 72% 12%, color-mix(in srgb, var(--green) 12%, transparent) 0%, transparent 68%),
    radial-gradient(70% 65% at 35% 0%, var(--mint) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--green); font-style: italic; }
.hero .lead { max-width: 40ch; margin-bottom: 2rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.figure-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.figure-note strong { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 4 / 3; }
}

/* On a phone the overlaid caption eats half the photo — set it below instead. */
@media (max-width: 560px) {
  .hero-figure img { aspect-ratio: 1 / 1; }
  .figure-note {
    position: static;
    margin-top: .85rem;
    background: var(--card);
    backdrop-filter: none;
    border-color: var(--line);
  }
}

/* --------------------------------------------------------------------------
   Beta notice
   -------------------------------------------------------------------------- */

.beta {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.beta svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: .2rem; }
.beta p { font-size: .98rem; color: var(--ink-2); }
.beta strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Cards / benefits
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* --------------------------------------------------------------------------
   Numbered steps
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, .5rem + 2vw, 3rem);
  align-items: center;
  padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  align-self: start;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--green);
  padding-top: .35rem;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.step figure { margin: 0; }
.step figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

@media (max-width: 780px) {
  .step { grid-template-columns: 3rem minmax(0, 1fr); }
  .step figure { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Two-version comparison
   -------------------------------------------------------------------------- */

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

.version {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.version .tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--mint);
  padding: .35rem .7rem;
  border-radius: 999px;
}
.version h3 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.version p { color: var(--ink-2); margin: 0; }
.version ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.version li {
  position: relative;
  padding-left: 1.55rem;
  font-size: .96rem;
  color: var(--ink-2);
}
.version li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--green);
}
.version li.minus::before { border-color: var(--ink-3); background: var(--ink-3); }

/* --------------------------------------------------------------------------
   Spec list
   -------------------------------------------------------------------------- */

.specs { display: grid; gap: 0; margin: 0; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .96rem;
}
.specs dt { color: var(--ink-3); font-weight: 600; }
.specs dd { margin: 0; text-align: right; font-weight: 700; }

/* --------------------------------------------------------------------------
   Questionnaire
   -------------------------------------------------------------------------- */

.survey-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.9rem; }
.field:last-of-type { margin-bottom: 1.4rem; }

.field > legend, .field > label.q {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .85rem;
  padding: 0;
  color: var(--ink);
}
.field .hint {
  display: block;
  font-size: .87rem;
  color: var(--ink-3);
  margin-top: -.5rem;
  margin-bottom: .85rem;
}

fieldset { border: 0; margin: 0 0 1.9rem; padding: 0; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }

.choice {
  position: relative;
  display: inline-flex;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .16s ease;
  cursor: pointer;
}
.choice input:hover + span { border-color: var(--ink-3); color: var(--ink); }
.choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .choice input:checked + span { color: #0d1610; }
}
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }

input[type='text'],
input[type='email'],
textarea,
select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.55; }

.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 1.6rem;
}
.consent input {
  margin: .2rem 0 0;
  width: 1.05rem; height: 1.05rem;
  accent-color: var(--green);
  flex: none;
}

.hp { position: absolute; left: -9999px; }

.survey-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.survey-foot small { color: var(--ink-3); font-size: .84rem; }

/* --------------------------------------------------------------------------
   Article / prose
   -------------------------------------------------------------------------- */

.article-header {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.article-header h1 { max-width: 18ch; }
.article-header .lead { max-width: 52ch; font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: var(--ink-3);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.prose { font-size: 1.09rem; line-height: 1.72; }
.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 2em; font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 700; }

.prose figure { max-width: none; margin: 2.5rem 0; }
.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.prose figcaption {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 60ch;
}

/* Legal pages: semantically these are h2 sections, but a full display h2 per
   clause would swamp the page — size them like a sub-heading instead. */
.prose.legal h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  letter-spacing: -.01em;
  margin-top: 2em;
}
.prose.legal h2:first-child { margin-top: 0; }

.pull {
  max-width: none;
  margin: 2.75rem 0;
  padding: 1.75rem 0 1.75rem 1.75rem;
  border-left: 3px solid var(--green);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.65rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}

/* Build-log timeline */

.log { margin: 3rem 0 0; }

.entry {
  position: relative;
  padding-left: clamp(1.75rem, 1rem + 2vw, 3rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-left: 1px solid var(--line);
}
.entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.entry::before {
  content: '';
  position: absolute;
  left: -6.5px; top: .55rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
}
.entry.is-open::before { border-color: var(--sun); background: var(--sun); }

.entry-date {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: .5rem;
}
.entry.is-open .entry-date { color: var(--sun); }
/* Entry titles are h2 (they are the article's real sections); sub-headings
   inside an entry stay h3. Reset the .prose h2 top margin — the entry's own
   padding already spaces it. */
.entry h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  letter-spacing: -.02em;
  margin-top: 0;
  margin-bottom: .5rem;
}
.entry .verdict {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--ink-2);
  margin-bottom: 1.2rem;
}

.entry-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.75rem 0 0; }
.entry-media figure { margin: 0; }
.entry-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
}
.entry-media figcaption { margin-top: .6rem; font-size: .8rem; color: var(--ink-3); line-height: 1.45; }

/* --------------------------------------------------------------------------
   CTA strip
   -------------------------------------------------------------------------- */

.cta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: var(--green-deep);
  color: #eef6ef;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.cta-strip h2 { color: #fff; margin-bottom: .35em; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.cta-strip p { color: #cfe4d5; margin: 0; max-width: 46ch; font-size: 1rem; }
.cta-strip .btn-primary { background: #fff; color: var(--green-deep); }
.cta-strip .btn-primary:hover { background: #eaf5ec; color: var(--green-deep); }

@media (max-width: 700px) {
  .cta-strip { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
/* Footer column labels are h2 so the heading outline has no gaps, but they are
   navigation labels — keep them visually tiny. */
.footer-grid .footer-h {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--green); }
.footer-blurb { max-width: 34ch; color: var(--ink-3); font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--ink-3);
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Thanks page
   -------------------------------------------------------------------------- */

.thanks {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.thanks .mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  margin: 0 auto 1.75rem;
}
.thanks .mark svg { width: 30px; height: 30px; }
.thanks p { max-width: 46ch; margin-inline: auto; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

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