/* WDC challenge landing page
   One stylesheet, no build step. Tokens first, then base, layout, components. */

/* Fonts: self-hosted so no visitor data goes to a third-party font CDN (GDPR).
   KH Teka is licensed by Fadel. Only Regular is installed for now, so the
   browser is told not to fake bold (see font-synthesis on body). */
@font-face {
  font-family: "KH Teka";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/KHTeka-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --color-bg: #f3f8ff;
  --color-surface: #ffffff;
  --color-ink: #111316;
  --color-muted: #4b5360;
  --color-numeral: #5f6773;
  --color-border: #dce6f5;
  --color-border-soft: #e3e8ef;
  --color-rule: #c9d6e8;
  /* Field borders: 3.14:1 on the sign-up blue and 3.63:1 on white, above
     the 3:1 a field's outline needs to be visible (WCAG 1.4.11). */
  --color-input-border: #7d8797;
  --color-placeholder: #6b7380;
  --color-photo: #e9f1fc;
  --color-highlight: #fde5da;
  --color-accent: #ec4409;
  --color-accent-hover: #d23c07;
  /* Accent for small text. The brand orange is 3.65:1 on the page background,
     under the 4.5:1 small text needs; this is the same hue at 4.71:1. */
  --color-accent-text: #cc3a07;
  /* The button's lower edge, and accent text on the sign-up boxes' blue
     (5.26:1 there, where --color-accent-text drops to 4.36:1). */
  --color-accent-edge: #b5340a;
  /* Errors only, so orange always means "press this". The WDC app's error
     red: 8.57:1 on the page, 7.92:1 on the sign-up blue, 9.14:1 on a field. */
  --color-error: #960000;
  /* The two sign-up boxes, top and bottom: the only tinted surfaces. */
  --color-card: #e7efff;
  --color-card-border: #cddcf2;

  --font-sans: "KH Teka", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page-max: 1240px;
  --page-gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(56px, 8vw, 112px);
  --column-gap: clamp(24px, 4vw, 56px);
  --radius-control: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Lets block-size animate to and from "auto" (used by the FAQ accordion). */
  interpolate-size: allow-keywords;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
figure {
  margin: 0;
}

a {
  color: var(--color-ink);
}

a:hover {
  color: var(--color-muted);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  /* --consent-space is set by consent.js while the cookie box is open. */
  padding: 0 var(--page-gutter) calc(56px + var(--consent-space, 0px));
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
}

.site-header__logo {
  display: block;
  height: 56px;
  width: auto;
}

.site-header__meta {
  font-size: 14px;
  color: var(--color-muted);
}

.section {
  border-top: 1px solid var(--color-border);
  padding: var(--section-space) 0;
}

.section--flush-top {
  border-top: 0;
  padding-top: clamp(56px, 7vw, 96px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack--loose {
  gap: 32px;
}

/* Typography */

/* Small sentence-case labels. The eyebrow is plain text; the status label
   carries the page's one live dot. */
.eyebrow,
.status {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-accent-text);
}

/* The gap clears the ring at full size: its reach past the dot, plus 10px
   of breathing room. */
.status {
  --dot-size: 8px;
  --ring-scale: 2.5;
  display: flex;
  align-items: center;
  gap: calc(var(--dot-size) * (var(--ring-scale) - 1) / 2 + 10px);
}

.status__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-accent);
}

/* The ring pulses out of the dot. Only transform and opacity animate, so it
   runs on the compositor and stays smooth. Scale and fade use separate
   curves: the ring spreads fast and settles (ease-out) while fading evenly
   (linear), so it stays visible as it grows. Each loop starts exactly on top
   of the dot, so the restart is invisible. Use one per page. */
.status__dot {
  position: relative;
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  pointer-events: none;
  will-change: transform, opacity;
  animation:
    live-dot-grow 2s var(--ease-out) infinite,
    live-dot-fade 2s linear infinite;
}

@keyframes live-dot-grow {
  from { transform: scale(1); }
  to { transform: scale(var(--ring-scale)); }
}

