/* ==========================================================================
   Thought Taxi - thoughttaxi.com
   Pure CSS. No framework, no preprocessor, no external request.
   Fonts load locally from ../fonts/ (see assets/fonts/README.md).

   Visual language taken from finallyasked.com and neuehedonie.de:
   full-bleed photograph under a gradient scrim, blurred colour blooms,
   large tight display type, warm ground, generous radii.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts - local only.
   -------------------------------------------------------------------------- */

/* IBM Plex Sans, the typeface used on finallyasked.com.
   Two static weights, both served from this site. SIL OFL 1.1. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* From the cover */
  --amber: #FFC150;
  --amber-deep: #E09B1F;
  --amber-glow: rgba(255, 193, 80, 0.45);

  --paper: #FDFCF8;
  --paper-2: #F6F1E3;
  --ink: #14110D;
  --ink-soft: #59524A;
  --line: #E6E0D0;

  /* Night ground - a taxi light only reads against dark */
  --night: #17130E;
  --night-2: #221C14;
  --night-line: rgba(253, 252, 248, 0.16);
  --on-night: #FDFCF8;
  --on-night-soft: rgba(253, 252, 248, 0.74);

  /* Price - single source of truth for CSS.
     The HTML mirror is data-price on <body>. Change both together. */
  --price: "$29";

  /* One family, two weights, as on finallyasked.com. */
  --font-display: "IBM Plex Sans", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --page: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --radius: 22px;
  --radius-lg: 30px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.97rem + 0.42vw, 1.175rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.4rem + 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: none;
  text-wrap: nowrap;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 3.1vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  max-width: 18ch;
}

h3 {
  font-size: clamp(1.15rem, 1.03rem + 0.5vw, 1.4rem);
  letter-spacing: -0.012em;
  line-height: 1.2;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1.15em; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--amber-deep);
}
a:hover { text-decoration-color: currentColor; }

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

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

::selection { background: var(--amber); color: var(--ink); }

/* Neither font ships an italic, so em is set as a synthesised oblique.
   Keeping it subtle stops it looking like a slanted mistake. */
em { font-style: italic; font-synthesis: style; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.85rem 1.15rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space); }
.section--paper2 { background: var(--paper-2); }

.section--night {
  background: var(--night);
  color: var(--on-night);
}
.section--night h2, .section--night h3 { color: var(--on-night); }
.section--night p { color: var(--on-night-soft); }
.section--night .lead { color: var(--on-night); }

.lead {
  font-size: clamp(1.2rem, 1.02rem + 0.85vw, 1.6rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  max-width: 32ch;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.87rem; line-height: 1.5; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 8rem;
}
.section--night .kicker { color: var(--amber); }
.section--night .kicker::after { background: var(--night-line); }

/* --------------------------------------------------------------------------
   5. Top band + masthead
   -------------------------------------------------------------------------- */

.band {
  background: var(--ink);
  color: var(--on-night-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  padding-block: 0.7rem;
}
.band .wrap {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline;
}
.band b {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--amber);
}
.band p { margin: 0; max-width: none; }

.masthead {
  position: relative;
  z-index: 3;
  padding-block: 1.15rem;
}
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 2.75rem;
}
.wordmark .lamp {
  width: 1.35rem; height: 0.62rem;
  background: var(--amber);
  border-radius: 3px 3px 1px 1px;
  box-shadow: 0 0 14px var(--amber-glow);
}

