/* ============================================================
   Haushaltsklar — style.css
   Mobile-first. System fonts only. No external dependencies.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-bg:          #fafaf8;
  --color-surface:     #ffffff;
  --color-surface-alt: #f4f3ef;
  --color-border:      #e4e2dc;
  --color-text:        #1e1e1c;
  --color-text-muted:  #6b6860;
  --color-text-light:  #9a9790;
  --color-primary:     #2d6a4f;
  --color-primary-dark:#1e4d39;
  --color-primary-bg:  #eaf4ee;
  --color-accent:      #52a47a;
  --color-badge-bg:    #d8efe3;
  --color-badge-text:  #1e4d39;
  --color-link:        #2d6a4f;
  --color-link-hover:  #1e4d39;
  --color-error:       #b91c1c;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

  /* Type scale (rem) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */

  /* Spacing scale (rem, 8px base) */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-6:  3rem;
  --space-8:  4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Layout */
  --container-max: 1120px;
  --container-text: 680px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ------------------------------------------------------------
   2. Reset / Normalize
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

a:hover,
a:focus {
  color: var(--color-link-hover);
}

/* ------------------------------------------------------------
   3. Base Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

p {
  max-width: 72ch;
}

strong { font-weight: 600; }

/* ------------------------------------------------------------
   4. Layout Primitives
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

.container--narrow {
  max-width: var(--container-text);
}

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

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section--surface {
  background-color: var(--color-surface);
}

/* Two-column grid */
.grid-2col {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .grid-2col--60-40 {
    grid-template-columns: 3fr 2fr;
  }
}

/* Four-card grid */
.grid-4card {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

/* Stack */
.stack > * + * {
  margin-top: var(--space-4);
}

.stack--sm > * + * {
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------
   5. Components
   ------------------------------------------------------------ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: var(--color-badge-bg);
  color: var(--color-badge-text);
  white-space: nowrap;
}

/* --- Overline label --- */
.overline {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* --- Trust chips --- */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background-color: var(--color-surface);
}

.trust-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
}

.card__number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.card__icon {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.card__body p { max-width: none; }

.card__meta {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Contrast list (solution section) --- */
.contrast-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contrast-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contrast-row__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contrast-row__icon svg {
  width: 18px;
  height: 18px;
}

.contrast-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contrast-row__not {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: line-through;
}

.contrast-row__yes {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* --- Icon row (problem section) --- */
.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  min-width: 72px;
  text-align: center;
}

.icon-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
}

.icon-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--color-surface-alt);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-question__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.faq-item[aria-expanded="true"] .faq-question__chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

.faq-item[aria-expanded="true"] .faq-answer {
  display: block;
}

/* --- Form --- */
.early-access-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .early-access-form__row {
    display: flex;
    gap: var(--space-2);
  }
  .early-access-form__row .form-input {
    flex: 1;
  }
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  display: block;
}

.form-label--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

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

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

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  display: none;
}

.form-error[role="alert"] {
  display: block;
}

.form-microcopy {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-microcopy__line {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.form-microcopy__line a {
  color: var(--color-primary);
  font-weight: 500;
}

/* --- Form success state --- */
.form-success {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background-color: var(--color-primary-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.form-success__headline {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.form-success__body {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: 44ch;
  margin-inline: auto;
}

.form-success__note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-inline: auto;
}

/* --- Progress bar (lessons section) --- */
.lesson-progress {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--space-8);
}

.lesson-progress__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-right: var(--space-2);
}

.lesson-progress__bar {
  display: flex;
  gap: 4px;
  flex: 1;
}

.lesson-progress__segment {
  height: 8px;
  flex: 1;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  opacity: 0.25;
}

.lesson-progress__segment--active {
  opacity: 1;
}

/* --- Image with Vorschau label --- */
.image-preview {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-preview__label {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.image-preview img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 640px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
}

.cookie-banner__text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-banner__text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner__link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   6. Sections
   ------------------------------------------------------------ */

/* --- Site Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 64px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-nav__logo {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.site-nav__links {
  display: none;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-nav__links a:hover,
.site-nav__links a:focus {
  color: var(--color-text);
}

.site-nav__cta {
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .site-nav__cta {
    margin-left: 0;
  }
}

.site-nav__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
  flex-shrink: 0;
}

.site-nav__menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-nav__menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 768px) {
  .site-nav__menu-toggle {
    display: none;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav__links a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__links a:last-child {
  border-bottom: none;
}

.mobile-nav__links a:hover {
  color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
  padding-block: var(--space-12) var(--space-8);
  background-color: var(--color-surface);
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-16);
  }
}

.hero__inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-12);
  }
}

.hero__copy {
  order: 1;
}

.hero__media {
  order: 2;
}

@media (min-width: 768px) {
  .hero__media {
    order: 2;
  }
}

.hero__overline {
  margin-bottom: var(--space-3);
}

.hero__headline {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: var(--text-3xl);
  }
}

.hero__subheadline {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: var(--space-4);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.hero__cta-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Problem Section --- */
.problem__body {
  max-width: var(--container-text);
  margin-inline: auto;
}

.problem__body p + p {
  margin-top: var(--space-4);
}

.problem__transition {
  margin-top: var(--space-6);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Solution Section --- */
.solution__body p + p {
  margin-top: var(--space-4);
}

.solution__link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.solution__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --- Lessons Section --- */
.lessons__subheadline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-top: var(--space-2);
}

.lessons__template-note {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Founder Section --- */
.founder__inner {
  max-width: var(--container-text);
  margin-inline: auto;
}

.founder__statement {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-text);
  max-width: none;
}

.founder__attribution {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  font-style: normal;
}

.founder__company {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.founder__meta {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-sm);
}

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

/* --- CTA Section --- */
.cta-section {
  background-color: var(--color-surface-alt);
}

.cta-section__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.cta-section__headline {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .cta-section__headline {
    font-size: var(--text-2xl);
  }
}

.cta-section__subheadline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: none;
}

.cta-section__form-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* --- FAQ Section --- */
.faq__header {
  margin-bottom: var(--space-8);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-12) var(--space-6);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: var(--space-8);
  }
}

.site-footer__wordmark {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-2);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  max-width: 28ch;
}

.site-footer__col-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
  display: block;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: #ffffff;
}

.site-footer__email {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer__email:hover {
  color: #ffffff;
}

.site-footer__company {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.site-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------
   7. Legal pages
   ------------------------------------------------------------ */
.legal-page {
  padding-block: var(--space-12);
}

.legal-page__inner {
  max-width: var(--container-text);
  margin-inline: auto;
}

.legal-page h1 {
  margin-bottom: var(--space-6);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-page h3 {
  font-size: var(--text-md);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-page p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  max-width: none;
}

.legal-page ul,
.legal-page ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: var(--space-3);
}

.legal-page li {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.legal-page strong {
  color: var(--color-text);
}

.legal-page a {
  color: var(--color-primary);
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: var(--space-8);
}

.legal-page .back-link:hover {
  color: var(--color-primary-dark);
}

.legal-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__brand {
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   8. Credits page
   ------------------------------------------------------------ */
.credits-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.credits-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.credits-list li:last-child {
  border-bottom: none;
}

/* ------------------------------------------------------------
   9. 404 page
   ------------------------------------------------------------ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.error-page__code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page__headline {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.error-page__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 40ch;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   10. Utilities
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-2);
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
