/* Semek landing page — AIAIAI brand styleguide.
   Tokens, type and shape follow the styleguide extracted from the AIAIAI Figma
   file (Final design section): lavender wall, indigo device, navy pill, Figtree
   everywhere, level color families as accents. */

/* ---------- font: Figtree variable ---------- */
@font-face {
  font-family: Figtree;
  src: url("../fonts/figtree.woff2?h=392aed3e") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- AIAIAI tokens ---------- */
:root {
  --backdrop: #d7deff;
  --device: #394fbb;
  --pill: #0f2693;
  --surface: #fbfbfb;
  --white: #ffffff;
  --ink: #212467;
  --line-deep: #16195d;
  --text: #414141;
  --muted: #6e6e6e;
  --divider: #e8e9ec;
  /* level families: card / tint / deep / ink */
  --l1-card: #56ce8f; --l1-tint: #82edb5; --l1-deep: #009e4b; --l1-ink: #094118;
  --l2-card: #b0acff; --l2-tint: #8c8fff; --l2-deep: #334dc6; --l2-ink: #212467;
  --l3-card: #78e5f4; --l3-tint: #03bfd9; --l3-deep: #00899c; --l3-ink: #01454f;
  --l4-card: #feb15c; --l4-tint: #fd8e14; --l4-deep: #b96407; --l4-ink: #5a2f00;
  --l5-card: #ff8aad; --l5-tint: #ff6493; --l5-deep: #b10d3e; --l5-ink: #7b0025;
  /* signals */
  --warn: #f9af2c; --warn-bg: #ffefd0;
  --alert: #c9411b; --alert-bg: #ffeeee;
}

/* ---------- reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--backdrop);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
/* the demo toggles variants via the hidden attribute; without this, the
   img/svg display:block above silently overrides the UA's [hidden] rule */
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}

/* ---------- containers + section cards ---------- */
.container-1280 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-1024 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
/* sections are rounded cards on the lavender wall, like the kiosk screens */
.section {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 72px 0;
  background: var(--surface);
  border-radius: 20px;
}
.section > .container-1280,
.section > .container-1024 {
  padding: 0 56px;
}
.section.band-device {
  background: var(--device);
}
.section.band-plain {
  background: none;
  border-radius: 0;
}

/* ---------- type ladder (styleguide roles) ---------- */
.heading-1 {
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--ink);
}
.heading-3 {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
}
.subheading {
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}
.card-title {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.paragraph {
  margin: 0 0 16px;
}
.paragraph.large {
  font-weight: 300;
  font-size: 23px;
  line-height: 1.5;
}
.paragraph.muted {
  color: var(--muted);
}

/* ---------- buttons: navy capsule (r53) ---------- */
.button-primary {
  display: inline-block;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: var(--pill);
  border: 1px solid var(--pill);
  border-radius: 53px;
  padding: 15px 34px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--device);
  border-color: var(--device);
}

/* ---------- the mark ----------
   The lock-screen logo from the kiosk: two interlocking curled strokes
   (exact Figma outlines, 198.01x200 box). The kiosk animates a highlight
   travelling round each stroke — per-pixel angle about the badge centre,
   cosine sweep between lighter and darker versions of each stroke's OWN
   tint (contrast 55), one revolution every ~7.7 s, anticlockwise. Here the
   same flow is a conic gradient clipped to each stroke, spun by rotating
   an oversized layer about the badge centre (99,100). */
.mark {
  position: relative;
  display: inline-block;
  --mark-s: 40; /* height in px, unitless so scale() can use it */
  width: calc(var(--mark-s) * 0.9901px);
  height: calc(var(--mark-s) * 1px);
  flex: none;
}
.mark .mk {
  position: absolute;
  left: 0;
  top: 0;
  width: 198.01px;
  height: 200px;
  transform: scale(calc(var(--mark-s) / 200));
  transform-origin: 0 0;
  overflow: hidden;
}
.mark .mk i {
  position: absolute;
  left: -201px;
  top: -200px;
  width: 600px;
  height: 600px;
  animation: mark-flow 7.7s linear infinite;
}
/* back stroke: base #FD8E14. The sweep stays anchored on the saturated base
   (Ruben: the mark read grey at small sizes when the stops mixed toward
   black and white) */
