/* =========================================================
   TripHold v2 — mobile-first
   Paleta oficial: brand_guidelines_triphold_2026-05-21.md
   ========================================================= */
:root {
  /* brand */
  --navy: #0D2E6E;          /* Azul Profundo */
  --electric: #3535C8;      /* Azul Eléctrico */
  --royal: #1A52B3;         /* Royal Blue (logo) */
  --cyan: #47C5EA;          /* Azul Cyan */
  --green: #5DD87A;         /* Verde Acción — solo CTAs */
  --yellow: #F5C842;        /* Amarillo Acento — énfasis puntual */
  --white: #FFFFFF;
  --gray-50: #F4F6FA;       /* Gris Claro */

  /* semantic */
  --bg: var(--white);
  --surface: var(--white);
  --tint: var(--gray-50);
  --ink: #0B1B3F;
  --ink-2: #33415F;
  --muted: #56647F;
  --line: #E1E6F0;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C2CDE6;
  --cta: var(--green);
  --on-cta: var(--navy);
  --ring: var(--cyan);

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.875rem, 7.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 11vw, 5.75rem);

  /* space (4/8) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 20px;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13,46,110,.06), 0 2px 8px rgba(13,46,110,.06);
  --shadow-2: 0 8px 24px rgba(13,46,110,.10), 0 2px 6px rgba(13,46,110,.06);
  --shadow-3: 0 24px 60px rgba(13,46,110,.22);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --header-h: 64px;
  --bbar-h: 76px;

  --z-header: 40; --z-bbar: 50; --z-skip: 100;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: var(--z-skip);
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: calc(var(--z-header) + 1); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--electric)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-base); letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-med) var(--ease-out), color var(--t-fast);
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn--cta { background: var(--cta); color: var(--on-cta); box-shadow: 0 6px 20px rgba(93,216,122,.35); }
.btn--cta:hover { background: #4fcf6e; box-shadow: 0 10px 28px rgba(93,216,122,.45); }
.btn--cta .i { transition: transform var(--t-med) var(--ease-out); }
.btn--cta:hover .i { transform: translateX(3px); }
.btn--ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); margin-top: var(--s4); min-height: 44px; }
.link-arrow .i { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease-out);
}
.header__inner {
  height: var(--header-h); max-width: 1200px; margin: 0 auto; padding: 0 12px 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
/* logo always sits on a white surface (brand rule) */
.brand { display: flex; align-items: center; background: #fff; border-radius: var(--r-pill); padding: 8px 16px; box-shadow: var(--shadow-1); min-height: 44px; }
.brand__crop { display: block; width: 120px; }
.brand__crop img { width: 100%; height: auto; }
.header.is-solid { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .brand { box-shadow: none; padding-inline: 4px; }
.header.is-hidden { transform: translateY(-100%); }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: var(--s2); }
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang__btn { min-width: 44px; min-height: 40px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: #fff; transition: background-color var(--t-fast), color var(--t-fast); }
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--navy); }
.header.is-solid .lang { background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--line); }
.header.is-solid .lang__btn { color: var(--muted); }
.header.is-solid .lang__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.header__cta { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + var(--s6)) 0 var(--s6);
  overflow: hidden; background: var(--navy);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 20%; transform: scale(1.08); animation: heroZoom 2.4s var(--ease-out) forwards; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,46,110,.55) 0%, rgba(13,46,110,0) 26%),
    linear-gradient(0deg, rgba(8,24,62,.96) 6%, rgba(13,46,110,.78) 46%, rgba(13,46,110,.1) 78%);
}
.hero__content { position: relative; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--electric); margin-bottom: var(--s3); }
.eyebrow--light { color: var(--cyan); }
.hero__eyebrow { opacity: 0; animation: fadeUp .8s var(--ease-out) .15s forwards; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: var(--s5); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .37s; }
.hero__title .line:nth-child(3) > span { animation-delay: .49s; }
.hero__title em { font-style: italic; color: var(--cyan); padding-right: .08em; }
.hero__lead { font-size: var(--fs-base); line-height: 1.55; color: #E3EAF8; max-width: 34ch; margin-bottom: var(--s5); opacity: 0; animation: fadeUp .9s var(--ease-out) .7s forwards; }
.hero__ctas { display: flex; flex-direction: column; gap: var(--s3); opacity: 0; animation: fadeUp .9s var(--ease-out) .82s forwards; }
.hero__chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); opacity: 0; animation: fadeUp .9s var(--ease-out) .95s forwards; }
.hero__chips { gap: 6px 16px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: #E3EAF8; }
.hero .btn--ghost { display: none; }
.hero__chips .i { width: 16px; height: 16px; color: var(--cyan); }

.route-card { display: none; }
.hero__scroll { display: none; }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */
.marquee { background: var(--electric); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { font-weight: 800; font-style: italic; font-size: 1.0625rem; letter-spacing: -.01em; padding: 0 22px; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-left: 22px; margin-right: -22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--s8) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.section--navy::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -260px; top: -200px; background: radial-gradient(circle, rgba(71,197,234,.28), transparent 65%); pointer-events: none;
}
.section__head { margin-bottom: var(--s6); max-width: 680px; }
.section__head h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--navy); }
.section__head--light h2 { color: #fff; }
.section__lead { margin-top: var(--s4); color: var(--muted); font-size: var(--fs-lg); max-width: 52ch; }
.section__head--light .section__lead { color: var(--on-navy-muted); }
.arr { font-family: system-ui, 'Segoe UI Symbol', sans-serif; font-weight: 700; color: var(--cyan); }
.price-row .arr { color: var(--electric); }
.hl { color: var(--electric); font-style: italic; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--s6); padding-left: 64px; }
.timeline__rail { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--cyan), var(--electric)); transform-origin: 50% 0; transform: scaleY(0); border-radius: 2px; }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -49px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--line); transition: box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.tl.is-on::before { box-shadow: inset 0 0 0 5px var(--electric); transform: scale(1.12); }
.tl__time { display: inline-block; font-weight: 800; font-size: var(--fs-sm); color: var(--electric); font-variant-numeric: tabular-nums; margin-bottom: var(--s2); letter-spacing: .02em; }
.tl__photo { margin: 0 0 var(--s3); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint); }
.tl__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.tl.is-in .tl__photo img { transform: none; }
.tl__card h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tl__card p { color: var(--muted); }
.tl__card--brand { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-2); }
.tl__card--brand h3 { color: #fff; }
.tl__card--brand p { color: var(--on-navy-muted); }
.tl__card--brand .link-arrow { color: var(--cta); }
.tl--end::before { background: var(--cta); box-shadow: 0 0 0 6px rgba(93,216,122,.25); }

/* ---------- steps ---------- */
/* mobile: swipeable carousel (native scroll-snap = finger tracking + momentum) */
.carousel { position: relative; }
.steps {
  display: flex; gap: var(--s3);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) var(--s4);
  scroll-padding-inline: var(--gutter);
}
.steps::-webkit-scrollbar { display: none; }
.steps:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; border-radius: var(--r-lg); }
.step { flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: always; background: #fff; border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); position: relative; overflow: hidden; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med); }
.step:not(.is-active) { transform: scale(.96); opacity: .75; }
.carousel__ctrl { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s2); }
.carousel__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow-1); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out); }
.carousel__arrow:active { transform: scale(.92); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__arrow .i { width: 20px; height: 20px; stroke-width: 2.2; }
.carousel__dots { display: flex; gap: 2px; }
.carousel__dot { width: 24px; height: 24px; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: #C5CEE0; transition: width var(--t-med) var(--ease-out), background-color var(--t-med); }
.carousel__dot[aria-current="true"]::before { width: 22px; background: var(--electric); }
.step__num { position: absolute; right: 16px; top: 8px; font-size: 3.5rem; font-weight: 800; font-style: italic; color: var(--gray-50); line-height: 1; letter-spacing: -.04em; }
.step__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--electric), var(--royal)); color: #fff; margin-bottom: var(--s4); position: relative; }
.step__icon .i { width: 26px; height: 26px; }
.step h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); margin-bottom: var(--s2); position: relative; }
.step p { color: var(--muted); position: relative; }

