/* mitlernen.com — site.css
   One stylesheet for every page. Implements docs/DESIGN.md.
   CSP: no inline styles anywhere, so everything lives here. */

/* ---------- Fonts (self-hosted, OFL-1.1, see /credits/) ---------- */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  color-scheme: light dark;

  --c-bg: #fdfaf5;
  --c-bg-alt: #f6ede1;
  --c-surface: #ffffff;
  --c-surface-muted: #ebeef6;
  --c-surface-teal: #e2f4f2;
  --c-border: #e6ded2;
  --c-border-strong: #7a8499;

  --c-text: #13294b;
  --c-text-muted: #47556e;
  --c-link: #0b6b75;
  --c-link-hover: #13294b;

  --c-coral: #ee5d55;
  --c-teal: #2aa3ae;
  --c-sand-deco: #f1d9c0;

  --c-btn-bg: #d43c34;
  --c-btn-bg-hover: #b9302a;
  --c-btn-text: #ffffff;
  --c-btn2-bg: #ebeef6;
  --c-btn2-bg-hover: #dde2ee;
  --c-btn2-text: #13294b;

  --c-pill-app-bg: #ddf1ee;
  --c-pill-app-text: #0a5c63;
  --c-pill-soon-bg: #fbe9cf;
  --c-pill-soon-text: #7a4a06;
  --c-pill-pre-bg: #fde3e0;
  --c-pill-pre-text: #a3271f;

  --c-success: #1b6e45;
  --c-error: #b3261e;
  --c-focus: #13294b;

  --c-footer-bg: #13294b;
  --c-footer-text: #f4efe7;
  --c-footer-muted: #c9d1de;
  --c-footer-link: #9be7ec;
  --c-footer-focus: #9be7ec;

  --shadow-1: 0 1px 2px rgb(19 41 75 / .06), 0 2px 8px rgb(19 41 75 / .05);
  --shadow-2: 0 2px 4px rgb(19 41 75 / .05), 0 10px 28px rgb(120 70 40 / .10);
  --shadow-3: 0 4px 10px rgb(19 41 75 / .06), 0 24px 60px rgb(120 70 40 / .14);
  --shadow-btn: 0 2px 0 rgb(150 40 35 / .35), 0 8px 20px rgb(212 60 52 / .25);

  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --fs-stat: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-pad: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --w-content: 72rem;
  --w-text: 42rem;
  /* sticky header height + 16px; used only by html { scroll-padding-top } */
  --header-offset: 7.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0d1a2d;
    --c-bg-alt: #12223a;
    --c-surface: #172a45;
    --c-surface-muted: #1f3352;
    --c-surface-teal: #123b47;
    --c-border: #2a3f5e;
    --c-border-strong: #7f8da6;

    --c-text: #f4efe7;
    --c-text-muted: #b7c2d3;
    --c-link: #86dce2;
    --c-link-hover: #f4efe7;

    --c-coral: #ff7b72;
    --c-teal: #4cc3cc;
    --c-sand-deco: #3a3328;

    --c-btn-bg: #ff8077;
    --c-btn-bg-hover: #ff978f;
    --c-btn-text: #0d1a2d;
    --c-btn2-bg: #1f3352;
    --c-btn2-bg-hover: #2a4166;
    --c-btn2-text: #f4efe7;

    --c-pill-app-bg: #14454d;
    --c-pill-app-text: #b9f0ef;
    --c-pill-soon-bg: #4a3512;
    --c-pill-soon-text: #ffdda6;
    --c-pill-pre-bg: #4e1e22;
    --c-pill-pre-text: #ffc4be;

    --c-success: #7edca8;
    --c-error: #ffa39c;
    --c-focus: #9be7ec;

    --c-footer-bg: #08121f;
    --c-footer-text: #f4efe7;
    --c-footer-muted: #b7c2d3;
    --c-footer-link: #86dce2;
    --c-footer-focus: #9be7ec;

    --shadow-1: 0 1px 2px rgb(0 0 0 / .30);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .25), 0 10px 28px rgb(0 0 0 / .30);
    --shadow-3: 0 4px 10px rgb(0 0 0 / .30), 0 24px 60px rgb(0 0 0 / .40);
    --shadow-btn: 0 2px 0 rgb(0 0 0 / .35), 0 8px 20px rgb(255 128 119 / .18);
  }
}

@media (min-width: 64em) {
  :root {
    --header-offset: 5rem;
  }
}

