/* ==========================================================================
   Birga — birga-app.uz
   Static marketing + legal site. No build step, no framework, no cookies.

   Design tokens mirror the mobile app's src/theme/tokens.ts so the web and
   the product read as one brand. Do not invent new colours here — if the app
   gains a token, copy it across rather than eyeballing a near-match.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand — lifted verbatim from the app's palette */
  --brand:        #0E8862;
  --brand-bright: #13A87A;
  --brand-deep:   #0B6A4D;
  --brand-tint:   #E6F7F1;
  --brand-tint-2: #C2EBDC;

  /* Ground + ink — the app's "warm premium" light surfaces */
  --canvas:   #F5F5F2;
  --surface:  #FFFFFF;
  --ink:      #1A1B1E;
  --ink-soft: #5C625E;
  --ink-mute: #8A908C;
  --hairline: #ECEBE6;

  /* Night — the privacy band. Derived from brand-deep, not a stock slate. */
  --night:      #0C1F18;
  --night-2:    #123026;
  --night-ink:  #E8F2ED;
  --night-soft: #9DB5AA;

  /* Accent — reserved exclusively for "live" states. Never decorative. */
  --live: #15B1FF;

  /* Feedback */
  --amber: #F59E0B;

  /* Type */
  --font-body: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm — matches the app's spacing scale, doubled for web */
  --gut: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 11vw, 136px);
  --maxw: 1160px;
  --maxw-prose: 68ch;

  /* Radii — the app tops out at 24; web keeps the same feel */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(26, 27, 30, .05);
  --shadow-md: 0 4px 16px rgba(26, 27, 30, .07);
  --shadow-lg: 0 18px 48px -12px rgba(11, 106, 77, .22);
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

/* Keyboard focus must stay visible everywhere. Non-negotiable. */
:focus-visible {
  outline: 2.5px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand-tint-2); color: var(--brand-deep); }

/* --- Type scale --------------------------------------------------------- */

.t-display { font-size: clamp(2.75rem, 7.5vw, 5.25rem); letter-spacing: -0.045em; }
.t-h2      { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.t-h3      { font-size: clamp(1.3rem, 2.1vw, 1.6rem); letter-spacing: -0.025em; }

.t-lead {
  font-size: clamp(1.06rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Telemetry: the mono voice. Coordinates, timestamps, battery, versions,
   section eyebrows. Used sparingly — it is the texture, not the fabric. */
.mono {
  font-family: var(--font-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-feature-settings: 'tnum' 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
  flex: none;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--section-y); position: relative; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.hdr[data-stuck='true'] { border-bottom-color: var(--hairline); }

.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 28px; height: 28px; flex: none; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

/* Language switcher — a segmented control, not a dropdown. Three options
   don't earn a menu, and visible siblings advertise that ru/en exist. */
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 999px;
  flex: none;
}
.lang a {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.burger svg { width: 24px; height: 24px; stroke: var(--ink); }

/* --- Buttons + store badges --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, background .18s ease;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 17px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.12;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .2s ease, opacity .2s ease;
}
.badge:hover { background: #000; color: #fff; transform: translateY(-2px); }
.badge svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.badge__sm { display: block; font-size: .625rem; opacity: .72; letter-spacing: .04em; }
.badge__lg { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }

/* Unreleased state. Rendered as a non-interactive <span> by the markup, so
   there is no dead link to click — the label carries the whole message. */
.badge[data-soon='true'] {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent);
  cursor: default;
}
.badge[data-soon='true']:hover { transform: none; background: transparent; }

.soon-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .655rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 6px 13px;
}
.soon-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

/* --- Hero: the map is the ground, not a screenshot ----------------------- */

.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(80px, 12vw, 150px); overflow: hidden; }
.hero__in { position: relative; z-index: 2; }
.hero__copy { max-width: 640px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .t-lead { max-width: 50ch; margin-bottom: 36px; }
.hero .badges { margin-bottom: 22px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--ink-mute);
}

/* Map ground. A street grid, two park blocks and the Ankhor canal — the real
   geometry of central Tashkent, abstracted. Masked to nothing at the edges so
   it reads as depth rather than as a boxed-in illustration. */
.mapground {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 95% at 68% 40%, #000 32%, transparent 82%);
  mask-image: radial-gradient(120% 95% at 68% 40%, #000 32%, transparent 82%);
}
.mapground::before,
.mapground::after {
  content: '';
  position: absolute;
  inset: -30%;
  transform: rotate(-8deg);
}
/* minor streets */
.mapground::before {
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 57px, rgba(11,106,77,.085) 57px 58px),
    repeating-linear-gradient(90deg, transparent 0 57px, rgba(11,106,77,.085) 57px 58px);
}
/* arterial roads — heavier, sparser, offset so junctions land off-grid */
.mapground::after {
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 231px, rgba(11,106,77,.16) 231px 234px),
    repeating-linear-gradient(90deg, transparent 0 289px, rgba(11,106,77,.16) 289px 292px);
}

