/* ==========================================================================
   RIWE MEDIA — Swiss-style, mobile-first
   ========================================================================== */

:root {
  --black: #0A0A0A;
  --white: #FAFAFA;
  --grey: #8C8C8C;
  --grey-light: #E5E5E5;
  --blue: #0047FF;
  --blue-hover: #2E6BFF;
  --error: #C81E1E;

  --font-head: 'Switzer', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 20px;
  --radius-input: 12px;
  --header-h: 76px; /* floating pill (56px) + vertical gap */
  --container-pad: 20px;
}

/* ---------- Reset ---------- */
*, *::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: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* the hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

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

ul, ol { list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--blue); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

.container-narrow { max-width: 760px; }

.section { padding-block: clamp(48px, 12vw, 128px); }

.section-alt { background: #F1F1F0; }

.section-dark { background: var(--black); color: var(--white); }

/* ---------- Type helpers ---------- */
.micro-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.section-head h2 { font-size: clamp(34px, 8.5vw, 56px); }

.section-head { margin-bottom: clamp(36px, 8vw, 64px); }

.section-intro {
  margin-top: 14px;
  color: var(--grey);
  max-width: 48ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  white-space: nowrap;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-ghost { background: transparent; border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.btn-block { width: 100%; }

/* ==========================================================================
   HEADER — floating rounded pill
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 56px;
  padding: 0 6px 0 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.07);
}

.wordmark {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.wordmark-dot { color: var(--blue); }

.desktop-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Header CTA — visible at every size; short label on narrow phones so it
   fits next to the wordmark and hamburger inside the pill, full label once
   there's room. Deliberately tight/defensive here: if the web font hasn't
   swapped in yet the fallback can render a little wider, so this needs
   spare room rather than an exact fit. */
.header-cta {
  flex-shrink: 0;
  padding-inline: 10px;
  min-height: 38px;
  font-size: 13px;
}
.header-cta .cta-full { display: none; }
.header-cta .cta-short { display: inline; }

@media (min-width: 480px) {
  .header-cta { padding-inline: 18px; min-height: 40px; font-size: 14px; }
  .header-cta .cta-short { display: none; }
  .header-cta .cta-full { display: inline; }
}

/* Hamburger — rounded outlined square, like the mock */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99; /* under the floating pill so it stays visible on top */
  background: var(--white);
  padding: calc(var(--header-h) + 20px) var(--container-pad) calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-light);
}

.menu-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.08em;
}

