/* ==========================================================================
   Valuto — Pay like a Local
   Tokens are fixed to the app palette. Display face: Bricolage Grotesque.
   ========================================================================== */

:root {
  /* Palette (fixed) */
  --teal: #006161;
  --teal-container: #0e7c7b;
  --teal-light: #7cd5d3;
  --teal-lighter: #98f2f0;
  --coral: #ff5e32;
  --bg: #faf8ff;
  --card: #ffffff;
  --ink: #131b2e;
  --ink-2: #3e4948;
  --outline: #bdc9c8;
  --success: #006529;

  /* Derived tints (from palette colors only) */
  --teal-tint: rgba(0, 97, 97, 0.07);
  --teal-tint-2: rgba(124, 213, 211, 0.16);
  --coral-tint: rgba(255, 94, 50, 0.09);
  --coral-deep: #a63c1e;          /* darkened coral for small text on tint — AA */
  --success-tint: rgba(0, 101, 41, 0.09);

  /* Shadows (fixed) */
  --shadow-soft: 0px 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-coral: 0px 8px 24px rgba(255, 94, 50, 0.25);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --fs-hero: clamp(2.35rem, 4.6vw + 1rem, 3.9rem);
  --fs-h2: clamp(1.75rem, 2.2vw + 1rem, 2.6rem);
  --fs-h3: 1.3rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.8125rem;

  /* Layout */
  --container: 1160px;
  --radius-card: 20px;
  --radius-inner: 16px;
  --header-h: 72px;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: var(--teal); }

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--teal);
  color: #fff;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--teal-container);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

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

.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tinted { background: linear-gradient(180deg, rgba(124, 213, 211, 0.10), rgba(124, 213, 211, 0.03)); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-container);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--teal-lighter); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--teal);
  max-width: 22ch;
}

.section-sub {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- Buttons, inputs, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0px 12px 28px rgba(255, 94, 50, 0.33); }
.btn-coral:active { transform: translateY(0); }

.btn-small { padding: 10px 20px; font-size: 0.92rem; }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }
.btn-wide { width: 100%; }

.input {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-inner);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #6b7776; }
.input:focus {
  outline: none;
  border-color: var(--teal-container);
  box-shadow: 0 0 0 3px rgba(124, 213, 211, 0.35);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233e4948' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--card);
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--teal-container); }
.chip.is-selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.flag {
  display: inline-flex;
  width: 20px; height: 14px;
  border-radius: 3px;
  overflow: hidden;
  outline: 1px solid rgba(19, 27, 46, 0.12);
  outline-offset: -1px;
  flex-shrink: 0;
}
.flag svg { width: 100%; height: 100%; display: block; }
.flag-lg { width: 30px; height: 21px; border-radius: 4px; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.site-header.is-scrolled .mobile-nav,
.mobile-nav:not([hidden]) { background: rgba(250, 248, 255, 0.97); }

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal);
  text-decoration: none;
}
.wordmark-u { width: 30px; height: 30px; flex-shrink: 0; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 6px; }
.nav-toggle-bars span {
  display: block;
  width: 20px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px clamp(20px, 4vw, 40px) 20px;
  border-top: 1px solid var(--outline);
}
.mobile-nav a {
  padding: 14px 4px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(189, 201, 200, 0.4);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none; }
}

/* ---------- Hero — full screen, one line ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 20px 80px;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-bg::before {
  top: -280px; right: -200px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(124, 213, 211, 0.30), rgba(124, 213, 211, 0) 65%);
}
.hero-bg::after {
  bottom: -320px; left: -240px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(0, 97, 97, 0.10), rgba(0, 97, 97, 0) 65%);
}

/* oversized, barely-there QR marks — the product's world as atmosphere */
.hero-qr {
  position: absolute;
  color: var(--teal);
  opacity: 0.05;
}
.hero-qr-1 { width: 340px; height: 340px; top: 6%; left: -90px; transform: rotate(-8deg); }
.hero-qr-2 { width: 260px; height: 260px; bottom: 8%; right: -60px; transform: rotate(11deg); }

