/* ============================================================
   WATTS LOGISTICS SERVICE  —  main.css
   Design system: modern Japanese corporate aesthetic
   ============================================================ */

:root {
  --navy-900: #0a1a33;
  --navy-800: #0e2447;
  --navy-700: #163059;
  --navy-600: #1e3f6f;
  --crimson: #c8102e;
  --crimson-dark: #a40d26;
  --gold: #c9a227;
  --ink: #17263a;
  --slate: #3d5168;
  --muted: #64798f;
  --line: #e3eaf2;
  --mist: #f4f7fb;
  --paper: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 26, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 26, 51, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 26, 51, 0.16);
  --font-sans: "Noto Sans JP", Inter, system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif JP", Georgia, serif;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--crimson); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: 88px 0; }
.section.alt { background: var(--mist); }
.section.tight { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35); }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-ghost-dark { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-ghost-dark:hover { background: var(--navy-800); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #cdd9ea; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e6eef7; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 15px; height: 15px; opacity: 0.85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: #fff; flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: 0.2px; color: var(--navy-900); line-height: 1.2; }
.brand-name span { color: var(--crimson); }
.brand-sub { font-size: 10.5px; letter-spacing: 2.5px; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--slate);
}
.nav-links a:hover { color: var(--navy-900); background: var(--mist); }
.nav-links a.active { color: #fff; background: var(--navy-800); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; color: var(--muted); transition: 0.15s ease;
}
.lang-switch button.active { background: var(--navy-800); color: #fff; }
.lang-switch button:not(.active):hover { color: var(--navy-900); }

.hamburger { display: none; border: 0; background: transparent; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: 0.25s ease; }

@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15.5px; }
  .hamburger { display: block; }
  .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav .nav-cta-btn { display: none; }
}
@media (max-width: 560px) {
  .topbar .container { justify-content: center; padding: 6px 0; }
  .brand-sub { display: none; }
  .nav-right .nav-cta { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  z-index: 0;
  min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(30,63,111,0.55) 0%, transparent 55%),
    linear-gradient(100deg, rgba(10,26,51,0.94) 0%, rgba(10,26,51,0.72) 45%, rgba(10,26,51,0.35) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 90px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: 0.5px; }
.hero h1 .ja { display: block; font-size: 0.78em; font-weight: 700; color: #cfe0f4; margin-bottom: 10px; letter-spacing: 1px; }
.hero-lead { max-width: 620px; margin: 20px 0 32px; font-size: 17px; color: #d7e3f2; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; color: #fff; display: block; line-height: 1.1; }
.hero-stat b em { font-style: normal; color: var(--gold); font-size: 0.65em; }
.hero-stat span { font-size: 13px; color: #b7c8dd; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tracking widget ---------- */
.track-widget {
  margin-top: 40px; max-width: 560px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius); padding: 16px; backdrop-filter: blur(8px);
}
.track-widget form { display: flex; gap: 10px; }
.track-widget input {
  flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 13px 18px;
  font-size: 15px; color: var(--ink); outline: none;
}
.track-widget input::placeholder { color: #9aa8ba; }
.track-widget .btn { border-radius: 10px; }
.track-hint { font-size: 12.5px; color: #b7c8dd; margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.track-hint .chip { background: rgba(255,255,255,0.14); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, monospace; letter-spacing: 0.5px; }
@media (max-width: 520px) {
  .track-widget form { flex-direction: column; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 12px;
}
.section-title { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 38px); color: var(--navy-900); }
.section-title .ja { display: block; font-size: 0.55em; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: 0.5px; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .img { height: 200px; overflow: hidden; position: relative; }
.service-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .img img { transform: scale(1.07); }
.service-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,26,51,0.55)); }
.service-card .icon {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  width: 46px; height: 46px; border-radius: 12px; background: var(--crimson);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 19px; color: var(--navy-900); }
.service-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.service-card .link { font-weight: 700; font-size: 14px; color: var(--crimson); display: inline-flex; align-items: center; gap: 6px; }
.service-card .link:hover { gap: 10px; }
.service-card .link svg { width: 16px; height: 16px; }

.stat-card {
  text-align: center; padding: 34px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stat-card b { font-family: var(--font-serif); font-size: 40px; font-weight: 900; color: var(--navy-800); display: block; }
.stat-card b em { font-style: normal; color: var(--crimson); font-size: 0.6em; }
.stat-card span { color: var(--muted); font-size: 14px; }

.testimonial-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 16px; }
.testimonial-card blockquote { margin: 0; color: var(--slate); font-size: 15px; flex: 1; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none;
}
.testimonial-card .who b { display: block; font-size: 14.5px; color: var(--navy-900); }
.testimonial-card .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-serif); font-size: 44px; font-weight: 900; color: var(--line);
}
.step .icon { width: 54px; height: 54px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; color: var(--crimson); margin-bottom: 18px; }
.step .icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step a { color: var(--crimson); font-weight: 700; font-size: 14px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-img .float {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
}
.split-img .float .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.split-img .float .ic svg { width: 22px; height: 22px; }
.split-img .float b { display: block; font-size: 15px; color: var(--navy-900); }
.split-img .float span { font-size: 13px; color: var(--muted); }
.split h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); color: var(--navy-900); }
.split .ja { display: block; font-size: 0.55em; color: var(--muted); font-weight: 600; margin-top: 6px; }
.split p.lead { color: var(--muted); margin: 16px 0 22px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); font-size: 15px; }
.check-list .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(200,16,46,0.1); color: var(--crimson); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-list .tick svg { width: 13px; height: 13px; }