.mobile-menu-note {
  margin-top: auto;
  padding-top: 32px;
  color: var(--grey);
  font-size: 14px;
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO — headline + fanned card deck (photo card up front)
   ========================================================================== */
.hero { padding-block: 20px clamp(40px, 8vw, 72px); }

.hero-inner { max-width: 560px; margin-inline: auto; }

.hero-headline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-accent-bar {
  width: 4px;
  align-self: stretch;
  min-height: 56px;
  background: var(--blue);
  border-radius: 999px;
  flex-shrink: 0;
}

.hero-headline h1 {
  font-size: clamp(26px, 8.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-headline h1 em {
  font-style: normal;
  color: var(--blue);
}

/* Fanned deck: two plain colour cards peek out behind the real content card */
.hero-deck {
  position: relative;
  padding-bottom: 22px;
}

.hero-deck-card { border-radius: 32px; }

.hero-deck-card-back-1,
.hero-deck-card-back-2 {
  position: absolute;
  inset: 0;
}

.hero-deck-card-back-1 {
  background: #E4ECFF;
  transform: rotate(6deg) translate(5%, 3%) scale(0.96);
  z-index: 1;
  animation: deckFanBack1 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-deck-card-back-2 {
  background: var(--grey-light);
  transform: rotate(-6deg) translate(-5%, 3%) scale(0.96);
  z-index: 0;
  animation: deckFanBack2 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-deck-card-front {
  position: relative;
  z-index: 2;
  /* the photo fills this box completely (see .hero-deck-bg-img) — height
     is generous so the photo reads as a real background, not a sliver */
  height: clamp(380px, 96vw, 480px);
  background: #EFF4FF;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(10, 10, 10, 0.14);
  animation: deckFanFront 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Photo is the card's full background — much bigger than a side column,
   and a closer aspect match to the card means object-fit:cover barely
   has to crop, so no more awkward seams through the middle of the shot */
.hero-deck-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 10%;
}

@keyframes deckFanFront {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes deckFanBack1 {
  from { opacity: 0; transform: translateY(26px) rotate(0deg) scale(0.96); }
  to { opacity: 1; transform: rotate(6deg) translate(5%, 3%) scale(0.96); }
}
@keyframes deckFanBack2 {
  from { opacity: 0; transform: translateY(26px) rotate(0deg) scale(0.96); }
  to { opacity: 1; transform: rotate(-6deg) translate(-5%, 3%) scale(0.96); }
}

/* Text sits in an overlay pinned to the card's bottom, over a scrim that
   fades from transparent to the card's own tint so it stays legible
   against the photo without hiding it — no more separate blank "text
   panel" that could show up as an empty gap. */
.hero-deck-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 18px;
  background: linear-gradient(180deg, rgba(239, 244, 255, 0) 0%, rgba(239, 244, 255, 0.85) 38%, rgba(239, 244, 255, 0.97) 100%);
}

.hero-deck-sub {
  font-size: clamp(12px, 3.2vw, 15px);
  line-height: 1.5;
  color: #21304a;
  margin-bottom: 12px;
  max-width: 34ch;
}

/* Never wraps — the icon button must always stay beside the CTA, not
   drop underneath it on narrow phones. The CTA shrinks its own font
   first if space is ever tight; the icon button never shrinks. */
.hero-deck-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.hero-deck-cta {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-size: clamp(11px, 3.2vw, 14.5px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0, 71, 255, 0.22);
}

/* Rounder, pill-shaped icon button — a "see how it works" shortcut */
.hero-deck-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  box-shadow: 0 6px 16px rgba(10, 10, 10, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.hero-deck-icon-btn:hover { background: var(--black); color: #fff; }
.hero-deck-icon-btn:active { transform: scale(0.94); }

/* ==========================================================================
   TRUST STRIP (marquee)
   ========================================================================== */
.trust-strip {
  border-block: 1px solid var(--grey-light);
  background: #fff;
  padding-block: 18px;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  min-width: max-content;
  padding-right: 28px;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:active .marquee-track { animation-play-state: paused; }

.marquee-track span:not(.marquee-dot) {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; min-width: 0; flex-wrap: wrap; row-gap: 10px; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   WHO WE ARE
   ========================================================================== */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-copy > p + p { margin-top: 18px; }

.about-copy .lead {
  font-family: var(--font-head);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.about-copy p:not(.lead) { color: #3d3d3d; }

.about-copy strong { color: var(--black); font-weight: 600; }

/* Compact scannable points instead of long paragraphs */
.about-points {
  margin-top: 26px;
  border-top: 1px solid var(--grey-light);
}

.about-point {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-light);
}

.about-point-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  padding-top: 3px;
  flex-shrink: 0;
}

.about-point h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.about-copy .about-point p {
  font-size: 14.5px;
  color: var(--grey);
  margin: 0;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.platform-chips li {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 8px 16px;
}

.about-media > img {
  border-radius: var(--radius-card);
  width: 100%;
}

.about-media-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--grey);
  font-size: 14px;
}

.about-doodle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--grey-light);
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-card);
  padding: 26px 22px;
}

.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: clamp(20px, 5vw, 24px);
  margin-bottom: 10px;
}

.step-card p {
  color: #3d3d3d;
  font-size: 15px;
}

.step-card p + p { margin-top: 10px; }

.step-card-featured { border: 2px solid var(--blue); }

.step-card-featured .step-num { color: var(--blue); }

.step-tag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ==========================================================================
   WHO WE'RE LOOKING FOR
   ========================================================================== */
.req-list { border-top: 1px solid var(--grey-light); }

.req-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--grey-light);
}

.req-term {
  font-family: var(--font-head);
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.req-desc { color: var(--grey); font-size: 15px; }

.req-quote {
  margin-top: clamp(36px, 8vw, 56px);
  padding-left: 20px;
  border-left: 3px solid var(--blue);
  font-family: var(--font-head);
  font-size: clamp(20px, 5.4vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ==========================================================================
   THE NUMBERS
   ========================================================================== */
.section-dark .micro-label { color: rgba(250, 250, 250, 0.55); }

.stats-row {
  display: flex;
  flex-direction: column;
}

.stat-block {
  padding: 26px 0;
  border-bottom: 1px solid rgba(250, 250, 250, 0.14);
}

.stat-block:first-child { padding-top: 0; }

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(72px, 20vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stat-plus { color: var(--blue-hover); }

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.65);
}

.numbers-note {
  margin-top: clamp(28px, 6vw, 44px);
  color: rgba(250, 250, 250, 0.65);
  font-size: 15px;
  max-width: 56ch;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 7vw, 56px);
}

.category-pills span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(250, 250, 250, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  color: rgba(250, 250, 250, 0.85);
}

/* Brand logos — white cards in an auto-scrolling strip on the dark section */
.logos-marquee { margin-top: clamp(28px, 6vw, 44px); }

.logos-marquee .marquee-track {
  gap: 12px;
  padding-right: 12px;
  animation-duration: 38s;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 20px;
  background: #fff;
  border-radius: 16px;
  flex-shrink: 0;
}

.logo-card img {
  height: 40px;
  width: auto;
  display: block;
}

/* ==========================================================================
   APPLICATION FORM (structure and interaction patterns follow Veba Creators)
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 24px;
  padding: clamp(20px, 4.6vw, 40px);
}

/* Step indicator — numbered circles with connector lines */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.step-ind-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1.5px solid var(--grey-light);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.step-ind-item.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.step-ind-item.done {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.step-ind-item.done span { display: none; }
.step-ind-item.done::after { content: "✓"; font-size: 13px; }

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 6px;
  border-radius: 999px;
  background: var(--grey-light);
  transition: background-color 0.3s ease;
}

.step-ind-item.done + .step-line { background: var(--blue); }

/* Steps */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 400ms ease both; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/* Fields */
.field-group { margin-bottom: 16px; }

.field-group > label,
.field-group label[id] {
  display: block;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 7px;
}

.optional { color: var(--grey); font-weight: 400; font-size: 13px; }

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-input);
  background: var(--white);
  font-size: 16px; /* prevents iOS zoom on focus */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field-group textarea { padding: 14px 16px; min-height: 100px; resize: vertical; }

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.12);
}