/* --------------------------------------------------------------------------
   6. Hero - full-bleed photograph under a scrim, with colour blooms
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__photo {
  position: absolute; inset: 0; z-index: -2;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(253, 252, 248, 0.30) 0%,
    rgba(253, 252, 248, 0.88) 44%,
    var(--paper) 74%
  );
}

@media (min-width: 56rem) {
  .hero__photo::after {
    background: linear-gradient(
      96deg,
      var(--paper) 0%,
      rgba(253, 252, 248, 0.97) 34%,
      rgba(253, 252, 248, 0.72) 52%,
      rgba(253, 252, 248, 0.18) 74%,
      rgba(253, 252, 248, 0.02) 100%
    );
  }
}

/* Blurred blooms. Amber is the taxi light; they stay quiet. */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: -1;
}
.bloom--1 {
  width: min(46vw, 480px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 193, 80, 0.55), transparent 68%);
  top: -12%; left: -8%;
}
.bloom--2 {
  width: min(34vw, 360px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(224, 155, 31, 0.30), transparent 68%);
  bottom: -18%; left: 26%;
}
.bloom--3 {
  width: min(30vw, 320px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(20, 17, 13, 0.14), transparent 68%);
  top: 32%; right: -6%;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; }
}

.hero__sub {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.38;
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 1.9rem;
}

.spec {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.92rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--amber);
  margin: 0 0 1.9rem;
  max-width: none;
}

/* Very narrow phones: let the spec line breathe rather than crowd the edge. */
@media (max-width: 26rem) {
  .spec { letter-spacing: 0.08em; padding: 0.55rem 0.95rem; gap: 0.25rem 0.5rem; }
  .btn { padding: 0.95rem 1.4rem; }
}

/* The one echo of the cover's vertical TAXI */
.hero__figure {
  position: relative;
  margin: 0;
  justify-self: center;
  max-width: 23rem;
}
.hero__figure img {
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 2px 6px rgba(20, 17, 13, 0.10),
    0 26px 60px rgba(20, 17, 13, 0.28),
    0 0 0 1px rgba(20, 17, 13, 0.07);
}
/* The single echo of the cover's vertical TAXI. It lives in the offer box,
   not next to the cover itself - the cover already does it once. */
.vertical-taxi {
  display: none;
  position: absolute;
  top: 50%; right: 1.9rem;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--amber);
  opacity: 0.5;
  writing-mode: vertical-rl;
  user-select: none;
  pointer-events: none;
}
@media (min-width: 64rem) { .vertical-taxi { display: block; } }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.cta { margin: 0; max-width: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(224, 155, 31, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover, .btn:focus-visible {
  background: #FFCE73;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(224, 155, 31, 0.46);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--ink); color: var(--paper); box-shadow: none;
}

.btn--small {
  min-height: 2.9rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(224, 155, 31, 0.32);
}

.cta__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: none;
}
.section--night .cta__note,
.site-footer .cta__note,
.offer .cta__note,
.panel--no .cta__note { color: var(--on-night-soft); }

/* --------------------------------------------------------------------------
   8. Numbered sections
   -------------------------------------------------------------------------- */

.numbered { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 52rem) {
  .numbered { grid-template-columns: auto 1fr; align-items: start; }
}
.numbered__no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 2rem + 4.5vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--amber);
  -webkit-text-stroke: 0;
}
.section--night .numbered__no { color: var(--amber); }

/* --------------------------------------------------------------------------
   9. Full-bleed statement band over a photograph
   -------------------------------------------------------------------------- */

.statement {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(22rem, 52vw, 34rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: var(--on-night);
  overflow: hidden;
}
.statement__photo { position: absolute; inset: 0; z-index: -2; }
.statement__photo img { width: 100%; height: 100%; object-fit: cover; }
.statement__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 19, 14, 0.30) 0%,
    rgba(23, 19, 14, 0.72) 52%,
    rgba(23, 19, 14, 0.93) 100%
  );
}
.statement blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 3.2vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 20ch;
  text-wrap: balance;
}
.statement blockquote p { max-width: none; margin: 0; }
.statement cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--on-night-soft);
  max-width: 46ch;
}
.statement .amber { color: var(--amber); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */

.cards {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; } }

.cards > li {
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 17, 13, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cards > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 17, 13, 0.10);
}
.cards .no {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.cards h3 { margin-bottom: 0.55rem; max-width: 22ch; }
.cards p { margin-bottom: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. For / not for
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 50rem) { .split { grid-template-columns: 1fr 1fr; } }

.panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
}
.panel--yes {
  background: var(--paper);
  border: 1px solid var(--line);
}
.panel--no {
  background: var(--night);
  color: var(--on-night);
}
.panel--no h3 { color: var(--on-night); }
.panel h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  margin-bottom: 1.4rem;
  max-width: none;
}

