/* =========================================================================
   AZIËL — Design System
   A premium house that happens to deliver parcels.
   Warm refined minimalism · bone + ink + a single ember accent.
   ------------------------------------------------------------------------
   Authored as plain HTML/CSS for clean hand-off into Laravel (Blade).
   Sections: 1 Tokens · 2 Reset · 3 Type · 4 Layout · 5 Header/Footer
             6 Buttons/Forms · 7 Components · 8 Page modules · 9 Motion
   ========================================================================= */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Surfaces — warm "paper" */
  --paper:      #F5F2EC;
  --paper-2:    #FAF8F4;
  --paper-3:    #ECE6DB;
  --paper-card: #FFFFFF;

  /* Ink — warm near-black */
  --ink:          #17150E;
  --ink-2:        #2C2920;
  --ink-soft:     #4A463A;
  --muted:        #797362;
  --muted-2:      #9A9382;

  /* Accent — kraft-derived ember, used surgically */
  --ember:        #b89962;
  --ember-2:      #D9743D;
  --ember-glow:   rgba(191, 87, 42, .18);

  /* Hairlines & fills */
  --line:         rgba(23, 21, 14, .12);
  --line-2:       rgba(23, 21, 14, .07);
  --line-strong:  rgba(23, 21, 14, .22);
  --fill:         rgba(23, 21, 14, .04);

  /* Dark surface (inverted sections) */
  --ink-bg:       #17150E;
  --ink-bg-2:     #201D14;
  --ink-line:     rgba(244, 241, 232, .14);
  --ink-line-2:   rgba(244, 241, 232, .07);
  --on-dark:      #EFEADD;
  --on-dark-mut:  rgba(239, 234, 221, .56);

  /* Status */
  --ok:           #4F7D4A;
  --warn:         #B98326;

  /* Type */
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  /* Fluid scale */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.04rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + .7vw, 2rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  --step-5:  clamp(3.3rem, 2rem + 6vw, 7.5rem);

  /* Space */
  --gut: clamp(1.25rem, 1rem + 2.5vw, 3rem);
  --sec: clamp(3rem, 2.2rem + 3.4vw, 5.5rem);

  /* Geometry */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(23,21,14,.05), 0 2px 8px rgba(23,21,14,.04);
  --shadow:    0 2px 4px rgba(23,21,14,.04), 0 12px 30px -12px rgba(23,21,14,.16);
  --shadow-lg: 0 4px 8px rgba(23,21,14,.05), 0 30px 60px -20px rgba(23,21,14,.28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── 2. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* Warm paper grain — subtle atmosphere, not texture-for-its-own-sake */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 3. Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.display {
  font-size: var(--step-5);
  font-weight: 460;
  letter-spacing: -.035em;
  line-height: .96;
}
.h1 { font-size: var(--step-4); letter-spacing: -.03em; }
.h2 { font-size: var(--step-3); letter-spacing: -.025em; }
.h3 { font-size: var(--step-2); letter-spacing: -.02em; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); font-weight: 400; }