.hero-inner {
  position: relative;
  max-width: 880px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10.5vw, 7.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title-grad {
  background: linear-gradient(100deg, var(--teal) 20%, var(--teal-container) 55%, var(--teal-light) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 1.2vw + 0.7rem, 1.3rem);
  color: var(--ink-2);
  max-width: 42ch;
}

.hero-actions { margin-top: 34px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--teal);
  border: 1.5px solid var(--outline);
  background: rgba(255, 255, 255, 0.6);
}
.scroll-cue svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue-bob 2.2s ease-in-out infinite; }
  @keyframes cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(7px); }
  }
}

/* hero entrance — one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-title,
  html.js .hero-sub,
  html.js .hero-actions,
  html.js .hero .ribbon {
    animation: hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  html.js .hero-sub { animation-delay: 0.15s; }
  html.js .hero-actions { animation-delay: 0.28s; }
  html.js .hero .ribbon { animation-delay: 0.4s; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Narrative scenes (scroll-driven, Wahda-style) ---------- */

/* Default (no JS, or reduced motion): plain stacked sections, everything visible */
.scene { position: relative; }
.scene-sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 12vh, 140px) 24px;
  position: relative;
  overflow: hidden;
}

/* With JS and motion allowed: tall scroll track + pinned screen */
@media (prefers-reduced-motion: no-preference) {
  html.js .scene { height: calc(var(--scenes, 3) * 100vh); }
  html.js .scene-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 24px;
  }
  /* price tags are excluded here — they have their own flight transforms below */
  html.js .scene [data-at]:not(.price-tag) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  html.js .scene [data-at]:not(.price-tag).is-on { opacity: 1; transform: none; }
}

.scene-copy {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.scene-line {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.scene-line + .scene-line { margin-top: 0.5em; }

.scene-line-small {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}

.scene-line-place {
  color: var(--ink);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
}

/* flying price tags (scene B) — flight paths per tag:
   --fx/--fy/--fr = start pose (offscreen), --tx/--ty/--tr = resting pose */
.scene-tagfield { position: absolute; inset: 0; pointer-events: none; }

.price-tag:nth-child(1) { --fx: -46vw; --fy: -20vh; --fr: -14deg; --tx: -30vw; --ty: -26vh; --tr: -7deg; }
.price-tag:nth-child(2) { --fx: 46vw; --fy: -24vh; --fr: 12deg; --tx: 30vw; --ty: -24vh; --tr: 6deg; }
.price-tag:nth-child(3) { --fx: -48vw; --fy: 24vh; --fr: 10deg; --tx: -32vw; --ty: 22vh; --tr: 5deg; }
.price-tag:nth-child(4) { --fx: 48vw; --fy: 22vh; --fr: -12deg; --tx: 31vw; --ty: 24vh; --tr: -6deg; }
.price-tag:nth-child(5) { --fx: -30vw; --fy: 38vh; --fr: 8deg; --tx: -14vw; --ty: 32vh; --tr: 4deg; }
.price-tag:nth-child(6) { --fx: 30vw; --fy: -40vh; --fr: -9deg; --tx: 14vw; --ty: -34vh; --tr: -4deg; }

/* on narrow screens, push the tags to the vertical extremes so they never
   sit on top of the centered copy */
@media (max-width: 640px) {
  .price-tag { font-size: 0.85rem; padding: 8px 12px; }
  .price-tag:nth-child(1) { --tx: -26vw; --ty: -36vh; }
  .price-tag:nth-child(2) { --tx: 22vw; --ty: -31vh; }
  .price-tag:nth-child(3) { --tx: -24vw; --ty: 30vh; }
  .price-tag:nth-child(4) { --tx: 20vw; --ty: 35vh; }
  .price-tag:nth-child(5) { --tx: -8vw; --ty: 40vh; }
  .price-tag:nth-child(6) { --tx: 8vw; --ty: -40vh; }
}
.price-tag {
  position: absolute;
  top: 50%; left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin: -22px 0 0 -60px;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--tr, 0deg));
}

@media (prefers-reduced-motion: no-preference) {
  html.js .price-tag {
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg)) scale(0.7);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  html.js .price-tag.is-on {
    opacity: 1;
    transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--tr, 0deg)) scale(1);
  }
}