.field-group input::placeholder,
.field-group textarea::placeholder { color: #b5b5b5; }

.field-hint { font-size: 13px; color: var(--grey); line-height: 1.5; margin-top: 7px; }

.field-group .field-error {
  display: none;
  font-size: 12.5px;
  color: var(--error);
  margin-top: 6px;
}

.field-group.has-error input,
.field-group.has-error textarea,
.field-group.has-error .country-combobox-input,
.field-group.has-error .phone-code-btn { border-color: var(--error); }

.field-group.has-error .field-error { display: block; }

/* Gender option cards */
.gender-grid { display: flex; gap: 8px; flex-wrap: wrap; }

.gender-option { position: relative; flex: 1; min-width: 90px; }

.gender-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.gender-option label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-input);
  background: var(--white);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  margin-bottom: 0;
}

.gender-option label::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--grey);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gender-option input:checked + label {
  border-color: var(--blue);
  background: #F2F6FF;
}

.gender-option input:checked + label::before {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px var(--blue);
}

.gender-option input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.gender-other-wrap { display: none; margin-top: 8px; }
.gender-other-wrap.visible { display: block; animation: stepIn 250ms ease both; }

/* Experience options — vertical stack of radio cards */
.exp-grid { display: flex; flex-direction: column; gap: 8px; }

/* Device option cards — single column on phones, two equal columns from 480px */
.device-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

.device-option { position: relative; display: flex; }

.device-option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.device-option label {
  display: flex;
  align-items: center;
  width: 100%; /* equal card heights inside a grid row */
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-input);
  background: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  margin-bottom: 0;
}

.device-option input:checked + label {
  border-color: var(--blue);
  background: #F2F6FF;
}

.device-option input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.device-other-wrap { display: none; margin-top: 8px; }
.device-other-wrap.visible { display: block; animation: stepIn 250ms ease both; }

/* Country combobox */
.country-combobox { position: relative; }

.country-combobox-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-input);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.country-combobox-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.12);
}

.country-combobox-flag { display: flex; align-items: center; flex-shrink: 0; color: var(--grey); }
.country-combobox-flag img { width: 24px; height: 18px; border-radius: 3px; display: block; }
.country-combobox-flag svg { width: 20px; height: 20px; }