.mapground__park {
  position: absolute;
  background: color-mix(in srgb, var(--brand-tint) 78%, transparent);
  border-radius: 18px;
  transform: rotate(-8deg);
}
.mapground__canal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mapground__canal path {
  fill: none;
  stroke: color-mix(in srgb, var(--live) 22%, transparent);
  stroke-width: 13;
  stroke-linecap: round;
}

/* --- Family pins -------------------------------------------------------- */

.pins {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pin-drop .7s cubic-bezier(.16,1.1,.3,1) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes pin-drop {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 26px)) scale(.82); }
  to   { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

.pin__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3.5px solid var(--surface);
  background: var(--tone, var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px -5px rgba(11,106,77,.4);
  position: relative;
}
/* the pointer that makes an avatar read as a map pin */
.pin__avatar::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 13px;
  height: 13px;
  background: var(--surface);
  border-radius: 0 0 3px 0;
}

.pin__label {
  margin-top: 15px;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pin__label span { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; }

/* Stale pin — the app greys out a member whose fix has aged out. Showing that
   honestly on the marketing page beats implying location is always perfect. */
.pin--stale .pin__avatar { background: var(--ink-mute); box-shadow: 0 6px 14px -6px rgba(26,27,30,.3); }

/* Self pin — the only element allowed to use --live */
.pin--self .pin__avatar { background: var(--ink); box-shadow: 0 8px 22px -4px rgba(26,27,30,.45); }
.pin--self .pin__avatar::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--live);
  animation: ping 2.6s cubic-bezier(.3,0,.3,1) infinite;
}
@keyframes ping {
  0%        { transform: scale(.86); opacity: .9; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}

/* --- Live member card (mirrors the app's bottom-sheet row) --------------- */

.mcard {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 260px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 22px 50px -18px rgba(11,106,77,.4), var(--shadow-sm);
  display: flex;
  gap: 13px;
  align-items: center;
  /* Its own keyframes, NOT pin-drop: pin-drop ends on translate(-50%,-100%),
     the offset that lifts a pin above its coordinate. A card that inherited
     that end state would fly off its anchor. */
  animation: card-in .55s cubic-bezier(.16,1.1,.3,1) .45s backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(-14px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.mcard__av {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--tone, var(--brand));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  flex: none;
}
.mcard__name { font-weight: 700; letter-spacing: -0.02em; font-size: .97rem; }
.mcard__where { color: var(--ink-soft); font-size: .85rem; margin-top: 1px; }
.mcard__tel {
  display: flex; align-items: center; gap: 7px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: .625rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.mcard__bat { color: var(--brand); }

/* --- Telemetry strip ----------------------------------------------------- */

.strip { border-block: 1px solid var(--hairline); }
.strip__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-inline: 1px solid var(--hairline);
}
.strip__cell { background: var(--surface); padding: 26px clamp(16px, 2.4vw, 30px); }
.strip__k { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; color: var(--brand-deep); line-height: 1.1; }
.strip__v { margin-top: 5px; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; }

/* --- The route: features as waypoints ------------------------------------ */

.route { position: relative; }

/* the dotted trail itself — a location app's own vocabulary, used as the
   page's structural spine */
.route__line {
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 90px;
  width: 0;
  border-left: 2px dashed color-mix(in srgb, var(--brand) 32%, transparent);
}

.wp {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 400px);
  gap: 0 clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 5.5vw, 64px);
}