/* static fallback (no JS, or reduced motion): tags become a simple row above the copy */
html:not(.js) .scene-tagfield {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
html:not(.js) .price-tag { position: static; margin: 0; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scene-tagfield {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
  }
  .price-tag { position: static; margin: 0; transform: none; }
}

/* the turn (scene C) */
.scene-beats {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.scene-beat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.scene-beat-icon {
  width: 20px; height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

.scene-reveal {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.scene-reveal-mark {
  width: clamp(34px, 4vw, 48px);
  height: clamp(34px, 4vw, 48px);
  flex-shrink: 0;
}

/* scene B gets a whisper of tint so the pinned screens don't blur together */
.scene-tags .scene-sticky {
  background: linear-gradient(180deg, rgba(124, 213, 211, 0.10), rgba(124, 213, 211, 0));
}

/* ---------- Waitlist form (join section) ---------- */

.waitlist-form {
  display: flex;
  gap: 10px;
}
.waitlist-form .input { flex: 1; min-width: 0; }
.waitlist-form .btn { flex-shrink: 0; }

.container-mid { max-width: 880px; }

.form-error {
  margin-top: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: #a51931;
}

.ribbon {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 16px;
  background: var(--coral-tint);
  border-radius: 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--coral-deep);
}

/* ---------- Signature: receipts ---------- */

.hero-widget { min-width: 0; margin-top: 40px; }

.widget-controls { display: grid; gap: 10px; margin-bottom: 22px; }

.receipts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}

.receipt-shadow { filter: drop-shadow(0px 4px 20px rgba(15, 23, 42, 0.09)); }

.receipt {
  background: var(--card);
  padding: 20px 18px 26px;
  border-radius: 14px 14px 0 0;
  font-variant-numeric: tabular-nums;
  /* sawtooth torn edge */
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from 315deg at 50% 100%, #000 90deg, rgba(0,0,0,0) 0) 0 100% / 16px 8px repeat-x;
  mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from 315deg at 50% 100%, #000 90deg, rgba(0,0,0,0) 0) 0 100% / 16px 8px repeat-x;
}

.receipt-valuto {
  background: linear-gradient(180deg, rgba(152, 242, 240, 0.25), rgba(255, 255, 255, 1) 42%);
  border-top: 4px solid var(--teal);
}

.receipt-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--outline);
  display: flex;
  align-items: center;
  gap: 7px;
}
.receipt-head-valuto { color: var(--teal); }
.receipt-qr { width: 15px; height: 15px; }

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.86rem;
  border-bottom: 1px dashed rgba(189, 201, 200, 0.55);
}
.receipt-lines li > span:first-child { color: var(--ink-2); }
.receipt-lines small {
  display: block;
  font-size: 0.72rem;
  color: #6b7776;
  margin-top: 1px;
}
.receipt-bad .receipt-num { color: var(--coral-deep); }

.receipt-num { font-weight: 600; white-space: nowrap; }

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.receipt-total .receipt-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.receipt-bank .receipt-total .receipt-num { color: var(--ink); }
.receipt-valuto .receipt-total .receipt-num { color: var(--teal); }

.receipt-tag {
  margin-top: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
}
.receipt-tag-bad { background: var(--coral-tint); color: var(--coral-deep); }
.receipt-tag-good { background: var(--success-tint); color: var(--success); }

.trip-line {
  margin-top: 20px;
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-align: center;
}
.trip-line strong { color: var(--success); font-weight: 700; }

.widget-note {
  margin-top: 8px;
  font-size: var(--fs-micro);
  color: #6b7776;
  text-align: center;
}

/* printing animation */
@media (prefers-reduced-motion: no-preference) {
  .receipts.is-printing .receipt-head,
  .receipts.is-printing .receipt-lines li,
  .receipts.is-printing .receipt-total,
  .receipts.is-printing .receipt-tag {
    animation: print-row 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 110ms);
  }
  @keyframes print-row {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 620px) {
  .receipts { grid-template-columns: 1fr; }
}