/* Short viewports (landscape phones, 200–400% zoom): don't pin the header. */
@media (max-height: 30em) {
  :root {
    --header-offset: 1rem;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:lang(de) {
  hyphens: auto;
  -webkit-hyphens: auto;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--c-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -.015em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -.01em;
}

h3,
h4 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

strong,
b {
  font-weight: 600;
}

a {
  color: var(--c-link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-link-hover);
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: inherit;
}

input:focus-visible {
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.nowrap {
  white-space: nowrap;
}

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

.container {
  width: 100%;
  max-width: calc(var(--w-content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 100;
  transform: translateY(-200%);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--c-btn-bg);
  color: var(--c-btn-text);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
  color: var(--c-btn-text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

@media (max-height: 30em) {
  .site-header {
    position: static;
  }
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--sp-4);
  padding-block: var(--sp-2);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none; /* the wordmark never shrinks or breaks; the nav gives way */
  min-height: 48px;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--r-sm);
}

.brand:hover {
  color: var(--c-text);
}

.brand img {
  width: 36px;
  height: 36px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.1;
}

.wordmark svg {
  width: 48px;
  height: 8px;
}

.wave-glyph path {
  fill: none;
  stroke: var(--c-coral);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Below 64em the nav is a second row of chips that scrolls sideways; the
   right-edge fade shows there is more. */
.main-nav {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  margin-inline: calc(-1 * var(--gutter));
}

.main-nav ul {
  display: flex;
  gap: var(--sp-1);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: var(--sp-1) var(--gutter) var(--sp-1);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}

.main-nav ul::-webkit-scrollbar {
  display: none;
}

.main-nav li {
  flex: none;
  scroll-snap-align: start;
}

.main-nav li:last-child {
  padding-right: 48px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--c-surface-muted);
  color: var(--c-text);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--c-btn2-bg-hover);
}

.lang-switch {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lang-switch .icon {
  display: none;
  width: 16px;
  height: 16px;
  color: var(--c-text-muted);
}

.lang-switch ul {
  display: flex;
  padding: 3px;
  gap: 2px;
  list-style: none;
  border-radius: var(--r-pill);
  background: var(--c-surface-muted);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-switch a:hover {
  background: var(--c-btn2-bg-hover);
}

.lang-switch a[aria-current] {
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}

@media (min-width: 64em) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 64px;
    padding-block: 0;
  }

  /* Inline nav. Safety net for large text: it scrolls (with the fade) rather
     than painting over the brand. */
  .main-nav {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    margin-inline: 0;
  }

  .main-nav ul {
    min-width: 0;
    padding: 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }

  .main-nav li:last-child {
    padding-right: 24px;
  }

  .lang-switch {
    order: 3;
    margin-left: 0;
  }

  .main-nav ul {
    gap: 0;
  }

  .main-nav a {
    padding: 0 11px;
    background: transparent;
  }

  .main-nav a:hover {
    background: var(--c-surface-muted);
  }

  .lang-switch .icon {
    display: block;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-head {
  max-width: var(--w-text);
  margin-bottom: var(--sp-7);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-link);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 20px;
  height: 6px;
}

.section-head .eyebrow {
  margin-bottom: var(--sp-3);
}

.section-intro {
  margin-top: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.wave {
  display: block;
  width: 100%;
  height: clamp(24px, 4vw, 56px);
  margin-bottom: -1px;
}

/* ---------- Pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.15;
}

.pill .icon {
  width: 14px;
  height: 14px;
}

.pill-app {
  background: var(--c-pill-app-bg);
  color: var(--c-pill-app-text);
}

.pill-soon {
  background: var(--c-pill-soon-bg);
  color: var(--c-pill-soon-text);
}

.pill-pre {
  background: var(--c-pill-pre-bg);
  color: var(--c-pill-pre-text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  min-height: 52px;
  padding: 0 28px;
  background: var(--c-btn-bg);
  color: var(--c-btn-text);
  font-size: 1.0625rem;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--c-btn-bg-hover);
  color: var(--c-btn-text);
}

.btn-primary:active {
  box-shadow: 0 1px 0 rgb(150 40 35 / .35);
}

.btn-secondary {
  background: var(--c-btn2-bg);
  color: var(--c-btn2-text);
}

.btn-secondary:hover {
  background: var(--c-btn2-bg-hover);
  color: var(--c-btn2-text);
}

.btn[aria-disabled="true"] {
  opacity: .65;
  cursor: progress;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn .icon,
  .arrow-link .icon {
    transition: transform .15s ease;
  }

  .btn:hover .icon,
  .arrow-link:hover .icon {
    transform: translateX(2px);
  }
}

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

.hero {
  position: relative;
  /* Clip only sideways (the blob overhangs); never hide content vertically. */
  overflow: hidden;
  overflow: clip visible;
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "text"
    "visual"
    "form";
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}

/* Long words (German, enlarged text) break instead of widening the column. */
.hero h1,
.hero .lead,
.hero .eyebrow,
.hero .tagline,
.hero .platforms,
.form-panel {
  overflow-wrap: anywhere;
}

.hero-text {
  grid-area: text;
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.hero-badges {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
}

.hero .lead {
  max-width: 38rem;
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-link);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.tagline svg {
  width: 24px;
  height: 8px;
}

.platforms {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

/* Visual group: blob, phone, crab, sand, bubbles */

/* The crab stands beside the phone and may overlap only the phone's 10px
   frame (8px), never the screen: crab width = stage width - phone width + 8px. */
.hero-visual {
  --phone-w: 200px;
  --crab-max: 200px;
  grid-area: visual;
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 28px;
}

.blob {
  position: absolute;
  inset: 6% -8% 4% -6%;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  background: var(--c-surface-teal);
}

.sand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 40px;
  background: radial-gradient(ellipse at center, var(--c-sand-deco) 0 60%, transparent 70%);
}

.phone {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background: #13294b;
  box-shadow: var(--shadow-3);
}

.phone {
  width: var(--phone-w);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  width: 32%;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #13294b;
  translate: -50% 0;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #fff;
}

@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow: 0 0 0 1px rgb(255 255 255 / .12), var(--shadow-3);
  }
}

.crab {
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: 2;
  width: min(var(--crab-max), calc(100% - var(--phone-w) + 8px));
  height: auto;
}

.hero-visual figcaption {
  margin-top: var(--sp-3);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  width: var(--s, 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .9) 0 18%, transparent 20%), rgb(42 163 174 / .2);
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .9) 0 18%, transparent 20%), color-mix(in srgb, var(--c-teal) 22%, transparent);
  border: 1.5px solid rgb(42 163 174 / .45);
  border: 1.5px solid color-mix(in srgb, var(--c-teal) 45%, transparent);
  opacity: .8;
  /* One gentle bob after load, finished within 5 s (WCAG 2.2.2), then static. */
  animation: rise var(--d, 4s) ease-in-out var(--delay, 0s) 1 both;
}