.wp__mark {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 7px var(--canvas);
  align-self: start;
  margin-top: 4px;
}
.wp__mark svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.wp__body { align-self: center; }
.wp__body h3 { margin-bottom: 12px; }
.wp__body p { color: var(--ink-soft); max-width: 46ch; }

.wp__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.wp__list li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--ink-soft); }
.wp__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
}

.wp__art { align-self: center; }

/* --- App mockups, drawn in CSS (no screenshots to go stale) -------------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.mock__ttl { font-weight: 800; letter-spacing: -0.025em; font-size: .95rem; }

.mrow { display: flex; align-items: center; gap: 11px; padding: 9px 4px; }
.mrow__av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tone, var(--brand)); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; flex: none;
}
.mrow__n { font-weight: 600; font-size: .88rem; letter-spacing: -0.015em; }
.mrow__s { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); margin-top: 2px; }
.mrow__end { margin-left: auto; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .09em; color: var(--brand); text-transform: uppercase; }

/* saved-place chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 700; font-size: .85rem; letter-spacing: -0.015em;
}
.chip svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.chip--ghost { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent); color: var(--ink-mute); }

/* chat bubbles */
.bub { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .87rem; line-height: 1.45; margin-bottom: 8px; }
.bub--in  { background: color-mix(in srgb, var(--ink) 5%, transparent); border-bottom-left-radius: 5px; }
.bub--out { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bub__t { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .09em; opacity: .62; margin-top: 4px; display: block; }

/* mini map for the live-map waypoint */
.minimap { position: relative; height: 208px; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas); }
.minimap__g { position: absolute; inset: -20%; transform: rotate(-8deg);
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 34px, rgba(11,106,77,.1) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(11,106,77,.1) 34px 35px); }
.minimap .pin { animation: none; }
.minimap .pin__avatar { width: 38px; height: 38px; font-size: .78rem; border-width: 3px; }
.minimap .pin__avatar::after { width: 10px; height: 10px; bottom: -6px; }

/* --- Extras grid --------------------------------------------------------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
}
.card svg.ico { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.9; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .92rem; }

/* --- Steps (a genuine sequence, so genuinely numbered) ------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); counter-reset: s; }
.step { counter-increment: s; position: relative; padding-top: 62px; }
.step::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand);
  opacity: .38;
  line-height: 1;
}
.step::after {
  content: '';
  position: absolute;
  top: 17px; left: 62px; right: -18px;
  height: 1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand) 34%, transparent) 0 5px, transparent 5px 10px);
}
.steps .step:last-child::after { display: none; }
.step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* --- Privacy band: the app's night map ---------------------------------- */

