/* ==========================================================================
   Rudam — Design System
   Minimalistisch, Schwarz/Weiß, große Typografie, viel Weißraum.
   Keine externen Abhängigkeiten, keine Webfonts.
   ========================================================================== */

/* ---------- Reset ------------------------------------------------------- */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

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

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #fafafa;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --radius-lg: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --wrap-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --section: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.wrap--wide {
  max-width: var(--wrap-wide);
}

.wrap--narrow {
  max-width: 800px;
}

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

.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.section--gray {
  background: var(--bg-2);
}

.section--dark {
  background: #0b0b0c;
  color: #f5f5f7;
}

.section--dark .eyebrow,
.section--dark .lead {
  color: rgba(245, 245, 247, 0.68);
}

.section--dark .line {
  border-color: rgba(255, 255, 255, 0.14);
}

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

/* ---------- Typography -------------------------------------------------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.1rem;
}

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.display span {
  color: var(--ink-3);
}

h2.h2 {
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}

h3.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

p.body {
  color: var(--ink-2);
  text-wrap: pretty;
}

p + p.body,
p.body + p.body {
  margin-top: 1em;
}

.small {
  font-size: 0.875rem;
  color: var(--ink-2);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

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

.section-head--center .lead {
  margin-inline: auto;
}

.section-head h2 + .lead {
  margin-top: 1.4rem;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Buttons & links -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--light:hover {
  border-color: var(--ink);
}

.btn--on-dark {
  background: #fff;
  color: var(--ink);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.86);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: gap 0.25s var(--ease), opacity 0.25s var(--ease);
}

.arrow-link::after {
  content: "›";
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.arrow-link:hover::after {
  transform: translateX(3px);
}

.section--dark .arrow-link {
  color: #f5f5f7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* ---------- Logo-Schrift ------------------------------------------------ */

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/league-spartan.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
}

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__mark {
  font-family: "League Spartan", var(--font);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.brand__note {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.2rem);
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav a[aria-current="page"] {
  font-weight: 500;
}

.nav a.btn {
  opacity: 1;
}

.nav a.btn--dark {
  color: #fff;
}

.header__cta {
  font-size: 0.8125rem;
  padding: 0.55rem 1.15rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.75rem;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu .btn {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

body.nav-open .mobile-menu {
  display: block;
}

body.nav-open .nav-toggle__bars span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bars span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

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

.hero {
  padding-top: clamp(7rem, 13vw, 10.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}

.hero .display {
  max-width: 20ch;
  margin-inline: auto;
}

.hero .lead {
  margin: clamp(1.5rem, 2.5vw, 2rem) auto 0;
  max-width: 40ch;
}

.hero .btn-row {
  justify-content: center;
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.hero__stage {
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero__stage::after {
  content: "";
  position: absolute;
  inset: auto 8% -2% 8%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.10), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Browser mockups -------------------------------------------- */

.browser {
  --mini-bg: #ffffff;
  --mini-ink: #12100e;
  --mini-muted: #6b6b6b;
  --mini-accent: #12100e;
  --mini-accent-ink: #ffffff;
  --mini-surface: #f2f0ec;

  font-family: var(--font);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(0, 0, 0, 0.28),
    0 40px 80px -40px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 0.9em;
  background: #f7f7f8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: clamp(9px, 1vw, 11px);
}

.browser__chrome i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #d6d6d9;
}

.browser__chrome span {
  margin-left: 0.6em;
  font-size: 0.85em;
  color: #8b8b91;
  letter-spacing: 0.01em;
}

.browser__view {
  font-size: clamp(9px, 1.05vw, 11.5px);
  line-height: 1.4;
  background: var(--mini-bg);
  color: var(--mini-ink);
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browser--wide .browser__view {
  aspect-ratio: 16 / 9.4;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1em 1.5em;
  font-size: 0.85em;
}

.mini-nav strong {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mini-ink);
}

.mini-nav nav {
  display: flex;
  gap: 1.4em;
  color: var(--mini-muted);
}

.mini-hero {
  padding: 0.4em 1.55em 1.6em;
}

.mini-eyebrow {
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mini-muted);
  margin-bottom: 0.9em;
}

.mini-hero h4 {
  font-size: 2.55em;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.mini-hero p {
  font-size: 0.92em;
  color: var(--mini-muted);
  max-width: 26em;
  margin-bottom: 1.1em;
}

.mini-btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border-radius: 0.4em;
  background: var(--mini-accent);
  color: var(--mini-accent-ink);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em;
  padding: 0 1.55em;
  margin-top: auto;
  padding-bottom: 1.4em;
}

.mini-strip div {
  background: var(--mini-surface);
  border-radius: 0.5em;
  padding: 0.9em 0.85em;
  font-size: 0.78em;
  color: var(--mini-muted);
}

.mini-strip b {
  display: block;
  color: var(--mini-ink);
  font-size: 1.1em;
  margin-bottom: 0.25em;
  letter-spacing: -0.01em;
}

/* Elektro: dunkel, technisch */
.browser--elektro {
  --mini-bg: #14161a;
  --mini-ink: #ffffff;
  --mini-muted: rgba(255, 255, 255, 0.62);
  --mini-accent: #f4c95d;
  --mini-accent-ink: #14161a;
  --mini-surface: rgba(255, 255, 255, 0.07);
}

.browser--elektro .mini-strip b {
  color: #fff;
}

/* Maler: warm, hell, linksbündig mit Fläche */
.browser--maler {
  --mini-bg: #fbf8f4;
  --mini-ink: #1a1714;
  --mini-muted: #6d675f;
  --mini-accent: #1a1714;
  --mini-surface: #efe9e0;
}

.browser--maler .browser__view {
  background: linear-gradient(180deg, #fbf8f4 0%, #f4ece1 100%);
}

/* Sanitär: kühl, klar, zweispaltig */
.browser--sanitaer {
  --mini-bg: #ffffff;
  --mini-ink: #10202b;
  --mini-muted: #5d6b74;
  --mini-accent: #12455c;
  --mini-surface: #eef3f6;
}

.browser--sanitaer .mini-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2em;
  align-items: end;
}

.browser--sanitaer .mini-hero__text {
  padding-bottom: 0.4em;
}

.browser--sanitaer .mini-panel {
  background: var(--mini-surface);
  border-radius: 0.6em;
  height: 100%;
  min-height: 8em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9em;
  gap: 0.35em;
}

.browser--sanitaer .mini-panel span {
  height: 0.5em;
  border-radius: 1em;
  background: rgba(16, 32, 43, 0.12);
}

.browser--sanitaer .mini-panel span:first-child {
  width: 70%;
  background: rgba(16, 32, 43, 0.22);
}

/* ---------- Device grid ------------------------------------------------ */

.devices {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}

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

.project {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.project__figure {
  margin: 0;
  transition: transform 0.5s var(--ease);
}

.project:hover .project__figure {
  transform: translateY(-4px);
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project__title h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project__title span {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project__desc {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 40ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- Offer / split --------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split--2 {
    grid-template-columns: 1fr 1fr;
  }

  .split--aside {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .split--sticky {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split--sticky > :first-child {
    position: sticky;
    top: 7rem;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
}

.card--quiet {
  background: transparent;
  border-style: solid;
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.price__num {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.price__unit {
  font-size: 1rem;
  color: var(--ink-2);
  padding-bottom: 0.45rem;
}

.price__note {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* ---------- Lists ------------------------------------------------------ */

.checked {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.checked li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.9375rem;
  color: var(--ink);
}

.checked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.05rem;
  height: 0.55rem;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
  opacity: 0.75;
}

.checked li span {
  display: block;
  color: var(--ink-2);
  font-size: 0.875rem;
  margin-top: 0.1rem;
}

.excluded {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.excluded li {
  position: relative;
  padding-left: 1.15rem;
}

.excluded li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

/* ---------- Feature grid ---------------------------------------------- */

.features {
  display: grid;
  border-top: 1px solid var(--line);
}

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

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

.feature {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 780px) {
  .features--3 .feature,
  .features--2 .feature {
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.2vw, 2rem);
    border-bottom: 0;
  }

  .features--3 .feature + .feature,
  .features--2 .feature + .feature {
    border-left: 1px solid var(--line);
  }

  .features--3 .feature:first-child,
  .features--2 .feature:first-child {
    padding-left: 0;
  }

  .features--3 .feature:last-child,
  .features--2 .feature:last-child {
    padding-right: 0;
  }
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- Steps ------------------------------------------------------ */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 780px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 780px) {
  .step {
    padding-inline: clamp(1.25rem, 2.2vw, 2rem);
  }

  .step:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .step:nth-child(even) {
    padding-right: 0;
  }
}

.step__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.step span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ---------- FAQ ------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background-image: linear-gradient(var(--ink-2), var(--ink-2)),
    linear-gradient(var(--ink-2), var(--ink-2));
  background-size: 11px 1.5px, 1.5px 11px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 0 1.5rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.faq__a p + p {
  margin-top: 0.8em;
}

/* ---------- CTA band -------------------------------------------------- */

.band {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  text-align: center;
}

.band h2 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

.band p {
  margin: 1.5rem auto 0;
  max-width: 46ch;
  color: rgba(245, 245, 247, 0.66);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
}

.band .btn-row {
  justify-content: center;
  margin-top: 2.5rem;
}

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

.form {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.field label span {
  color: var(--ink-3);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #b42318;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form__foot .small {
  max-width: 34ch;
}

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

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
}

.form-status[hidden] {
  display: none;
}

.form-status--ok {
  border-color: rgba(0, 0, 0, 0.2);
  background: #f2f7f2;
}

.form-status--error {
  background: #fdf3f2;
  border-color: rgba(180, 35, 24, 0.3);
}

.contact-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-list div {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-list dt {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}

.contact-list dd {
  font-size: 1rem;
}

.contact-list a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

/* ---------- Page header (subpages) ----------------------------------- */

.page-head {
  padding-top: clamp(7rem, 11vw, 9.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-head .display {
  font-size: clamp(2.3rem, 5vw, 4rem);
  max-width: 22ch;
}

.page-head .lead {
  margin-top: 1.5rem;
}

/* ---------- Prose (legal pages) -------------------------------------- */

.prose {
  max-width: 42rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.prose p + p {
  margin-top: 0.9em;
}

.prose ul {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.prose ul li {
  padding-left: 1.1rem;
  position: relative;
}

.prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.todo {
  display: inline-block;
  padding: 0 0.25em;
  background: #fff5d6;
  border-bottom: 1px dashed rgba(146, 106, 0, 0.5);
  color: #6b4e00;
  font-size: 0.9em;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  max-width: 24rem;
}

.footer__brand .brand {
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
}

.footer__col h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer__col a {
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
}

/* ---------- Reveal animation ---------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- Responsive ---------------------------------------------- */

@media (max-width: 1040px) {
  .brand__note {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav,
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__meta {
    gap: 0.4rem 1.1rem;
    font-size: 0.75rem;
  }

  .hero__meta span:nth-child(3) {
    display: none;
  }

  .browser__view {
    aspect-ratio: 4 / 3.4;
  }

  .browser--wide .browser__view {
    aspect-ratio: 4 / 3.2;
  }

  .mini-strip {
    grid-template-columns: 1fr 1fr;
  }

  .mini-strip div:nth-child(3) {
    display: none;
  }

  .footer__top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero__stage {
    margin-inline: calc(var(--gutter) * -0.5);
  }

  .browser {
    border-radius: 12px;
  }

  .mini-hero p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

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

@media print {
  .header,
  .band,
  .footer__brand p {
    display: none;
  }
}
