/*
 |--------------------------------------------------------------------------
 | Beepway Theme · Floating Sheet SaaS Landing
 |--------------------------------------------------------------------------
 | Implements the floating-sheet layout, elevated cards, chips, testimonial,
 | FAQ, responsive header and CTA/logo rules for the Grav "beepway" theme.
 |--------------------------------------------------------------------------
 */

@layer reset, base, layout, components, utilities;

/* --------------------------------------------------------------------------
 * Reset
 * -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

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

  ul[role='list'],
  ol[role='list'] {
    list-style: none;
  }

  body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

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

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

/* --------------------------------------------------------------------------
 * Design Tokens
 * -------------------------------------------------------------------------- */
@layer base {
  :root {
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-heading-xl: clamp(2.5rem, 8vw, 3.75rem);
    --font-heading-lg: clamp(2rem, 6vw, 2.75rem);
    --font-heading-md: clamp(1.4rem, 4vw, 1.75rem);
    --font-body-lg: 1.125rem;
    --font-body-md: 1rem;
    --font-label: 0.9375rem;

    --color-bg: #ffffff;
    --color-sheet: #ffffff;
    --color-card: #eef2ff;
    --color-subtle: #eef2ff;
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-strong: rgba(15, 23, 42, 0.18);
    --color-text: #0f172a;
    --color-muted: #475467;
    --color-accent: #1ca1da;
    --color-accent-strong: #1384b2;
    --color-chip: rgba(28, 161, 218, 0.12);
    --color-chip-text: #1f2937;
    --color-success: #16a34a;
    --color-cta-bg: #1ca1da;

    --shadow-card: 0 25px 60px rgba(15, 23, 42, 0.1);
    --shadow-sheet: 0 40px 120px rgba(15, 23, 42, 0.18);

    --contact-card-bg: linear-gradient(145deg, #f8fbff, #eef2ff);
    --contact-card-border: rgba(15, 23, 42, 0.08);
    --contact-card-shadow: 0 30px 70px rgba(15, 23, 42, 0.13);
    --contact-field-bg: rgba(255, 255, 255, 0.95);
    --contact-field-border: rgba(15, 23, 42, 0.12);
    --contact-field-text: #0f172a;
    --contact-field-placeholder: rgba(15, 23, 42, 0.45);
    --contact-field-focus: rgba(67, 196, 255, 0.35);
    --contact-button-shadow: 0 18px 30px rgba(67, 196, 255, 0.28);
    --shadow-float: 0 20px 80px rgba(15, 23, 42, 0.12);

    --radius-xs: 10px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-full: 999px;

    --landing-max: min(1200px, calc(100vw - 32px));
    --header-height: 84px;
    --transition-fast: 160ms ease;
  }

  :root[data-theme='dark'] {
    --color-bg: #0b1221;
    --color-sheet: #121a2e;
    --color-card: #121a2e;
    --color-subtle: #19213a;
    --color-border: rgba(226, 232, 240, 0.08);
    --color-border-strong: rgba(226, 232, 240, 0.16);
    --color-text: #f8fafc;
    --color-muted: rgba(248, 250, 252, 0.78);
    --color-chip: rgba(28, 161, 218, 0.16);
    --color-chip-text: #f8fafc;
    --shadow-card: 0 40px 90px rgba(2, 6, 23, 0.6);
    --shadow-sheet: 0 60px 160px rgba(2, 6, 23, 0.65);
    --color-cta-bg: #1ca1da;

    --contact-card-bg: linear-gradient(145deg, rgba(5, 9, 18, 0.92), rgba(18, 28, 52, 0.95));
    --contact-card-border: rgba(255, 255, 255, 0.08);
    --contact-card-shadow: 0 30px 90px rgba(2, 6, 23, 0.7);
    --contact-field-bg: rgba(255, 255, 255, 0.04);
    --contact-field-border: rgba(255, 255, 255, 0.15);
    --contact-field-text: #f8fafc;
    --contact-field-placeholder: rgba(248, 250, 252, 0.5);
    --contact-field-focus: rgba(98, 230, 255, 0.7);
    --contact-button-shadow: 0 18px 35px rgba(67, 196, 255, 0.45);
  }

  body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    margin: 0;
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 12px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-body-md);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .btn--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--color-accent), var(--color-accent-strong));
    box-shadow: 0 20px 26px rgba(28, 161, 218, 0.3);
  }

  .btn--ghost {
    color: var(--color-text);
    background: rgba(15, 23, 42, 0.05);
  }

  .btn:focus-visible {
    outline: 3px solid rgba(28, 161, 218, 0.35);
    outline-offset: 2px;
  }
}