.bubble:nth-child(1) { --s: 8px;  --d: 3.6s; top: 4%;  left: 6%; }
.bubble:nth-child(2) { --s: 14px; --d: 4s;   --delay: .3s; top: 14%; left: 18%; }
.bubble:nth-child(3) { --s: 22px; --d: 4.4s; --delay: .5s; top: 30%; left: 2%; }
.bubble:nth-child(4) { --s: 10px; --d: 3.8s; --delay: .2s; top: 8%;  right: 2%; }
.bubble:nth-child(5) { --s: 18px; --d: 4.2s; --delay: .6s; top: 46%; right: -2%; }
.bubble:nth-child(6) { --s: 28px; --d: 4.5s; --delay: .4s; top: 58%; left: 4%; }

@keyframes rise {
  0% { transform: translateY(0); }
  50% { transform: translate(6px, -18px); }
  100% { transform: translateY(0); }
}

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

/* Waitlist panel */

.form-panel {
  grid-area: form;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
}

.form-title {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.form-intro {
  margin-top: var(--sp-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.waitlist-form,
.contact-form {
  position: relative;
  margin-top: var(--sp-5);
}

/* Spacing by margins so the empty live region takes no room at all. */
.waitlist-form > * + *,
.contact-form > * + * {
  margin-top: var(--sp-4);
}

.waitlist-form > .form-status:empty,
.contact-form > .form-status:empty {
  margin-top: 0;
}

.form-input.form-textarea {
  display: block;
  height: auto;
  min-height: 10rem;
  padding-block: 12px;
  line-height: 1.5;
  resize: vertical;
}

.form-hint {
  margin: calc(-1 * var(--sp-1)) 0 var(--sp-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.form-optional {
  color: var(--c-text-muted);
  font-weight: 400;
}

/* Contact page */

.contact-page .lead {
  max-width: var(--w-text);
  margin-top: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.contact-page h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
}

.contact-panel {
  max-width: 40rem;
  margin: var(--sp-6) 0 0;
}

.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

.form-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
}

@media (prefers-color-scheme: dark) {
  .form-input {
    background: var(--c-bg);
  }
}

.form-input::placeholder {
  color: var(--c-text-muted);
  opacity: 1;
}

.form-input[aria-invalid="true"] {
  border: 2px solid var(--c-error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--c-btn-bg);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--c-error);
  outline-offset: 2px;
}

.form-submit .btn {
  width: 100%;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5;
}

.form-status:empty {
  display: block;
}

.form-status:focus {
  outline: none;
}

.form-status:focus-visible {
  outline: 3px solid var(--c-focus);
}

.form-status.is-success {
  color: var(--c-success);
}

.form-status.is-error {
  color: var(--c-error);
}

.form-status .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.form-status a {
  color: inherit;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 40em) {
  .form-submit .btn {
    width: auto;
  }

  .form-panel {
    padding: var(--sp-6);
  }
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "text visual"
      "form visual";
    column-gap: var(--sp-7);
    row-gap: var(--sp-6);
    align-items: start;
  }

  .hero-text {
    justify-items: start;
    text-align: left;
    align-self: end;
  }

  .hero-badges {
    justify-items: start;
  }

  .form-panel {
    max-width: 30rem;
    margin-inline: 0;
  }

  .hero-visual {
    --phone-w: 280px;
    --crab-max: 260px;
    width: min(100%, 540px);
    align-self: center;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-content: start;
  column-gap: var(--sp-4);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: calc(-1 * var(--sp-6) + 8px);
  border-left: 2px dashed var(--c-border-strong);
  opacity: .4;
}

.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-1);
}

.step-num {
  color: var(--c-link);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
}

.step h3 {
  margin-top: var(--sp-1);
}

.step p:last-child {
  margin-top: var(--sp-2);
  color: var(--c-text-muted);
}

@media (min-width: 56em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-4);
  }

  .step:not(:last-child)::after {
    left: 72px;
    right: calc(-1 * var(--sp-7) + 16px);
    top: 27px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--c-border-strong);
  }
}