.mark .mk-back {
  clip-path: path("M 101.50 41.76 C 98.56 41.09 96.64 40.73 96.33 40.81 L 47.88 54.14 C 43.04 55.47 39.91 60.16 40.53 65.14 L 48.53 129.51 C 48.94 132.80 50.94 135.68 53.87 137.22 L 94.32 158.39 C 146.08 185.48 187.61 150.83 189.64 134.50 C 187.59 150.96 177.60 165.37 162.90 173.07 L 122.46 194.23 C 115.25 198.00 107.14 200.00 99.01 200.00 C 90.88 200.00 82.77 198.00 75.57 194.23 L 35.12 173.07 C 20.42 165.38 10.43 150.96 8.39 134.50 L 3.68 96.65 L 0.39 70.13 C -2.44 47.38 37.89 25.43 101.50 41.76 L 101.50 41.76 Z");
}
.mark .mk-back i {
  background: conic-gradient(from -90deg, #feb75f 0deg, #fd8e14 90deg, #d9760d 180deg, #fd8e14 270deg, #feb75f 360deg);
}
/* front stroke: base #FFD4A4, same saturated anchoring */
.mark .mk-front {
  clip-path: path("M 101.49 41.76 C 115.01 44.82 150.13 54.14 150.13 54.14 C 154.98 55.47 158.11 60.16 157.49 65.14 L 149.49 129.51 C 149.08 132.80 147.08 135.68 144.14 137.22 L 103.70 158.39 C 100.76 159.93 97.26 159.93 94.32 158.39 C 146.08 185.48 187.60 150.83 189.63 134.50 L 197.63 70.13 C 199.13 58.08 196.23 45.88 189.48 35.79 C 182.73 25.69 172.57 18.36 160.86 15.14 L 112.42 1.81 C 108.05 0.61 103.54 0.00 99.00 0.00 C 94.47 0.00 89.96 0.61 85.59 1.81 L 37.15 15.14 C 25.44 18.36 15.27 25.69 8.52 35.79 C 1.78 45.88 -1.11 58.08 0.39 70.13 C -2.44 47.38 37.88 25.43 101.49 41.76 Z");
}
.mark .mk-front i {
  background: conic-gradient(from -90deg, #ffe3c2 0deg, #ffd4a4 90deg, #f0b87e 180deg, #ffd4a4 270deg, #ffe3c2 360deg);
}
@keyframes mark-flow {
  to { transform: rotate(360deg); } /* clockwise on the website, per Pieter */
}
@media (prefers-reduced-motion: reduce) {
  .mark .mk i {
    animation: none;
  }
}

/* the hero's content shares the sections' inner padding, so the whole page
   keeps one left edge (Vic: "padding-left-liefde") */
.hero .container-1280 {
  padding: 0 56px;
}

/* ---------- top bar (lives inside the hero card) ---------- */
.topbar {
  position: relative;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .mark {
  --mark-s: 48;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}
.wordmark .dot {
  color: var(--l4-card);
}
.topbar-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--device);
  background: #fff;
  border-radius: 53px;
  padding: 10px 22px;
  text-decoration: none;
}
.topbar-link:hover {
  color: var(--pill);
}

/* ---------- hero: the indigo device ---------- */
.hero {
  position: relative;
  max-width: 1160px;
  margin: 24px auto 0;
  background: var(--device);
  border-radius: 24px;
  padding: 32px 0 0;
  overflow: hidden;
}
.hero-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.hero-copy {
  padding-bottom: 88px;
}
.hero-copy .heading-1 {
  color: #fff;
}
.hero-copy .paragraph.large {
  color: #d2d8f5;
  max-width: 34ch;
}
.hero-copy .button-primary {
  background: #fff;
  border-color: #fff;
  color: var(--pill);
}
.hero-copy .button-primary:hover,
.hero-copy .button-primary:focus-visible {
  background: var(--l4-card);
  border-color: var(--l4-card);
  color: var(--l4-ink);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-packshot {
  display: block;
  width: min(500px, 100%);
  height: auto;
  /* the real photo's cables run out of the bottom; the card edge clips them,
     so no fade mask is needed */
}

/* ---------- phone mock: white device, navy pill notch ---------- */
.phone {
  width: 320px;
  background: var(--surface);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 32px 64px rgba(15, 38, 147, 0.35);
  position: relative;
}
.phone::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 7px;
  border-radius: 53px;
  background: var(--pill);
  opacity: 0.25;
}
.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--divider);
}
.hero .phone {
  margin-bottom: -72px;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--divider);
}
.feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--backdrop);
  flex: none;
}
.feed-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.feed-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
.feed-post {
  border-bottom: 1px solid var(--divider);
}
.feed-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.feed-image.scene-beach {
  background: linear-gradient(180deg, var(--l2-card) 0 55%, var(--l4-card) 55% 100%);
}
.feed-image.scene-beach::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warn-bg);
}
.feed-image.scene-city {
  background: linear-gradient(180deg, var(--l5-card) 0 45%, var(--ink) 45% 100%);
}
.feed-image.scene-city::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 150px;
  height: 78px;
  background: linear-gradient(90deg, var(--line-deep) 0 34px, transparent 34px 44px, var(--pill) 44px 90px, transparent 90px 100px, var(--line-deep) 100px 150px);
}
.feed-text {
  padding: 12px 16px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
/* Semek's real marks: corner tag + faint tiled watermark on AI images,
   inline prefix on AI text. */
.ai-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 25, 93, 0.85);
  border-radius: 5px;
  padding: 3px 7px;
}
.ai-watermark {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='90'%3E%3Ctext x='8' y='50' font-family='Helvetica' font-size='13' fill='rgba(22,25,93,0.18)' transform='rotate(-18 70 45)'%3EAI generated%3C/text%3E%3C/svg%3E");
}
.ai-text-mark {
  color: var(--alert);
  font-weight: 600;
}
.feed-blur {
  filter: blur(14px);
  transform: scale(1.12);
}
/* the blurred inner copy is the only scene that may show */
.feed-image.is-blurred {
  background: none;
}
.feed-image.is-blurred::after {
  content: none;
}
.feed-image.is-blurred::before {
  content: attr(data-hidden-label); /* per-language caption, set in the HTML */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

/* ---------- before / after ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  justify-items: center;
  margin-top: 48px;
}
.compare-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.compare-item .phone {
  margin: 0 auto;
}
/* the caption leads, so the reader knows which feed they are looking at
   before they scroll into it (Ruben: captions at the bottom go unseen) */
.compare-caption {
  order: -1;
  margin-bottom: 20px;
}
.compare-caption {
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.compare-caption.off {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- level demo: one feed, five levels ---------- */
.level-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 36px 0 28px;
}
.level-btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  border-radius: 53px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.level-btn .n {
  font-weight: 800;
}
.level-btn.l1 { background: var(--l1-card); color: var(--l1-ink); }
.level-btn.l2 { background: var(--l2-card); color: var(--l2-ink); }
.level-btn.l3 { background: var(--l3-card); color: var(--l3-ink); }
.level-btn.l4 { background: var(--l4-card); color: var(--l4-ink); }
.level-btn.l5 { background: var(--l5-card); color: var(--l5-ink); }
.level-btn[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(22, 25, 93, 0.25);
}
.demo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.demo-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  min-height: 1.7em;
}
.feed-media {
  position: relative;
  overflow: hidden;
}
.feed-media.blurred img {
  filter: blur(14px);
  transform: scale(1.06);
}
.feed-rejected {
  background: var(--backdrop);
  padding: 30px 16px;
  text-align: center;
  color: var(--ink);
}
.feed-rejected .rejected-mark {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
}
.feed-rejected b {
  display: block;
  font-size: 14px;
}
.feed-rejected span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- clickable mode chips + per-card previews ---------- */
.mode-chip {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.control-preview {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.control-preview img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}
.preview-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 25, 93, 0.85);
  border-radius: 5px;
  padding: 3px 7px;
}
.preview-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.preview-rejected {
  display: none;
  padding: 24px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  background: var(--backdrop);
  color: var(--ink);
}
/* same treatment as the demo's level-5 card: mark, then the promise */
.preview-rejected .rejected-mark {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
}
.preview-rejected b {
  display: block;
  font-size: 14px;
}
.preview-rejected span {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.preview-text {
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.preview-text .mark-label,
.preview-text .rejected-line {
  display: none;
  color: var(--alert);
  font-weight: 600;
}
/* Label shows the gateway's real marked output: corner tag + full-frame watermark */
.control-preview .preview-marked { display: none; }
.control-card[data-mode="label"] .preview-marked { display: block; }
.control-card[data-mode="label"] .preview-base { display: none; }
.control-card[data-mode="blur"] .control-preview img { filter: blur(10px); }
.control-card[data-mode="reject"] .feed-media { display: none; }
.control-card[data-mode="reject"] .preview-rejected { display: block; }
.control-card[data-mode="label"] .preview-text .mark-label { display: inline; }
.control-card[data-mode="reject"] .preview-text .sample { display: none; }
.control-card[data-mode="reject"] .preview-text .rejected-line { display: inline; }

/* ---------- stat chips (styleguide: white, deep-line hairline, ink values) ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line-deep);
  border-radius: 16px;
  padding: 36px 32px 28px;
}
.stat-figure {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.stat-card .paragraph {
  margin: 0;
}

/* ---------- steps: numbered discs in the level families ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 48px;
}
.step-badge {
  width: 56px;
  height: 56px;
  border-radius: 38% 62% 55% 45%/45% 40% 60% 55%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 18px;
}
.step-badge.salmon {
  background: var(--l1-tint);
  color: var(--l1-ink);
}
.step-badge.amber {
  background: var(--l2-card);
  color: var(--l2-ink);
}
.step-badge.blue {
  background: var(--l3-tint);
  color: var(--l3-ink);
}
.step-badge.green {
  background: var(--l4-card);
  color: var(--l4-ink);
}
.step-item .paragraph {
  margin: 0;
  color: var(--muted);
}

/* ---------- control cards: level-card treatment ---------- */
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.control-card {
  border-radius: 16px;
  padding: 32px;
}
.control-card.tint-blue {
  background: var(--l3-card);
  color: var(--l3-ink);
}
.control-card.tint-blue .card-title { color: var(--l3-ink); }
.control-card.tint-green {
  background: var(--l1-card);
  color: var(--l1-ink);
}
.control-card.tint-green .card-title { color: var(--l1-ink); }
.control-card.tint-amber {
  background: var(--l4-card);
  color: var(--l4-ink);
}
.control-card.tint-amber .card-title { color: var(--l4-ink); }
.control-glyph {
  width: 64px;
  height: 64px;
  border-radius: 38% 62% 55% 45%/45% 40% 60% 55%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.control-card .paragraph {
  color: inherit;
  margin-bottom: 20px;
}
.mode-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--white);
  border-radius: 12px;
  padding: 6px;
}
.mode-chip {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}
.mode-chip.active {
  background: var(--ink);
  color: #fff;
}

/* ---------- privacy list ---------- */
.promise-list {
  margin-top: 40px;
}
.promise-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--divider);
}
.promise-item:last-child {
  border-bottom: 1px solid var(--divider);
}
.promise-item .subheading {
  margin: 0;
}
.promise-item .paragraph {
  margin: 0;
  color: var(--muted);
}

