/* ==========================================================================
   Hanse Club — landing page
   Type and colour follow hanseyachts.com (Roboto / Roboto Condensed, deep
   navy) and the app's own tokens (shared-spec/tokens.json). The accent is a
   variable because the app itself re-tints per brand — the rail below the
   hero drives it here the same way.
   ========================================================================== */

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('/assets/fonts/RobotoCondensed-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Mono';
  src: url('/assets/fonts/RobotoMono-var.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}

:root {
  /* water */
  --deep: #081f38;
  --mid: #1f3d5c;
  --water-top: #0e2a45;
  --shallow: #b8d6e0;

  /* land */
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #0d243d;
  --body: #4f6b85;
  --line: rgba(13, 36, 61, 0.10);

  /* one spark of the parent brand's signal orange — launch marker only */
  --signal: #fe6d2c;

  /* brand accent, swapped by the rail */
  --accent: #245478;
  --accent-lite: #5a9dc8;

  --shell: min(1180px, 100% - 48px);
  --radius: 24px;
  --radius-sm: 14px;

  --step: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Grid items default to min-width:auto, and a percentage max-width on an
   image is ignored while the browser measures intrinsic width — so a 1080px
   screenshot would blow the track open. Let every track shrink instead. */
.hero__grid > *,
.screens > *,
.area > *,
.area__items > *,
.roadmap > *,
.rail > *,
.rung > *,
.tl > * { min-width: 0; }

a { color: inherit; }

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- type ---------------------------------------------------------------- */

.eyebrow {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--step);
}

.eyebrow--onwater { color: var(--shallow); }

h1, h2, h3 {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--body);
  max-width: 56ch;
}

.shell { width: var(--shell); margin-inline: auto; }

.section { padding: clamp(72px, 9vw, 132px) 0; }

.section__head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head .lead { margin: 20px 0 0; }

/* --- header -------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 250, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.masthead[data-stuck='true'] { border-bottom-color: var(--line); }

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.wordmark img { height: 22px; width: auto; }

.wordmark span {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.masthead nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
}

.masthead nav a { text-decoration: none; color: var(--body); transition: color 0.2s; }
.masthead nav a:hover { color: var(--accent); }

.masthead__tools { display: flex; align-items: center; gap: 10px; flex: none; }

.langswitch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.langswitch button {
  border: 0;
  background: none;
  padding: 7px 11px;
  cursor: pointer;
  color: var(--body);
  font: inherit;
  text-transform: uppercase;
}

.langswitch button[aria-pressed='true'] { background: var(--accent); color: #fff; }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, var(--paper) 0%, #e3edf5 62%, #d6e6f0 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

/* Genau zwei Zeilen, eine je Satzhälfte. Die längere ("bis zum nächsten Törn.")
   ist in Roboto Condensed 700 mit letter-spacing -0.025em 8,829 em breit — bei
   100 % Spaltenbreite entspricht das 100/8,829 = 11,33cqi. 10,8cqi lässt gut
   4 % Luft für Rundung und Hinting.

   cqi statt vw, weil die Textspalte nicht linear am Viewport hängt: --shell
   deckelt bei 1180 px, das Grid teilt 1.08fr/0.92fr, und ab 965 px wird eine
   Spalte daraus. Container-Einheiten treffen alle drei Fälle von selbst. */
.hero h1 {
  font-size: clamp(1.9rem, 10.8cqi, 4.1rem);
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--accent);
}

.hero .lead { margin: 0 0 32px; }

/* Bezugsgröße für die cqi-Rechnung am h1 darüber. */
.hero__copy {
  container-type: inline-size;
  padding-bottom: clamp(40px, 6vw, 76px);
}

.launchchip {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  background: rgba(254, 109, 44, 0.12);
  border: 1px solid rgba(254, 109, 44, 0.35);
  margin-bottom: 28px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a83f10;
}

.launchchip b { color: var(--signal); font-weight: 500; }

/* the wave that separates air from water — the same bezier the app draws
   behind its own hero (HanseClub/Theme.swift, WaveShape) */
.waveline {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(90px, 12vw, 170px);
  z-index: 1;
  display: block;
}

.waveline path { fill: var(--water-top); }

/* Both tiles are 100 user units wide, so a drift of exactly -100 returns to the
   opening frame — the loop never shows a seam, and because the path spans 0–200
   the visible 0–100 window stays covered at every point of the cycle. The back
   layer is slower and semi-transparent: the two crests slide past each other
   instead of moving as one rigid line. */
.waveline__front,
.waveline__back { will-change: transform; }

.waveline__front { animation: wave-drift 18s linear infinite; }

.waveline__back {
  opacity: 0.45;
  animation: wave-drift 28s linear infinite;
}

@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-100px); }
}

/* --- device -------------------------------------------------------------- */

.device {
  position: relative;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2c3946, #0f151c 60%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 40px 80px -30px rgba(8, 31, 56, 0.65),
    0 8px 22px -10px rgba(8, 31, 56, 0.4);
  max-width: 340px;
  margin-inline: auto;
}

