/* AeroLink — shared styles (redesign "Le Colis", October 2026).
 *
 * The parcel is the hero. Bold flat colour fields sit inside a white page,
 * and oversized drawn kraft boxes, wrapped in one band of sky tape, tumble
 * through those fields, always half cropped by the field's edge. The price
 * panel is a crisp white card sitting on the field. Every section below
 * changes composition: the four steps are four objects, the zones are
 * stamped hub names, the business block is a stack of boxes in the corner
 * of a navy field. Playful but precise. Never a warehouse, never people.
 *
 * Amber (#F5A524) is reserved for the one action per screen view and the
 * calculator's title. Light mode keeps a white page; dark mode is navy, but
 * the sky field and the parcels keep their colours (owner's decision).
 * Typography: docs/design/typography.md (Montserrat 700 for display,
 * Manrope for text, tabular figures).
 *
 * Shared here: tokens, bands (the colour fields), objects (the parcels),
 * cards, header, buttons, forms, tiles, stamps, steps, footer, tab bar,
 * quote bar, help chat, motion. Each page has its own stylesheet beside it. */

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --navy: #0B1526;
  --navy-2: #132038;
  --navy-3: #1A2A47;         /* inputs and wells on navy */
  --navy-line: #22314F;
  --navy-text: #E6EAF1;
  --navy-muted: #9AA6BA;
  --sky: #9ED0F0;            /* the hero field, in both themes */
  --sky-deep: #5FB3E6;       /* the tape band, hover and lit states */
  --sky-pale: #E8F4FB;       /* wells and tiles on white */
  --kraft: #DDAA6E;          /* the cardboard: the one colour this world adds */
  --kraft-dark: #C8935A;     /* the box's front face */
  --coral: #F2542D;          /* logo mark and the envelope's mark only */
  --amber: #F5A524;
  --amber-press: #E08F0B;
  --amber-title: #B47208;    /* amber as large text on white: 3.9:1 */

  --page: #FFFFFF;
  --panel: #FFFFFF;
  --well: var(--sky-pale);
  --ink: #0B1526;
  --ink-2: #33405A;
  --muted: #5B6677;          /* 5.6:1 on white */
  --rule: #E3E7EE;           /* card edges */
  --rule-strong: #8A94A6;    /* input borders: 3:1 on white */
  --success: #1F7A4C;
  --success-pale: #E3F1E9;
  --err: #C53A26;
  --err-pale: #FDECE8;
  --warn-ink: #8A5A00;
  --warn-pale: #FFF4DC;
  --warn-line: #E2B24E;
  --mark-ph: #F9EEDA;
  --link: #2E5A86;
  --link-hover: #1F4466;
  --focus: #2E5A86;
  --shadow: none;
  --pop: 0 12px 28px -14px rgba(11, 21, 38, .35);
  --selection: #FFE9B8;

  --display: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  --sans: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: clamp(12px, 2vw, 24px);  /* the white margin around a band */
  --r: 12px;                        /* controls */
  --r-card: 16px;                   /* cards and bands */
  --nav-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.645, 0.045, 0.355, 1);
  --t-hover: 120ms;
  --t-ctl: 200ms;
  --t-fill: 320ms;
  --t-page: 480ms;
  --t-reveal: 640ms;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230B1526' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
html[data-theme="dark"] {
  --page: #0B1526;
  --panel: #132038;
  --well: #1A2A47;
  --ink: #E6EAF1;
  --ink-2: #C5CDD9;
  --muted: #9AA6BA;
  --rule: #22314F;
  --rule-strong: #61728F;
  --sky-pale: #1A2A47;
  --amber-title: #F5A524;
  --success: #5BC48F;
  --success-pale: rgba(91, 196, 143, .14);
  --err: #FF8A6B;
  --err-pale: rgba(255, 138, 107, .12);
  --warn-ink: #F5C46A;
  --warn-pale: rgba(245, 165, 36, .1);
  --warn-line: rgba(245, 165, 36, .5);
  --mark-ph: rgba(249, 238, 218, .22);
  --link: #9DB8D6;
  --link-hover: #C3E3F7;
  --focus: #9ED0F0;
  --pop: 0 14px 30px -12px rgba(0, 0, 0, .7);
  --selection: rgba(245, 165, 36, .35);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23E6EAF1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--nav-h) + 16px); }