/* Serif signature — single emphasized words */
.serif { font-family: var(--font-serif); font-optical-sizing: auto; font-style: italic; font-weight: 400; }
.ember { color: var(--ember); }
.diaeresis { color: var(--ember); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 1px; background: var(--line-strong);
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

.muted { color: var(--muted); }
.measure { max-width: 42ch; }
.measure-lg { max-width: 60ch; }

/* ── 4. Layout ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 900px; }
.section { padding-block: var(--sec); }
.section-sm { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 2.2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1.1rem; }
.flow > * + * { margin-top: var(--flow, 1.4rem); }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.divider { height: 1px; background: var(--line); border: 0; }

.ink-section { background: var(--ink-bg); color: var(--on-dark); }
.ink-section h1, .ink-section h2, .ink-section h3, .ink-section h4 { color: var(--on-dark); }
.ink-section .lead { color: var(--on-dark-mut); }
.ink-section .eyebrow { color: var(--on-dark-mut); }
.ink-section .eyebrow::before { background: var(--ink-line); }
.ink-section .muted { color: var(--on-dark-mut); }
.paper-2 { background: var(--paper-2); }

/* ── 5. Header ─────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { height: 26px; width: auto; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 1rem + 1.5vw, 2.6rem); }
.nav a {
  font-size: var(--step--1); font-weight: 500; letter-spacing: .01em;
  color: var(--ink-soft); position: relative; padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: .1rem; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 1rem; }
.head-actions .signin { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
.head-actions .signin:hover { color: var(--ink); }

.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav, .head-actions .signin { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { height: 1.5px; width: 22px; background: var(--ink); transition: .3s var(--ease); }
}

/* Mobile sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper); padding: var(--gut);
  display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav .m-head { display: flex; justify-content: space-between; align-items: center; height: 76px; margin-top: -1rem; }
.mobile-nav .m-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.mobile-nav nav { display: flex; flex-direction: column; gap: .4rem; margin-top: 2rem; }
.mobile-nav nav a {
  font-size: var(--step-3); font-weight: 460; letter-spacing: -.02em;
  padding-block: .5rem; border-bottom: 1px solid var(--line-2);
}
.mobile-nav .m-actions { margin-top: auto; display: grid; gap: .8rem; }

/* ── 6. Buttons & Forms ────────────────────────────────────────────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .01em;
  padding: .92em 1.5em; border-radius: 100px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); box-shadow: none; }
.btn-ember { --bg: var(--ember); --fg: #fff; }
.btn-ember:hover { --bg: var(--ember-2); }
.btn-lg { padding: 1.1em 1.9em; font-size: var(--step-0); }
.btn-block { width: 100%; }
.on-dark .btn-ghost, .ink-section .btn-ghost { --fg: var(--on-dark); border-color: var(--ink-line); }
.on-dark .btn-ghost:hover, .ink-section .btn-ghost:hover { --bg: var(--on-dark); --fg: var(--ink); }
.ink-section .btn:not(.btn-ghost):not(.btn-ember) { --bg: var(--paper); --fg: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: var(--step--1);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow:hover { gap: .9em; border-color: var(--ink); }
.link-arrow .arr { transition: transform .3s var(--ease-out); }

/* Inputs */
.field { display: block; }
.field > .label {
  display: block; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .02em; color: var(--ink-soft); margin-bottom: .55rem;
}
.input, .select, .textarea {
  width: 100%; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .95em 1.05em; font-size: var(--step-0); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--fill);
}
.textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23797362' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center;
  padding-right: 2.6em; cursor: pointer;
}
.input-xl { padding: 1.15em 1.3em; font-size: var(--step-1); border-radius: var(--r); }

/* Track bar — the hero search */
.trackbar {
  display: flex; gap: .5rem; align-items: center;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 100px; padding: .5rem .5rem .5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.trackbar:focus-within { border-color: var(--ink); box-shadow: var(--shadow); }
.trackbar input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: var(--step-0); letter-spacing: .04em; min-width: 0;
}
.trackbar input::placeholder { letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; font-size: var(--step--1); }
.ink-section .trackbar { background: var(--ink-bg-2); border-color: var(--ink-line); }
.ink-section .trackbar input { color: var(--on-dark); }