.night {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 40px);
}
.night::before {
  content: '';
  position: absolute;
  inset: -30%;
  transform: rotate(-8deg);
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 57px, rgba(232,242,237,.045) 57px 58px),
    repeating-linear-gradient(90deg, transparent 0 57px, rgba(232,242,237,.045) 57px 58px);
  -webkit-mask-image: radial-gradient(90% 80% at 78% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(90% 80% at 78% 30%, #000 10%, transparent 70%);
}
.night > * { position: relative; z-index: 1; }
.night .eyebrow { color: var(--brand-bright); }
.night h2 { color: #fff; }
.night .t-lead { color: var(--night-soft); }

.night__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(232,242,237,.13); border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(36px, 4.5vw, 56px); }
.night__cell { background: var(--night); padding: clamp(24px, 3vw, 32px); }
.night__cell h3 { font-size: 1.06rem; color: #fff; margin-bottom: 9px; display: flex; align-items: center; gap: 10px; }
.night__cell h3 svg { width: 19px; height: 19px; stroke: var(--brand-bright); fill: none; stroke-width: 2; flex: none; }
.night__cell p { color: var(--night-soft); font-size: .92rem; }
.night__cell .mono { color: var(--brand-bright); display: block; margin-top: 12px; font-size: .655rem; }

.night__note {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed rgba(232,242,237,.24);
  border-radius: var(--r-md);
  color: var(--night-soft);
  font-size: .89rem;
  display: flex; gap: 13px; align-items: flex-start;
}
.night__note svg { width: 19px; height: 19px; stroke: var(--amber); fill: none; stroke-width: 2; flex: none; margin-top: 2px; }

/* --- FAQ: native <details>, no JS, keyboard-accessible by default -------- */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--brand-deep); }
.faq__a { padding: 0 44px 24px 0; color: var(--ink-soft); }
.faq__a p + p { margin-top: 12px; }

/* --- Final CTA ----------------------------------------------------------- */

.cta {
  background: linear-gradient(148deg, var(--brand-deep) 0%, var(--brand) 52%, var(--brand-bright) 100%);
  color: #fff;
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 76px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -40%;
  transform: rotate(-8deg);
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 57px, rgba(255,255,255,.075) 57px 58px),
    repeating-linear-gradient(90deg, transparent 0 57px, rgba(255,255,255,.075) 57px 58px);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.88); max-width: 46ch; margin-inline: auto; margin-bottom: 34px; font-size: 1.08rem; }
.cta .badges { justify-content: center; }
.cta .badge { background: #fff; color: var(--ink); }
.cta .badge:hover { background: #fff; color: #000; }
.cta .badge[data-soon='true'] { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.cta .soon-chip { background: rgba(255,255,255,.17); color: #fff; }
.cta .soon-chip::before { background: #fff; }

/* --- Footer -------------------------------------------------------------- */

.ftr { border-top: 1px solid var(--hairline); padding-block: clamp(48px, 6vw, 72px) 36px; }
.ftr__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(28px, 4vw, 52px); }
.ftr__blurb { color: var(--ink-soft); font-size: .92rem; max-width: 34ch; margin-top: 16px; }
.ftr h4 { font-size: .705rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.ftr a:hover { color: var(--brand); text-decoration: underline; }
.ftr__btm {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
  color: var(--ink-mute);
}
.ftr__btm .lang { margin-left: auto; }

/* --- Legal / document pages ---------------------------------------------- */

.doc-hd { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 3.5vw, 40px); border-bottom: 1px solid var(--hairline); }
.doc-hd h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 18px; }
.doc-hd__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

.vbadge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .655rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-tint); color: var(--brand-deep);
  padding: 6px 13px; border-radius: 999px;
}

.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 5vw, 60px) var(--section-y); align-items: start; }

.toc { position: sticky; top: 96px; }
.toc h4 { font-size: .705rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: flex; gap: 10px;
  color: var(--ink-soft); text-decoration: none;
  font-size: .87rem; font-weight: 500; line-height: 1.4;
  padding: 7px 10px; border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: .66rem; color: var(--ink-mute); flex: none; padding-top: 2px; }
.toc a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.toc a[aria-current='true'] { color: var(--brand-deep); border-left-color: var(--brand); background: var(--brand-tint); }
.toc a[aria-current='true']::before { color: var(--brand); }

.prose { max-width: var(--maxw-prose); }
.prose section + section { margin-top: clamp(38px, 4.6vw, 56px); }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.72rem); margin-bottom: 16px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 22px; display: grid; gap: 9px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 700; }

