/* Public tracking page — official, single light theme.
   Layout: navy company bar → light hero with the tracking form → result card → assurance strip → navy footer with company contacts. */
:root {
  --navy: #0E2A47; --navy-2: #163A5F; --navy-ink: #E9EEF5; --navy-muted: #A9B8CB;
  --bg: #F4F6F9; --surface: #FFFFFF; --ink: #101828; --muted: #5B6576; --line: #DCE2EA;
  --accent: #0B5CAD; --accent-hover: #094C8F; --bad: #B42318; --bad-soft: #FDECEA;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7FB2EE; outline-offset: 2px; }
a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1040px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
.site-top { background: var(--navy); color: var(--navy-ink); padding-top: env(safe-area-inset-top, 0px); }
.site-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; }
.site-brand { display: flex; align-items: center; gap: 11px; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .01em; min-width: 0; }
.site-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-mark { width: 34px; height: 34px; border-radius: 8px; background: #FFFFFF; color: var(--navy); display: grid; place-items: center; flex: none; }
.site-mark svg { width: 20px; height: 20px; }
.site-top-right { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--navy-muted); }
.site-top-right a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.site-top-right a:hover { text-decoration: underline; }
.secure { display: inline-flex; align-items: center; gap: 6px; }
.secure svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); color: #FFFFFF; }
.hero .container { padding-block: 44px 52px; display: grid; gap: 14px; }
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.hero p { margin: 0; color: #C9D5E3; max-width: 60ch; font-size: 16px; }
.tk-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; background: #FFFFFF; border-radius: 10px; padding: 8px; box-shadow: 0 12px 32px rgb(0 0 0 / .22); max-width: 720px; }
.tk-form input { flex: 1 1 240px; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink); font-family: var(--mono); letter-spacing: .04em; }
.tk-form input::placeholder { font-family: var(--font); letter-spacing: 0; color: #8A94A6; }
.tk-form input:focus { outline: none; }
.tk-form:focus-within { box-shadow: 0 0 0 3px #7FB2EE, 0 12px 32px rgb(0 0 0 / .22); }
.tk-form button { flex: none; border: 0; border-radius: 7px; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 28px; cursor: pointer; }
.tk-form button:hover:not(:disabled) { background: var(--accent-hover); }
.tk-form button:disabled { opacity: .7; cursor: default; }
@media (max-width: 480px) { .tk-form button { flex: 1 1 100%; } }
.hero .hint { font-size: 13.5px; color: #A9B8CB; }
.hero .hint code { font-family: var(--mono); color: #FFFFFF; background: rgb(255 255 255 / .08); padding: 1px 6px; border-radius: 4px; }

/* ---------- result ---------- */
main.container { padding-block: 28px 8px; display: grid; gap: 28px; }
#result:empty { display: none; }
.notice { padding: 16px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.notice.warn { border-color: #F4B7B1; color: var(--bad); background: var(--bad-soft); }
.result-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: #B8C2D0; }

/* ---------- assurance strip ---------- */
.assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .assure { grid-template-columns: minmax(0, 1fr); } }
.assure div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.assure svg { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: #E8F1FB; color: var(--accent); }
.assure strong { font-size: 15px; }
.assure span { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; background: var(--navy); color: var(--navy-muted); font-size: 14px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-foot .container { padding-block: 32px 24px; display: grid; gap: 24px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid h2 { margin: 0 0 8px; color: #FFFFFF; font-size: 16px; }
.foot-grid h3 { margin: 0 0 8px; color: #FFFFFF; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot-grid p { margin: 0 0 4px; overflow-wrap: anywhere; }
.foot-grid a { color: #FFFFFF; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 16px; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; }

/* footer stays at the bottom on tall screens; larger mark */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.container { flex: 1 0 auto; width: 100%; }
.site-mark svg { width: 24px; height: 24px; }