/* ---------- Cost table ---------- */

.table-scroll {
  margin-top: 36px;
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.cost-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cost-table th,
.cost-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(189, 201, 200, 0.4);
}
.cost-table tbody tr:last-child th,
.cost-table tbody tr:last-child td { border-bottom: 0; }

.cost-table thead th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cost-table tbody th {
  font-weight: 600;
  color: var(--ink);
  max-width: 200px;
}
.cost-table td { color: var(--ink-2); }

.cost-table .col-valuto {
  background: var(--teal-tint);
  color: var(--teal);
  border-left: 2px solid rgba(0, 97, 97, 0.25);
}
.cost-table thead .col-valuto {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.cost-table .col-valuto strong { font-weight: 700; }

.cell-icon {
  width: 15px; height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
}
.icon-yes { color: var(--success); }
.icon-no { color: var(--coral-deep); }

.aside-line {
  margin-top: 28px;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--ink-2);
  border-left: 3px solid var(--teal-light);
  padding-left: 18px;
}

/* ---------- Steps ---------- */

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  counter-reset: step;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 30px 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--teal-lighter);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.step-card h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.step-card p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

/* real app screens under the steps */
.app-strip {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}

.app-shot { margin: 0; }
.app-shot:nth-child(2) { margin-top: -22px; }

.app-frame {
  background: #0b3b3b;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0px 20px 48px rgba(3, 24, 24, 0.22);
}
.app-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.app-shot figcaption {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (max-width: 780px) {
  .app-strip { grid-template-columns: 1fr; max-width: 300px; }
  .app-shot:nth-child(2) { margin-top: 0; }
}

/* ---------- Countries ---------- */

.country-group-title {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.country-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.country-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}
.country-card .flag { grid-row: 1 / 3; }
.country-name { font-weight: 600; font-size: 0.98rem; }
.country-meta { font-size: var(--fs-micro); color: var(--ink-2); }

.country-card .pill {
  grid-column: 1 / 3;
  justify-self: start;
  margin-top: 10px;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pill-live { background: var(--success-tint); color: var(--success); }
.pill-soon { background: rgba(189, 201, 200, 0.25); color: var(--ink-2); }

.country-card-soon {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--outline);
}
.country-card-soon .flag { opacity: 0.65; }
.country-card-soon .country-name { color: var(--ink-2); }

/* vote box */
.vote-box {
  margin-top: 48px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.5vw, 40px);
}
.vote-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
}
.vote-sub { margin-top: 6px; color: var(--ink-2); font-size: 0.98rem; }
.vote-box .chip-row { margin-top: 18px; }
.vote-confirm {
  margin-top: 14px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--success);
}

/* ---------- Dark band: nothing hidden ---------- */

.section-dark {
  background: var(--teal);
  color: #fff;
}
.section-dark .section-title { color: #fff; }

.band-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.band-text {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.1vw + 0.75rem, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.phone-wrap { display: flex; justify-content: center; }

.phone {
  width: min(300px, 100%);
  background: #0b3b3b;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0px 24px 60px rgba(3, 24, 24, 0.45);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

@media (prefers-reduced-motion: no-preference) {
  .phone-wrap .phone { animation: phone-float 6s ease-in-out infinite; }
  @keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
}

@media (max-width: 860px) {
  .band-split { grid-template-columns: 1fr; }
}

/* ---------- Scams that can't happen ---------- */

.scam-grid {
  margin-top: clamp(44px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.8vw, 32px);
}

.scam-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 3.6vw, 48px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.scam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 14px 36px rgba(15, 23, 42, 0.10);
}

/* icon tile with the scam "crossed out" — the line draws itself on reveal */
.scam-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--teal-tint-2);
  color: var(--teal);
}
.scam-icon-base { width: 32px; height: 32px; }
.scam-cross {
  position: absolute;
  inset: 12px;
  width: 40px; height: 40px;
  overflow: visible;
}
.scam-cross line {
  stroke: var(--coral-deep);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.scam-card h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.6vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
}
.scam-card p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 46ch;
}

@media (max-width: 720px) {
  .scam-grid { grid-template-columns: 1fr; }
}