/* ---------- rates ---------- */
.sizes { background: var(--tint); border-radius: var(--r-xl); padding: var(--s4); }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r-pill); padding: 5px; box-shadow: var(--shadow-1); }
.seg__btn { position: relative; z-index: 1; min-height: 52px; border-radius: var(--r-pill); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); transition: color var(--t-med); }
.seg__btn small { font-weight: 600; font-size: .6875rem; opacity: .8; font-variant-numeric: tabular-nums; }
.seg__btn[aria-selected="true"] { color: #fff; }
.seg__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: var(--r-pill); background: var(--navy); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 480ms var(--ease-out); }

.rates__panel { display: grid; gap: var(--s4); margin-top: var(--s4); }
.bag-visual { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s2) 0; }
.bag-visual__svg { width: 64px; height: 86px; flex: none; transform-origin: 50% 100%; transform: scale(var(--bag, .78)); transition: transform 560ms cubic-bezier(.34, 1.56, .64, 1); overflow: visible; }
.bag-body { fill: var(--electric); }
.bag-handle { fill: none; stroke: var(--navy); stroke-width: 8; }
.bag-line { stroke: rgba(255,255,255,.35); stroke-width: 4; stroke-linecap: round; }
.bag-wheel { fill: var(--navy); }
.bag-visual__label { font-weight: 600; color: var(--ink-2); }

