/* ==========================================================================
   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: 12px;
  height: 56px;
  padding: 0 6px 0 20px;
  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 {
  font-family: var(--font-head);
  font-size: 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: 10px; }

/* Header CTA appears only on desktop — mobile follows the pill mock: wordmark + hamburger */
.header-cta { display: none; }

/* Hamburger — rounded outlined square, like the mock */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 46px;
  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 — fullscreen photo backdrop + frosted glass panel (per mock)
   ========================================================================== */
.hero { padding-block: 2px 18px; }

.hero-stage {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  /* first screen = header + hero + marquee (58px): the ticker must be fully visible on load;
     capped at 700px so unusually tall narrow viewports don't over-zoom the photo */
  height: min(calc(100vh - var(--header-h) - 96px), 700px);
  height: min(calc(100svh - var(--header-h) - 96px), 700px);
  min-height: 420px;
  animation: heroFade 0.5s ease both;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Out-of-bounds backdrop: grey panel behind the transparent cutout —
   head pops above it, phone/hand breaks past its left edge */
.hero-panel {
  position: absolute;
  top: 3%;
  right: 3%;
  bottom: 0;
  left: 10%;
  background: var(--grey-light);
  border-radius: 28px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bias the horizontal crop to the right so the phone/hand isn't cut off */
  object-position: 12% 0;
  /* hard clip at the grey panel's right edge (rounded) — nothing pokes out on that side */
  clip-path: inset(0 3% 0 0 round 0 28px 28px 0);
  -webkit-clip-path: inset(0 3% 0 0 round 0 28px 28px 0);
}

/* Glass card at the bottom of the photo — almost transparent, light blur,
   subtle shadow, thin light outline; aligned exactly to the grey panel bounds */
.hero-glass {
  position: absolute;
  left: 10%;
  right: 3%;
  bottom: 0;
  padding: 24px 16px 26px;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  text-align: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-glass { background: rgba(255, 255, 255, 0.85); }
}

.hero-title {
  /* tracks the card width so "We Turn Early Content" always fits on one line;
     ~22px on the 390px reference screen (iPhone 2532×1170) */
  font-size: clamp(15px, calc(7vw - 5px), 38px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

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

.hero-sub {
  margin-top: 12px;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.6;
  color: #3d3d3d;
}

.hero-btn {
  margin-top: 20px;
  min-height: 46px;
  padding: 11px 22px;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 71, 255, 0.22);
}

/* Staggered entrance: title → subline → button rise one after another */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-title { animation: heroRise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) 0.1s both; }
.hero-sub { animation: heroRise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) 0.28s both; }
.hero-btn { animation: heroRise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) 0.46s both; }

/* ==========================================================================
   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); }

/* ==========================================================================
   STAFF PANEL (work.html) — private outreach tool, not linked in nav
   ========================================================================== */
.staff-badge {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}

.staff-wrap { padding: 40px 0 80px; }

.staff-login {
  min-height: calc(100vh - var(--header-h) - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-login-card { width: 100%; }

.staff-login-hint { margin-bottom: 22px; }

.staff-login-error {
  font-size: 13px;
  color: var(--error);
  background: #FBEAEA;
  border-radius: var(--radius-input);
  padding: 10px 14px;
  margin-bottom: 18px;
}

.staff-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.staff-sub { font-size: 14px; color: var(--grey); margin-bottom: 28px; }

/* Source toggle — Job Board / Website, sliding pill */
.staff-source-tog {
  position: relative;
  display: flex;
  gap: 4px;
  background: var(--grey-light);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}

.staff-source-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(10, 10, 10, 0.1);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.staff-source-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 44px;
  border: none;
  background: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s ease;
}

.staff-source-btn.on { color: var(--black); }

.staff-send-btn { margin-top: 20px; }

.staff-toast {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 500;
}

.staff-toast.ok { background: #EAF6EE; color: #1a9e4d; border: 1px solid #C9EBD3; }
.staff-toast.fail { background: #FBEAEA; color: #B03A3A; border: 1px solid #F3CFCF; }

.staff-history-card { margin-top: 24px; }

.staff-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 13px;
  flex-wrap: wrap;
}

.staff-history-row:last-child { border-bottom: none; }

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

.staff-history-name { font-weight: 600; }

.staff-history-phone { color: var(--grey); font-variant-numeric: tabular-nums; }

.staff-history-gender {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--grey-light);
  border-radius: 999px;
  padding: 2px 9px;
}

.staff-history-time { font-size: 11px; color: var(--grey); flex-shrink: 0; }

/* ==========================================================================
   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-stage {
    max-width: 620px;
    height: min(calc(100svh - var(--header-h) - 112px), 700px);
  }

  .hero-glass { padding: 36px 32px 38px; }

  .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-cta { display: inline-flex; }

  .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-stage { max-width: 660px; }

  /* 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); }
}