/* --------------------------------------------------------------------------
 * Layout: Floating Sheet
 * -------------------------------------------------------------------------- */
@layer layout {
  .site-body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
  }

  .site-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px);
    position: relative;
    overflow-x: hidden;
  .site-blob,
  .site-blob--one,
  .site-blob--two,
  .site-blob--three {
    display: none;
  }
    justify-content: center;
  }

  .site-sheet__inner {
    width: 100%;
    max-width: calc(100vw - clamp(32px, 6vw, 140px));
    margin: 0 auto;
  }

  main.site-main {
    padding: clamp(32px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 7vw, 96px);
  }
}

/* --------------------------------------------------------------------------
 * Components
 * -------------------------------------------------------------------------- */
@layer components {
  /* Header --------------------------------------------------------------- */
  .header {
    padding: clamp(18px, 3vw, 32px) clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
  }

.header__lang-floating {
  display: none;
}

  .header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    position: relative;
  }

  .header__logo {
    display: inline-flex;
    align-items: center;
  }

  .header__logo-img {
    height: clamp(32px, 4vw, 48px);
    width: auto;
    display: none;
  }

  html[data-theme='light'] .header__logo-img--light,
  html:not([data-theme='dark']) .header__logo-img--light {
    display: block;
  }

  html[data-theme='dark'] .header__logo-img--dark {
    display: block;
  }

  .header__nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
  }

  .header__nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-fast);
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
  }

  .header__menu {
    display: flex;
    list-style: none;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  .header__menu {
    display: flex;
    list-style: none;
    gap: 14px;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  .header__link,
  .header__dropdown-toggle {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-label);
    line-height: 1;
    border: none;
    background: transparent;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    text-transform: none;
  }

  html[data-theme='dark'] .header__link,
  html[data-theme='dark'] .header__dropdown-toggle {
    color: var(--color-text);
  }

  .header__link:hover,
  .header__link:focus-visible,
  .header__dropdown-toggle:hover,
  .header__dropdown-toggle:focus-visible {
    background: rgba(28, 161, 218, 0.15);
    color: var(--color-text);
  }

  .header__menu-item.is-active > .header__link {
    color: var(--color-accent);
    background: rgba(28, 161, 218, 0.2);
  }

  .header__menu-item--dropdown {
    position: relative;
  }

  .header__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .header__caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
  }

  .header__dropdown-toggle[aria-expanded='true'] .header__caret {
    transform: rotate(-135deg);
  }

  .header__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 12px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 10;
  }

  .header__menu-item--dropdown.is-open .header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
  }

  .header__dropdown-link:hover,
  .header__dropdown-link:focus-visible {
    background: rgba(28, 161, 218, 0.12);
    color: var(--color-text);
  }

  .header__cta {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    background: var(--color-cta-bg);
    color: #fff;
  }

  @media (max-width: 900px) {
    .header__nav-toggle {
      display: inline-flex;
    }

    .header__nav {
      position: absolute;
      left: 16px;
      right: 16px;
      top: calc(100% + 16px);
      flex-direction: column;
      align-items: flex-start;
      border-radius: var(--radius-lg);
      padding: 24px;
      display: none;
      z-index: 20;
      background: none;
    }

  .header__nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: color-mix(in srgb, var(--color-sheet) 95%, rgba(28, 161, 218, 0.06));
    border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(10px);
    z-index: -1;
  }

    html[data-theme='dark'] .header__nav::before {
      background: color-mix(in srgb, var(--color-sheet) 75%, rgba(0, 0, 0, 0.6));
      border-color: rgba(248, 250, 252, 0.08);
    }

    .header__nav.is-open {
      display: flex;
    }

    .header__menu {
      flex-direction: column;
      width: 100%;
    }

    .header__dropdown {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      width: 100%;
      margin-top: 8px;
      box-shadow: none;
      border: 1px solid var(--color-border);
    }

    .header__cta {
      align-self: stretch;
      text-align: center;
      justify-content: center;
      display: inline-flex;
    }
  }

  @media (max-width: 600px) {
    .header__nav {
      left: 8px;
      right: 8px;
    }
  }

  .lang-switcher {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(28, 161, 218, 0.12);
    border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .lang-switcher__item {
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--color-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .lang-switcher__item--active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 40%, transparent);
  }

  .header__menu-item--langs {
    margin-right: 12px;
    display: flex;
    align-items: center;
  }

  @media (max-width: 900px) {
    .header__menu-item--langs {
      width: 100%;
      margin-right: 0;
      margin-bottom: 12px;
      justify-content: flex-start;
    }

    .lang-switcher {
      width: 100%;
      justify-content: center;
    }
  }

  .theme-toggle {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    width: 42px;
    height: 42px;
    background: var(--color-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 1.2rem;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  }

  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .theme-toggle__sun {
    display: none;
  }

  [data-theme='dark'] .theme-toggle__moon {
    display: none;
  }

  [data-theme='dark'] .theme-toggle__sun {
    display: block;
  }

  .header__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  .header__actions .theme-toggle {
    margin-left: 8px;
  }

  @media (max-width: 960px) {
    .header__actions {
      width: 100%;
      justify-content: flex-start;
      margin-left: 0;
      flex-wrap: wrap;
      gap: 16px;
    }

    .header__actions .header__cta {
      flex: 1 1 auto;
      min-width: 220px;
    }

    .theme-toggle {
      width: 48px;
      height: 48px;
    }
  }

  /* Hero --------------------------------------------------------------- */
  .landing-hero {
    display: grid;
    gap: 32px;
  }

  .landing-hero__grid {
    display: grid;
    gap: 32px;
  }

  .landing-hero__pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 14px;
    background: var(--color-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 24px;
  }

  .landing-hero__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: var(--font-heading-xl);
    line-height: 1.05;
  }

  .landing-hero__accent {
    color: var(--color-accent);
  }

  .landing-hero__lede {
    margin-top: 20px;
    font-size: var(--font-body-lg);
    color: var(--color-muted);
  }

  .landing-hero__lede + .landing-hero__actions {
    margin-top: 28px;
  }

  .landing-hero__actions {
    margin-top: clamp(34px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
  }

  .landing-hero__actions + .landing-hero__subtitle {
    margin-top: 32px;
  }

  .landing-hero__grid.--full {
    grid-template-columns: 1fr;
  }

  /* Cards -------------------------------------------------------------- */
  .landing-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 64px);
    padding-top: clamp(16px, 4vw, 32px);
  }

  .landing-section-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .landing-section-header h2 {
    font-size: var(--font-heading-lg);
  }

  .landing-section-header p {
    color: var(--color-muted);
    font-size: var(--font-body-lg);
  }

  .landing-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }

