/* Marchock landing page — single stylesheet, no build step, no external requests.
   Design language mirrors the React app (associations_react_web): 16 px card radii,
   8 px control radii, soft two-layer card shadow, brand #2b5fe3, light surfaces. */

/* ==========================================================================
   1. Fonts — self-hosted, subset to latin, weights 400 and 700 only
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Tokens — names kept from the document styleguide, values aligned to the app
   ========================================================================== */

:root {
  /* Brand — identical to the app's --brand token. */
  --blue: #2b5fe3;
  --blue-strong: #1e4bc4;
  --blue-line: #d5e1fb;

  --ink: #101828;
  --body: #3c4658;
  --muted: #5c6675;
  /* Darkened from the styleguide's #9aa3b2 (2.58:1) so footer copy clears AA. */
  --faint: #6b7280;

  --tint: #f5f8ff;
  --tint-soft: #f9fafb;
  --note-bg: #eef3fe;
  --rule: #e6e9ef;
  --placeholder: #c2410c;

  --surface: #ffffff;
  --page: #f7f8fa;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Radii — app scale: lg 8, xl 12, 2xl 16, 3xl 22. */
  --radius-control: 8px;
  --radius-chip: 12px;
  --radius-card: 16px;
  --radius-panel: 22px;

  /* Shadows — copied from the app's --shadow-card / --shadow-dialog. */
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.04), 0 12px 28px rgba(16, 24, 40, 0.08);
  --shadow-dialog: 0 30px 70px -20px rgba(16, 24, 40, 0.45);

  --shell-max: 1180px;
  --shell-gutter: 20px;
  --section-gap: 72px;
  --header-height: 64px;
}

@media (min-width: 900px) {
  :root {
    --shell-gutter: 40px;
    --section-gap: 112px;
  }
}

/* ==========================================================================
   3. Reset and base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets must clear the sticky header. */
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Card grids and tables must never push the page sideways. */
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

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

/* ==========================================================================
   4. Layout
   ========================================================================== */

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

.section {
  padding-block: var(--section-gap);
}

.section--page {
  background: var(--page);
}

.section__head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.section__intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.section__head--center .section__intro {
  margin-inline: auto;
}

.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 0 0 var(--radius-control) 0;
  color: var(--blue);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   5. Building blocks
   ========================================================================== */

/* Kicker — letter-spaced label above a heading. Spacing follows the app's
   SectionLabel (0.07em), not the print styleguide's wider 0.18em. */
.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Bar — 96 x 4 px blue rectangle. Exactly once on the page (hero). */
.bar {
  width: 96px;
  height: 4px;
  margin-bottom: 26px;
  background: var(--blue);
  border-radius: 999px;
}

/* Icon chip — mirrors the app's IconChip: brand at 10 % opacity, 12 px radius. */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: rgba(43, 95, 227, 0.1);
  border-radius: var(--radius-chip);
  color: var(--blue);
}

.chip--sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Card — app Card component: 16 px radius, hairline border, soft shadow. */
.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card__title {
  margin-top: 18px;
  font-size: 1.08rem;
}

.card__text {
  margin-top: 8px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid {
    gap: 22px;
  }
}

/* Note box — washed surface, blue edge left, letter-spaced label on top. */
.note {
  padding: 22px 26px;
  background: var(--note-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.note__label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.note__text {
  color: var(--body);
}

/* Definition rows — label left, value right, hairline below. */
.definitions {
  border-top: 1px solid var(--rule);
}

.definitions__row {
  display: grid;
  gap: 2px 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}

.definitions__label {
  font-weight: 700;
  color: var(--ink);
}

.definitions__value {
  color: var(--muted);
}

@media (min-width: 640px) {
  .definitions__row {
    grid-template-columns: 190px 1fr;
  }
}

/* Check list — clean itemised list with a blue tick. Used for benefits and
   "included in every price". */
.checks {
  display: grid;
  gap: 12px;
}

.checks > li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--body);
}

.checks svg {
  margin-top: 4px;
  color: var(--blue);
}

.checks--muted > li {
  color: var(--muted);
}