a, button, label, summary, select, input, textarea { touch-action: manipulation; }
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--navy);
  caret-color: var(--navy);
}
html[data-theme="dark"] body { accent-color: var(--sky); caret-color: var(--sky); }
::selection { background: var(--selection); color: var(--navy); }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
p, h1, h2, h3, dl, dd { margin: 0; }
hr { height: 1px; border: 0; margin: 0; background: var(--rule); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-navy :focus-visible, .band.navy :focus-visible, footer.site :focus-visible { outline-color: var(--sky); }
.btn-primary:focus-visible { outline-color: var(--navy); }
[hidden] { display: none !important; }
.ac { stroke: var(--link); }  /* icon accent strokes: readable on white (sky-deep is 2.3:1); amber is reserved for the action */
html[data-theme="dark"] .ac { stroke: var(--sky-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-80px); transition: transform var(--t-ctl) var(--ease); }
.skip:focus { transform: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (prefers-reduced-motion: no-preference) { @supports (scrollbar-color: auto) { html { scrollbar-color: var(--navy) var(--sky-pale); } } }

/* ---------- Type ---------- */
.display, h1, h2.h { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(40px, 2rem + 3.6vw, 88px); }
h2.h { font-size: clamp(30px, 1.4rem + 1.8vw, 56px); }
h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1rem + .6vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(16px, .9rem + .4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.lbl, .field > label, .field .label { font: 600 14px/1.3 var(--sans); color: var(--ink-2); }
.cap { font: 600 14px/1.3 var(--sans); color: var(--muted); }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); max-width: 60ch; }
.sec-head.center { text-align: center; justify-items: center; }
.muted { color: var(--muted); }

/* ---------- Bands: the colour fields inside the white page ----------
 * A band is a rounded field with white margins around it; objects inside it
 * are cropped by its edge. Text on a sky band is navy in both themes. */
.band { position: relative; overflow: hidden; margin-inline: var(--edge); border-radius: var(--r-card); isolation: isolate; }
.band > .wrap { position: relative; z-index: 1; }
.band.sky { background: var(--sky); color: var(--navy); }
.band.navy { background: var(--navy); color: var(--navy-text); }
html[data-theme="dark"] .band.navy { background: var(--navy-2); }
.band.pale { background: var(--sky-pale); color: var(--ink); }
html[data-theme="dark"] .band.pale { background: var(--navy-2); }
.band.navy h2, .band.navy h3, .band.navy .h { color: #fff; }
.band.navy p { color: var(--navy-text); }
.band.navy .muted { color: var(--navy-muted); }
.band.sky .muted { color: #33405A; }

/* ---------- Objects: the parcels ----------
 * <img class="obj" src="img/colis.svg" alt=""> placed absolutely inside a
 * band (position: relative; overflow: hidden), sized and rotated per page
 * with --w and --rot. They are decoration: alt="" and pointer-events none. */
.obj { position: absolute; z-index: 0; width: var(--w, 320px); height: auto; max-width: none; pointer-events: none; user-select: none; transform: rotate(var(--rot, -12deg)); transform-origin: center; }
.obj.scrub { will-change: transform; }
/* A parcel glyph in flow, for tiles and lists */
.obj-inline { width: var(--w, 96px); height: auto; }

/* ---------- Cards: white panels, soft corners, no shadow at rest ---------- */
.card { position: relative; min-width: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.card-h .r { margin-left: auto; }
.card-b { padding: 20px 22px 22px; }
.card.on-band { border: 0; }
.panel { position: relative; min-width: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.panel-h .r { margin-left: auto; }
.panel-b { padding: 20px 22px; }
.well { background: var(--well); border-radius: var(--r); padding: 16px 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows > :last-child { border-bottom: 0; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { font-weight: 700; white-space: nowrap; }

/* ---------- Tiles: an object on a pale square, a name under it ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tile { display: grid; gap: 12px; align-content: start; }
.tile .pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-card); background: var(--sky-pale); overflow: hidden; }
html[data-theme="dark"] .tile .pic { background: var(--navy-3); }
.tile .pic .obj-inline { width: 56%; }
.tile b { font: 700 clamp(18px, 1rem + .4vw, 22px)/1.2 var(--display); }
.tile p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { grid-template-columns: 88px 1fr; align-items: center; } .tile .pic { aspect-ratio: 1; } .tile .pic .obj-inline { width: 60%; } }

/* ---------- Stamps and small labels ---------- */
/* The rubber stamp: a hub name, tilted, dashed ring */
.stamp-city { display: inline-grid; place-items: center; padding: 8px 14px; border: 2px dashed var(--navy); border-radius: 8px; font: 700 13px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); transform: rotate(var(--rot, -6deg)); background: transparent; }
html[data-theme="dark"] .stamp-city { border-color: var(--sky); color: var(--sky); }
/* Status: a filled pill */
.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 13px/1.2 var(--sans); }
.stamp.ok { background: var(--navy); color: #fff; }
.stamp.ok svg { color: var(--sky); }
html[data-theme="dark"] .stamp.ok { background: var(--sky); color: var(--navy); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; font: 600 13px/1.4 var(--sans); white-space: nowrap; color: var(--ink); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { border-color: var(--success); color: var(--success); background: var(--success-pale); }
.demo-chip { display: inline-block; padding: 4px 10px; border: 1px dashed var(--rule-strong); border-radius: 999px; font: 600 13px/1.4 var(--sans); color: var(--muted); white-space: nowrap; }
.patch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sky-pale); color: var(--ink); font: 600 14px/1.3 var(--sans); white-space: nowrap; }
/* The reference: grouped digits, large */
.ref { font: 700 clamp(28px, 1.2rem + 2.4vw, 56px)/1.05 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref .tk { display: inline-block; min-width: .62em; color: color-mix(in srgb, currentColor 30%, transparent); transition: color var(--t-hover); }
.ref .tk.set { color: inherit; }
.ref .tk.sp { min-width: .36em; }
/* The price figure */
.price { font: 700 clamp(32px, 1.4rem + 1.4vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .ccy { margin-left: 8px; font: 600 15px var(--sans); letter-spacing: .02em; color: var(--muted); }

/* ---------- Header: a white bar, the coral mark, plain links, one action ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--page); color: var(--ink); border-bottom: 1px solid var(--rule); transition: box-shadow var(--t-hover); }
.nav.scrolled { box-shadow: 0 1px 0 var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.nav > .wrap { position: relative; }
.logo { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo .lm { display: block; width: 26px; height: 26px; }
.logo .lm-bg { fill: var(--navy); }
html[data-theme="dark"] .logo .lm-bg { fill: var(--navy-2); }
.logo .lm-fg { fill: var(--coral); }
.logo-t { font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.logo small { display: none; }
.nav-menu { display: contents; }
.nav-links { display: flex; gap: 2px; margin-left: 24px; }
.nav-links a { position: relative; text-decoration: none; font: 600 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; padding: 12px 12px; border-radius: 999px; transition: color var(--t-hover), background var(--t-hover); }
.nav-links a:hover { color: var(--ink); background: var(--sky-pale); }
.nav-links a[aria-current] { color: var(--ink); background: var(--sky-pale); }
.ctl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; gap: 4px; padding: 2px; border: 1px solid var(--rule-strong); border-radius: 999px; }
.lang button { position: relative; min-width: 40px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 700 14px var(--sans); color: var(--muted); transition: color var(--t-hover), background var(--t-hover); }
.lang button::after { content: ""; position: absolute; inset: -6px -2px; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
html[data-theme="dark"] .lang button[aria-pressed="true"] { background: var(--sky); color: var(--navy); }
.cur { position: relative; }
.cur-btn { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; cursor: pointer; font: 700 14px var(--sans); color: var(--ink); transition: border-color var(--t-hover); }
.cur-btn::after { content: ""; position: absolute; inset: -3px; }
.cur-btn:hover { border-color: var(--ink); }
.cur-btn svg { color: var(--muted); }
.cur-ic { width: 18px; height: 18px; flex: none; color: var(--ink); stroke-width: 1.8; }
.cur-flag { width: 20px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 21, 38, .1); }
.cur-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; margin: 0; padding: 6px; list-style: none; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--pop); }
.cur-menu:focus { outline: none; }
.cur-menu li { display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cur-menu li b { font: 700 13px var(--sans); width: 36px; }
.cur-menu li span { color: var(--muted); }
.cur-menu li.active, .cur-menu li:hover { background: var(--sky-pale); }
.cur-menu li[aria-selected="true"] b { color: var(--link); }
.icon-btn { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--t-hover), background var(--t-hover); }
.icon-btn::after { content: ""; position: absolute; inset: -2px; }  /* 44 px hit area around the 40 px disc */
.icon-btn:hover { border-color: var(--ink); background: var(--sky-pale); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 1px; transition: transform var(--t-ctl) var(--ease), opacity var(--t-ctl); }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .menu-btn { display: grid; }
  .nav.open .nav-menu { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--page); padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--rule); box-shadow: var(--pop); }
  .nav.open .nav-links { flex-direction: column; gap: 2px; margin: 0; }
  .nav.open .nav-links a { font-size: 16px; padding: 14px 12px; border-bottom: 1px solid var(--rule); border-radius: 0; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-inner { gap: 6px; padding-inline: 12px; }
  .ctl { gap: 6px; }
  .logo { gap: 8px; }
  .lang button { min-width: 32px; height: 32px; padding: 0 6px; }
  .cur-btn { padding: 0 10px; }
  .cur-btn .cur-ic, .cur-btn .cur-code + svg { display: none; }
  /* The hamburger stays on phones: the tab bar carries three shortcuts, the menu carries every page */
}
@media (max-width: 380px) {
  .logo-t { font-size: 19px; }
  .lang button { min-width: 28px; }
  .icon-btn { width: 36px; }
  .icon-btn::after { content: ""; position: absolute; inset: -3px; }
}

/* ---------- Buttons: pills; one filled amber action per screen view ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background var(--t-hover), border-color var(--t-hover), color var(--t-hover), transform var(--t-hover) var(--ease); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn[aria-busy="true"] .arrow { display: none; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-primary, .btn-amber { min-height: 52px; background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover, .btn-amber:hover { background: var(--amber-press); border-color: var(--amber-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--sky-pale); border-color: var(--ink); }
.band.navy .btn-ghost, .on-navy .btn-ghost { color: #fff; border-color: var(--navy-muted); }
.band.navy .btn-ghost:hover, .on-navy .btn-ghost:hover { background: var(--navy-3); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
html[data-theme="dark"] .btn-navy { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.btn .arrow { transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow { transform: translateX(3px); } }
.tlink { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; margin: -10px 0; border: 0; background: none; color: var(--link); font: 600 15px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; transition: color var(--t-hover); }
.tlink:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.tlink svg { width: 18px; height: 18px; flex: none; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--panel); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; transition: background var(--t-hover), border-color var(--t-hover); }
.copy-btn:hover { background: var(--sky-pale); border-color: var(--ink); }
.copy-btn svg { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label .req { color: var(--err); }
.field label .opt { color: var(--muted); font: 500 13px var(--sans); }
.field input, .field select, .field textarea, .dfield input, .dfield select, .track input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--r); color: var(--ink); font-size: 16px;
  background: var(--panel);
  transition: border-color var(--t-hover), box-shadow var(--t-hover);
}
.field select, .dfield select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: var(--chev) right 12px center no-repeat, var(--panel); cursor: pointer; text-overflow: ellipsis; }
.field select option, .dfield select option { color: var(--ink); background: var(--panel); }
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .dfield input::placeholder, .track input::placeholder, .help-form ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .dfield input:focus, .dfield select:focus, .track input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky-deep) 45%, transparent); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus, html[data-theme="dark"] .field textarea:focus, html[data-theme="dark"] .dfield input:focus, html[data-theme="dark"] .dfield select:focus, html[data-theme="dark"] .track input:focus { border-color: var(--sky); }
.field input[readonly] { color: var(--ink-2); background: var(--well); border-style: dashed; }
.field .hint { font-size: 14px; color: var(--muted); }
.field .hint.link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.field[aria-invalid="true"] > input, .field[aria-invalid="true"] > select, .field[aria-invalid="true"] > .phone, .field[aria-invalid="true"] > textarea, .field[aria-invalid="true"] .mark-input input { border-color: var(--err); background-color: var(--err-pale); animation: shake var(--t-ctl) var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field[aria-invalid="true"] > .phone input, .field[aria-invalid="true"] > .phone select { border-color: transparent; background-color: transparent; }
.field-err { margin: 0; font: 600 14px/1.4 var(--sans); color: var(--err); display: flex; align-items: flex-start; gap: 6px; }
.field-err::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: var(--err); color: var(--panel); font: 800 10px var(--sans); flex: none; }
.field-ok { color: var(--success); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.field-ok::before { content: "✓"; font-weight: 700; }
.field-warn { margin: 0; font: 600 13px/1.4 var(--sans); color: var(--warn-ink); }
.field-hint { margin: 0; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.phone { display: flex; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.phone:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky-deep) 45%, transparent); }
.field .phone select { width: 7.5em; flex: none; border: 0; border-right: 1px solid var(--rule); border-radius: 0; padding-left: 12px; background: var(--chev) right 8px center no-repeat, var(--well); font-size: 14px; }
.field .phone input { border: 0; border-radius: 0; padding-left: 12px; background: transparent; }
.field .phone input:focus, .field .phone select:focus { box-shadow: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.done-box { grid-column: 1 / -1; padding: 20px; background: var(--well); border-radius: var(--r); }
.qd-h { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.legal-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.legal-note a { color: var(--link); text-underline-offset: 3px; }
.calc-err { margin: 0; font: 600 14px/1.4 var(--sans); color: var(--err); }
.inline-note { display: flex; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--warn-ink); }
.inline-note svg { flex: none; margin-top: 2px; }
/* Segmented choice: a pill track, the chosen segment is navy */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--well); border-radius: 999px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 600 14px/1.25 var(--sans); color: var(--ink-2); text-align: center; transition: background var(--t-ctl), color var(--t-ctl); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:hover { color: var(--ink); }
.seg label:has(input:checked) { background: var(--navy); color: #fff; }
html[data-theme="dark"] .seg label:has(input:checked) { background: var(--sky); color: var(--navy); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Option cards: a choice drawn as a small card with an object */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-card { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-hover), background var(--t-hover); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .obj-inline { width: 48px; }
.opt-card b { display: block; font: 700 15px/1.3 var(--sans); }
.opt-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt-card:hover { border-color: var(--ink); }
.opt-card:has(input:checked) { border-color: var(--navy); background: var(--well); }
html[data-theme="dark"] .opt-card:has(input:checked) { border-color: var(--sky); }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .opt-cards { grid-template-columns: 1fr; } }
/* Breakdown rows: label left, figure right */
.bd { display: grid; gap: 8px; margin: 0; font: 500 15px/1.35 var(--sans); align-content: start; }
.bd div { display: flex; align-items: baseline; gap: 8px; }
.bd dt { color: var(--ink-2); }
.bd dd { margin: 0 0 0 auto; color: var(--ink); font-weight: 700; white-space: nowrap; }
.bd .lead { flex: 1; }
.bd .ccy { display: none; }
.bd .grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule); }
.bd .grand dt { color: var(--ink); font-weight: 700; }
.bd .grand dd { font-size: 20px; }
.bd .grand .ccy { display: inline-block; font-size: 14px; }
.ccy { display: inline-block; vertical-align: baseline; margin-left: 6px; font: 600 16px var(--sans); letter-spacing: .02em; color: var(--muted); }

/* ---------- Steps: the parcel's journey as objects on a line ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.steps li { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 15px; }
.steps li .pic { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 120px; border-radius: var(--r-card); background: var(--sky-pale); border: 2px solid transparent; transition: background var(--t-ctl), border-color var(--t-ctl); }
html[data-theme="dark"] .steps li .pic { background: var(--navy-3); }
.steps li .pic .obj-inline { width: 52%; opacity: .55; }
.steps li.done .pic .obj-inline, .steps li.now .pic .obj-inline, .steps li.delivered .pic .obj-inline { opacity: 1; }
.steps li.now .pic { background: var(--sky); border-color: var(--navy); }
html[data-theme="dark"] .steps li.now .pic { background: var(--sky); border-color: var(--sky); }
.steps li.delivered .pic { background: var(--success-pale); }
.steps li.delivered b { color: var(--success); }
.steps b { display: block; font-weight: 700; }
.steps span { display: block; font-size: 14px; color: var(--muted); }
.steps li:not(.done):not(.now):not(.delivered) b { color: var(--muted); font-weight: 600; }
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { grid-template-columns: 64px 1fr; gap: 14px; justify-items: start; text-align: left; align-items: center; }
  .steps li .pic { max-width: 64px; }
}

/* ---------- Footer: a navy band, the brand set large ---------- */
footer.site { margin-top: auto; padding: var(--edge) var(--edge) 0; background: var(--page); }
footer.site .foot-band { background: var(--navy); color: var(--navy-muted); font-size: 14px; border-radius: var(--r-card) var(--r-card) 0 0; }
html[data-theme="dark"] footer.site .foot-band { background: var(--navy-2); }
.foot-brand { display: block; padding: 32px var(--gutter) 0; max-width: var(--wrap); margin-inline: auto; font: 700 clamp(48px, 9vw, 140px)/0.9 var(--display); letter-spacing: -0.04em; color: #fff; white-space: nowrap; overflow: hidden; text-decoration: none; }
.foot-brand small { font: 700 clamp(12px, 1.3vw, 18px) var(--display); letter-spacing: .12em; vertical-align: top; margin-left: .3em; color: var(--sky); }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-block: 16px 0; font: 600 16px/1.4 var(--sans); color: #fff; }
.foot-contact a, .foot-contact button { color: #fff; font: inherit; padding: 10px 0; }
.foot-mail { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sky); transition: text-decoration-thickness var(--t-hover); }
.foot-mail:hover { text-decoration-thickness: 2px; }
.foot-chat { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sky); transition: text-decoration-thickness var(--t-hover); }
.foot-chat:hover { text-decoration-thickness: 2px; }
.foot-place { color: var(--sky); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px 24px; border-top: 1px solid var(--navy-line); margin-top: 12px; font-size: 14px; }
.foot-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-info b { color: #fff; font-weight: 700; }
.foot a { display: inline-block; padding: 8px 0; color: var(--sky); text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 768px) {
  .foot { flex-direction: column; align-items: flex-start; padding-block: 18px 24px; }
  .foot-info { flex-direction: column; gap: 4px; }
}

/* ---------- Floating help chat (unchanged from the live site) ---------- */
.help { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; }
.help-btn { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; background: var(--navy); color: #fff; cursor: pointer; font: 600 14px var(--sans); box-shadow: 0 12px 28px -12px rgba(11, 21, 38, .6); transition: transform .2s var(--ease), background .15s; }
html[data-theme="dark"] .help-btn { border-color: var(--navy-line); background: var(--navy-2); }
.help-btn svg { width: 20px; height: 20px; }
.help-btn:hover { background: #16233B; }
.help-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--coral); color: #fff; font: 700 11px var(--sans); }
.help-panel { position: absolute; right: 0; bottom: 56px; width: 350px; max-height: min(520px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 10px 16px -10px rgba(11, 21, 38, .4); transform-origin: bottom right; opacity: 0; transform: translateY(8px) scale(0.97); pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.help-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; background: var(--navy); color: #fff; }
.help-title { display: block; font-size: 15px; font-weight: 700; }
.help-status { display: flex; align-items: center; gap: 7px; margin-top: 3px; font: 500 12px var(--sans); color: var(--navy-muted); }
.help-status i { width: 6px; height: 6px; border-radius: 50%; background: #5B6B88; }
.is-live .help-status i { background: var(--amber); }
.help-close { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.help-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.msg.sys { background: var(--sky-pale); color: var(--ink-2); }
.msg.agent { background: var(--sky-pale); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
html[data-theme="dark"] .msg.me { background: var(--sky); color: var(--navy); }
.help-form { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.help-form input, .help-form textarea { width: 100%; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); padding: 9px 11px; font-size: 15px; resize: none; }
.help-form input:focus, .help-form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.help-row { display: flex; gap: 8px; align-items: stretch; }
.help-row .btn { min-height: 0; height: auto; padding: 0 14px; font-size: 13px; background: var(--navy); color: #fff; border-color: var(--navy); }
html[data-theme="dark"] .help-row .btn { background: var(--sky); color: var(--navy); border-color: var(--sky); }
@media (max-width: 560px) {
  .help { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .help-btn { height: 40px; padding: 0 13px 0 10px; font-size: 13px; }
  .help-panel { width: calc(100vw - 24px); }
}

/* ---------- Phone: the tab bar and the quote bar ---------- */
.tabbar { display: none; }
.qbar { display: none; }
@media (max-width: 768px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); border-top: 1px solid var(--navy-line); }
  html[data-theme="dark"] .tabbar { background: var(--navy-2); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; text-decoration: none; font: 600 13px var(--sans); color: var(--navy-muted); transition: color var(--t-hover); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: #fff; }
  .tabbar a[aria-current]::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--sky); }
  body:has(.tabbar) footer.site { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .help { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .qbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px -14px rgba(11, 21, 38, .4); transform: translateY(0); transition: transform var(--t-ctl) var(--ease-out); }
  /* The quote bar docks ABOVE the tab bar: navigation never leaves the thumb */
  body:has(.tabbar) .qbar { bottom: calc(58px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  .qbar[hidden] { display: none; }
  @starting-style { .qbar { transform: translateY(100%); } }
  .qbar .q-price { display: grid; line-height: 1.2; min-width: 0; }
  .qbar .q-price b { font: 700 20px var(--display); white-space: nowrap; }
  .qbar .q-price span { font-size: 12px; color: var(--muted); }
  .qbar .btn { flex: 1; min-height: 48px; padding-inline: 12px 12px; }
  body.has-qbar .help { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(.tabbar).has-qbar .help { bottom: calc(140px + env(safe-area-inset-bottom)); }
  /* While the calculator is in view on a phone, the help button steps aside from its controls */
  body.calc-in-view .help { opacity: 0; pointer-events: none; transition: opacity var(--t-ctl) var(--ease); }
  .foot-brand { font-size: 44px; padding-top: 24px; }
  .foot-info { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}

/* ---------- Motion ----------
 * Section parts fade up once as they enter (Aardvark's reveal: ~1.3 s,
 * soft ease, measured on the reference); the hero parcels are scrubbed by
 * the scroll (the home script); controls press; exits are opacity only. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.stagger.in > * { opacity: 1; transform: none; }
.enter { animation: rise var(--t-page) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.combo-list, .cur-menu { transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.combo-list { transform-origin: top left; }
.cur-menu { transform-origin: top right; }
@starting-style { .combo-list, .cur-menu { opacity: 0; transform: scale(0.98); } }
.press { animation: press var(--t-ctl) var(--ease); }
@keyframes press { 50% { transform: scale(.99); } }
.stamp.in { animation: stampIn var(--t-fill) var(--ease-out) both; }
@keyframes stampIn { from { opacity: 0; transform: scale(1.15); } }
/* The parcel drops in once on load (the signature move, from Aardvark's scrubbed reveal) */
.obj.drop { animation: drop var(--t-page) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes drop { from { opacity: 0; transform: rotate(calc(var(--rot, -12deg) + 6deg)) translateY(-24px); } to { opacity: 1; transform: rotate(var(--rot, -12deg)); } }
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-page); animation-timing-function: var(--ease-out); }
.foot a, .legal-note a { transition: color var(--t-hover), text-decoration-thickness var(--t-hover); }
.foot a:hover { color: #fff; text-decoration-thickness: 2px; }
.foot-brand small { transition: color var(--t-hover); }
.foot-brand:hover small { color: #fff; }
.legal-note a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) {
  :root { --t-fill: 120ms; --t-page: 120ms; --t-reveal: 120ms; }
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { transform: none; transition-delay: 0ms; }
  .enter, .press, .stamp.in, .obj.drop { animation: none; }
  .obj.scrub { transform: rotate(var(--rot, -12deg)) !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
  .field[aria-invalid="true"] > input, .field[aria-invalid="true"] > select, .field[aria-invalid="true"] > .phone, .field[aria-invalid="true"] > textarea { animation: none; }
  .btn:active { transform: none; }
  .help-panel, .combo-list, .cur-menu { transform: none !important; }
  .menu-btn span { transition: none; }
}