.landing-card {
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 32px);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.landing-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.landing-card--link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.landing-card--link:hover,
.landing-card--link:focus-visible {
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.18);
  }

  .landing-card__category {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 6px;
  }

  .landing-card h3 {
    font-size: var(--font-heading-md);
    margin-bottom: 8px;
  }

  .landing-card p {
    color: var(--color-muted);
  }

.landing-card__media {
    margin: 12px auto 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    max-width: 220px;
    width: 100%;
    height: 220px;
    background: #fff;
    position: relative;
    display: flex;
}

.landing-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

  .landing-card ul {
    margin-top: 14px;
    padding-left: 20px;
    color: var(--color-muted);
  }

  /* Chips -------------------------------------------------------------- */
  .landing-chips {
    background: var(--color-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
    margin-top: clamp(24px, 5vw, 64px);
  }

  .landing-chips__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .chip {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--color-chip);
    color: var(--color-chip-text);
    font-weight: 600;
  }

  /* Bottom: Testimonial + FAQ ----------------------------------------- */
  .landing-bottom {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: clamp(32px, 6vw, 72px);
  }

  .landing-bottom__testimonial {
    background: linear-gradient(140deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.05));
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.16);
    box-shadow: var(--shadow-float);
  }

  .landing-bottom__quote {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 16px;
  }

  .landing-bottom__author {
    font-weight: 600;
    color: var(--color-muted);
  }

  .landing-bottom__logos {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .landing-bottom__logos img {
    max-height: 32px;
    opacity: 0.8;
  }

  .landing-bottom__faq {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 32px;
    box-shadow: var(--shadow-card);
  }

  .landing-bottom__faq-item + .landing-bottom__faq-item {
    margin-top: 18px;
    border-top: 1px solid var(--color-border);
    padding-top: 18px;
  }

  .landing-bottom__faq dt {
    font-weight: 700;
    margin-bottom: 6px;
  }

  /* Schematics ---------------------------------------------------------- */
  .landing-schematics {
    --schematics-cols: 3;              /* fallback if Twig didn't set it */
    --schematics-col-w: 340px;         /* target width of one card */
    --schematics-gap: clamp(20px, 2vw, 28px);
    --schematics-pad: clamp(12px, 3vw, 32px);

    /* Width needed for N columns at target size, plus gaps and padding. */
    --schematics-ideal:
      calc(
        var(--schematics-cols) * var(--schematics-col-w)
        + (var(--schematics-cols) - 1) * var(--schematics-gap)
        + 2 * var(--schematics-pad)
      );

    margin-block: clamp(32px, 6vw, 80px);
    margin-inline: auto;
    padding: 0 var(--schematics-pad);
    width: 100%;
    max-width: min(var(--schematics-ideal), 100vw - 2rem);
  }

  .landing-schematics__header p {
    color: var(--color-muted);
    font-size: var(--font-body-lg);
  }

  .landing-schematics__grid {
    display: grid;
    grid-template-columns: repeat(var(--schematics-cols, 3), minmax(0, 1fr));
    gap: clamp(20px, 2vw, 28px);
    margin-block-start: clamp(24px, 3vw, 44px);
    justify-items: stretch;
    justify-content: center;
  }

  .landing-schematic-card {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 24px);
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
  }

  .landing-schematic-card__media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 220px;
    height: 220px;
    background: linear-gradient(140deg, rgba(79, 70, 229, 0.35), rgba(79, 70, 229, 0.12));
  }

  .landing-schematic-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .landing-schematic-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
  }

  .landing-schematic-card__body h3 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 0.5em;
  }

  .landing-schematic-card__body p {
    color: var(--color-muted);
    margin-bottom: 1rem;
  }

  .landing-schematic-card__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .landing-schematic-card__body li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 600;
  }

  .landing-schematic-card__body li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
  }

  .landing-bullet-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.4vw, 14px);
    padding: 0;
    margin: clamp(16px, 3vw, 28px) 0;
    list-style: none;
    background: transparent;
  }

  .landing-bullet-list li {
    flex: 1 1 calc(20% - clamp(10px, 1.4vw, 14px));
    min-width: 180px;
    max-width: calc(20% - clamp(10px, 1.4vw, 14px));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 24px);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  @media (max-width: 980px) {
    .landing-bullet-list li {
      flex: 1 1 calc(50% - clamp(10px, 1.4vw, 14px));
      max-width: 100%;
    }
  }

  @media (max-width: 600px) {
    .landing-bullet-list li {
      flex: 1 1 100%;
    }
  }

  .landing-bullet-list h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-text);
  }

  .landing-bullet-list p {
    margin: 0;
    color: var(--color-muted);
  }

  @media (max-width: 1200px) {
    .landing-schematics { --schematics-cols: 3 !important; }
  }

  @media (max-width: 900px) {
    .landing-schematics { --schematics-cols: 2 !important; }
  }

  @media (max-width: 720px) {
    .landing-schematics { --schematics-cols: 1 !important; }
  }

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

  /* Fallback page hero + prose -------------------------------------- */
  .page-hero {
    padding: clamp(32px, 6vw, 64px) clamp(24px, 4vw, 48px) 0;
  }

  .page-hero__inner {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .page-hero__inner h1 {
    font-size: var(--font-heading-lg);
    line-height: 1.1;
  }

  .page-hero__lede {
    color: var(--color-muted);
    font-size: var(--font-body-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .page-hero__actions {
    margin-top: 10px;
  }

  .landing__content {
    padding: clamp(24px, 4vw, 48px);
  }

  .landing-prose {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 28px);
  }

  .landing-prose__section {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: clamp(24px, 4vw, 48px);
  }

  .landing-prose__section--plain {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .landing-prose__section + .landing-prose__section {
    margin-top: clamp(12px, 2vw, 18px);
  }

  .landing-prose__section--intro {
    margin: clamp(8px, 3vw, 28px) 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .landing-prose__section--intro .landing-prose__inner {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-text);
  }

  .landing-prose__section--intro .landing-prose__inner > h1:first-child,
  .landing-prose__section--intro .landing-prose__inner > h2:first-child {
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.65em;
  }

  .landing-prose__section--intro .landing-prose__inner p {
    color: var(--color-muted);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
  }

  .landing-prose__cta {
    margin-top: clamp(16px, 3vw, 32px);
    padding-top: clamp(16px, 3vw, 32px);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .landing-prose__cta p {
    font-size: 1.1rem;
    color: var(--color-muted);
  }

  .landing-prose__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .landing-prose__cta-actions .btn {
    min-width: 220px;
    justify-content: center;
  }

  @media (max-width: 640px) {
    .landing-prose__cta-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .landing-prose__section--intro .landing-prose__inner > h1:first-child,
    .landing-prose__section--intro .landing-prose__inner > h2:first-child {
      font-size: clamp(1.55rem, 7vw, 1.9rem);
    }
  }

  .rich-text {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  /* Services ----------------------------------------------------------- */
  .landing-services {
    max-width: var(--landing-max);
    margin: clamp(48px, 8vw, 96px) auto;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 48px);
  }

  .landing-services__header {
    max-width: 720px;
  }

  .contact-form {
    width: 100%;
    max-width: 640px;
    margin: clamp(24px, 5vw, 48px) auto;
    padding: clamp(24px, 5vw, 40px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(7, 11, 22, 0.92), rgba(17, 24, 39, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 90px rgba(3, 6, 23, 0.55);
  }

  .contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .contact-form__field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
  }

  .contact-form__field input,
  .contact-form__field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  .contact-form__field textarea {
    min-height: 160px;
    resize: vertical;
  }

  .contact-form__field input:focus,
  .contact-form__field textarea:focus {
    outline: none;
    border-color: rgba(98, 230, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(98, 230, 255, 0.2);
  }

  .contact-form__actions {
    margin-top: 12px;
  }

  .contact-form__actions .button,
  .contact-form__actions button,
  .contact-form__actions input[type='submit'] {
    width: 100%;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(110deg, #43c4ff, #5f5bff);
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .contact-form__actions .button:hover,
  .contact-form__actions button:hover,
  .contact-form__actions input[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(67, 196, 255, 0.45);
  }

  .contact-form__messages {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #d1f6ff;
  }

  @media (max-width: 600px) {
    .contact-form {
      padding: 20px;
    }
  }

  .landing-prose__contact {
    width: 100%;
  }

  .landing-prose__contact .contact-form-card {
    width: 100%;
    margin: 0;
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-card-border);
    box-shadow: var(--contact-card-shadow);
  }

  .landing-prose__contact .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .landing-prose__contact .form-label label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
  }

  .landing-prose__contact .form-input-wrapper input,
  .landing-prose__contact .form-textarea-wrapper textarea {
    width: 100%;
    border: 1px solid var(--contact-field-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: var(--contact-field-bg);
    color: var(--contact-field-text);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  .landing-prose__contact .form-input-wrapper input:focus,
  .landing-prose__contact .form-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--contact-field-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--contact-field-focus) 40%, transparent);
    caret-color: var(--contact-field-text);
  }

  .landing-prose__contact .buttons {
    margin-top: 16px;
  }

  .landing-prose__contact .button {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(110deg, #43c4ff, #5f5bff);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--contact-button-shadow);
  }

  .landing-prose__contact .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(67, 196, 255, 0.45);
  }

  @media (max-width: 640px) {
    .landing-prose__contact .contact-form-card {
      padding: 20px;
    }
  }

  .landing-services__header h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.4em;
  }

  .landing-services__header p {
    color: var(--color-muted);
  }

  .landing-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(18px, 3vw, 28px);
  }

  .landing-services__card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
  }

  .landing-services__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-chip);
    color: var(--color-accent);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
  }

  .landing-services__body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35em;
    color: var(--color-text);
  }

  .landing-services__body p {
    color: var(--color-muted);
  }

  .landing-services__link {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .landing-services__link::after {
    content: '→';
    transition: transform var(--transition-fast);
  }

  .landing-services__link:hover::after {
    transform: translateX(4px);
  }

  .rich-text h1,
  .rich-text h2,
  .rich-text h3,
  .rich-text h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.2;
  }

  .rich-text > h1:first-child,
  .rich-text > h2:first-child {
    margin-top: 0;
  }

  .rich-text h1 {
    font-size: var(--font-heading-lg);
  }

  .rich-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
  }

  .rich-text h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  }

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

  .rich-text ul,
  .rich-text ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }

  .rich-text hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5rem 0;
  }

  .rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
  }

  .rich-text th,
  .rich-text td {
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .rich-text th {
    background: var(--color-subtle);
    font-weight: 600;
  }

  .rich-text blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
    color: var(--color-text);
    font-style: italic;
  }

  .rich-text a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }

  /* Footer ------------------------------------------------------------- */
  .footer {
    border-top: 1px solid var(--color-border);
    padding: clamp(28px, 4vw, 48px);
    background: var(--color-sheet);
    font-size: 0.95rem;
    overflow-x: hidden;
  }

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

  .footer__legal {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
  }

  .footer__legal details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-card);
    padding: 0;
    width: 100%;
    max-width: inherit;
    box-sizing: border-box;
  }

  .footer__summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-accent);
    list-style: none;
    display: block;
    padding: 16px 20px;
    box-sizing: border-box;
  }

  .footer__summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .footer__summary-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer__summary-label {
    display: block;
  }

  .footer__copyright {
    margin: 12px 0 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--color-muted);
  }

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

  .footer__legal summary::after {
    content: '\25BC';
    font-size: 0.8em;
    transition: transform 0.2s ease;
  }

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

  .footer__legal details[open] {
    background: var(--color-sheet);
  }

  .footer__legal-content {
    width: 100%;
    max-width: 140ch;
    margin: 16px auto 0;
    background: var(--color-sheet);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer__summary {
    text-align: center;
  }

  .footer__socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .footer__socials img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
  }
}

/* --------------------------------------------------------------------------
 * Utilities
 * -------------------------------------------------------------------------- */
@layer utilities {
  .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;
  }

  .text-center {
    text-align: center;
  }
}