@keyframes live-dot-fade {
  from { opacity: 0.45; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot::after {
    display: none;
  }
}

.section-title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.lede {
  font-size: 19px;
  line-height: 1.45;
  max-width: 40ch;
}

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

.numbered {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  line-height: 1.4;
  counter-reset: item;
}

.numbered li {
  display: flex;
  gap: 16px;
  counter-increment: item;
}

.numbered li::before {
  content: counter(item);
  min-width: 14px;
  color: var(--color-numeral);
}

.numbered--compact {
  gap: 12px;
  font-size: 17px;
  line-height: 1.45;
}

.numbered--compact li {
  gap: 14px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.hero__lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--color-muted);
  max-width: 42ch;
}

.hero__dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.date-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.date-card__label {
  font-size: 12px;
  color: var(--color-muted);
}

.date-card__value {
  font-size: 17px;
  font-weight: 500;
}

.hero__times {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-muted);
}

.hero__credits {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 46ch;
}

/* Sign-up card and form controls */

/* The sign-up boxes are the only tinted surfaces on the page: flat, so the
   color alone sets them apart from the white panels, and the white fields
   read as fields. */
.signup-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
}

.signup-card .status {
  color: var(--color-accent-edge);
}

.signup-card__title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.signup-card__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.45;
}

.signup-card__proof {
  border-top: 1px solid var(--color-card-border);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
}

/* Label and error share one line, so a message never moves the form. At
   very large zoom they wrap onto two lines rather than squeeze. */
.field__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

/* Form messages, written by assets/forms.js in place of the browser's
   bubble. */
.field__error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-error);
}

.field__error::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: currentColor;
}

.field__error[hidden] {
  display: none;
}

/* A 2px edge without moving anything: the 1px border plus a 1px inset. */
.input[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: inset 0 0 0 1px var(--color-error);
}

/* A flagged field keeps one color when it has focus: its focus ring turns
   red too, rather than the orange ring every other field gets. */
.input[aria-invalid="true"]:focus-visible {
  outline-color: var(--color-error);
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-control);
}

.input::placeholder {
  color: var(--color-placeholder);
}

/* A flat key with a solid 3px edge, no gradient and no blur. Hover lifts it
   1px off its edge; pressing drops it flush in 60ms, and it springs back in
   180ms. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-accent);
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: 0 3px 0 var(--color-accent-edge);
  transform: translateY(0);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:active {
  color: #ffffff;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--color-accent-edge);
  }

  .button:hover .button__icon {
    transform: translateX(2px);
  }
}

.button:active {
  transform: translateY(3px);
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 0 var(--color-accent-edge);
  transition-duration: 60ms;
}

.button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 180ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button__icon {
    transition: none;
  }
}

.fineprint {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
}

.fineprint a {
  color: var(--color-muted);
}

/* "What you'll learn" intro */

.learn-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: clamp(56px, 7vw, 96px);
}

/* Feature rows: figure, arrow, text */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 540px) 32px minmax(0, 1fr);
  align-items: center;
  gap: var(--column-gap);
}

.feature--reverse {
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 540px);
}

.feature--narrow {
  grid-template-columns: minmax(0, 400px) 32px minmax(0, 1fr);
}