@media (min-width: 640px) {
  .checks--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
  }
}

/* Feature list inside module blocks. */
.dotted {
  display: grid;
  gap: 10px;
}

.dotted > li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.dotted > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.small {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Placeholder — unfilled information only. Marked by colour AND brackets so the
   meaning survives without colour perception. */
.placeholder {
  color: var(--placeholder);
  font-weight: 700;
}

/* ==========================================================================
   6. Buttons — app Button component: 8 px radius, semibold, opacity hover
   ========================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button--primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.button--primary:hover {
  opacity: 0.9;
}

.button--secondary {
  background: var(--surface);
  border-color: var(--rule);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--tint-soft);
  border-color: var(--blue-line);
}

.button--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

/* ==========================================================================
   7. Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  /* Falls back to the solid colour where backdrop-filter is unsupported. */
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.wordmark__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.header__link:hover {
  color: var(--ink);
}

/* Mobile shows wordmark and button only — no burger menu. */
@media (max-width: 767px) {
  .header__link {
    display: none;
  }

  .header .button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .wordmark {
    font-size: 0.95rem;
  }
}

/* At 320 px the letter-spaced wordmark plus the button exceed the row. */
@media (max-width: 360px) {
  .wordmark {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    gap: 8px;
  }

  .wordmark__mark {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   8. Hero — light, like the app's own surfaces
   ========================================================================== */

.hero {
  position: relative;
  padding-block: 56px 64px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--surface) 78%);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
  /* "Kommunikationsplattform" is 22 characters — long enough to exceed a 390 px
     viewport at the clamp minimum, so allow it to break rather than overflow. */
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Below the first breakpoint the headline scales with the viewport instead of
   sitting at the clamp minimum, which keeps the long compound word intact. */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.1rem);
  }
}

.hero__lead {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__lead + .hero__lead {
  margin-top: 14px;
}

.hero .actions {
  margin-top: 34px;
}

.hero__figure {
  margin: 0;
}

.shot--hero {
  box-shadow: var(--shadow-lift);
}

@media (min-width: 900px) {
  .hero {
    padding-block: 84px 104px;
  }

  .hero__grid {
    /* The text column needs enough width to keep the headline on two lines and the
       two buttons side by side; the screenshot takes the rest plus the bleed. */
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 48px;
  }

  /* Let the screenshot bleed toward the viewport edge on wide screens. */
  .hero__figure {
    margin-right: calc((100vw - var(--shell-max)) / -2 - 8px);
  }
}

@media (min-width: 1400px) {
  .hero__figure {
    margin-right: calc((100vw - var(--shell-max)) / -2 - 40px);
  }
}

/* Trust row under the hero. */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 40px;
  padding-block: 26px 0;
  border-top: 1px solid var(--rule);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust__item svg {
  color: var(--blue);
}

/* ==========================================================================
   9. Screenshots
   ========================================================================== */

.shot {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}

.shot img {
  width: 100%;
}

/* Wraps a screenshot so a click opens it enlarged in the dialog. */
.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.shot-button .shot {
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.shot-button:hover .shot {
  border-color: var(--blue-line);
  box-shadow: var(--shadow-lift);
}

figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ==========================================================================
   10. Module blocks — alternating sides
   ========================================================================== */

.module {
  display: grid;
  gap: 26px;
  padding-block: 44px;
  border-top: 1px solid var(--rule);
  align-items: center;
}

.module:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.module__title {
  margin-top: 16px;
  font-size: 1.45rem;
}

.module__list {
  margin-top: 18px;
}

.module__benefit {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--tint);
  border-radius: var(--radius-chip);
  color: var(--body);
}

.module__benefit svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--blue);
}

.module__figure {
  margin: 0;
}

.module__figure .shot {
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .module {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    padding-block: 64px;
  }

  /* Every second module puts the screenshot on the left. */
  .module:nth-of-type(even) .module__figure {
    order: -1;
  }
}

/* Trailing link that leads to the matching subpage. */
.section__cta {
  margin-top: 32px;
}

/* Compact list of the remaining modules. */
.module-tags {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.module-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-chip);
  color: var(--ink);
  font-weight: 700;
}