/* ── 7. Components ─────────────────────────────────────────────────────── */
.card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-flush { padding: 0; overflow: hidden; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em;
  padding: .4em .9em; border-radius: 100px;
  background: var(--fill); border: 1px solid var(--line);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok    { color: var(--ok);    background: rgba(79,125,74,.1);  border-color: rgba(79,125,74,.25); }
.pill-ember { color: var(--ember); background: var(--ember-glow);   border-color: rgba(191,87,42,.28); }
.pill-warn  { color: var(--warn);  background: rgba(185,131,38,.1); border-color: rgba(185,131,38,.28); }
.pill-ink   { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.index-num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: var(--step-2); color: var(--ember); line-height: 1;
}

.stat .n { font-size: var(--step-3); font-weight: 460; letter-spacing: -.03em; line-height: 1; }
.stat .n .unit { font-size: .45em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stat .k { font-size: var(--step--1); color: var(--muted); margin-top: .7rem; letter-spacing: .04em; }

.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--fill);
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

/* Timeline (tracking) */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: .6rem; bottom: .6rem; width: 1.5px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.2rem; top: .2rem;
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--paper);
}
.tl-item.done::before { border-color: var(--ink); background: var(--ink); }
.tl-item.active::before {
  border-color: var(--ember); background: var(--ember);
  box-shadow: 0 0 0 5px var(--ember-glow);
}
.tl-item .t-time { font-size: var(--step--1); color: var(--muted); letter-spacing: .03em; }
.tl-item .t-title { font-weight: 600; margin-top: .15rem; }
.tl-item .t-place { color: var(--muted); font-size: var(--step--1); }

/* Stepper (ship form) */
.stepper { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.stepper .s {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); font-weight: 600; color: var(--muted);
}
.stepper .s .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); font-size: .8rem; color: var(--muted);
  transition: .3s var(--ease);
}
.stepper .s.active { color: var(--ink); }
.stepper .s.active .n { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.stepper .s.done .n { border-color: var(--ember); background: var(--ember); color: #fff; }
.stepper .sep { width: 1.6rem; height: 1px; background: var(--line); }
@media (max-width: 640px){ .stepper .s .lbl { display: none; } }

/* Data rows / summary */
.drow { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.drow:last-child { border-bottom: 0; }
.drow .k { color: var(--muted); }
.drow .v { font-weight: 500; text-align: right; }

/* Map abstraction */
.route {
  position: relative; aspect-ratio: 16/11; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-bg);
  border: 1px solid var(--ink-line);
}
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Footer */
.site-foot { background: var(--ink-bg); color: var(--on-dark); padding-top: clamp(4rem, 3rem + 5vw, 7rem); }
.site-foot a { color: var(--on-dark-mut); transition: color .25s var(--ease); }
.site-foot a:hover { color: var(--on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 2.5rem; }
@media (max-width: 860px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; } }
@media (max-width: 520px){ .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 600; margin-bottom: 1.3rem; }
.foot-links { display: flex; flex-direction: column; gap: .8rem; font-size: var(--step-0); }
.foot-brand img { height: 30px; filter: invert(1) brightness(1.6); }
.foot-bottom {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top: 1px solid var(--ink-line);
  padding-block: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step--1); color: var(--on-dark-mut);
}
/* Logo invert helper (black PNG → light) */
.logo-light { filter: invert(1) brightness(1.7); }

/* ── 8. Page modules ───────────────────────────────────────────────────── */

/* Hero */
.hero { position: relative; padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: stretch; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero .hero-copy { align-self: center; }
.hero .display { margin-top: 1.5rem; }
.hero .lead { margin-top: 1.45rem; max-width: 44ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-track { margin-top: 1.4rem; max-width: 460px; }

/* Hero visual: a parcel in transit, drawn */
.parcel-stage {
  position: relative; height: 100%; min-height: min(64vh, 540px); width: 100%;
  border-radius: var(--r-xl); background:
    radial-gradient(120% 120% at 70% 10%, var(--paper-2), var(--paper-3) 60%, #d8cfba 100%);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (max-width: 940px){ .parcel-stage { aspect-ratio: 1/1; min-height: 0; height: auto; } }
.parcel-stage .glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--ember-glow), transparent 70%); top: -10%; right: -10%; filter: blur(10px); }
.parcel-stage .grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(circle at 50% 45%, #000 40%, transparent 75%); }
.box3d { position: absolute; inset: 0; margin: auto; width: 52%; height: 52%; }
.box3d svg { overflow: visible; }
.parcel-tag {
  position: absolute; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 100px; padding: .55rem 1rem; box-shadow: var(--shadow);
  font-size: var(--step--1); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem;
}

/* Marquee trust strip */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.5rem; --gap: 4rem; }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .item { display: inline-flex; align-items: center; gap: .7rem; font-size: var(--step-1); font-weight: 460; letter-spacing: -.01em; color: var(--ink-soft); }
.marquee .item .star { color: var(--ember); }
@keyframes slide { to { transform: translateX(calc(-50% - var(--gap)/2)); } }

/* Big statement */
.statement { font-size: var(--step-4); font-weight: 460; letter-spacing: -.03em; line-height: 1.06; max-width: 18ch; }
.statement .serif { color: var(--ember); }

/* Feature media row */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.feature-row.flip .feature-media { order: -1; }
@media (max-width: 860px){ .feature-row { grid-template-columns: 1fr; } .feature-row.flip .feature-media { order: 0; } }

/* App-window mock */
.window {
  border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  background: var(--paper-card); box-shadow: var(--shadow-lg);
}
.window .bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.window .body { padding: clamp(1.2rem, 1rem + 1.5vw, 1.8rem); }
.window.dark { background: var(--ink-bg-2); border-color: var(--ink-line); color: var(--on-dark); }
.window.dark .bar { background: var(--ink-bg); border-color: var(--ink-line-2); }

/* Coverage / page hero for sub-pages */
.page-hero { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Forms layout shell */
.form-shell { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 920px){ .form-shell { grid-template-columns: 1fr; } }
.summary-card { position: sticky; top: 100px; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fade-up .5s var(--ease-out) both; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.8rem); align-items: start; }
@media (max-width: 880px){ .dash { grid-template-columns: 1fr; } }
.dash-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: .2rem; }
.dash-side a {
  display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 10px;
  font-size: var(--step-0); font-weight: 500; color: var(--ink-soft); transition: .25s var(--ease);
}
.dash-side a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.dash-side a:hover { background: var(--fill); color: var(--ink); }
.dash-side a.active { background: var(--ink); color: var(--paper); }
@media (max-width:880px){ .dash-side { position: static; flex-direction: row; overflow-x: auto; } }

.shipment-list { display: flex; flex-direction: column; }
.ship-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line-2);
  transition: padding .3s var(--ease);
}
.ship-row:hover { padding-inline: .6rem; }
.ship-row .id { font-weight: 600; letter-spacing: .02em; }
.ship-row .meta { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 560px){ .ship-row { grid-template-columns: 1fr auto; } .ship-row .col-hide { display: none; } }