/* ---------- Features ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}

.card-soon {
  border: 1px dashed var(--c-border-strong);
  box-shadow: none;
}

.card .tile {
  grid-row: 1;
  grid-column: 1;
  width: 48px;
  height: 48px;
  background: var(--c-surface-teal);
  box-shadow: none;
}

.card-soon .tile {
  background: var(--c-pill-soon-bg);
}

/* The exam card's two pills sit on their own row under the icon, so they
   never squeeze into the narrow column beside it. */
.card-multi .card-pills {
  grid-row: 2;
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: var(--sp-3);
}

.card-pills {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: var(--sp-2);
}

.card h3 {
  grid-column: 1 / -1;
  margin-top: var(--sp-4);
}

.card-body {
  grid-column: 1 / -1;
  margin-top: var(--sp-2);
  color: var(--c-text-muted);
}

.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding: 20px;
  list-style: none;
  border-radius: var(--r-lg);
  background: var(--c-surface-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.strip li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-width: 0;
}

.strip li p {
  min-width: 0;
}

.strip .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* 2 columns from ~40em, 3 on wide screens; fewer when the text is enlarged. */
@media (min-width: 40em) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  }
}

@media (min-width: 56em) {
  .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
  }
}

@media (min-width: 72em) {
  .card {
    padding: 28px;
  }
}

/* ---------- Content ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  list-style: none;
}

.stat {
  display: grid;
  align-content: start;
  gap: var(--sp-1);
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--c-surface);
}

@media (min-width: 40em) {
  .stat {
    padding: 20px;
  }
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.0625rem, .55rem + 2.6vw, 2.5rem); /* --fs-stat, smaller floor so "[NNN,NNN]" fits 2-up at 320px */
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat-label {
  overflow-wrap: anywhere;
  hyphens: auto;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.sources {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  list-style: none;
}

.source h3 a {
  color: var(--c-text);
}

.source h3 a:hover {
  color: var(--c-link);
}

.source p {
  margin-top: var(--sp-2);
  color: var(--c-text-muted);
}

.source .source-note {
  margin-top: var(--sp-1);
  font-size: var(--fs-small);
}

.source .chip {
  display: inline-block;
  margin-top: var(--sp-3);
  padding: 4px 10px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin-top: var(--sp-6);
  font-weight: 600;
}

.arrow-link .icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 56em) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--sp-7);
  }
}

/* ---------- Built with Claude ---------- */

.claude-panel {
  margin-inline: calc(-.5 * var(--gutter));
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-surface-teal);
}

@media (min-width: 40em) {
  .claude-panel {
    margin-inline: 0;
    padding: var(--sp-5);
    border-radius: var(--r-xl);
  }
}

.claude-panel .section-head {
  margin-bottom: var(--sp-6);
}

.claude-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7);
}