.tick, .cross { list-style: none; margin: 0; padding: 0; }
.tick > li, .cross > li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.05rem;
  max-width: 34ch;
}
.tick > li:last-child, .cross > li:last-child { margin-bottom: 0; }
.tick > li::before, .cross > li::before {
  position: absolute; left: 0; top: -0.06em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35em;
  line-height: 1.15;
}
/* Neither font subset carries U+2192, so the marker is a guillemet. */
.tick > li::before { content: "\203A"; color: var(--amber-deep); }
.cross > li { color: var(--on-night-soft); }
.cross > li::before { content: "\00D7"; color: var(--amber); }

/* --------------------------------------------------------------------------
   12. Ink drawings
   -------------------------------------------------------------------------- */

.plate { margin: clamp(2.25rem, 5vw, 3.25rem) 0 0; max-width: 44rem; }
.plate img {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plate figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}
.plate--wide { max-width: 58rem; }
.plate--photo img { background: none; border: 0; }
.plate--photo figcaption { max-width: 46ch; }
.section--night .plate img { border-color: var(--night-line); }
.section--night .plate figcaption { color: var(--on-night-soft); }

/* --------------------------------------------------------------------------
   13. Author
   -------------------------------------------------------------------------- */

.author__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) {
  .author__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
/* The portrait source is 200 px square, so it is never shown larger. */
.portrait {
  margin: 0 0 1.6rem;
  width: 200px;
  max-width: 100%;
}
.portrait img {
  width: 100%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(20, 17, 13, 0.14);
}

@media (min-width: 34rem) {
  .portrait {
    float: left;
    margin: 0.25rem 1.6rem 1rem 0;
    width: 140px;
  }
  #author h2, #author .lead { clear: none; }
}

@media (min-width: 52rem) {
  .portrait { float: none; margin: 0 0 1.6rem; width: 200px; }
}

.price-frame {
  border-left: 4px solid var(--amber);
  padding-left: 1.4rem;
  margin-top: 2rem;
}
.price-frame p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Offer
   -------------------------------------------------------------------------- */

.offer {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.offer__photo { position: absolute; inset: 0; z-index: -2; }
.offer__photo img { width: 100%; height: 100%; object-fit: cover; }
.offer__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(23, 19, 14, 0.97) 0%,
    rgba(23, 19, 14, 0.94) 44%,
    rgba(23, 19, 14, 0.74) 72%,
    rgba(23, 19, 14, 0.52) 100%
  );
}
.offer__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.9rem, 4.5vw, 3.5rem);
}
@media (min-width: 50rem) {
  .offer__inner { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.offer__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 2.2rem + 6vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  color: var(--amber);
  margin: 0 0 1rem;
  max-width: none;
}
.offer__price::before { content: var(--price); }
.offer__what { color: var(--on-night-soft); margin-bottom: 1.9rem; max-width: 32ch; }
.offer__what strong { color: var(--on-night); }

.trust {
  list-style: none; margin: 0; padding: 0;
  font-size: 0.9rem; line-height: 1.5;
  color: var(--on-night-soft);
}
.trust > li {
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  position: relative;
  max-width: 28rem;
}
.trust > li:last-child { margin-bottom: 0; }
.trust > li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

/* --------------------------------------------------------------------------
   15. FAQ - native <details>, works without JavaScript
   -------------------------------------------------------------------------- */

.faq { margin-top: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  letter-spacing: -0.02em;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 0.5rem; top: 50%;
  width: 1.5rem; height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background: var(--amber);
  transition: transform 0.2s ease;
}
.faq summary::before {
  content: "";
  position: absolute; right: 1.05rem; top: 50%;
  width: 0.4rem; height: 0.4rem;
  margin-top: -0.32rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  z-index: 1;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] summary::before {
  transform: rotate(225deg);
  margin-top: -0.05rem;
}
.faq details > *:not(summary) { margin-bottom: 1.35rem; }
.faq details p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--space) 3rem;
  overflow: hidden;
}
.site-footer__photo { position: absolute; inset: 0; z-index: -2; }
.site-footer__photo img { width: 100%; height: 100%; object-fit: cover; }
.site-footer__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 19, 14, 0.62) 0%,
    rgba(23, 19, 14, 0.86) 52%,
    rgba(23, 19, 14, 0.97) 100%
  );
}
.site-footer h2 { color: var(--on-night); }
.site-footer .cta { margin-bottom: 3rem; }

