/* ============================================================
   4Gas — styles.css  ·  v2 redesign
   White minimalist · professional (SF Pro / Inter) · blue accent.
   Design language guided by the design.md / senso4s example
   and gasallapp.com structure. No build step.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Brand (from the 4Gas logo) */
  --ink:        #0a1b3d;   /* navy — headings & primary text */
  --ink-2:      #404a63;   /* secondary text */
  --ink-3:      #707b92;   /* tertiary / captions */
  --canvas:     #ffffff;   /* page background */
  --surface:    #ffffff;   /* cards / elevated surfaces */
  --mist:       #f4f7ff;   /* alternate band (faint blue) */
  --mist-2:     #eaf1ff;
  --line:       #e6ecf7;   /* hairlines / borders */
  --deep:       #0a1b3d;   /* fixed dark surface (footer, dark sections, badges) */
  --deep-text:  rgba(255,255,255,.72);
  --blue:       #2a5bff;   /* accent / CTA */
  --blue-deep:  #0a2a9c;
  --blue-soft:  #dde7ff;

  /* Fuel accents (kept subtle) */
  --fuel-glp:  #ff8a00;
  --fuel-gnc:  #00b3a4;
  --fuel-gnl:  #2a5bff;
  --fuel-h2:   #8b5cf6;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, #2a5bff 0%, #0a2a9c 100%);
  --grad-text: linear-gradient(120deg, #0a2a9c 0%, #2a5bff 55%, #5b86ff 100%);

  /* Type — SF Pro stack with Inter fallback */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;

  /* Spacing */
  --s-8:8px; --s-12:12px; --s-16:16px; --s-20:20px; --s-24:24px; --s-32:32px;
  --s-40:40px; --s-48:48px; --s-64:64px; --s-80:80px; --s-96:96px;

  /* Radii */
  --r-pill: 999px;
  --r-card: 28px;
  --r-sm: 16px;

  --page-max: 1180px;
  --section-gap: clamp(64px, 9vw, 120px);

  /* Elevation — soft, minimal */
  --sh-1: 0 1px 2px rgba(10,27,61,.04), 0 8px 24px -16px rgba(10,27,61,.18);
  --sh-2: 0 2px 6px rgba(10,27,61,.05), 0 24px 60px -28px rgba(10,27,61,.28);
  --sh-blue: 0 14px 40px -14px rgba(42,91,255,.55);
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink:       #eef2fb;
  --ink-2:     #b7c1d6;
  --ink-3:     #8492ad;
  --canvas:    #0a1020;
  --surface:   #121a2e;
  --mist:      #0f1626;
  --mist-2:    #18223a;
  --line:      rgba(255,255,255,.10);
  --deep:      #060a14;
  --blue:      #5b86ff;
  --blue-deep: #2a5bff;
  --blue-soft: rgba(91,134,255,.18);
  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -18px rgba(0,0,0,.7);
  --sh-2: 0 2px 8px rgba(0,0,0,.45), 0 28px 64px -28px rgba(0,0,0,.8);
}

/* Smooth theme crossfade (fallback when View Transitions API is absent) */
html:not([data-theme]) body,
html[data-theme] body,
.top-nav, .card, .stat, .badge, .req-form, .cv-card, .cv-float, .btn-ghost,
.mobile-menu, .section-mist, .footer, .field input, .field select, .field textarea {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

/* View Transitions: circular reveal driven by main.js (--vt-x/--vt-y/--vt-r) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-clip .55s cubic-bezier(.3,.7,.2,1) both; }
@keyframes vt-clip {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to   { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 50%) var(--vt-y, 0)); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }

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

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--s-24); }
.section { padding-block: var(--section-gap); }
.section-mist { background: var(--mist); }
.section-white { background: var(--canvas); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--blue); margin-bottom: var(--s-16);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }

.section-head { max-width: 760px; margin-bottom: var(--s-48); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.h-display {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  padding-bottom: 0.06em;
  color: var(--ink);
}
.h-section {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.1;
  padding-bottom: 0.06em;
  color: var(--ink);
}
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
/* Solid blue emphasis — reliable & visible (gradient-clipped text turns
   transparent when SplitText wraps it word-by-word, so we avoid it). */
.grad-text { color: var(--blue); }
.section-dark .grad-text { color: #7da2ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); padding: 15px 28px; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s, color .35s;
  will-change: transform;
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -12px rgba(42,91,255,.6); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.on-dark .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); transition: gap .3s; }
.link-arrow:hover { gap: 12px; }

