:root {
  --wine: #8f1d1d;
  --wine-2: #6e1414;
  --red: #c8102e;
  --gold: #f5a623;
  --ink: #1b1416;
  --ink-2: #4a3f3f;
  --muted: #8a7f7c;
  --line: #ece4df;
  --cream: #fbf8f5;
  --blush: #fbefef;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 20, 20, 0.05), 0 12px 32px -12px rgba(60, 20, 20, 0.16);
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--body);
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--red), var(--wine)); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(200, 16, 46, 0.6); }
.btn--ghost { background: #fff; color: var(--wine); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--wine); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.35); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn--quote { padding: 8px 14px; font-size: 13px; background: var(--blush); color: var(--wine); }
.btn--quote:hover { background: var(--wine); color: #fff; }
.ico { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 245, 0.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.nav--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(60, 20, 20, 0.35); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav__links a:hover { background: var(--blush); color: var(--wine); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: 600 12px/1 var(--body); letter-spacing: 0.04em; border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav--open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 8px 24px 20px; gap: 2px; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu a { padding: 12px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 24px; }
.hero__bg {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 40%, rgba(245, 166, 35, 0.16), transparent 70%),
    radial-gradient(45% 55% at 62% 55%, rgba(200, 16, 46, 0.12), transparent 70%),
    radial-gradient(35% 40% at 10% 10%, rgba(143, 29, 29, 0.08), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 24px; align-items: center; min-height: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--wine); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--wine) 0%, var(--red) 45%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { list-style: none; padding: 0; margin: 38px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats li { display: grid; }
.hero__stats strong { font-family: var(--display); font-size: 26px; color: var(--wine); }
.hero__stats span { font-size: 13px; color: var(--muted); }
.hero__globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.hero__globe canvas, .routes__sticky canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
canvas.grabbing { cursor: grabbing; }
.globe-hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.7); padding: 4px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }

.partners { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.partners__row { display: flex; gap: 12px; flex-wrap: wrap; }
.carrier { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; padding: 10px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: transform 0.2s; }
.carrier:hover { transform: translateY(-3px); }
.carrier--dhl { color: #d40511; font-style: italic; }
.carrier--fedex { color: #4d148c; }
.carrier--fedex b { color: #ff6600; }
.carrier--ups { color: #4a2a1d; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--blush) 100%); }
.section__head { max-width: 680px; margin-bottom: 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section__head h2, .calc__intro h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; margin-bottom: 16px; }
.section__head p, .calc__intro p { color: var(--ink-2); font-size: 18px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease; will-change: transform;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 166, 35, 0.12), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 2px 4px rgba(60, 20, 20, 0.05), 0 26px 50px -20px rgba(60, 20, 20, 0.28); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blush); color: var(--wine); margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card--featured { background: linear-gradient(160deg, var(--wine) 0%, #5a1010 100%); color: #fff; border-color: transparent; }
.card--featured p, .card--featured .ticks li { color: rgba(255, 255, 255, 0.85); }
.card--featured .card__icon { background: rgba(255, 255, 255, 0.12); color: var(--gold); }
.card--featured .ticks li::before { background: var(--gold); }
.badge { position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 700; background: var(--gold); color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- Routes ---------- */
.routes { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: start; }
.routes__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.routes__tools { display: grid; gap: 14px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 600 13px/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--cream); transition: border-color 0.15s, background 0.15s; }
.search:focus-within { border-color: var(--wine); background: #fff; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; font: 500 15px var(--body); padding: 12px 0; width: 100%; color: var(--ink); }
.table-wrap { max-height: 520px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.routes__table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.routes__table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; position: sticky; top: 0; background: #fff; z-index: 1; }
.routes__table td { padding: 12px; vertical-align: middle; border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.routes__table td:first-child { border-left: 1px solid transparent; border-radius: 12px 0 0 12px; }
.routes__table td:last-child { border-right: 1px solid transparent; border-radius: 0 12px 12px 0; }
.routes__table tbody tr { cursor: pointer; transition: background 0.15s; }
.routes__table tbody tr:hover td { background: var(--cream); }
.routes__table tbody tr.is-active td { background: var(--blush); border-color: rgba(143, 29, 29, 0.18); }
.routes__table tbody tr:focus-visible { outline: 2px solid var(--red); }
.right { text-align: right; }
.route { display: flex; align-items: center; gap: 10px; min-width: 0; }
.route__from { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.route__arrow { position: relative; width: 34px; height: 2px; background: linear-gradient(90deg, var(--wine), var(--gold)); border-radius: 2px; flex: none; overflow: hidden; }
.route__arrow i { position: absolute; top: -2px; left: -8px; width: 8px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 6px var(--gold); opacity: 0; }
tr.is-active .route__arrow i, tr:hover .route__arrow i { opacity: 1; animation: fly 1.1s linear infinite; }
@keyframes fly { to { left: 34px; } }
.route__to { display: grid; line-height: 1.25; min-width: 0; }
.route__to strong { font-weight: 700; font-size: 15px; }
.route__to small { color: var(--muted); font-size: 12.5px; }
.carriers { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mini { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--cream); border: 1px solid var(--line); margin-right: 4px; color: var(--ink-2); }
.days { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--wine); white-space: nowrap; line-height: 1.2; }
.days + small { display: block; font-size: 12px; white-space: nowrap; }
.muted { color: var(--muted); }
.empty { padding: 20px 12px; color: var(--ink-2); font-weight: 500; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.routes__sticky { position: sticky; top: 100px; aspect-ratio: 1; width: 100%; }
.route-card {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 18px; text-align: center; min-width: 240px;
}
.route-card.pop { animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes pop { from { transform: translateX(-50%) scale(0.92); opacity: 0.4; } }
.route-card__path { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.route-card__path svg { width: 34px; color: var(--red); }
.route-card__meta { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.formula { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed rgba(143, 29, 29, 0.35); font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.formula code { font: 700 16px var(--display); color: var(--wine); }
.calc__box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; animation: boxIn 0.35s ease; }
@keyframes boxIn { from { opacity: 0; transform: translateY(-6px); } }
.box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.box__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.box__icon { width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, var(--gold), #e08a00); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.1); }
.box__tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.box__tag:empty { display: none; }
.box__tag.is-vol { background: #fff4e0; color: #9a5b00; }
.box__tag.is-real { background: var(--blush); color: var(--wine); }
.box__remove { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.box__remove:hover { color: var(--red); border-color: var(--red); }
.box__fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fld { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fld input { font: 600 16px var(--body); color: var(--ink); width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); outline: none; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.fld input:focus { border-color: var(--wine); background: #fff; box-shadow: 0 0 0 4px rgba(143, 29, 29, 0.08); }
.add-box { margin-bottom: 20px; }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__result > div { background: var(--cream); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.calc__result span { font-size: 12px; font-weight: 600; color: var(--muted); }
.calc__result strong { font-family: var(--display); font-size: 20px; }
.calc__result .charged { background: linear-gradient(135deg, var(--red), var(--wine)); color: #fff; }
.calc__result .charged span { color: rgba(255, 255, 255, 0.8); }
.meter { margin: 14px 0 0; display: grid; gap: 6px; }
.meter span { display: block; height: 6px; border-radius: 6px; width: 0; transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
#meter-real { background: var(--wine); }
#meter-vol { background: var(--gold); }
.calc__box .btn--block { margin-top: 18px; }

/* ---------- Steps ---------- */
.section--dark { background: radial-gradient(80% 120% at 85% 0%, #5a1414 0%, #2a0c0d 55%, #1a0a0b 100%); color: #fff; position: relative; overflow: hidden; }
.section--dark .section__head p { color: rgba(255, 255, 255, 0.72); }
.section--dark .kicker { color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.4s, border-color 0.4s, transform 0.4s, opacity 0.7s; }
.step.lit { background: rgba(255, 255, 255, 0.08); border-color: rgba(245, 166, 35, 0.45); }
.step__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 15px var(--display); border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; transition: all 0.4s; }
.step.lit .step__n { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.15); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.steps__line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin-top: 30px; overflow: hidden; }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 0.15s linear; }

/* ---------- Stores ---------- */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.store { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.store::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, 0.16), transparent 70%); }
.store__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.store__code { font: 800 44px/1 var(--display); color: var(--blush); -webkit-text-stroke: 1px rgba(143, 29, 29, 0.25); }
.store h3 { font-size: 30px; margin-bottom: 8px; }
.store address { font-style: normal; color: var(--ink-2); margin-bottom: 24px; }
.store__actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pill--open { background: #e8f6ee; color: #17703f; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(34, 163, 90, 0); } }
.pill--soon { background: #fff4e0; color: #9a5b00; }
.store--soon { background: repeating-linear-gradient(135deg, #fff 0 18px, #fffaf3 18px 36px); border-style: dashed; border-color: rgba(245, 166, 35, 0.6); }
.store--soon h3::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: var(--gold); animation: blink2 1.4s ease-in-out infinite; vertical-align: middle; }
@keyframes blink2 { 50% { opacity: 0.25; } }

/* ---------- CTA + Footer ---------- */
.cta { padding: 0 0 100px; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 48px 52px; border-radius: 28px; background: linear-gradient(120deg, var(--wine) 0%, var(--red) 60%, #e5672f 100%); color: #fff; box-shadow: 0 30px 60px -30px rgba(143, 29, 29, 0.7); }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.85); }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer__grid img { height: 60px; width: auto; margin-bottom: 16px; }
.footer__grid p { color: var(--ink-2); max-width: 340px; }
.footer__grid > div { display: grid; align-content: start; gap: 8px; }
.footer h4 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--body); }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--wine); }
.footer span { color: var(--ink-2); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 44px; padding: 22px 24px; font-size: 13px; color: var(--muted); }
.footer__bottom span { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__globe { justify-self: center; max-width: 520px; order: -1; margin: -10px auto -20px; }
  .cards { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .routes__globe { order: -1; }
  .routes__sticky { position: relative; top: 0; max-width: 440px; margin: 0 auto; aspect-ratio: auto; }
  .routes__sticky canvas { aspect-ratio: 1; height: auto; }
  .route-card { position: relative; left: auto; bottom: auto; transform: none; margin: -28px auto 0; width: max-content; max-width: 100%; }
  @keyframes pop { from { transform: scale(0.92); opacity: 0.4; } }
  .calc { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stores { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav__inner { height: 66px; gap: 10px; }
  .nav__logo img { height: 42px; }
  .hide-sm { display: none !important; }
  .nav__actions .btn--primary span { display: none; }
  .nav__actions .btn--primary { padding: 10px; }
  .hero { padding-top: 16px; }
  .hero__stats { gap: 22px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .partners { justify-content: center; text-align: center; }
  .carrier { font-size: 17px; padding: 8px 16px; }
  .steps { grid-template-columns: 1fr; }
  .box__fields { grid-template-columns: 1fr 1fr; }
  .calc__result { grid-template-columns: 1fr; }
  .calc__result > div { grid-template-columns: 1fr auto; align-items: center; }
  .calc__box, .routes__panel { padding: 16px; }
  .route__from, .route__arrow { display: none; }
  .route-card { min-width: 0; width: max-content; max-width: 92%; }
  .cta__inner { padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section__head p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Mais cor (página principal) ---------- */
body:not(.quote-page) { background: #fbf1ec; }
.hero {
  background:
    radial-gradient(60% 70% at 85% 35%, rgba(245, 166, 35, 0.30), transparent 70%),
    radial-gradient(55% 65% at 60% 70%, rgba(200, 16, 46, 0.18), transparent 70%),
    linear-gradient(135deg, #fbe9e4 0%, #fcefe6 45%, #fde6cf 100%);
}
.hero .partners { border-top-color: rgba(143, 29, 29, 0.15); }
.hero .eyebrow { background: rgba(255, 255, 255, 0.85); }
.carrier { box-shadow: 0 6px 16px -10px rgba(143, 29, 29, 0.35); }

#servicos { background: linear-gradient(180deg, #fbf1ec 0%, #fff6ef 100%); }
.card:not(.card--featured) { border-top: 4px solid var(--gold); }
.card:not(.card--featured) .card__icon { background: linear-gradient(135deg, #fde3b0, #f8c06a); color: var(--wine-2); }

.section--tint {
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(245, 166, 35, 0.22), transparent 70%),
    linear-gradient(160deg, #7a1717 0%, #5a1010 55%, #3d0b0c 100%);
  color: #fff;
}
.section--tint .section__head p { color: rgba(255, 255, 255, 0.78); }
.section--tint .kicker { color: var(--gold); }
.section--tint .routes__panel { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); color: var(--ink); }

#calculadora { background: linear-gradient(180deg, #fff3df 0%, #fde8c4 100%); }
#calculadora .formula { background: rgba(255, 255, 255, 0.7); }
#calculadora .calc__box { border-color: rgba(143, 29, 29, 0.12); }

#unidades { background: linear-gradient(180deg, #fbeceb 0%, #f8e0de 100%); }
.cta { background: linear-gradient(180deg, #f8e0de 0%, #fbf1ec 100%); padding-top: 0; }

.footer:not(.footer--slim) { background: #241012; border-top: 0; color: #f3e6e3; }
.footer:not(.footer--slim) .footer__grid p,
.footer:not(.footer--slim) a,
.footer:not(.footer--slim) span { color: rgba(255, 255, 255, 0.75); }
.footer:not(.footer--slim) a:hover { color: var(--gold); }
.footer:not(.footer--slim) h4 { color: var(--gold); }
.footer:not(.footer--slim) .footer__bottom { border-top-color: rgba(255, 255, 255, 0.1); }
.footer:not(.footer--slim) .footer__bottom span { color: rgba(255, 255, 255, 0.5); }
.footer:not(.footer--slim) .footer__grid img { background: #fff; border-radius: 12px; padding: 6px 10px; height: 64px; }
.nav { background: rgba(251, 241, 236, 0.85); }

/* ---------- WhatsApp ---------- */
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.6); }
.btn--wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(18, 140, 70, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); animation: waPulse 2.4s infinite; }
.wa-fab:hover { transform: scale(1.07); box-shadow: 0 14px 32px -8px rgba(18, 140, 70, 0.7); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (max-width: 600px) { .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
.section--tint .route-card { color: var(--ink); }
.btn--ghost .ico--wa, .btn--light .ico--wa { color: #25d366; width: 20px; height: 20px; }

/* ---------- Ajustes responsivos ---------- */
.nav__logo { flex: none; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 20px 32px; }
.search input { font-size: 16px; } /* evita zoom automático no iPhone */
.cta .cta__inner { width: calc(100% - 48px); max-width: 1132px; }
@media (max-width: 960px) {
  .stores { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .stores { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav__actions .btn--wa { display: none; } /* o botão flutuante do WhatsApp já aparece */
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hero__stats strong { font-size: 22px; }
  .hero__stats span { font-size: 12px; line-height: 1.35; }
  .store__actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .cta .cta__inner { width: calc(100% - 32px); }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1 1 100%; }
  .footer__bottom { padding-bottom: 84px; } /* espaço para o botão flutuante */
  .route-card__path { font-size: 15px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 34px; }
  .lang button { padding: 7px 8px; }
}

/* ---------- Serviços: ilustração da loja ---------- */
.services-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-bottom: 52px; }
.services-intro .section__head { margin-bottom: 0; }
.services-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(143, 29, 29, 0.45); border: 1px solid rgba(143, 29, 29, 0.1); background: #fbede6; }
.services-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) {
  .services-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
}
@media (max-width: 600px) { .services-photo { border-radius: 18px; } }

/* ---------- Ilustrações e fotos ---------- */
.calc-art { margin: 28px 0 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(143, 29, 29, 0.45); border: 1px solid rgba(143, 29, 29, 0.1); }
.calc-art img { display: block; width: 100%; height: auto; }

.step { overflow: hidden; }
.step__img { display: block; width: calc(100% + 52px); max-width: none; height: 150px; object-fit: cover; margin: -26px -26px 20px; filter: saturate(0.9); transition: transform 0.6s ease, filter 0.4s; }
.step.lit .step__img { filter: saturate(1.05); }
.step:hover .step__img { transform: scale(1.04); }

.transit { padding: 100px 0 0; background: linear-gradient(180deg, #fbf1ec 0%, #fff3df 100%); }
.transit__grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.transit figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(60, 20, 20, 0.5); background: #2a1a1a; }
.transit img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.transit figure:hover img { transform: scale(1.03); }
.transit__big { grid-row: span 2; min-height: 460px; }
.transit__big figcaption { position: absolute; inset: auto 0 0 0; padding: 120px 34px 30px; background: linear-gradient(180deg, transparent, rgba(30, 8, 10, 0.88)); color: #fff; }
.transit__big .kicker { color: var(--gold); }
.transit__big h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.transit__big p { color: rgba(255, 255, 255, 0.85); max-width: 520px; }
.transit__small { min-height: 220px; }
.transit__small figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.92); color: var(--wine); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.cta__inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 28px; padding-left: 20px; }
.cta__art { width: 100%; height: auto; display: block; margin: -30px 0 -52px; }
.cta__copy { display: grid; gap: 18px; }
@media (max-width: 960px) {
  .transit__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .transit__big { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .cta__inner { grid-template-columns: 220px 1fr; }
}
@media (max-width: 600px) {
  .transit { padding-top: 70px; }
  .transit__grid { grid-template-columns: 1fr; }
  .transit__big { min-height: 420px; }
  .transit__big figcaption { padding: 90px 20px 22px; }
  .cta__inner { grid-template-columns: 1fr; padding-left: 24px; }
  .cta__art { max-width: 240px; margin: -10px auto -20px; }
  .step__img { height: 170px; }
}
@media (max-width: 600px) { .transit__small { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Menu moderno ---------- */
.nav { transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
.nav__inner { transition: height 0.3s ease; }
.nav__logo img { transition: height 0.3s ease; }
.nav--scrolled .nav__inner { height: 66px; }
.nav--scrolled .nav__logo img { height: 44px; }
.nav__links {
  position: relative; display: flex; align-items: center; gap: 2px; margin-left: 18px; padding: 5px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(143, 29, 29, 0.1); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(60, 20, 20, 0.04), 0 8px 24px -14px rgba(143, 29, 29, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__pill {
  position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); width: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(135deg, var(--red), var(--wine)); box-shadow: 0 6px 16px -6px rgba(200, 16, 46, 0.6);
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.25s;
  pointer-events: none;
}
.nav__links a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav__links a:hover { background: transparent; }
.nav__links a.is-current, .nav__links.is-hovering a.is-hover { color: #fff; }
.nav__links.is-hovering a.is-current:not(.is-hover) { color: var(--ink-2); }
.nav__ico { width: 17px; height: 17px; flex: none; opacity: 0.8; transition: transform 0.25s; }
.nav__links a:hover .nav__ico { transform: translateY(-1px) scale(1.08); opacity: 1; }
.nav__track .ico { width: 16px; height: 16px; }
@media (max-width: 1280px) { .nav__ico { display: none; } .nav__links a { padding: 9px 12px; } }

/* Menu do celular: cartões com ícones */
.mobile-menu { display: grid; gap: 14px; padding: 14px 16px 20px; border-top: 1px solid var(--line); background: rgba(251, 241, 236, 0.97); animation: mmIn 0.25s ease; }
@keyframes mmIn { from { opacity: 0; transform: translateY(-6px); } }
.mobile-menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu__grid a {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 16px; background: #fff; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
  box-shadow: 0 6px 16px -12px rgba(60, 20, 20, 0.35);
}
.mobile-menu__grid a.is-current { border-color: var(--wine); background: #fff6f4; color: var(--wine); }
.mm__ico { width: 22px; height: 22px; flex: none; padding: 7px; box-sizing: content-box; border-radius: 12px; background: var(--blush); color: var(--wine); }

.mobile-menu > .btn { padding: 14px; }
.mobile-menu > .btn { border-bottom: 0; color: #fff; }
@media (max-width: 1080px) { .nav__links { display: none; } }
.nav--scrolled { background: rgba(251, 241, 236, 0.94); }