/* ---------- Founding 1,000 ---------- */

.join-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4.5vw, 56px);
  text-align: center;
}
.join-card .section-title { margin-inline: auto; }

.join-sub {
  margin: 16px auto 0;
  color: var(--ink-2);
  max-width: 48ch;
}

.spots { margin: 30px auto 0; max-width: 380px; }
.spots-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(189, 201, 200, 0.35);
  overflow: hidden;
}
.spots-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-container), var(--teal));
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.spots-label {
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.spots-label strong { color: var(--teal); font-weight: 700; }

.waitlist-form-stacked {
  margin: 28px auto 0;
  max-width: 420px;
  flex-direction: column;
  gap: 14px;
}
.field-row { text-align: left; }
.field-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
}
.field-optional { font-weight: 400; color: var(--ink-2); }

.referral-line {
  margin-top: 20px;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--teal);
}
.footnote {
  margin-top: 14px;
  font-size: var(--fs-micro);
  color: #6b7776;
  max-width: 44ch;
  margin-inline: auto;
}

/* success state (injected by script.js) */
.form-success {
  margin: 28px auto 0;
  max-width: 440px;
  background: var(--success-tint);
  border-radius: var(--radius-inner);
  padding: 24px 22px;
  text-align: center;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}
.form-success-icon svg { width: 22px; height: 22px; }
.form-success strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.form-success p {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.ref-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ref-row code {
  padding: 9px 14px;
  background: var(--card);
  border: 1.5px solid var(--outline);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--ink);
}
.btn-copy {
  padding: 9px 16px;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-copy:hover { background: var(--teal-container); }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 32px; display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-soft);
  padding: 0 24px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  border-radius: var(--radius-inner);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-item p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 58ch;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] p { animation: faq-open 0.25s ease both; }
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

.final-cta { text-align: center; }

.final-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.final-cta .btn { margin-top: 34px; }

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

.site-footer {
  background: var(--card);
  border-top: 1px solid rgba(189, 201, 200, 0.5);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
}
.footer-line { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); }

.social-row {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.social-row a:hover { color: var(--teal); background: var(--teal-tint); }
.social-row svg { width: 18px; height: 18px; }

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-col a:hover { color: var(--teal); text-decoration: underline; }

.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 24px;
  border-top: 1px solid rgba(189, 201, 200, 0.4);
  font-size: var(--fs-micro);
  color: var(--ink-2);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Scroll reveals ---------- */

/* reveal styles only apply when script.js has run (html.js), so the page
   is never blank without JavaScript */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  /* ---- staggered groups: the container is watched, its children animate ---- */
  html.js .reveal.reveal-stagger { opacity: 1; transform: none; }
  html.js .reveal-stagger > * {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  html.js .app-strip > * { transform: translateY(44px) rotate(var(--tilt, 0deg)); }
  html.js .scam-grid > * { transform: translateY(34px) scale(0.96); }
  html.js .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--n, 0) * 140ms);
  }

  /* once landed, hover must respond instantly — not after the stagger delay */
  html.js .scam-grid.is-visible > *:hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transition-delay: 0ms;
  }

  /* the cross-out draws after its card has landed */
  html.js .scam-grid .scam-cross line {
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.5s ease;
  }
  html.js .scam-grid.is-visible .scam-cross line {
    stroke-dashoffset: 0;
    transition-delay: calc(var(--n, 0) * 140ms + 0.55s);
  }
}

.app-strip > :nth-child(1) { --n: 0; --tilt: -3deg; }
.app-strip > :nth-child(2) { --n: 1; --tilt: 2.5deg; }
.app-strip > :nth-child(3) { --n: 2; --tilt: -2deg; }
.scam-grid > :nth-child(1) { --n: 0; }
.scam-grid > :nth-child(2) { --n: 1; }
.scam-grid > :nth-child(3) { --n: 2; }
.scam-grid > :nth-child(4) { --n: 3; }

/* the brand mark is a raster logo now — keep its corners soft */
.wordmark-u { border-radius: 9px; }
.scene-reveal-mark { border-radius: 12px; }