/* ---------- Pills / badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.badge .dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: #16c172;
  box-shadow: 0 0 0 0 rgba(22,193,114,.6); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(22,193,114,.5)} 70%,100%{box-shadow:0 0 0 12px rgba(22,193,114,0)} }
.avatars { display: inline-flex; }
.avatars span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; }
.avatars span:first-child { margin-left: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-32); box-shadow: var(--sh-1);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.grid { display: grid; gap: var(--s-24); align-items: stretch; }
.grid > .card { height: 100%; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* responsive collapse — tablets to 2-up, phones to a single readable column */
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.tilt-stage { perspective: 1400px; }

/* ---------- Top nav ---------- */
.top-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, transform .4s ease;
}
.top-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.nav-logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
/* logo.png is a rounded app-icon on a square canvas; clip the black corners */
.nav-logo img { height: 46px; width: 46px; border-radius: 23%; display: block; box-shadow: var(--sh-1); }
/* theme toggle */
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; transition: background .35s, color .35s, transform .3s, border-color .35s; }
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); transition: color .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-select {
  background-color: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 36px 9px 14px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nav-scrolled .top-nav {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(10,27,61,.5);
}

.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  position: absolute; transition: transform .3s ease, opacity .2s ease;
}
.nav-burger span { position: relative; }
.nav-burger span::before { top: -7px; } .nav-burger span::after { top: 7px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100dvh; width: 84%; max-width: 380px;
  background: var(--canvas); z-index: 99; transform: translateX(100%);
  display: flex; flex-direction: column; gap: 20px; padding: 96px 32px 32px;
  box-shadow: -20px 0 60px -30px rgba(10,27,61,.5);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu a { font-size: 22px; font-weight: 600; color: var(--ink); }
.mobile-menu .btn { margin-top: 12px; }
/* staggered link entrance, CSS-only */
.mobile-menu > a, .mobile-menu > .mm-langs { opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease; }
body.menu-open .mobile-menu > a, body.menu-open .mobile-menu > .mm-langs { opacity: 1; transform: none; }
body.menu-open .mobile-menu > *:nth-child(1) { transition-delay: .08s; }
body.menu-open .mobile-menu > *:nth-child(2) { transition-delay: .12s; }
body.menu-open .mobile-menu > *:nth-child(3) { transition-delay: .16s; }
body.menu-open .mobile-menu > *:nth-child(4) { transition-delay: .20s; }
body.menu-open .mobile-menu > *:nth-child(5) { transition-delay: .24s; }
body.menu-open .mobile-menu > *:nth-child(6) { transition-delay: .28s; }
body.menu-open .mobile-menu > *:nth-child(7) { transition-delay: .32s; }

@media (max-width: 1023px) {
  .nav-links, .nav-right .desktop-only { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 80px; overflow-x: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 14%, rgba(42,91,255,.06), transparent 72%),
    var(--canvas);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  grid-template-areas: "lead media" "cta media";
  column-gap: 32px; row-gap: 20px; align-items: center;
}
.hero-lead { grid-area: lead; align-self: end; }
.hero-cta-block { grid-area: cta; align-self: start; }
.hero-stage { grid-area: media; position: relative; display: flex; justify-content: center; align-self: center; }
.hero h1 { margin: 22px 0 20px; }
.hero .lede { margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue); }

.hero-shot {
  width: 114%; max-width: 840px; height: auto; margin-right: -7%;
  filter: drop-shadow(0 36px 70px rgba(10,27,61,.18));
}
.hero-shot--fallback { width: auto; max-width: 280px; margin: 0; border-radius: 38px; box-shadow: var(--sh-2); border: 1px solid var(--line); }

/* refined hero badge */
.badge strong { color: var(--ink); font-weight: 700; }
.badge .sep { opacity: .35; }

@media (max-width: 1023px) {
  .hero { padding-top: 96px; padding-bottom: 48px; }
  /* lead → image → CTA: the mockup sits above "Descargar gratis" */
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "lead" "media" "cta"; row-gap: 22px; }
  .hero-lead, .hero-cta-block { align-self: auto; }
  .hero-shot { width: 100%; max-width: 360px; margin-right: 0; }
}

/* ---------- Logos / data sources strip ---------- */
.sources { text-align: center; padding-block: 44px; }
.sources .cap { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }
.source-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.source-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.source-chip img { width: 22px; height: 16px; border-radius: 3px; flex: none; }
.source-chip em { font-style: normal; font-weight: 600; color: var(--blue); }
.source-chip.is-soon { opacity: .7; }