.country-combobox-input input {
  flex: 1;
  min-width: 0;
  min-height: 0 !important;
  border: none !important;
  padding: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

.country-combobox-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1.5px solid var(--grey-light);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.country-combobox-dropdown.open { display: block; }

.country-combobox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
}

.country-combobox-option:hover,
.country-combobox-option.highlighted { background: #F1F1F0; }

.country-combobox-option .cb-flag { display: flex; align-items: center; flex-shrink: 0; font-size: 18px; }
.country-combobox-option .cb-flag img { width: 24px; height: 18px; border-radius: 3px; display: block; }
.country-combobox-option .cb-name { flex: 1; font-weight: 500; font-size: 14px; }
.country-combobox-option .cb-dial { color: var(--grey); font-size: 12px; }

.country-combobox-empty { padding: 12px 14px; font-size: 13px; color: var(--grey); }

/* Phone row + code dropdown */
.phone-row { display: flex; gap: 8px; position: relative; }

.phone-code-btn {
  flex-shrink: 0;
  min-height: 50px;
  padding: 0 12px;
  background: var(--white);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-input);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.phone-code-btn:focus-visible { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.12); }

.phone-code-btn .flag { display: flex; align-items: center; font-size: 18px; }
.phone-code-btn .flag img { width: 24px; height: 18px; border-radius: 3px; display: block; }
.phone-code-btn .code { font-size: 13px; }
.phone-code-btn .chevron { font-size: 10px; opacity: 0.5; margin-left: 2px; }

.phone-row input { flex: 1; min-width: 0; }

.phone-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1.5px solid var(--grey-light);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.12);
  width: min(280px, calc(100vw - 80px));
  max-height: 240px;
  overflow-y: auto;
}

.phone-dropdown.open { display: flex; flex-direction: column; }

.phone-dropdown-search {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 8px;
  border-bottom: 1px solid var(--grey-light);
}

.phone-dropdown-search input {
  width: 100%;
  min-height: 38px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
  padding: 0 10px !important;
}

.phone-dropdown-list { overflow-y: auto; }

.phone-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.phone-dropdown-item:hover { background: #F1F1F0; }

.phone-dropdown-item .flag { display: flex; align-items: center; flex-shrink: 0; font-size: 18px; }
.phone-dropdown-item .flag img { width: 24px; height: 18px; border-radius: 3px; display: block; }
.phone-dropdown-item .country-name { flex: 1; font-weight: 500; font-size: 14px; }
.phone-dropdown-item .dial-code { color: var(--grey); font-size: 12px; }

/* Consent + nav */
.form-consent-text { font-size: 13px; color: var(--grey); margin-bottom: 4px; }

.form-consent-text a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-nav .btn { min-height: 48px; padding: 11px 18px; font-size: 15px; }

.form-nav .btn-primary { flex: 1; }

.form-nav .btn-back { flex: 0 0 auto; }

/* Success */
.form-success { display: none; text-align: center; padding: 24px 0 8px; }

.form-success.visible { display: block; animation: stepIn 600ms ease both; }

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  margin-bottom: 20px;
}

.success-check svg { width: 30px; height: 30px; }

.form-success h3 { font-size: 26px; margin-bottom: 10px; }

.form-success p { color: var(--grey); max-width: 44ch; margin-inline: auto; }

.form-success p + p { margin-top: 10px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--grey-light); }

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-family: var(--font-head);
  font-size: clamp(16px, 4.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--grey-light);
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

details[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
}

details[open] .faq-icon::before,
details[open] .faq-icon::after { background: #fff; }

.faq-list details p {
  padding: 0 44px 22px 0;
  color: #3d3d3d;
  font-size: 15px;
}

.faq-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.faq-cta p { font-family: var(--font-head); font-weight: 500; font-size: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(48px, 10vw, 80px) 28px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 250, 250, 0.14);
}

.wordmark-light { color: var(--white); font-size: 24px; }

.footer-tagline { margin-top: 10px; color: rgba(250, 250, 250, 0.6); font-size: 15px; }

.footer-legal-info {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.5);
}

.footer-legal-info a { color: rgba(250, 250, 250, 0.5); transition: color 0.2s ease; }
.footer-legal-info a:hover { color: var(--white); }