/* ---------- CTA band ---------- */
.band {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff;
  padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.band .bg { position: absolute; inset: 0; z-index: -1; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(95deg, rgba(10,26,51,0.96), rgba(10,26,51,0.72)); }
.band > * { position: relative; z-index: 1; }
.band h2 { font-family: var(--font-serif); font-size: clamp(22px, 2.8vw, 32px); }
.band h2 .ja { display: block; font-size: 0.6em; color: #cfe0f4; font-weight: 600; margin-top: 6px; }
.band p { color: #c9d7e8; margin-top: 10px; max-width: 520px; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 84px 0 96px; overflow: hidden;
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
}
.page-hero .bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(110deg, rgba(10,26,51,0.92), rgba(10,26,51,0.55)); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: #9fb4cd; margin-bottom: 16px; }
.crumbs a { color: #cfe0f4; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; }
.page-hero h1 .ja { display: block; font-size: 0.55em; color: #cfe0f4; font-weight: 600; margin-top: 8px; letter-spacing: 1px; }
.page-hero p { max-width: 640px; margin-top: 14px; color: #c9d7e8; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--navy-800); }
.field label .req { color: var(--crimson); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 15px; background: #fff;
  color: var(--ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(30,63,111,0.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364798f' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { color: var(--crimson); font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--crimson); }
.field.invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 19px; color: var(--navy-900); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.form-card h2 .n { width: 30px; height: 30px; border-radius: 9px; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .box {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; transition: 0.15s ease; height: 100%;
}
.radio-card .box b { font-size: 14px; color: var(--navy-900); }
.radio-card .box span { font-size: 12px; color: var(--muted); }
.radio-card input:checked + .box { border-color: var(--crimson); background: rgba(200,16,46,0.05); box-shadow: 0 0 0 4px rgba(200,16,46,0.08); }
.radio-card input:checked + .box b { color: var(--crimson); }
.radio-card input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(200,16,46,0.15); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--crimson); margin-top: 3px; flex: none; }

/* ---------- Quote panel ---------- */
.quote-panel { position: sticky; top: calc(var(--header-h) + 24px); background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.quote-panel h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.quote-panel h3 svg { color: var(--gold); width: 20px; height: 20px; }
.quote-panel .total { text-align: right; padding: 18px 0; border-bottom: 1px dashed rgba(255,255,255,0.25); margin-bottom: 14px; }
.quote-panel .total span { font-size: 13px; color: #b7c8dd; }
.quote-panel .total b { font-family: var(--font-serif); font-size: 34px; font-weight: 900; color: var(--gold); }
.quote-panel .total b em { font-style: normal; font-size: 0.55em; color: #b7c8dd; font-weight: 600; margin-right: 2px; }
.qrow { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 5px 0; color: #cdd9ea; }
.qrow b { color: #fff; font-weight: 600; text-align: right; }
.qrow.grand { border-top: 1px dashed rgba(255,255,255,0.25); margin-top: 10px; padding-top: 12px; font-size: 14.5px; }
.qrow.grand b { color: var(--gold); font-weight: 800; }
.quote-panel .note { font-size: 12px; color: #9fb4cd; margin-top: 14px; line-height: 1.6; }

/* ---------- Tracking ---------- */
.track-hero { background: linear-gradient(110deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0 0; text-align: center; }
.track-search { max-width: 620px; margin: 0 auto; }
.track-search form { display: flex; gap: 10px; margin-top: 22px; }
.track-search input {
  flex: 1; min-width: 0; border: 1.5px solid rgba(255,255,255,0.25); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 15px 18px; font-size: 16px; letter-spacing: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.track-search .btn { border-radius: 12px; }
.track-search .hint { margin-top: 14px; font-size: 12.5px; color: #9fb4cd; }
.track-search .hint .chip { background: rgba(255,255,255,0.14); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, monospace; }
.track-hint .chip, .track-search .hint .chip { border: 0; cursor: pointer; color: inherit; font-size: inherit; }
.track-hint .chip:hover, .track-search .hint .chip:hover { background: rgba(255,255,255,0.3); color: #fff; }
.track-tabs { display: flex; gap: 8px; margin-top: 34px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0; flex-wrap: wrap; }
.track-tabs button { background: transparent; border: 0; color: #a9bdd6; font-weight: 700; font-size: 14.5px; padding: 14px 18px; position: relative; }
.track-tabs button.active { color: #fff; }
.track-tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }

.result-wrap { min-height: 420px; padding: 44px 0 80px; }
.result-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.result-empty .big { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; }
.result-empty .big svg { width: 38px; height: 38px; color: var(--muted); }
.result-empty h3 { color: var(--navy-900); font-size: 20px; margin-bottom: 8px; }

.status-banner { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 26px; margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.status-banner .pill { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; padding: 9px 18px; border-radius: 999px; color: #fff; }
.status-banner .pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.pill.picked_up { background: var(--navy-600); }
.pill.in_transit { background: #b7791f; }
.pill.out_for_delivery { background: #c2402b; }
.pill.delivered { background: #1f7a4d; }
.status-banner .meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); align-items: center; }
.status-banner .meta b { color: var(--navy-800); letter-spacing: 0.5px; }

.shipment-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; }
@media (max-width: 900px) { .shipment-grid { grid-template-columns: 1fr; } }

.info-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-panel h3 { font-size: 15px; color: var(--navy-800); letter-spacing: 0.5px; margin-bottom: 16px; text-transform: uppercase; font-size: 13px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-row b { color: var(--navy-900); font-weight: 700; text-align: right; }
.route-map { display: grid; gap: 0; margin-top: 6px; }
.route-stop { display: flex; gap: 14px; align-items: stretch; }
.route-stop .rail { display: flex; flex-direction: column; align-items: center; }
.route-stop .rail .d { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--navy-600); background: #fff; margin-top: 3px; flex: none; }
.route-stop .rail .l { width: 2px; flex: 1; background: var(--line); margin: 3px 0; }
.route-stop:last-child .rail .l { display: none; }
.route-stop .body { padding-bottom: 18px; }
.route-stop .body b { display: block; font-size: 15px; color: var(--navy-900); }
.route-stop .body span { font-size: 13px; color: var(--muted); }

.timeline { position: relative; margin-top: 4px; }
.timeline-item { display: flex; gap: 18px; padding-bottom: 26px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item .node { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; z-index: 1; }
.timeline-item .node svg { width: 20px; height: 20px; }
.timeline-item.done .node { border-color: var(--navy-600); background: var(--navy-800); color: #fff; }
.timeline-item.current .node { border-color: var(--crimson); background: var(--crimson); color: #fff; box-shadow: 0 0 0 6px rgba(200,16,46,0.15); }
.timeline-item .body { padding-top: 2px; }
.timeline-item .body .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.timeline-item .body h4 { font-size: 16px; color: var(--navy-900); margin: 2px 0; }
.timeline-item .body p { font-size: 13.5px; color: var(--muted); }
.timeline-item.done .body h4 { color: var(--slate); }
.timeline-item.current .body h4 { color: var(--crimson); }

/* ---------- Invoice ---------- */
.invoice-page { background: #e9eef5; min-height: 60vh; padding: 48px 0 80px; }
.invoice-actions { max-width: 880px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.invoice-actions h2 { font-size: 18px; color: var(--navy-900); }
.invoice-sheet { background: #fff; max-width: 880px; margin: 0 auto; box-shadow: var(--shadow-lg); border-radius: 4px; overflow: hidden; }
.invoice-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-600)); color: #fff; padding: 40px 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invoice-head .brand-ib { display: flex; gap: 14px; align-items: center; }
.invoice-head .brand-ib .mk { width: 52px; height: 52px; border-radius: 13px; background: #fff; color: var(--navy-800); display: grid; place-items: center; }
.invoice-head .brand-ib .mk svg { width: 30px; height: 30px; }
.invoice-head .brand-ib b { font-size: 21px; font-family: var(--font-serif); }
.invoice-head .brand-ib span { display: block; font-size: 12px; color: #c9d7e8; }
.invoice-head .doc h3 { font-size: 30px; font-weight: 900; letter-spacing: 1px; text-align: right; }
.invoice-head .doc .sub { text-align: right; font-size: 13px; color: #c9d7e8; margin-top: 6px; }
.invoice-body { padding: 40px 48px 48px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.meta-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
.meta-block .addr { font-size: 14px; color: var(--slate); line-height: 1.8; }
.meta-block .addr b { color: var(--navy-900); font-size: 15px; }
.meta-block .addr .v { color: var(--muted); }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.invoice-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 2px solid var(--navy-800); padding: 10px 12px; }
.invoice-table td { border-bottom: 1px solid var(--line); padding: 13px 12px; font-size: 14px; color: var(--slate); vertical-align: top; }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: right; }
.invoice-table td b { color: var(--navy-900); }
.invoice-table .muted { color: var(--muted); font-size: 12.5px; }
.totals { max-width: 340px; margin-left: auto; }
.totals .r { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--slate); }
.totals .r b { color: var(--navy-900); }
.totals .grand { border-top: 2px solid var(--navy-800); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--navy-900); }
.totals .grand b { font-family: var(--font-serif); font-size: 26px; color: var(--crimson); }
.invoice-foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.invoice-foot b { color: var(--navy-800); }
@media (max-width: 680px) {
  .invoice-head, .invoice-body { padding: 26px 22px; }
  .meta-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.value-card { text-align: center; padding: 34px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.value-card .ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; display: grid; place-items: center; }
.value-card .ic svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.office-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); color: var(--crimson); display: grid; place-items: center; flex: none; }
.office-card .ic svg { width: 22px; height: 22px; }
.office-card b { display: block; color: var(--navy-900); font-size: 15.5px; }
.office-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--crimson); text-transform: uppercase; }
.office-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--mist); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b7c8dd; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer .f-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer .f-brand .mk { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); color: #fff; display: grid; place-items: center; }
.footer .f-brand .mk svg { width: 24px; height: 24px; }
.footer .f-brand b { color: #fff; font-size: 17px; font-family: var(--font-serif); }
.footer .f-brand span { display: block; font-size: 11px; letter-spacing: 2px; color: #7d93b0; text-transform: uppercase; }
.footer p { line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: #b7c8dd; }
.footer ul a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold); }
.footer-contact a { color: #e6eef7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .legal a { color: #7d93b0; margin-left: 16px; }
.footer-bottom .legal a:hover { color: #fff; }
.footer-bottom b { color: #c9d7e8; font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  background: var(--navy-900); color: #fff; border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; z-index: 100;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); max-width: min(92vw, 460px);
  border-left: 4px solid var(--gold);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.toast.success { border-left-color: #2e9e63; }
.toast.success svg { color: #2e9e63; }
.toast.error { border-left-color: var(--crimson); }
.toast.error svg { color: var(--crimson); }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 13px; color: #c9d7e8; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,26,51,0.62); backdrop-filter: blur(4px);
}
.modal.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { width: min(620px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1); max-height: 92vh; display: flex; flex-direction: column; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.modal-head h3 { font-size: 17px; color: var(--navy-900); display: flex; align-items: center; gap: 10px; }
.modal-head h3 .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(200,16,46,0.1); color: var(--crimson); display: grid; place-items: center; }
.modal-head h3 .ic svg { width: 19px; height: 19px; }
.modal-close { border: 0; background: var(--mist); width: 34px; height: 34px; border-radius: 50%; color: var(--slate); font-size: 18px; line-height: 1; }
.modal-close:hover { background: var(--line); }
.modal-body { padding: 24px; overflow-y: auto; }

.email-progress { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); margin-bottom: 20px; }
.email-progress .spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--crimson); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.email-progress.done .spin { border-color: #2e9e63; border-top-color: #2e9e63; animation: none; }
.email-progress.done .spin { background-image: radial-gradient(circle at center, transparent 30%, transparent 30%); position: relative; }
.email-progress.done .spin::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; }
.email-progress b { display: block; font-size: 14.5px; color: var(--navy-900); }
.email-progress span { font-size: 13px; color: var(--muted); }

.email-view { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.email-view .bar { background: var(--mist); border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 8px; }
.email-view .bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.email-view .bar i:nth-child(1) { background: #e05252; }
.email-view .bar i:nth-child(2) { background: #e0b352; }
.email-view .bar i:nth-child(3) { background: #57b957; }
.email-view .meta { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.email-view .meta div { display: flex; gap: 10px; }
.email-view .meta .k { color: var(--muted); min-width: 64px; flex: none; }
.email-view .meta b { color: var(--navy-900); font-weight: 700; }
.email-view .meta .mono { font-family: ui-monospace, monospace; letter-spacing: 0.5px; }
.email-view .content { padding: 20px; font-size: 14.5px; color: var(--slate); line-height: 1.85; }
.email-view .content p { margin: 0 0 12px; }
.email-view .content .code { background: var(--navy-800); color: #fff; border-radius: 10px; padding: 14px 18px; font-family: ui-monospace, monospace; letter-spacing: 2px; font-size: 17px; text-align: center; margin: 14px 0; }
.email-view .content .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--mist); }

/* ---------- Success screen ---------- */
.success-panel { max-width: 720px; margin: 0 auto; text-align: center; }
.success-badge { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: linear-gradient(135deg, #2e9e63, #1f7a4d); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(31,122,77,0.4); animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-badge svg { width: 40px; height: 40px; }
.tracking-code { display: inline-flex; align-items: center; gap: 12px; margin: 20px 0 8px; background: var(--mist); border: 1.5px dashed var(--navy-600); border-radius: 12px; padding: 12px 22px; }
.tracking-code span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.tracking-code b { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 2px; color: var(--navy-900); }
.copy-btn { border: 0; background: var(--navy-800); color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; }
.copy-btn:hover { background: var(--crimson); }

/* ---------- Tables (rates) ---------- */
.rates-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.rates-table th { background: var(--navy-800); color: #fff; text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: 0.5px; }
.rates-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.rates-table tr:last-child td { border-bottom: 0; }
.rates-table tr:hover td { background: var(--mist); }
.rates-table td b { color: var(--navy-900); }
.rates-table .amount { text-align: right; font-weight: 700; color: var(--navy-900); }

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.notice { background: rgba(30,63,111,0.06); border: 1px solid rgba(30,63,111,0.18); color: var(--navy-700); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .topbar, .site-header, .footer, .invoice-actions, .toast, .modal, .page-hero, .no-print { display: none !important; }
  .invoice-page { background: #fff; padding: 0; }
  .invoice-sheet { box-shadow: none; border: 1px solid var(--line); }
  .invoice-sheet { max-width: 100%; }
}