/* ---------- Stats band ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.stats-grid .stat { height: 100%; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 26px; box-shadow: var(--sh-1); text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 12px; }
.stat-ic svg { width: 24px; height: 24px; }
.stat .num { font-size: clamp(38px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat .num .u { font-size: .5em; color: var(--blue); margin-left: 2px; }
.stat .lbl { font-size: 15px; color: var(--ink-3); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Fuel cards ---------- */
.fuel-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 20px; }
.fuel-card h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.02em; }
.fuel-card p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.fuel-card .price { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blue); font-size: 14px; }
.ic-glp { background: linear-gradient(135deg,#ffb24d,#ff8a00); }
.ic-gnc { background: linear-gradient(135deg,#2fd9cb,#00b3a4); }
.ic-gnl { background: var(--grad-blue); }
.ic-h2  { background: linear-gradient(135deg,#a98bf6,#8b5cf6); }

/* phone frame (vector mockups) + bare real screenshot */
.phone { border-radius: 38px; background: var(--surface); box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; }
.shot { width: 100%; max-width: 340px; height: auto; margin-inline: auto; filter: drop-shadow(0 24px 50px rgba(10,27,61,.16)); will-change: transform; transform: translateZ(0); }

/* ---------- How it works ---------- */
.how-col { text-align: center; }
.how-col .shot { margin: 0 auto 16px; }
.how-col .phone { width: 74%; max-width: 240px; margin: 0 auto 24px; }
.how-step { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; margin-bottom: 16px; }
.how-col h3 { font-size: 21px; margin-bottom: 8px; }
.how-col p { font-size: 15.5px; color: var(--ink-2); max-width: 34ch; margin-inline: auto; }

/* ---------- Country cards ---------- */
.country-card { display: flex; flex-direction: column; gap: 6px; }
.country-flag { width: 44px; height: 33px; border-radius: 8px; box-shadow: var(--sh-1); margin-bottom: 12px; }
.country-card h3 { font-size: 22px; }
.country-fuels { font-weight: 700; color: var(--blue); font-size: 15px; }
.country-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 6px 0 4px; }
.country-source { font-size: 13px; color: var(--ink-3); margin-top: auto; }
.country-card.is-soon { opacity: .72; }
.tag-soon { display: inline-block; background: var(--mist-2); color: var(--blue-deep); border-radius: var(--r-pill); padding: 3px 11px; font-size: 12px; font-weight: 700; margin-left: 8px; }

/* ---------- Community ---------- */
.split-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 56px; align-items: center; }
.split-grid .phone { width: 78%; max-width: 300px; margin-inline: auto; }
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.feature-list .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.on-dark .feature-list li { color: rgba(255,255,255,.86); }
@media (max-width: 1023px) { .split-grid { grid-template-columns: 1fr; } }

/* community gamification visual */
.comm-visual { position: relative; }
.cv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 28px; max-width: 420px; margin-inline: auto; }
.cv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cv-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; flex: none; }
.cv-name { font-weight: 700; color: var(--ink); font-size: 17px; }
.cv-level { font-size: 13px; color: var(--blue); font-weight: 600; }
.cv-bar { height: 10px; border-radius: 999px; background: var(--mist-2); overflow: hidden; margin-bottom: 8px; }
.cv-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--grad-blue); transform: scaleX(0); transform-origin: left; }
.cv-bar-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 22px; }
.cv-points { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.cv-points b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.cv-points span { font-size: 14px; color: var(--ink-3); }
.cv-badges { display: flex; gap: 10px; margin-bottom: 22px; }
.cv-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--mist); border: 1px solid var(--line); }
.cv-streak { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--mist); }
.cv-streak .fire { font-size: 22px; }
.cv-streak div { font-size: 13px; color: var(--ink-2); }
.cv-streak b { color: var(--ink); }
.cv-float { position: absolute; right: -6%; top: 8%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cv-float .up { color: #16c172; }
@media (max-width: 1023px) { .cv-float { right: 2%; } }

/* level chips */
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.levels span { padding: 7px 14px; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- Audience ---------- */
.aud-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.aud-card .ic svg { width: 26px; height: 26px; }
.aud-card h3 { font-size: 18px; margin-bottom: 6px; }
.aud-card p { font-size: 15px; color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.testi-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.testi-card { flex: 0 0 330px; scroll-snap-align: start; }
.testi-card.is-ph { display: grid; place-items: center; text-align: center; min-height: 190px; border-style: dashed; color: var(--ink-3); box-shadow: none; }
.testi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.testi-av { width: 52px; height: 52px; border-radius: 50%; background: var(--mist-2); }
.testi-name { font-weight: 700; color: var(--ink); }
.testi-type { font-size: 13px; color: var(--ink-3); }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- B2B (dark) ---------- */
.section-dark { background: var(--deep); color: rgba(255,255,255,.82); position: relative; overflow: clip; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,.78); }
.section-dark .eyebrow { color: #7da2ff; }
.section-dark .eyebrow::before { background: #7da2ff; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 10%, rgba(42,91,255,.35), transparent 70%);
}
.section-dark .wrap { position: relative; z-index: 1; }
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 1023px) { .b2b-grid { grid-template-columns: 1fr; } }

/* Workshop request form */
.req-form { background: var(--surface); border-radius: var(--r-card); padding: 32px; box-shadow: var(--sh-2); }
.req-form h3 { font-size: 20px; margin-bottom: 18px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background-color: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
  transition: border-color .25s, background-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background-color: var(--surface); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.check-pill { position: relative; display: inline-flex; cursor: pointer; }
.check-pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  user-select: none;
}
.chip .tick { width: 16px; height: 16px; flex: none; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease; }
.check-pill:hover .chip { border-color: var(--blue); }
.check-pill input:active + .chip { transform: scale(.96); }
.check-pill input:checked + .chip { background: var(--blue); border-color: var(--blue); color: #fff; }
.check-pill input:checked + .chip .tick { opacity: 1; transform: scale(1); }
.check-pill input:focus-visible + .chip { outline: 2px solid var(--blue); outline-offset: 2px; }

/* form submit feedback */
.btn.is-sending { opacity: .75; transform: scale(.99); pointer-events: none; }
.btn.is-sending::after { content: ""; width: 15px; height: 15px; margin-left: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.req-form .btn { width: 100%; margin-top: 8px; }
.req-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; text-align: center; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .lede { margin-inline: auto; margin-bottom: 30px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--deep); color: #fff; border-radius: 16px; padding: 12px 22px; transition: transform .3s, box-shadow .3s; }
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; opacity: .7; }
.store-badge strong { font-size: 17px; }
.cta-langs { margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: rgba(255,255,255,.7); padding-block: var(--s-80) var(--s-40); }
.footer h4 { color: rgba(255,255,255,.55); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 15px; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-brand img { height: 64px; width: 64px; border-radius: 23%; display: block; margin-bottom: 18px; box-shadow: var(--sh-1); }
.footer-social { display: none; }
.footer-tag { font-size: 15px; max-width: 32ch; margin-bottom: 22px; }
.footer-social { display: flex; gap: 16px; font-size: 14px; }
.footer-collab { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.footer-collab img { height: 36px; opacity: .9; }
.footer-collab span { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Locale banner ---------- */
.locale-banner { background: var(--mist-2); color: var(--blue-deep); text-align: center; font-size: 13px; font-weight: 600; padding: 9px 16px; position: relative; z-index: 101; }

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px; background: var(--blue);
  border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s, opacity .25s; will-change: transform;
}
.cursor-dot.is-hover { width: 46px; height: 46px; background: rgba(42,91,255,.15); border: 1px solid rgba(42,91,255,.5); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* scroll hint mouse */
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; opacity: .7; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; margin-left: -1.5px; width: 3px; height: 7px; border-radius: 2px; background: currentColor; animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(10px)} }

.marquee-help { font-size: 13px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 4px; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.faq-q .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.faq-q .ico svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .ico { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 24px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; max-width: 72ch; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 140px 0 40px; background: var(--mist); }
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.legal-hero .updated { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 12px; color: var(--ink); letter-spacing: -.02em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ink); }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .note { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; font-size: 14.5px; color: var(--ink-2); margin: 18px 0; }
.legal .ph { background: #fff3d6; border-radius: 4px; padding: 0 4px; font-weight: 600; color: #8a5a00; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; font-weight: 600; color: var(--blue); }

/* ---------- Mobile menu language switch ---------- */
.mm-langs { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.mm-langs span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mm-langs .mm-lang-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-langs a { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); }
.mm-langs a[aria-current="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Mobile polish ---------- */
@media (max-width: 1023px) {
  .top-nav .wrap { padding-block: 12px; }
  .nav-logo img { height: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding-top: 96px; }
  .hero-meta { gap: 10px 18px; }
  .section-head { margin-bottom: 32px; }
  .store-badge { padding: 12px 18px; }
}
@media (max-width: 380px) {
  .nav-logo img { height: 36px; }
  .badge { font-size: 12.5px; padding: 7px 12px 7px 8px; }
}

/* ---------- Dark-mode component overrides ---------- */
html[data-theme="dark"] .nav-scrolled .top-nav { background: rgba(10,16,32,.82); box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0,0,0,.8); }
html[data-theme="dark"] .btn-ghost:hover { background: #1a2540; }
html[data-theme="dark"] .hero-bg { background: radial-gradient(60% 50% at 80% 14%, rgba(91,134,255,.10), transparent 72%), var(--canvas); }

/* ============================================================
   MOBILE UX POLISH
   ============================================================ */

/* No grey tap flash; let custom :active states do the talking */
* { -webkit-tap-highlight-color: transparent; }

/* Fixed nav respects notches / status bars */
.top-nav { padding-top: env(safe-area-inset-top, 0); }

/* Mobile menu: backdrop scrim + scrollable + safe areas */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(8, 14, 28, .45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
.mobile-menu {
  overflow-y: auto;
  padding-top: max(96px, calc(env(safe-area-inset-top) + 84px));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
body.menu-open { overflow: hidden; }

/* Touch feedback (no hover devices) */
@media (hover: none) {
  .btn:active { transform: scale(.97); }
  .card:active, .store-badge:active, .faq-q:active { transform: scale(.985); }
  .theme-toggle:active, .nav-burger:active { transform: scale(.92); }
  .card-tilt:hover { transform: none; }   /* disable tilt artefacts on touch */
}

/* ---- Phones (≤768px) ---- */
@media (max-width: 768px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: clamp(48px, 12vw, 72px); }

  /* Hero: tighter, CTAs full-width and thumb-friendly */
  .hero h1 { margin: 18px 0 16px; }
  .h-display { font-size: clamp(34px, 10vw, 46px); line-height: 1.06; }
  .h-section { font-size: clamp(27px, 7.6vw, 38px); }
  .hero .lede, .lede { font-size: 17px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; width: 100%; padding: 16px 22px; }
  .hero-meta { gap: 12px 20px; margin-top: 28px; font-size: 14.5px; }
  .hero-cta-block { margin-top: 4px; }

  /* Section headers a touch tighter */
  .section-head { margin-bottom: 28px; }
  .eyebrow { margin-bottom: 12px; }

  /* Cards: comfier padding + consistent radius on small screens */
  :root { --card-padding: 22px; }
  .card, .stat, .req-form, .cv-card { padding: 22px; border-radius: 22px; }
  .fuel-card .ic { width: 46px; height: 46px; margin-bottom: 14px; }
  .fuel-card h3, .country-card h3 { font-size: 19px; }

  /* Stats: 2-up with breathing room */
  .stats-grid { gap: 12px; }
  .stat .num { font-size: clamp(34px, 11vw, 46px); }

  /* Community card scales to viewport */
  .cv-card { max-width: 100%; }
  .cv-points b { font-size: 34px; }
  .cv-float { top: 4%; }

  /* FAQ: bigger tap rows */
  .faq-q { padding: 20px 2px; font-size: 17px; gap: 14px; }

  /* CTA store badges fill width, easy to tap */
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; padding: 14px 20px; }

  /* Mockups: cap height so they never dominate the fold */
  .hero-shot { max-width: min(86vw, 420px); }
  .how-col .shot { max-width: 260px; }

  /* Footer: legible single-column rhythm */
  .footer { padding-block: 56px 28px; }
  .footer-legal { margin-top: 32px; }

  /* Legal pages */
  .legal-hero { padding: 110px 0 28px; }
  .legal table, .legal p, .legal li { font-size: 15.5px; }
}

/* ---- Small phones (≤380px) ---- */
@media (max-width: 380px) {
  .badge { font-size: 12px; }
  .badge strong { font-size: 12px; }
  .h-display { font-size: clamp(30px, 9vw, 38px); }
  .nav-right { gap: 8px; }
}

/* Mobile menu: larger tap areas + full-width CTA */
.mobile-menu a:not(.btn):not(.mm-langs a) { padding-block: 4px; }
.mobile-menu .btn { width: 100%; padding-block: 16px; }

/* ============================================================
   SELECTS — authoritative styling (placed last so it wins the
   cascade over the .field `background` shorthand; longhand only
   so it never gets reset / tiled).
   ============================================================ */
.lang-select, .field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a1b3d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field select { padding-right: 42px; }
.lang-select option, .field select option { background-color: var(--surface); color: var(--ink); font-weight: 600; }

html[data-theme="dark"] .lang-select,
html[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23eef2fb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Sources strip + card readability on phones */
@media (max-width: 768px) {
  .sources { padding-block: 28px; }
  .sources .cap { margin-bottom: 18px; font-size: 12px; }
  .source-chips { gap: 10px; }
  .source-chip { font-size: 13px; padding: 9px 14px; }
  /* full-width cards read horizontally, never squeezed/vertical */
  .fuel-card p, .country-desc, .aud-card p { font-size: 15px; }
  .how-col p { max-width: none; }
}