.price-list { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row__route { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.price-row__route strong { display: block; color: var(--navy); font-size: var(--fs-base); line-height: 1.3; }
.price-row__route small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
.price-row__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gray-50); color: var(--electric); }
.price-row__ico .i { width: 20px; height: 20px; }
.price-row__amt { font-weight: 800; font-size: 1.375rem; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }

.rules { display: grid; gap: var(--s3); margin-top: var(--s5); }
.rule { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.rule__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(71,197,234,.16); color: var(--navy); }
.rule__ico .i { width: 20px; height: 20px; }
.rule strong { color: var(--navy); display: block; line-height: 1.35; }
.rule p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- quote ---------- */
.quote__grid { display: grid; gap: var(--s5); position: relative; }
.quote__form { display: grid; gap: var(--s4); }
.qstep { background: rgba(255,255,255,.06); border-radius: var(--r-lg); padding: var(--s5) var(--s4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.qstep legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--s4); }
.qstep legend + * { clear: both; }
.qstep__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-sm); background: var(--cyan); color: var(--navy); font-weight: 800; }
.qstep__opt { font-weight: 500; font-size: var(--fs-sm); color: var(--on-navy-muted); }

.route-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.ropt { position: relative; cursor: pointer; }
.ropt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ropt > span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); transition: background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out); }
.ropt strong { font-size: var(--fs-sm); line-height: 1.25; }
.ropt small { font-size: var(--fs-xs); color: var(--on-navy-muted); }
.ropt input:checked + span { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--cyan), 0 8px 24px rgba(0,0,0,.18); }
.ropt input:checked + span small { color: var(--muted); }
.ropt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.ropt:active > span { transform: scale(.98); }

.stepper-list { display: grid; gap: 2px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.stepper:last-child { border-bottom: 0; }
.stepper__label { min-width: 0; }
.stepper__label strong { display: block; font-size: var(--fs-base); line-height: 1.3; }
.stepper__label small { display: block; font-size: var(--fs-xs); color: var(--on-navy-muted); line-height: 1.4; }
.stepper__ctrl { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out), opacity var(--t-fast); }
.stepper__btn:hover { background: rgba(255,255,255,.2); }
.stepper__btn:active { transform: scale(.9); }
.stepper__btn[data-dir="1"] { background: var(--cyan); color: var(--navy); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__btn .i { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper__val { min-width: 32px; text-align: center; font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.stepper__val.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--cyan); } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--on-navy-muted); }
.field input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 0;
  background: #fff; color: var(--ink); font-size: 16px; /* avoids iOS zoom */
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--t-fast);
}
.field input::placeholder { color: #8090AE; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0 4px rgba(71,197,234,.3); }
.hint { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--on-navy-muted); }