.device img {
  border-radius: 34px;
  width: 100%;
  background: var(--paper);
}

/* the phone dips past the waterline into the water band below, the way the
   app's own hero puts the boat half in the water */
.hero__device { transform: translateY(clamp(28px, 5vw, 72px)); }

/* --- water band ---------------------------------------------------------- */

.water {
  position: relative;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--water-top), var(--deep) 55%, #06182b);
  color: #dfe9f2;
  padding: clamp(48px, 6vw, 76px) 0 clamp(64px, 7vw, 96px);
}

.telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.telemetry span {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(223, 233, 242, 0.78);
  white-space: nowrap;
}

.telemetry span b { color: #fff; font-weight: 500; }

/* --- brand rail (signature) ---------------------------------------------- */

.rail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.rail__head h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }

.rail__hint {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 214, 224, 0.75);
  margin: 0;
}

.rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.rail button {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 18px;
  transition: background 0.35s, border-color 0.35s, transform 0.25s;
}

.rail button img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.35s;
}

.rail button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.rail button:hover img { opacity: 0.9; }

.rail button[aria-pressed='true'] {
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 34px -14px var(--brand);
}

.rail button[aria-pressed='true'] img { opacity: 1; }

/* Ryck's brand colour is black — on the dark band it needs an outline
   instead of a fill to read as selected. */
.rail button[data-brand='ryck'][aria-pressed='true'] {
  background: #000;
  border-color: #fff;
}

.rail__caption {
  margin: 22px 0 0;
  font-size: 0.95rem;
  color: rgba(223, 233, 242, 0.72);
  max-width: 60ch;
}