.arrow {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.arrow--left {
  transform: scaleX(-1);
}

.arrow--down {
  transform: rotate(90deg);
}

/* Panels */

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.panel__caption {
  font-size: 15px;
  font-weight: 500;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.chart__accent {
  fill: var(--color-accent);
}

.chart__muted {
  fill: none;
  stroke: #9aa4b2;
  stroke-width: 1.5;
}

/*
  Chart motion. Each chart plays its argument once, scrubbed by scroll, and
  lands on the static design above. Browsers without scroll-driven
  animations, and visitors who ask for reduced motion, get the static chart.
  Keyframe percentages are progress through the chart's animation-range:
  from the chart 80% entered until its center reaches the viewport center.
  Movement runs 10% to 70% on a symmetric ease; each fade is timed to the
  moment the moving line or dots reach the element it belongs to.
*/
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .chart--floor { view-timeline-name: --chart-floor; }
    .chart--lane  { view-timeline-name: --chart-lane; }

    .chart--floor :is(.chart__floor, .chart__old-label, .chart__floor-label, .chart__muted, .chart__below, .chart__accent),
    .chart--lane :is(.chart__lane, .chart__lane-label, .chart__accent) {
      animation-duration: 1ms; /* non-zero, so engines without duration: auto still run it */
      animation-fill-mode: both;
      animation-timing-function: linear;
      animation-range: entry 80% cover 50%;
    }
    .chart--floor :is(.chart__floor, .chart__old-label, .chart__floor-label, .chart__muted, .chart__below, .chart__accent) {
      animation-timeline: --chart-floor;
    }
    .chart--lane :is(.chart__lane, .chart__lane-label, .chart__accent) {
      animation-timeline: --chart-lane;
    }

    /* "Decent no longer pays": the floor rises from the old floor to today's,
       and the decent row drops below it as it passes (26% to 34%). */
    .chart--floor .chart__floor       { animation-name: chart-floor-rise; }
    .chart--floor .chart__old-label   { animation-name: chart-fade-18-30; }
    .chart--floor .chart__muted       { animation-name: chart-drop-below; }
    .chart--floor .chart__below       { animation-name: chart-fade-44-58; }
    .chart--floor .chart__floor-label { animation-name: chart-fade-55-70; }
    .chart--floor .chart__accent      { animation-name: chart-turn-accent-80-90; }

    /* "Who does both": three designers move right, into the lane, which
       appears as the first of them reaches it (32%). */
    .chart--lane .chart__accent       { animation-name: chart-move-into-lane, chart-turn-accent-38-46; }
    .chart--lane .chart__lane         { animation-name: chart-fade-30-55; }
    .chart--lane .chart__lane-label   { animation-name: chart-fade-55-72; }
  }
}