.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; display: block; overflow-x: auto; }
.prose thead th { text-align: left; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-mute); padding: 0 14px 10px 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.prose tbody td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 22px 0;
}
.callout p { color: var(--ink-soft); font-size: .93rem; }
.callout--warn { border-left-color: var(--amber); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  margin-top: 24px;
  display: grid; gap: 13px;
}
.contact-card div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.contact-card .mono { color: var(--ink-mute); min-width: 84px; }

/* --- Pin placement (in CSS, not inline, so breakpoints can move them) ---- */

.pin--self { --x: 64%;  --y: 30%; --d: .15s; }
.pin--a    { --x: 89%;  --y: 43%; --d: .3s;  }
.pin--b    { --x: 71%;  --y: 72%; --d: .45s; }
.pin--c    { --x: 95%;  --y: 82%; --d: .6s;  }
.mcard     { --x: 58%;  --y: 82%; }

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

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Mobile nav panel ---------------------------------------------------- */

.mnav {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 12px var(--gut) 22px;
}
.mnav[data-open='true'] { display: block; }
.mnav ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.mnav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--hairline); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero__copy { max-width: 540px; }
  .mcard { --x: 55%; }
}

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
  .toc ol { grid-template-columns: repeat(2, 1fr); display: grid; }
  .strip__in { grid-template-columns: repeat(2, 1fr); }
  .night__grid { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step { padding-top: 0; padding-left: 62px; }
  .step::before { top: -4px; }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  /* Hero re-flows: copy takes the full column, the map moves beneath it into
     a dedicated band rather than fighting the text for space. */
  /* The pin band lives INSIDE .hero__in, because .pins is inset:0 of that
     box — padding on .hero would give the pins no extra room to move into. */
  .hero { padding-bottom: clamp(56px, 9vw, 96px); }
  .hero__in { padding-bottom: 300px; }
  .hero__copy { max-width: none; }
  .mapground { -webkit-mask-image: radial-gradient(130% 60% at 50% 88%, #000 22%, transparent 78%); mask-image: radial-gradient(130% 60% at 50% 88%, #000 22%, transparent 78%); }
  /* Two pins plus the member card. Four collide at this width, and the card
     carries more meaning than a third avatar would. */
  .pin--self { --x: 24%; --y: 76%; }
  .pin--a    { --x: 72%; --y: 74%; }
  .pin--b, .pin--c { display: none; }
  .mcard     { --x: auto; --y: 88%; right: var(--gut); left: auto; width: 235px; }

  .wp { grid-template-columns: 40px minmax(0, 1fr); gap: 0 22px; }
  .wp__art { grid-column: 2; margin-top: 26px; max-width: 420px; }
  .route__line { left: 19px; }
  .wp__mark { width: 40px; height: 40px; }
  .grid3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .hdr .lang { display: none; }
  .burger { display: block; margin-left: auto; }
  .hdr__in { height: 64px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__in { padding-bottom: 274px; }
  .mcard { --x: auto; right: 14px; width: 214px; padding: 13px; }
  .mcard__av { width: 38px; height: 38px; font-size: .82rem; }
  .mcard__tel { font-size: .57rem; letter-spacing: .07em; white-space: nowrap; }
  .pin__avatar { width: 46px; height: 46px; font-size: .92rem; }
  .pin__label { font-size: .74rem; padding: 5px 11px; }
  .strip__in { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .badges { width: 100%; }
  .badge { flex: 1 1 auto; }
  .cta { padding-inline: 22px; }
}

/* --- Motion + print ------------------------------------------------------ */

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

@media print {
  .hdr, .mnav, .ftr__btm .lang, .cta, .badges { display: none; }
  body { background: #fff; font-size: 11pt; }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .prose { max-width: none; }
  a { color: var(--ink); text-decoration: underline; }
}