.module-tag span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

@media (min-width: 640px) {
  .module-tags {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .module-tags {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   11. Price cards
   ========================================================================== */

.plans {
  display: grid;
  gap: 20px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

/* Recommended tier — blue outline instead of a second colour. */
.plan--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 12px;
  background: var(--blue);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan__name {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.plan__members {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}

.plan__amount {
  color: var(--ink);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__unit {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.plan__yearly {
  margin-top: 10px;
  color: var(--blue-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.plan__alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Test and large-club rows below the three cards. */
.plan-rows {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.plan-row {
  display: grid;
  gap: 6px 24px;
  padding: 22px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.plan-row--test {
  background: var(--tint);
  border-color: var(--blue-line);
}

.plan-row__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.plan-row__name svg {
  color: var(--blue);
}

.plan-row__value {
  color: var(--muted);
}

.plan-row__value strong {
  color: var(--ink);
}

@media (min-width: 640px) {
  .plan-row {
    grid-template-columns: 220px 1fr;
    align-items: center;
  }
}

.subhead {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   12. People
   ========================================================================== */

.person__photo {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  object-fit: cover;
}

.person__photo--empty {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--tint-soft);
  border-style: dashed;
  border-color: var(--placeholder);
  color: var(--placeholder);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.person__role {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-line__label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-line__value {
  display: block;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

a.contact-line__value {
  color: var(--blue);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq {
  max-width: 78ch;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-chip);
  box-shadow: var(--shadow-card);
}

.faq details[open] {
  border-color: var(--blue-line);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Plus / minus drawn in CSS — no icon needed for this control. */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 27px;
  background: var(--blue);
  border-radius: 1px;
}

.faq summary::before {
  width: 13px;
  height: 2px;
}

.faq summary::after {
  width: 2px;
  height: 13px;
  right: 25.5px;
  top: 21.5px;
  transition: transform 150ms ease;
}

.faq details[open] summary::after {
  transform: scaleY(0);
}

.faq__answer {
  padding: 0 20px 20px;
  color: var(--muted);
  max-width: 68ch;
}

/* ==========================================================================
   14. Closing band and footer
   ========================================================================== */

.closing {
  background: var(--tint);
  text-align: center;
}

.closing__claim {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.closing__brand {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.closing .actions {
  margin-top: 30px;
  justify-content: center;
}

.footer {
  padding-block: 48px 36px;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 28px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer__list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer__legal a {
  color: var(--ink);
  font-weight: 700;
}

.footer__baseline {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.83rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__legal {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   15. Legal subpages
   ========================================================================== */

.legal {
  padding-block: 48px var(--section-gap);
}

.legal__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  /* "Datenschutzerklärung" is 20 characters — long enough to exceed a 320 px
     viewport at the clamp minimum, so allow it to break. */
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 400px) {
  .legal__title {
    font-size: clamp(1.5rem, 7.5vw, 1.9rem);
  }
}

.legal .note {
  margin-block: 32px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.4rem;
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.legal p {
  margin-top: 14px;
  max-width: 68ch;
}

.legal .dotted,
.legal .definitions {
  margin-top: 16px;
  max-width: 68ch;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-weight: 700;
  text-decoration: none;
}

.backlink:hover {
  text-decoration: underline;
}

/* ==========================================================================
   16. Screenshot dialog
   ========================================================================== */

.lightbox {
  width: min(94vw, 1120px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(16, 24, 40, 0.7);
}

.lightbox__image {
  width: 100%;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
}

.lightbox__caption {
  font-size: 0.88rem;
  color: var(--muted);
}

.lightbox__close {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--tint-soft);
}

/* ==========================================================================
   17. Motion — one subtle fade-in, disabled for reduced motion
   ========================================================================== */

/* Only applied once main.js confirms JS is running, so no-JS keeps content visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   18. Print
   ========================================================================== */

@media print {
  .header,
  .closing .actions,
  .hero .actions {
    display: none;
  }

  body {
    color: #000000;
  }

  .card,
  .plan {
    box-shadow: none;
  }
}