.claude-cols h3 {
  margin-bottom: var(--sp-4);
}

.icon-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  list-style: none;
}

.icon-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: start;
}

.icon-list .tile {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  box-shadow: none;
}

.icon-list .icon {
  width: 20px;
  height: 20px;
}

.icon-list .pill {
  margin-bottom: var(--sp-2);
}

.item-head h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.icon-list h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-1);
}

.item-head .pill {
  margin-bottom: 0;
}

.icon-list p {
  color: var(--c-text);
}

.icon-list .muted {
  color: var(--c-text-muted);
}

.in-progress {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--c-border-strong);
}

.ask {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

@media (min-width: 56em) {
  .claude-panel {
    padding: var(--sp-7);
  }

  .claude-cols {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
}

.portrait {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--sp-2);
}

.portrait-circle {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--c-surface-muted);
  color: var(--c-text-muted);
}

.portrait-circle .icon {
  width: 48px;
  height: 48px;
}

.portrait-label {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

.prose {
  max-width: var(--w-text);
}

.prose > p {
  margin-top: var(--sp-4);
}

@media (min-width: 56em) {
  .about-grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--sp-7);
  }

  .portrait-circle {
    width: 200px;
    height: 200px;
  }

  .portrait-circle .icon {
    width: 64px;
    height: 64px;
  }
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.contact-card .eyebrow {
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.contact-card p {
  margin-top: var(--sp-4);
  color: var(--c-text-muted);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

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

.site-footer {
  --c-focus: var(--c-footer-focus);
  overflow-wrap: anywhere;
  color: var(--c-footer-text);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.wave-footer {
  background: var(--c-bg);
}

.wave-footer path {
  fill: var(--c-footer-bg);
}

.wave-hero path {
  fill: var(--c-bg-alt);
}

.footer-body {
  background: var(--c-footer-bg);
  padding-block: var(--sp-6) var(--sp-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
}

.footer-brand .brand {
  color: var(--c-footer-text);
}

.footer-brand .brand:hover {
  color: var(--c-footer-text);
}

.footer-brand p {
  margin-top: var(--sp-2);
  color: var(--c-footer-muted);
}

.footer-title {
  margin-bottom: var(--sp-2);
  color: var(--c-footer-text);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.site-footer a:hover {
  color: var(--c-footer-text);
}

.footer-links ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-1);
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 4px;
}

.footer-sources p {
  color: var(--c-footer-muted);
}

.footer-sources p + p {
  margin-top: var(--sp-2);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / .15);
  color: var(--c-footer-muted);
}

.footer-bottom p {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-bottom .icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 56em) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--sp-7);
  }

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

/* ---------- Sub-pages: legal, credits ---------- */

.page {
  padding-block: var(--sp-6) var(--sp-8);
}

.page-inner {
  max-width: 50rem; /* 46rem text + gutters */
}

.back {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-small);
}

.legal h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  margin-bottom: var(--sp-4);
}

.legal h2 {
  margin: var(--sp-7) 0 var(--sp-3);
  font-size: clamp(1.3rem, 1.2rem + .6vw, 1.6rem);
}

.legal h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: 1.15rem;
}

.legal p,
.legal ul,
.legal address {
  margin-bottom: var(--sp-4);
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: var(--sp-1);
}

.legal .lead {
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.note {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-coral);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.box {
  margin-block: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.box h3 {
  margin-top: 0;
}

.box > :last-child,
.note > :last-child {
  margin-bottom: 0;
}

.toc {
  margin: var(--sp-5) 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-small);
}

.legal .toc ol {
  margin: 0;
  padding-left: 1.4rem;
}

.legal .toc li + li {
  margin-top: 2px;
}

.updated {
  margin-top: var(--sp-7);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

/* ---------- Status pages: thanks, error, 404 ---------- */

.status {
  max-width: 40rem; /* 36rem text + gutters */
  padding-block: var(--sp-7) var(--sp-8);
  text-align: center;
}

.status .crab-small {
  width: 160px;
  margin: 0 auto var(--sp-5);
}

.status h1,
.status h2 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem);
  line-height: 1.15;
}

.status p {
  margin-top: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.status ul {
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
  color: var(--c-text-muted);
  text-align: left;
}

.status li {
  position: relative;
  padding-left: 1.25rem;
}

.status li + li {
  margin-top: var(--sp-2);
}

.status li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-coral);
}

.status .actions {
  margin-top: var(--sp-6);
}

.status .divider {
  width: 6rem;
  margin: var(--sp-7) auto;
  border: 0;
  border-top: 2px solid var(--c-border);
}