.rail__caption b { color: #fff; font-weight: 500; }

/* --- stages ---------------------------------------------------------------
   The app's own four-state model (AppState.UserState, S0–S3), without the
   internal labels: the app only shows those in a profile diagnostics row. Same
   two-column rhythm as the timeline further down, because it reads the same
   way — a sequence with a marker on the left.                              */

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rung {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.rung:last-child { border-bottom: 1px solid var(--line); }

.rung__step b {
  display: block;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.rung__step span {
  display: block;
  margin-top: 7px;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
}

/* Who the step makes you, on the two rungs where that changes. Set apart from
   the condition above it: same mono, but accented and not shouting in caps. */
.rung__step .rung__who {
  margin-top: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

.rung p { margin: 0; color: var(--body); font-size: 0.96rem; }

/* The one step that needs hardware — worth marking so nobody reads live
   telemetry as something the HIN alone switches on. */
.rung[data-needs-unit='true'] .rung__step > span:not(.rung__who) { color: var(--accent); }

/* --- features by app area ------------------------------------------------ */

.areas { display: grid; gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }

.area {
  background: var(--surface);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 232px;
  gap: 34px;
  padding: 36px clamp(24px, 3vw, 40px);
  align-items: start;
}

/* One screenshot per area, so the text next to it always has something to
   point at. */
.area__shot { margin: 0; align-self: center; }

.area__shot .device {
  max-width: 218px;
  border-radius: 34px;
  padding: 8px;
}

.area__shot .device img { border-radius: 27px; }

.area__label { position: sticky; top: 96px; align-self: start; }

.area__label span {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.area__label h3 { margin-top: 8px; font-size: 1.5rem; }

.area__label p { margin: 8px 0 0; font-size: 0.9rem; color: var(--body); }

.area__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px 30px;
}

.item h4 {
  margin: 0 0 6px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.item p { margin: 0; font-size: 0.92rem; color: var(--body); line-height: 1.5; }

/* Heading plus its requirement badge on one line. The badge is a sibling of the
   h4, never a child: applyLang() swaps innerHTML on [data-en], so a nested
   badge would be wiped on the first switch to English. */
.item__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.item__head h4 { margin: 0; }

/* Marks the items inside an area that need more than the area's own label —
   in practice: the readings that only exist with a Sentinel unit aboard. */
.item__need {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* --- roadmap ------------------------------------------------------------- */

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.rm {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status {
  align-self: flex-start;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.status[data-kind='planned'] { background: rgba(36, 84, 120, 0.1); color: var(--accent); }
.status[data-kind='exploring'] { background: rgba(79, 107, 133, 0.12); color: var(--body); }

.rm h3 { font-size: 1.15rem; }
.rm p { margin: 0; color: var(--body); font-size: 0.94rem; }

/* --- screens ------------------------------------------------------------- */

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.screen figcaption {
  margin-top: 20px;
  text-align: center;
}

.screen figcaption b {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.screen figcaption span { font-size: 0.9rem; color: var(--body); }

.screens .device { max-width: 296px; }

.screens .device:not(:hover) { transition: transform 0.4s; }
.screen:nth-child(2) .device { transform: translateY(-24px); }

/* --- timeline ------------------------------------------------------------ */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.tl {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.tl:last-child { border-bottom: 1px solid var(--line); }

.tl time {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
}

.tl h3 { font-size: 1.35rem; margin-bottom: 6px; }
.tl p { margin: 0; color: var(--body); font-size: 0.96rem; }

.tl[data-launch='true'] time { color: var(--signal); }
.tl[data-launch='true'] h3::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 10px;
  vertical-align: middle;
}

/* --- faq ----------------------------------------------------------------- */

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

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

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

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

.faq summary::after {
  content: '+';
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after { content: '–'; }

.faq p { margin: 0 0 22px; color: var(--body); max-width: 68ch; }

/* --- download / cta ------------------------------------------------------ */

.cta {
  background:
    radial-gradient(90% 120% at 80% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 62%),
    linear-gradient(180deg, var(--deep), #06182b);
  color: #fff;
  text-align: center;
  padding: clamp(72px, 9vw, 120px) 0;
}

.cta h2 { color: #fff; }
.cta .lead { color: rgba(223, 233, 242, 0.8); margin: 20px auto 0; }

.badges {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.cta .badges { justify-content: center; margin-top: 36px; }

.badge {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s, opacity 0.2s;
  line-height: 0;
}

.badge:hover { transform: translateY(-2px); }

/* Official artwork from Apple and Google. Both PNG/SVG are trimmed to the badge
   itself, so one height lines them up; the flex gap provides the clear space
   both brands ask for. */
.badge img { height: 52px; width: auto; }

/* --- dialog -------------------------------------------------------------- */

dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 40px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(8, 31, 56, 0.6);
}

dialog::backdrop { background: rgba(8, 31, 56, 0.55); backdrop-filter: blur(4px); }

.dialog__body { padding: 34px; }

.dialog__body h3 { font-size: 1.6rem; margin-bottom: 12px; text-transform: uppercase; }

.dialog__body p { color: var(--body); margin: 0 0 24px; font-size: 0.98rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s;
}

.btn:hover { filter: brightness(1.12); }

.btn--ghost {
  background: none;
  color: var(--body);
  border: 1px solid var(--line);
}

.dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- footer -------------------------------------------------------------- */

.footer {
  background: #06182b;
  color: rgba(223, 233, 242, 0.62);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}

.footer__grid {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer img { height: 26px; width: auto; opacity: 0.85; }

.footer a { color: rgba(223, 233, 242, 0.62); text-decoration: none; }
.footer a:hover { color: #fff; }

.footer__cols { display: grid; gap: 16px; justify-items: flex-end; }

.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }

.footer__links--legal {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* This row is a sentence, not a bare domain: the brand links read as links on
   their own, a sentence needs the underline to do the same. */
.footer__links--fair a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legalbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(223, 233, 242, 0.62);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legalbtn:hover { color: #fff; }

.footer__note {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 233, 242, 0.42);
}

/* --- reveal -------------------------------------------------------------- */

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

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* --- login --------------------------------------------------------------- */

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(90, 157, 200, 0.35), transparent 60%),
    linear-gradient(160deg, var(--deep), var(--mid) 55%, #0a2136);
}

.gate__card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 40px;
  backdrop-filter: blur(18px);
  color: #fff;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

.gate__card img { height: 26px; width: auto; margin-bottom: 26px; }

.gate__card h1 { font-size: 2.2rem; text-transform: uppercase; margin-bottom: 10px; }

.gate__card p { color: rgba(223, 233, 242, 0.72); font-size: 0.95rem; margin: 0 0 26px; }

.gate label {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 214, 224, 0.8);
  margin-bottom: 8px;
}

.gate input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font: inherit;
  margin-bottom: 18px;
}

.gate input:focus { outline: 2px solid var(--accent-lite); outline-offset: 1px; }

.gate .btn { width: 100%; background: #fff; color: var(--deep); }

.gate__error {
  background: rgba(250, 115, 115, 0.15);
  border: 1px solid rgba(250, 115, 115, 0.4);
  color: #ffd9d9;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.gate__foot {
  margin: 26px 0 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(223, 233, 242, 0.4);
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1180px) and (min-width: 981px) {
  .area { grid-template-columns: 168px minmax(0, 1fr) 196px; gap: 26px; }
  .area__shot .device { max-width: 188px; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 40px; }
  .hero__device { transform: none; margin-bottom: clamp(40px, 8vw, 80px); }
  .device { max-width: 280px; }
  .area { grid-template-columns: 1fr; gap: 26px; }
  .area__label { position: static; }
  .area__shot .device { max-width: 240px; }
  .screens { grid-template-columns: 1fr; justify-items: center; }
  .screen:nth-child(2) .device { transform: none; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .rung { grid-template-columns: 1fr; gap: 10px; }
  .masthead nav { display: none; }
  .rail { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .footer__cols, .footer__links { justify-items: flex-start; justify-content: flex-start; }
  .footer__grid { gap: 20px; }
  body { font-size: 16px; }
  .dialog__body { padding: 24px; }
  .wordmark span { font-size: 0.95rem; }
  .badge img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* Stopped outright, not merely shortened: the blanket 0.01ms below would spin
     an infinite animation thousands of times a second instead of ending it. */
  .waveline__front, .waveline__back { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