/* ---------- honest ---------- */
.honest .paragraph.large {
  color: var(--ink);
}

/* ---------- waitlist: white screen inside the indigo device ---------- */
.section.band-device .heading-3,
.section.band-device .paragraph {
  color: #fff;
}
.section.band-device .paragraph {
  color: #d2d8f5;
}
/* the waitlist closes the page like the Pi lock screen: big badge, centered */
.waitlist-head {
  text-align: center;
}
.waitlist-head .mark {
  --mark-s: 150;
  margin-bottom: 32px;
}
.waitlist-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 48px;
  margin-top: 40px;
}
.waitlist-fallback-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.waitlist-input {
  flex: 1 1 280px;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 17px;
  padding: 14px 24px;
  border: 1px solid var(--line-deep);
  border-radius: 53px;
  color: var(--ink);
  background: #fff;
}
.waitlist-input:focus-visible {
  outline: 2px solid var(--device);
  outline-offset: 1px;
  border-color: var(--device);
}
.waitlist-note {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 0;
}
.hs-form-frame,
.waitlist-hs {
  min-height: 0;
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .wordmark {
  color: var(--ink);
}
.footer .wordmark .dot {
  color: var(--l4-tint);
}
.footer .mark {
  --mark-s: 28;
}
.footer .paragraph {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.footer a {
  color: var(--ink);
}

/* ---------- language switcher ---------- */
.lang-switch {
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.lang-switch a,
.lang-switch span {
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- reveal ---------- */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-on-scroll.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1207px) {
  .hero,
  .section {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 991px) {
  .section {
    padding: 56px 0;
  }
  .section > .container-1280,
  .section > .container-1024,
  .hero .container-1280 {
    padding: 0 32px;
  }
  .hero {
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .hero-grid {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* on small screens the CTA moves below the picture: the copy's children
     become grid items so the button can reorder past the visual */
  .hero-copy {
    padding-bottom: 0;
    display: contents;
  }
  .hero-copy .button-primary {
    order: 1;
    text-align: center;
    margin-top: -24px; /* cancel the grid gap: the button sits against the
                          photo's edge and visually cuts the cables */
  }
  .hero .phone {
    margin-bottom: -56px;
  }
  .stat-row,
  .control-grid {
    grid-template-columns: 1fr;
  }
  /* stacked stat cards become slim rows: figure beside the sentence, so the
     three of them fit one screen instead of three */
  .stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
  }
  .stat-figure {
    font-size: 34px;
    margin: 0;
    flex: none;
    min-width: 120px; /* wide enough for "~30 ms", so all three texts align */
  }
  .stat-card .paragraph {
    font-size: 15px;
    line-height: 1.5;
  }
  /* control cards get the same row header: glyph left, title and text beside
     it; the preview and the chips keep the full card width below */
  .control-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding: 24px 22px;
  }
  .control-glyph {
    grid-row: 1 / span 2;
    align-self: start;
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 0;
  }
  .control-card .card-title {
    grid-column: 2;
    margin-bottom: 4px;
  }
  .control-card > .paragraph {
    grid-column: 2;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .control-card .control-preview {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }
  .control-card .mode-row {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
  .compare-grid {
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .container-1280,
  .container-1024 {
    padding: 0 20px;
  }
  .hero,
  .section {
    margin-left: 12px;
    margin-right: 12px;
  }
  /* one shared left edge on mobile: hero copy, section content and footer
     all sit at 12px card margin + 20px padding = 32px */
  .section > .container-1280,
  .section > .container-1024,
  .hero .container-1280 {
    padding: 0 20px;
  }
  .footer .container-1280 {
    padding: 0 32px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  /* stacked steps become rows too: the badge leads, title and sentence beside
     it, so the four steps read as one compact list */
  .step-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
  }
  .step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
  }
  .step-badge {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    font-size: 19px;
    margin-bottom: 0;
  }
  .step-item .subheading {
    margin-bottom: 4px;
  }
  .step-item .paragraph {
    font-size: 15px;
    line-height: 1.55;
  }
  .promise-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .waitlist-card {
    padding: 32px 22px;
  }
  .phone {
    width: 280px;
  }
}
@media (max-width: 600px) {
  /* the hero CTA is one screen away; a second, wrapping pill in the top bar
     reads as clutter in every language */
  .topbar-link {
    display: none;
  }
  .waitlist-head .mark {
    --mark-s: 120;
  }
  .mode-row {
    gap: 4px;
  }
  .mode-chip {
    font-size: 12px;
    padding: 7px 10px;
  }
  /* four modes never fit one line in Dutch or French; a 2x2 grid reads as a
     deliberate control in every language instead of a ragged wrap */
  .mode-row:has(> :nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-row:has(> :nth-child(4)) .mode-chip {
    text-align: center;
  }
}


/* ---------- instagram-style feed chrome (overrides the old mock) ---------- */
.feed-avatar { position: relative; }
.feed-avatar.ring::after {
  content: "";
  position: absolute;
  inset: -3.5px;
  border-radius: 50%;
  background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.feed-more { width: 18px; height: 18px; margin-left: auto; fill: #262626; flex: none; }
.feed-image,
img.feed-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: none;
}
.feed-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 4px;
}
.feed-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #262626;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.feed-actions .save { margin-left: auto; }
.feed-likes {
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  text-align: left;
}
.feed-text { text-align: left; }
.feed-text b { font-weight: 700; color: #111; }

/* the hidden attribute must beat the form's flex display */
.waitlist-fallback-form[hidden] { display: none; }