.footer-nav { display: flex; flex-direction: column; gap: 4px; }

.footer-nav a,
.footer-contact > a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.85);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact > a:hover { color: var(--blue-hover); }

.footer-contact { display: flex; flex-direction: column; gap: 4px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(250, 250, 250, 0.5);
}

.footer-legal { display: flex; gap: 20px; }

.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin-inline: auto;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.16);
}

.cookie-text { flex: 1; }

.cookie-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cookie-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.cookie-banner p { font-size: 13px; line-height: 1.5; color: #3d3d3d; }

.cookie-banner a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner .btn { flex-shrink: 0; min-height: 40px; }

/* ==========================================================================
   LEGAL PAGES (privacy.html / terms.html) — Swiss layout
   ========================================================================== */
.legal-wrap { padding: 28px 0 88px; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 44px;
  transition: color 0.2s ease;
}

.legal-back:hover { color: var(--black); }

.legal-wrap .micro-label { margin-bottom: 14px; }

.legal-wrap h1.legal-title {
  font-size: clamp(34px, 8.5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.legal-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 48px;
}

/* Company block — Swiss table rule: strong top line, hairline bottom */
.legal-company {
  border-top: 2px solid var(--black);
  border-bottom: 1px solid var(--grey-light);
  padding: 22px 0 20px;
  margin-bottom: 52px;
}

.legal-company h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.legal-company p { font-size: 14px; color: var(--grey); margin-bottom: 4px; }

.legal-company a { color: var(--grey); transition: color 0.2s ease; }
.legal-company a:hover { color: var(--black); }

/* Sections — hairline separated, blue numerals like the main site */
.legal-section {
  border-top: 1px solid var(--grey-light);
  padding-top: 24px;
  margin-bottom: 44px;
}

.legal-section h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.legal-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-right: 10px;
  vertical-align: 3px;
}

.legal-section p {
  font-size: 15px;
  color: #3d3d3d;
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul {
  margin: 12px 0;
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.7;
  list-style: none;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.legal-section a {
  color: var(--black);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Highlight — blue bar, like the quote block on the main page */
.legal-highlight {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
  margin: 14px 0 4px;
}

.legal-highlight p {
  margin-bottom: 0;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.6;
}

.legal-highlight a { font-weight: 600; }

.legal-footer {
  border-top: 1px solid var(--grey-light);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

.legal-footer a { color: var(--black); }

/* ==========================================================================
   REVEAL ANIMATION (JS-gated)
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* Anchor offset for sticky header */
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ==========================================================================
   BREAKPOINT: ≥480px (large phones)
   ========================================================================== */
@media (min-width: 480px) {
  .device-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   BREAKPOINT: ≥768px (tablet)
   ========================================================================== */
@media (min-width: 768px) {
  :root { --container-pad: 32px; }

  .hero-inner { max-width: 640px; }

  .hero-deck-content { padding: 56px 28px 26px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .step-card { padding: 32px 28px; }

  .req-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    align-items: baseline;
  }

  .stats-row {
    flex-direction: row;
    gap: 0;
  }

  .stat-block {
    flex: 1;
    padding: 0 0 0 28px;
    border-bottom: none;
    border-left: 1px solid rgba(250, 250, 250, 0.14);
  }

  .stat-block:first-child { border-left: none; padding-left: 0; }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .faq-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   BREAKPOINT: ≥1024px (desktop)
   ========================================================================== */
@media (min-width: 1024px) {
  .menu-toggle, .mobile-menu { display: none; }

  .header-inner { padding: 0 10px 0 24px; }

  .desktop-nav {
    display: flex;
    gap: 32px;
  }

  .desktop-nav a {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    transition: color 0.2s ease;
  }

  .desktop-nav a:hover { color: var(--blue); }

  /* Hero: headline and card deck sit side by side */
  .hero-inner {
    max-width: 1080px;
    display: flex;
    align-items: center;
    gap: 56px;
  }

  .hero-headline { flex: 1 1 40%; margin-bottom: 0; }

  .hero-deck { flex: 1 1 52%; max-width: 480px; }

  /* About: two columns */
  .about-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 72px;
    align-items: start;
  }

  /* even 3×2 grid — no spans, no holes */
  .steps { grid-template-columns: repeat(3, 1fr); }
}