/* QR placeholder */
.qr { width: 132px; height: 132px; border-radius: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; }

/* Success check */
.success-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--ember); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--ember-glow); }
.success-mark svg { width: 38px; height: 38px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.gap-sm { gap: .5rem; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hide-mobile { } @media (max-width: 640px){ .hide-mobile { display: none !important; } }

/* ── 9. Motion ─────────────────────────────────────────────────────────── */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .06s; }
[data-reveal][data-d="2"] { transition-delay: .12s; }
[data-reveal][data-d="3"] { transition-delay: .18s; }
[data-reveal][data-d="4"] { transition-delay: .24s; }
[data-reveal][data-d="5"] { transition-delay: .30s; }

/* On-load hero stagger */
.load-stagger > * { opacity: 0; transform: translateY(20px); animation: fade-up .9s var(--ease-out) forwards; }
.load-stagger > *:nth-child(1){ animation-delay: .05s; }
.load-stagger > *:nth-child(2){ animation-delay: .15s; }
.load-stagger > *:nth-child(3){ animation-delay: .25s; }
.load-stagger > *:nth-child(4){ animation-delay: .35s; }
.load-stagger > *:nth-child(5){ animation-delay: .45s; }
.load-stagger > *:nth-child(6){ animation-delay: .55s; }

/* Animated route dash */
.dash-line { stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.travel { animation: travel 6s var(--ease) infinite; }
@keyframes travel { 0%{ offset-distance: 0%; } 100%{ offset-distance: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
