/* CLARO — Delivery Status
   Soft Structuralism: silver-white field, CLARO navy, massive grotesk type,
   double-bezel cards, diffused ambient shadows, spring-physics motion. */

   :root {
    --bg: #F2F3F6;
    --ink: #16224F;            /* CLARO navy */
    --ink-2: #3D4670;
    --muted: #8B90A6;
    --hair: rgba(22, 34, 79, .07);
    --shell: rgba(22, 34, 79, .035);
    --core: #FFFFFF;
    --chip: #EEF0F6;
    --hold: #B4632A;
    --hold-soft: #FBF1E8;
    --r-shell: 34px;
    --r-core: 28px;             /* r-shell − shell padding */
    --spring: cubic-bezier(.32, .72, 0, 1);
    --display: 'Heebo', 'Helvetica Neue', Helvetica, 'Open Sans', Arial, sans-serif;
    --text: 'Open Sans', 'Heebo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --num: 'Helvetica Neue', Helvetica, 'Heebo', Arial, sans-serif;
    --ambient: 0 1px 2px rgba(22, 34, 79, .03), 0 24px 48px -28px rgba(22, 34, 79, .18), 0 60px 120px -60px rgba(22, 34, 79, .22);
    color-scheme: light;
  }
  
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
  body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  /* Fixed ambient light — never on scrolling content */
  .aura { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .aura::before, .aura::after { content: ''; position: absolute; border-radius: 50%; }
  .aura::before {
    width: 110vmax; height: 110vmax; top: -70vmax; left: 50%; transform: translateX(-50%);
    background: radial-gradient(closest-side, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%);
  }
  .aura::after {
    width: 70vmax; height: 70vmax; bottom: -45vmax; right: -25vmax;
    background: radial-gradient(closest-side, rgba(22, 34, 79, .07), rgba(22, 34, 79, 0));
  }
  
  .page {
    position: relative; z-index: 1;
    width: 100%; max-width: 1080px; margin: 0 auto;
    padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
    min-height: 100dvh; display: flex; flex-direction: column;
  }
  
  /* ---------- brand ---------- */
  .brand { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 12px 0 44px; }
  .logo-link { color: var(--ink); display: block; line-height: 0; }
  .logo { width: clamp(132px, 40vw, 188px); display: block; }
  .logo svg { width: 100%; height: auto; display: block; }
  
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; padding: 6px 14px; border-radius: 999px;
    background: var(--chip); color: var(--ink-2);
    font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .08em;
    box-shadow: inset 0 0 0 1px var(--hair);
  }
  .eyebrow .ico { width: 14px; height: 14px; }
  
  /* ---------- layout ---------- */
  .view { flex: 1; display: grid; gap: 20px; align-content: start; }
  .col { display: grid; gap: 14px; min-width: 0; }
  .view > *, .shell, .core { min-width: 0; }
  @media (min-width: 880px) {
    .view.has-split { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
    .view.has-split .col-hero { position: sticky; top: 32px; }
    .brand { padding-bottom: 56px; }
  }
  .view.is-narrow { width: 100%; max-width: 520px; margin: 0 auto; }
  
  /* ---------- double-bezel ---------- */
  .shell {
    padding: 6px; border-radius: var(--r-shell);
    background: var(--shell);
    box-shadow: inset 0 0 0 1px var(--hair), var(--ambient);
  }
  .core {
    border-radius: var(--r-core);
    background: var(--core);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(22, 34, 79, .03);
    padding: 28px 24px;
    position: relative; overflow: hidden;
  }
  
  /* ---------- hero ---------- */
  .hero .core { padding: 30px 20px 26px; text-align: center; }
  .lookup, .state .core, .hero .core { position: relative; }
  .hero-big, .state-title { max-width: 100%; overflow-wrap: anywhere; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero-big {
    margin: 0; font-family: var(--display); font-weight: 800;
    font-size: clamp(72px, 27vw, 168px); line-height: .88; letter-spacing: -.045em;
    color: var(--ink);
  }
  .hero-big--num { font-family: var(--num); font-weight: 700; letter-spacing: -.06em; }
  .hero-big--long { font-size: clamp(48px, 14vw, 76px); line-height: .98; letter-spacing: -.03em; padding: 6px 0; }
  .hero-small { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); font-weight: 500; }
  .hero-note { margin: 10px auto 0; max-width: 32ch; font-size: 15px; color: var(--muted); }
  
  .progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 26px 0 0; }
  .progress i { display: block; height: 5px; border-radius: 99px; background: rgba(22, 34, 79, .09); position: relative; overflow: hidden; }
  .progress i.on { background: var(--ink); }
  .progress i.now { background: rgba(22, 34, 79, .16); }
  .progress i.now::after {
    content: ''; position: absolute; inset: 0; background: var(--ink);
    transform-origin: right; animation: fill 2.4s var(--spring) infinite;
  }
  @keyframes fill { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
  
  .status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
  .chip {
    display: inline-flex; min-width: 0; text-align: start; align-items: center; gap: 10px;
    padding: 9px 16px 9px 14px; border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2;
  }
  .live { width: 8px; height: 8px; border-radius: 50%; background: #7FE0B5; position: relative; flex: none; }
  .live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--spring) infinite; }
  @keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
  .step-count { white-space: nowrap; flex: none; font-family: var(--num); font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
  
  /* delivered: inverted core */
  .hero--done .core { background: var(--ink); color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12); }
  .hero--done .hero-big { color: #fff; }
  .hero--done .hero-small { color: rgba(255, 255, 255, .78); }
  .hero--done .hero-note { color: rgba(255, 255, 255, .55); }
  .hero--done .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .hero--done .progress i { background: rgba(255, 255, 255, .9); }
  .watermark { position: absolute; width: 280px; left: -80px; bottom: -90px; color: rgba(255, 255, 255, .06); pointer-events: none; line-height: 0; }
  .watermark svg { width: 100%; height: auto; }
  .hero--done .core > :not(.watermark) { position: relative; }
  
  /* on hold */
  .hero--hold .core { background: linear-gradient(180deg, var(--hold-soft), #fff 70%); }
  .hero--hold .hero-big { color: var(--hold); }
  .hero--hold .eyebrow { background: #F6E3D2; color: var(--hold); box-shadow: none; }
  
  /* ---------- meta pills ---------- */
  .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .meta li { font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--hair); }
  .meta b { font-family: var(--num); font-weight: 700; letter-spacing: .03em; color: var(--ink); }
  
  /* ---------- timeline ---------- */
  .steps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 10px; }
  .steps-title { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
  .steps { list-style: none; margin: 0; padding: 0; }
  .step { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
  .step:last-child { padding-bottom: 0; }
  .step:not(:last-child)::before {
    content: ''; position: absolute; top: 44px; bottom: 4px; inset-inline-start: 19.25px; width: 1.5px;
    background: rgba(22, 34, 79, .1); border-radius: 2px;
  }
  .step--done:not(:last-child)::before { background: var(--ink); }
  .step-dot {
    flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #F6F7FA; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair);
  }
  .step--done .step-dot { background: var(--ink); color: #fff; box-shadow: none; }
  .step--current .step-dot { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(22, 34, 79, .06); }
  .step--hold .step-dot { background: var(--hold-soft); color: var(--hold); box-shadow: inset 0 0 0 1.5px var(--hold), 0 0 0 6px rgba(180, 99, 42, .08); }
  .step-body { display: flex; flex-direction: column; justify-content: center; min-height: 40px; min-width: 0; }
  .step-label { font-size: 15.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
  .step--done .step-label { color: var(--ink-2); font-weight: 500; }
  .step--current .step-label, .step--hold .step-label { color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 17px; }
  .step-time { font-family: var(--num); font-size: 12.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
  .tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--hold); background: var(--hold-soft); border-radius: 999px; padding: 2px 9px; margin-inline-start: 8px; vertical-align: 2px; font-family: var(--text); }
  
  .fineprint { margin: 4px 12px 0; text-align: center; font-size: 12.5px; color: var(--muted); }
  
  /* ---------- icons: ultra-light line ---------- */
  .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .step--done .ico { stroke-width: 1.6; }
  
  /* ---------- buttons: island pill + button-in-button ---------- */
  .btn {
    -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 14px;
    padding: 6px; padding-inline-start: 22px; /* trailing circle sits flush at the end */
    border-radius: 999px; background: var(--ink); color: #fff;
    font-family: var(--text); font-weight: 600; font-size: 15.5px; line-height: 1;
    transition: transform .5s var(--spring);
  }
  .btn-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); transition: transform .6s var(--spring); }
  .btn:hover .btn-ico { transform: translate(-3px, -1px) scale(1.06); }
  .btn:active { transform: scale(.98); }
  .btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), 0 10px 24px -16px rgba(22, 34, 79, .3); }
  .btn--ghost .btn-ico { background: var(--chip); }
  .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  
  /* ---------- states / errors ---------- */
  .state .core { text-align: center; padding: 40px 22px 32px; display: flex; flex-direction: column; align-items: center; }
  .state-ico { padding: 5px; border-radius: 50%; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); margin-bottom: 20px; }
  .state-ico span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: inset 0 1px 1px #fff, 0 6px 16px -10px rgba(22, 34, 79, .35); }
  .state-ico .ico { width: 26px; height: 26px; }
  .state-title { margin: 0; font-family: var(--display); font-size: clamp(30px, 8.5vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
  .state-body { margin: 12px 0 0; color: var(--ink-2); max-width: 34ch; }
  .state-num { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
  .state-num b { font-family: var(--num); color: var(--ink-2); }
  .actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
  
  .lookup {
    display: flex; align-items: center; gap: 6px; width: 100%; max-width: 380px; margin-top: 26px;
    padding: 6px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair);
  }
  .lookup input {
    flex: 1 1 0; width: 0; min-width: 0; height: 52px; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
    font-family: var(--num); font-size: 18px; letter-spacing: .06em; text-align: center; padding: 0 18px;
    box-shadow: inset 0 0 0 1px rgba(22, 34, 79, .05); transition: box-shadow .5s var(--spring);
  }
  .lookup input::placeholder { font-family: var(--text); letter-spacing: 0; color: var(--muted); font-size: 16px; }
  .lookup input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .lookup .go { flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .5s var(--spring); }
  .lookup .go .ico { transition: transform .6s var(--spring); }
  .lookup .go:hover .ico { transform: translateX(-3px); }
  .lookup .go:active { transform: scale(.94); }
  .form-err { color: #B03A3A; font-size: 13.5px; margin: 10px 0 0; }
  
  /* ---------- skeleton ---------- */
  .sk-wrap { display: grid; justify-items: center; gap: 16px; padding: 12px 0; }
  .sk { display: block; border-radius: 14px; background: linear-gradient(90deg, #EEF0F4, #F8F9FB, #EEF0F4); background-size: 200% 100%; animation: shimmer 1.4s var(--spring) infinite; }
  .sk-sm { width: 108px; height: 24px; border-radius: 999px; }
  .sk-xl { width: 62%; height: 120px; border-radius: 24px; }
  .sk-md { width: 44%; height: 18px; }
  @keyframes shimmer { to { background-position: -200% 0; } }
  
  /* ---------- footer ---------- */
  .foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0 8px; }
  .copy { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
  
  .sr-only { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  
  /* ---------- entry choreography ---------- */
  .reveal {
    opacity: 0; transform: translateY(28px); filter: blur(8px);
    transition: opacity .9s var(--spring), transform 1.1s var(--spring), filter .9s var(--spring);
    transition-delay: var(--d, 0ms);
  }
  .reveal.in { opacity: 1; transform: none; filter: blur(0); }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
  }