.footer__cols {
  display: grid; gap: 1.5rem;
  border-top: 1px solid var(--night-line);
  padding-top: 2rem;
}
@media (min-width: 46rem) {
  .footer__cols { grid-template-columns: 1fr auto; align-items: end; }
}
.footer__cols p { color: var(--on-night-soft); margin: 0; }

.footer__nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
}
.footer__nav a {
  min-height: 2.75rem;
  display: inline-flex; align-items: center;
  color: var(--on-night);
}

/* Sits next to the footer links; empty until content.js fills it. */
.consent-slot:empty { display: none; }
.footer__cols .consent-slot { display: block; margin-top: 0.9rem; }
@media (min-width: 46rem) {
  .footer__cols { grid-template-columns: 1fr auto auto; }
  .footer__cols .consent-slot { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   17. Text pages (imprint, privacy, thank you)
   -------------------------------------------------------------------------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4rem) var(--space); }
.doc h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); max-width: 18ch; }
.doc h2 { margin-top: 2.8rem; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem); }
.doc h3 { margin-top: 2.1rem; font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); }
.doc h4 {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
}
.doc address { font-style: normal; margin-bottom: 1.1em; }

/* Long legal text: keep the measure readable and the many links quiet. */
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc a { word-break: break-word; }
.doc h2 {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.todo {
  border-left: 4px solid var(--amber);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.35rem 0 1.9rem;
  font-size: 0.92rem;
}
.todo p { max-width: 40rem; }
.todo p:last-child { margin-bottom: 0; }
.todo b {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.doc .tick > li { max-width: 40rem; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   18. Motion preference
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .btn:focus-visible, .cards > li:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .hero__photo, .statement__photo, .offer__photo, .bloom { display: none; }
  .section--night, .site-footer, .offer, .panel--no {
    background: #FFFFFF; color: #000000;
  }
  .btn { box-shadow: none; border: 1px solid #000000; }
  .skip-link { display: none; }
}

/* --------------------------------------------------------------------------
   20. Consent banner and switch
   Injected by assets/js/content.js. With JavaScript disabled none of this
   exists, no measurement runs, and the site is unaffected.
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--night);
  color: var(--on-night);
  border-top: 3px solid var(--amber);
  box-shadow: 0 -18px 44px rgba(20, 17, 13, 0.32);
}

.consent[hidden] { display: none; }

.consent__inner {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(1.15rem, 3vw, 1.75rem) var(--gutter);
  display: grid;
  gap: 1.15rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .consent__inner {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

.consent__title {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
  color: var(--on-night);
  max-width: none;
}

.consent__text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--on-night-soft);
  max-width: 62ch;
}

.consent__text a { color: var(--amber); }

.consent__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Ghost button on the dark band needs a light outline, not an ink one. */
.btn--on-night {
  color: var(--on-night);
  box-shadow: inset 0 0 0 2px var(--night-line);
}
.btn--on-night:hover,
.btn--on-night:focus-visible {
  background: var(--on-night);
  color: var(--ink);
  box-shadow: none;
}

.consent .btn:focus-visible,
.consent-switch:focus-visible { outline-color: var(--amber); }

/* The switch that lets the decision be changed later. */
.consent-switch {
  font: inherit;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--on-night);
  background: none;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  min-height: 2.75rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.consent-switch:hover {
  color: var(--amber);
  border-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  .consent-switch { transition: none; }
}

@media print {
  .consent, .consent-switch { display: none; }
}