.summary { position: relative; }
.summary__card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: var(--s5); box-shadow: var(--shadow-3); }
.summary__title { font-size: var(--fs-lg); font-weight: 800; color: var(--navy); margin-bottom: var(--s3); }
.summary__lines { margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.summary__lines div { display: flex; justify-content: space-between; gap: var(--s3); }
.summary__lines dt { color: var(--ink-2); }
.summary__lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__lines .is-discount dd, .summary__lines .is-discount dt { color: #1F8A43; }
.summary__lines .is-empty { color: var(--muted); }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--s4); padding-top: var(--s4); border-top: 1.5px dashed var(--line); font-weight: 700; color: var(--navy); }
.summary__total strong { font-size: 2.125rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary__total small { font-size: var(--fs-sm); color: var(--muted); font-weight: 700; letter-spacing: 0; }
.summary__split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s4) 0; }
.summary__split > div { background: var(--gray-50); border-radius: var(--r-md); padding: 10px 12px; }
.summary__split small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.summary__split strong { font-size: var(--fs-lg); color: var(--navy); font-variant-numeric: tabular-nums; }
.summary__save { margin: -4px 0 var(--s4); font-size: var(--fs-sm); font-weight: 700; color: #1F8A43; display: flex; align-items: center; gap: 6px; }
.summary__note { margin-top: var(--s3); font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.summary__note.is-warn { color: #B42318; font-weight: 600; }

/* ---------- trust ---------- */
.trust__grid { display: grid; gap: var(--s7); }
.trust__photo { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 6; background: var(--tint); }
.trust__photo img { width: 100%; height: 100%; object-fit: cover; }
.trust__badge { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-2); }
.trust__photo img.trust__photo-real { object-position: 50% 78%; }
.trust__badge.trust__badge--top { top: 16px; bottom: auto; }
.trust__badge strong { white-space: nowrap; font-size: 2rem; font-weight: 800; color: var(--electric); letter-spacing: -.03em; line-height: 1; }
.trust__badge span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.review { margin: var(--s6) 0 0; padding: var(--s5); border-radius: var(--r-lg); background: var(--tint); position: relative; }
.review::before { content: "“"; position: absolute; right: 18px; top: -6px; font-size: 5.5rem; font-weight: 800; line-height: 1; color: rgba(53,53,200,.12); font-style: italic; }
.review__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.review__stars { display: inline-flex; gap: 2px; }
.review__stars svg { width: 18px; height: 18px; fill: var(--yellow); }
.review__src { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.review__quote { margin: 0; }
.review__quote p { font-size: var(--fs-lg); line-height: 1.5; color: var(--navy); font-weight: 600; }
.review__tr { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.review__tr:empty { display: none; }
.review__who { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.review__who strong { color: var(--ink); }
.review__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--electric); color: #fff; font-weight: 800; }
.features { display: grid; gap: var(--s5); }
.feature { display: flex; gap: var(--s4); }
.feature__ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--gray-50); color: var(--electric); }
.feature h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature p { color: var(--muted); }

/* ---------- faq ---------- */
.faq__list { display: grid; gap: var(--s2); }
.qa { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 60px; padding: 14px 18px; font-weight: 700; color: var(--navy); line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--gray-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233535C8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.qa[open] summary::after { transform: rotate(45deg); background-color: rgba(71,197,234,.2); }
.qa__a { padding: 0 18px 18px; color: var(--ink-2); }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- final ---------- */
.final { position: relative; isolation: isolate; color: #fff; padding: var(--s9) 0; overflow: hidden; background: var(--navy); }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,46,110,.72), rgba(13,46,110,.94)); }
.final__content h2 { font-size: var(--fs-h2); font-weight: 800; max-width: 16ch; margin-bottom: var(--s4); }
.final__content p { font-size: var(--fs-lg); color: var(--on-navy-muted); margin-bottom: var(--s5); font-style: italic; font-weight: 600; }
.final .hero__ctas { opacity: 1; animation: none; }
.final .btn--ghost { display: inline-flex; }

/* ---------- footer ---------- */
.footer { background: #fff; padding: var(--s7) 0 calc(var(--s6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: var(--s6); }
.brand__crop--footer { width: 150px; margin-bottom: var(--s3); }
.footer__brand p { color: var(--muted); max-width: 32ch; font-size: var(--fs-sm); }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s2); }
.footer__col a, .footer__col span { color: var(--navy); font-weight: 600; font-size: var(--fs-sm); min-height: 40px; display: flex; align-items: center; }
.footer__col a:hover { color: var(--electric); }
.footer__copy { margin-top: var(--s6); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- mobile bottom bar ---------- */
.bbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-bbar);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px 10px 10px 20px; border-radius: var(--r-pill);
  background: rgba(13,46,110,.92); color: #fff; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(8,24,62,.35), inset 0 0 0 1px rgba(255,255,255,.1);
  transform: translateY(calc(100% + 24px)); transition: transform 520ms var(--ease-out);
}
.bbar.is-visible { transform: none; }
.bbar__info { display: grid; line-height: 1.15; }
.bbar__info small { font-size: var(--fs-xs); color: var(--on-navy-muted); font-weight: 600; }
.bbar__info strong { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bbar__info strong span { font-size: var(--fs-xs); color: var(--on-navy-muted); }
.bbar__btn { min-height: 48px; }

/* =========================================================
   ≥ 480px
   ========================================================= */
@media (min-width: 480px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero .btn--ghost { display: inline-flex; }
  .brand__crop { width: 128px; }
  .hero__lead { font-size: var(--fs-lg); }
  .hero__chips { gap: var(--s2); }
  .hero__chips li { padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
}

/* =========================================================
   ≥ 768px — tablet
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: var(--s9) 0; }
  .header__inner { padding: 0 var(--gutter); }
  .header__cta { display: inline-flex; }
  .hero { justify-content: center; padding-bottom: var(--s9); }
  .hero__shade { background: linear-gradient(90deg, rgba(8,24,62,.94) 0%, rgba(13,46,110,.78) 45%, rgba(13,46,110,.1) 85%), linear-gradient(0deg, rgba(8,24,62,.5), transparent 30%); }
  .hero__lead { max-width: 44ch; }
  .route-card { display: block; position: absolute; left: 0; right: 0; bottom: var(--s6); }
  .route-card__inner { margin-left: auto; width: min(440px, 100%); display: flex; align-items: center; gap: var(--s3); padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); opacity: 0; animation: fadeUp 1s var(--ease-out) 1.2s forwards; }
  .route-card__stop { display: flex; align-items: center; gap: 8px; line-height: 1.2; flex: none; }
  .route-card__stop small { display: block; font-size: .6875rem; color: var(--on-navy-muted); text-transform: uppercase; letter-spacing: .08em; }
  .route-card__stop strong { font-size: var(--fs-sm); }
  .route-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(71,197,234,.3); }
  .route-card .dot--end { background: var(--cta); box-shadow: 0 0 0 4px rgba(93,216,122,.3); }
  .route-card__path { flex: 1; height: 36px; overflow: visible; }
  .route-card__path path { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .route-card__path .track { stroke: rgba(255,255,255,.2); stroke-dasharray: 2 6; }
  .route-card__path .draw { stroke: var(--cyan); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-in-out) 1.6s infinite; }
  @keyframes draw { 0% { stroke-dashoffset: 1; } 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); overflow: visible; margin: 0; padding: 0; }
  .step, .step:not(.is-active) { transform: none; opacity: 1; }
  .carousel__ctrl { display: none; }
  .rules { grid-template-columns: 1fr 1fr; }
  .sizes { padding: var(--s5); }
  .seg { max-width: 520px; }
  .rates__panel { grid-template-columns: 200px 1fr; align-items: center; gap: var(--s5); }
  .bag-visual { flex-direction: column; text-align: center; }
  .bag-visual__svg { width: 110px; height: 146px; }
  .route-opts { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .bbar { left: auto; right: 24px; width: 360px; }
}

/* =========================================================
   ≥ 1024px — desktop
   ========================================================= */
@media (min-width: 1024px) {
  .nav { display: flex; gap: 4px; margin-left: auto; margin-right: var(--s3); }
  .nav a { padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); color: #fff; transition: background-color var(--t-fast), color var(--t-fast); }
  .nav a:hover { background: rgba(255,255,255,.14); }
  .header.is-solid .nav a { color: var(--ink-2); }
  .header.is-solid .nav a:hover { background: var(--gray-50); color: var(--navy); }
  .brand__crop { width: 140px; }
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
  .hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s var(--ease-in-out) infinite; }
  @keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

  .timeline { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: var(--s9); row-gap: var(--s5); }
  .timeline__rail { left: 50%; margin-left: -1px; }
  .tl:nth-child(odd) { grid-column: 2; }
  .tl:nth-child(even) { grid-column: 1; text-align: right; }
  .tl:nth-child(odd)::before { left: calc(var(--s9) / -2 - 8px); }
  .tl:nth-child(even)::before { left: auto; right: calc(var(--s9) / -2 - 8px); }
  .tl:nth-child(2) { margin-top: var(--s8); }
  .tl__card--brand { text-align: left; }

  .quote__grid { grid-template-columns: 1fr 400px; align-items: start; gap: var(--s6); }
  .summary { position: sticky; top: calc(var(--header-h) + 24px); }

  .trust__grid { grid-template-columns: 5fr 6fr; align-items: center; gap: var(--s9); }
  .rules { grid-template-columns: repeat(4, 1fr); }
  .rule { flex-direction: column; }
  .bbar { display: none; }
  .footer { padding-bottom: var(--s6); }
}

/* hover-capable devices only */
@media (hover: hover) {
  .step { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
  @media (min-width: 768px) { .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }
  .ropt:hover > span { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
  .price-row { transition: background-color var(--t-fast); }
  .price-row:hover { background: #FAFBFE; }
}

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