@keyframes chart-floor-rise {
  0%, 10% {
    transform: translateY(120px);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  70%, 100% { transform: translateY(0); }
}

@keyframes chart-move-into-lane {
  0%, 10% {
    transform: translateX(-232px);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  70%, 100% { transform: translateX(0); }
}

@keyframes chart-drop-below {
  0%, 26% { fill: #111316; stroke: rgb(154 164 178 / 0); }
  34%, 100% { fill: rgb(17 19 22 / 0); stroke: #9aa4b2; }
}

@keyframes chart-turn-accent-80-90 { 0%, 80% { fill: #111316; } 90%, 100% { fill: var(--color-accent); } }
@keyframes chart-turn-accent-38-46 { 0%, 38% { fill: #111316; } 46%, 100% { fill: var(--color-accent); } }

@keyframes chart-fade-18-30 { 0%, 18% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes chart-fade-30-55 { 0%, 30% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes chart-fade-44-58 { 0%, 44% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes chart-fade-55-70 { 0%, 55% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes chart-fade-55-72 { 0%, 55% { opacity: 0; } 72%, 100% { opacity: 1; } }

.md-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
}

.md-card__caption {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border-soft);
}

.md-card__body {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.md-card__heading {
  font-weight: 500;
}

.md-card__line {
  color: var(--color-muted);
}

.md-card__line--highlight {
  color: var(--color-ink);
  background: var(--color-highlight);
  padding: 8px 10px;
  margin: 0 -10px;
}

.teacher {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* The portrait is 800x1000 (4:5). The background color shows only while it
   loads, and is close to the photo's own backdrop so the swap is quiet. */
.teacher__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-photo);
}

.teacher__name {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.teacher__role {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
}

/* Is this for you? */

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fit__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.fit__title {
  font-size: 20px;
  font-weight: 500;
}

/* FAQ: native <details> accordion, no JavaScript.
   The arrow points right when closed and turns down when open. Where the browser
   supports ::details-content (Chrome, Edge, Safari), the answer also slides open;
   elsewhere it opens instantly. */

.faq {
  border-bottom: 1px solid var(--color-rule);
}

.faq__item {
  border-top: 1px solid var(--color-rule);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__question {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  transition: color 200ms var(--ease-out);
}

.faq__summary:hover .faq__question {
  color: var(--color-muted);
}

/* The same arrow points right on the buttons, where it means "go". Here it
   points down to where the answer opens, and flips up to close it. */
.faq__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--color-accent);
  transform: rotate(90deg);
  transition: transform 360ms var(--ease-out);
}

.faq__item[open] .faq__icon {
  transform: rotate(-90deg);
}

.faq__answer {
  padding: 0 44px 26px 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-muted);
}

.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size 360ms var(--ease-out),
    opacity 280ms var(--ease-out),
    content-visibility 360ms allow-discrete;
}

.faq__item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .faq__question,
  .faq__icon,
  .faq__item::details-content {
    transition: none;
  }
}

/* Closing call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(36px, 6vw, 80px);
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
}

.cta__title {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.cta__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 580px;
  padding-top: 8px;
}

.cta__form .input {
  flex: 1 1 260px;
  min-width: 0;
  height: 58px;
}

.cta__form .button {
  flex: 1 0 auto;
}

.cta__error {
  flex: 1 0 100%;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-muted);
}

/* A button that reads as a link, for actions that open something on the
   page (Cookie settings) rather than going anywhere. */
.link-button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Cookie box. Rendered by consent.js only when the Meta Pixel is set up.
   Flat white panel on an ink rule; Accept and Reject are identical, because
   refusing has to be as easy as accepting. */
.consent {
  position: fixed;
  left: var(--page-gutter);
  bottom: 16px;
  z-index: 10;
  width: min(420px, calc(100% - 2 * var(--page-gutter)));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-ink);
  animation: consent-in 200ms var(--ease-out);
}

.consent[hidden] {
  display: none;
}

.consent__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent__title:focus {
  outline: none;
}

.consent__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-muted);
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.consent__button {
  height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition:
    background-color 120ms var(--ease-out),
    color 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .consent__button:hover {
    color: var(--color-surface);
    background: var(--color-ink);
  }
}

.consent__button:active {
  color: var(--color-surface);
  background: var(--color-ink);
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

  .consent__button {
    transition: none;
  }
}

/* Legal pages: one readable column, sections divided by rules. */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal__title {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
}

.legal .lede {
  max-width: none;
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  line-height: 1.6;
}

.legal__section h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.legal__section p,
.legal__section li {
  color: var(--color-muted);
}

.legal__section strong {
  color: var(--color-ink);
  font-weight: 500;
}

.legal__section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.legal__section a {
  color: var(--color-ink);
}

.legal__facts {
  display: grid;
  gap: 10px;
}

.legal__facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
}

.legal__facts dt {
  font-weight: 500;
}

.legal__facts dd {
  margin: 0;
  color: var(--color-muted);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-ink);
}

/* Keeps "Article 6(1)(f)" on one line instead of breaking at a parenthesis. */
.legal__cite {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .legal__facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Thank-you page */

.thanks {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  counter-increment: step;
}

.step__title {
  display: flex;
  gap: 14px;
  font-size: 20px;
  font-weight: 500;
}

.step__title::before {
  content: counter(step);
  color: var(--color-numeral);
  font-weight: 400;
}

.step__body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}

.session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-soft);
}

.session__name {
  font-size: 16px;
  font-weight: 500;
}

.session__when {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
}

.session__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* Small screens: stack every row and drop the sideways arrows,
   which only make sense when the figure sits beside the text. */

@media (max-width: 960px) {
  .hero,
  .feature,
  .feature--reverse,
  .feature--narrow {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature .arrow {
    display: none;
  }

  .feature--narrow .teacher {
    max-width: 400px;
  }

  .fit {
    grid-template-columns: minmax(0, 1fr);
  }
}
