/* ── FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:           #f5f1e8;
  --surface:      #edeae0;
  --surface-2:    #e6e2d8;
  --ink:          #1b2640;
  --navy:         #0c1426;
  --muted:        #636b82;
  --orange:       #f0822e;
  --orange-600:   #dc6a1c;
  --orange-soft:  #f7c79b;
  --orange-200:   #f7c79b;
  --accent-rgb:   240,130,46;
  --graphite:     #1d2942;
  --green:        #2f9e69;
  --green-dark:   #1a7a4f;
  --white:        #ffffff;
  --line:         rgba(27,38,64,.12);
  --line-dark:    rgba(246,242,234,.12);
  --line-dark-2:  rgba(246,242,234,.07);
  --on-dark:       #f6f2ea;
  --on-dark-soft:  rgba(246,242,234,.66);
  --on-dark-faint: rgba(246,242,234,.40);

  --font-display: 'Sora', sans-serif;
  --font-body:    'Source Sans 3', 'Noto Sans SC', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --wrap:         1160px;
  --nav-h:        74px;
  --section-gap:  96px;
  --radius:       12px;
}

/* ── BASE RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }

.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.12;
  color: var(--ink); margin-bottom: 16px;
}
.sec-sub {
  font-size: 17px; color: var(--muted);
  max-width: 600px; line-height: 1.65;
}

/* ── LAYOUT ────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.section-pad { padding: var(--section-gap) 0; }
.sec-head { margin-bottom: 48px; }
.sec-head.row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.sec-head.row > div { max-width: 640px; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: -.01em; padding: 13px 22px; border-radius: 6px;
  transition: transform .15s, background .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; cursor: pointer; border: none; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange); color: #1a1205;
  box-shadow: 0 8px 22px -8px rgba(240,130,46,.65);
}
.btn-primary:hover { background: var(--orange-600); }
.btn-green {
  background: var(--green); color: #07260f;
  box-shadow: 0 8px 22px -8px rgba(31,175,84,.5);
}
.btn-green:hover { background: var(--green-dark); }
.btn-ghost-dark {
  background: transparent; color: var(--on-dark);
  box-shadow: inset 0 0 0 1.4px var(--line-dark);
}
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.4px var(--on-dark-soft); }
.btn-ghost-light {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.4px var(--line);
}
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.4px rgba(27,38,64,.3); }

/* ── NAV ────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.nav-wrap.scrolled { box-shadow: 0 2px 20px rgba(27,38,64,.1); }
.nav {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px; background: var(--orange);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--white); letter-spacing: -.02em; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; line-height: 1.2; color: var(--ink);
}
.logo-sub {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: color .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px; cursor: pointer; transition: background .15s;
}
.lang-toggle:hover { background: var(--surface-2); }
.lang-toggle .lt-sep { opacity: .4; }
[data-lang="en"] .lt-en { color: var(--orange); font-weight: 700; }
[data-lang="zh"] .lt-zh { color: var(--orange); font-weight: 700; }
.nav-wa { font-size: 13.5px; padding: 9px 14px; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,20,38,.95) 0%, rgba(12,20,38,.82) 45%, rgba(12,20,38,.4) 100%),
    linear-gradient(0deg, rgba(12,20,38,.92) 0%, transparent 55%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 52px;
  align-items: start; padding-top: 64px; padding-bottom: 60px; width: 100%;
}
.hero-copy { padding-top: 20px; }
.hero-kicker { color: var(--orange-soft); }
.hero-kicker .dot { background: var(--orange-soft); }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.04;
  color: var(--on-dark); margin: 0 0 20px;
}
.hero-em { color: var(--orange); }
.hero-sub {
  font-size: 17px; color: var(--on-dark-soft);
  max-width: 520px; line-height: 1.65; margin-bottom: 40px;
}

/* ── HERO CREDENTIALS (laurel badges) ──────────────────── */
.hero-creds { margin-top: 30px; }
.hc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; gap: 18px 6px; max-width: 560px; }
.cred-laurel { display: flex; align-items: center; justify-content: center; gap: 3px; background: transparent; border: 0; padding: 2px 0; cursor: pointer; color: var(--orange-200); transition: color .16s, transform .16s; }
.cred-laurel:hover { color: var(--orange); transform: translateY(-2px); }
.laurel { flex: 0 0 auto; }
.cl-mid { width: 92px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; padding: 0 1px; }
.cl-top { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -.02em; color: var(--on-dark); display: inline-flex; align-items: baseline; white-space: nowrap; }
.cl-unit { font-size: 10.5px; font-weight: 600; margin-left: 1px; color: var(--orange-200); }
.cl-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; line-height: 1; }

/* ── ESTIMATOR — entry card (hero) ─────────────────────── */
.est-entry button, .est-entry input, .est-entry select,
.est-overlay button, .est-overlay input, .est-overlay select { appearance: none; -webkit-appearance: none; }
.est-entry { width: 100%; background: linear-gradient(180deg, rgba(29,41,66,.94), rgba(16,24,42,.96)); border: 1px solid rgba(246,242,234,.16); border-radius: 18px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.75); backdrop-filter: blur(10px); color: var(--on-dark); }
.est-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.est-entry-title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.est-entry-free { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--green); display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; margin-top: 3px; }
.est-entry-free .dot { width: 6px; height: 6px; background: var(--green); }
.est-entry-promise { font-size: 13.5px; color: var(--on-dark-soft); line-height: 1.5; margin-top: 12px; }
.est-form { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.est-route { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); align-items: end; gap: 4px; }
.est-route > .est-field { min-width: 0; }
.est-route-arrow { display: flex; align-items: center; justify-content: center; color: var(--on-dark-faint); padding-bottom: 12px; }
.est-field { display: block; }
.est-mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-mrow .est-field { min-width: 0; }
/* keep both label rows the same height so VOLUME (with CBM/KG toggle)
   and CARTONS inputs line up */
.est-mrow .est-block-top,
.est-mrow .est-field > .cf-lab { min-height: 25px; display: flex; align-items: center; }
.est-block-top { display: flex; align-items: center; justify-content: space-between; }
.est-go { width: 100%; justify-content: center; padding: 15px; font-size: 16px; margin-top: 14px; }
.est-calc .est-go { margin-top: 13px; }
.est-talk { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; background: transparent; color: var(--on-dark-soft); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; padding: 11px; margin-top: 9px; border-radius: 8px; transition: color .14s, background .14s; }
.est-talk:hover { color: var(--on-dark); background: rgba(246,242,234,.04); }

/* field controls (shared by entry + modal) */
.cf-lab { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); display: block; }
.cf-ctl { margin-top: 6px; display: flex; align-items: center; gap: 9px; background: rgba(8,14,26,.6); border: 1px solid var(--line-dark); border-radius: 10px; padding: 11px 12px; transition: border-color .15s; }
.cf-ctl:hover, .cf-ctl:focus-within { border-color: var(--on-dark-faint); }
.cf-ctl select { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--on-dark); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.cf-ctl select option { color: #11192b; background: #fff; }
.cf-caret { color: var(--on-dark-faint); flex: 0 0 auto; }
.cf-ctl.num { margin-top: 6px; }
.cf-ctl.num input { flex: 1; min-width: 0; -moz-appearance: textfield; background: transparent; border: none; outline: none; color: var(--on-dark); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cf-ctl.num input::-webkit-outer-spin-button, .cf-ctl.num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf-unit { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-faint); flex: 0 0 auto; }

/* segmented control */
.est-seg { display: grid; gap: 7px; margin-top: 7px; }
.est-seg.c3 { grid-template-columns: repeat(3, 1fr); }
.est-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; background: rgba(8,14,26,.6); border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 6px; color: var(--on-dark-soft); cursor: pointer; transition: color .14s, border-color .14s, background .14s; }
.est-seg button:hover { color: var(--on-dark); border-color: var(--on-dark-faint); background: rgba(21,34,58,.66); }
.est-seg button.on { background: var(--orange); border-color: var(--orange); color: #1a1205; }
.est-seg .sg-main { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; }
.est-seg .sg-main svg { opacity: .9; flex: 0 0 auto; }
.est-seg .sg-sub { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .02em; line-height: 1; white-space: nowrap; color: var(--on-dark-faint); }
.est-seg button:hover .sg-sub { color: var(--on-dark-soft); }
.est-seg button.on .sg-sub { color: rgba(26,18,5,.62); }

/* measure (CBM/KG) toggle */
.est-mtoggle { display: inline-flex; gap: 4px; }
.est-mtoggle button { background: #0d1626; border: 1px solid var(--line-dark); border-radius: 7px; padding: 4px 10px; color: var(--on-dark-soft); font-family: var(--font-mono); font-size: 11px; cursor: pointer; transition: all .14s; }
.est-mtoggle button.on { background: var(--orange); border-color: var(--orange); color: #1a1205; }

/* location picker */
.locpick { position: relative; width: 100%; min-width: 0; }
.est-field > .locpick { margin-top: 6px; }
.locpick .cf-ctl { margin-top: 0; cursor: text; }
.lp-ctl.open { border-color: var(--orange); }
.lp-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--on-dark); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.lp-input::placeholder { color: var(--on-dark-faint); font-weight: 500; }
.lp-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #0f1a2e; border: 1px solid rgba(246,242,234,.18); border-radius: 12px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.7); padding: 6px; animation: lpfade .14s ease; }
.lp-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.lp-opt { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; background: transparent; border: none; border-radius: 8px; padding: 9px 11px; color: var(--on-dark-soft); font-family: var(--font-display); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .12s, color .12s; }
.lp-opt svg { color: var(--on-dark-faint); flex: 0 0 auto; }
.lp-opt:hover { background: rgba(246,242,234,.07); color: var(--on-dark); }
.lp-opt.on, .lp-opt.on svg { color: var(--orange); }
.lp-opt-l { flex: 1; }
.lp-chk { margin-left: auto; }
@keyframes lpfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes qmfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmpop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes calcfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes eghpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes eghring { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }

/* ── ESTIMATOR — results modal (lead gate) ─────────────── */
.est-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,22,.74); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; animation: qmfade .2s ease; }
.est-modal { position: relative; width: 880px; max-width: 100%; background: linear-gradient(180deg, #1b2840, #111c30); border: 1px solid rgba(246,242,234,.16); border-radius: 22px; box-shadow: 0 50px 110px -20px rgba(0,0,0,.85); color: var(--on-dark); animation: qmpop .28s cubic-bezier(.2,.8,.3,1); margin: auto; }
.est-mhead { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line-dark); }
.est-mhead-l { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.est-x { width: 32px; height: 32px; border-radius: 50%; background: rgba(246,242,234,.08); color: var(--on-dark-soft); font-size: 21px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .14s; }
.est-x:hover { background: rgba(246,242,234,.16); }
.est-body { padding: 22px 24px; }
.est-gate { animation: calcfade .35s ease; }
.est-gate-hero { text-align: center; padding: 6px 0 22px; }
.egh-burst { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; }
.egh-tick { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #06140d; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(31,158,107,.45); animation: eghpop .5s cubic-bezier(.2,1.3,.5,1) both; }
.egh-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: eghring .7s ease-out .12s both; }
.egh-title { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: -.015em; margin-top: 16px; }
.egh-route { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-soft); margin-top: 9px; }
.egh-route svg { color: var(--on-dark-faint); }
.egh-best { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 16px; padding: 8px 15px; border-radius: 22px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.4); font-size: 13px; color: var(--on-dark-soft); }
.egh-best b { color: var(--on-dark); font-weight: 600; }
.egh-best svg { color: var(--orange); flex: 0 0 auto; }
.egh-best-ic { display: inline-flex; }
.egh-best-sep { width: 1px; height: 13px; background: var(--line-dark); margin: 0 4px; }
.qm-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--on-dark-faint); }
.est-gate-form { background: linear-gradient(135deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.05)); border: 1px solid rgba(var(--accent-rgb),.42); border-radius: 16px; padding: 20px; }
.egform-line { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; margin-bottom: 15px; }
.est-gate-row { display: flex; gap: 10px; align-items: stretch; position: relative; }
.egform-mail { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--on-dark-faint); pointer-events: none; z-index: 1; }
.qm-input { width: 100%; background: rgba(8,14,26,.5); border: 1px solid var(--line-dark); border-radius: 10px; padding: 13px 14px; color: var(--on-dark); font-family: var(--font-body); font-size: 14.5px; outline: none; transition: border-color .14s; }
.qm-input::placeholder { color: var(--on-dark-faint); }
.qm-input:focus { border-color: var(--orange); }
.egform-input { flex: 1; padding-left: 42px; font-size: 15px; }
.est-gate-send { flex: 0 0 auto; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.est-gate-send:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.est-promo { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; justify-content: center; }
.est-promo input { position: absolute; opacity: 0; width: 0; height: 0; }
.est-promo-box { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-dark); background: rgba(8,14,26,.5); display: flex; align-items: center; justify-content: center; color: transparent; margin-top: 1px; transition: all .15s; }
.est-promo input:checked + .est-promo-box { background: var(--orange); border-color: var(--orange); color: #1a1205; }
.est-promo-txt { font-size: 12.5px; color: var(--on-dark-soft); line-height: 1.45; }
.est-gate-preview { position: relative; margin-top: 16px; max-height: 132px; overflow: hidden; border-radius: 14px; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 24%, transparent 94%); mask-image: linear-gradient(180deg, #000 0%, #000 24%, transparent 94%); }
.est-gate-cards { display: flex; flex-direction: column; gap: 12px; filter: blur(8px) saturate(.85); opacity: .5; pointer-events: none; user-select: none; padding-top: 6px; }
.est-gate-veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 0 24px; }
.egv-lock { width: 34px; height: 34px; border-radius: 50%; background: rgba(8,14,26,.85); border: 1px solid rgba(var(--accent-rgb),.45); color: var(--orange); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.egv-txt { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--on-dark); }
.est-gate-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.est-gate-trust { display: inline-flex; gap: 7px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--on-dark-faint); }
.est-gate-trust svg { color: var(--green); flex: 0 0 auto; }
.est-res-edit { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--on-dark-soft); background: rgba(8,14,26,.5); border: 1px solid var(--line-dark); padding: 6px 11px; border-radius: 20px; cursor: pointer; transition: all .15s; }
.est-res-edit:hover { color: var(--on-dark); border-color: rgba(var(--accent-rgb),.4); }
.est-res-edit svg { color: var(--orange); }

/* preview route cards (blurred) */
.est-card { border: 1px solid var(--line-dark); border-radius: 14px; padding: 18px; background: rgba(8,14,26,.32); position: relative; }
.est-card.rec { border-color: rgba(var(--accent-rgb),.55); background: linear-gradient(180deg, rgba(var(--accent-rgb),.08), rgba(8,14,26,.32)); }
.est-rec-badge { position: absolute; top: -10px; left: 18px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: #1a1205; background: var(--orange); padding: 4px 10px; border-radius: 20px; }
.est-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.est-card-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 11px; }
.est-card-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--graphite); color: var(--orange); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.est-card-cost { text-align: right; flex: 0 0 auto; }
.est-range { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.03em; white-space: nowrap; }
.est-range .rg-dash { color: var(--on-dark-faint); margin: 0 3px; font-weight: 500; }
.est-range.lv1 { color: #6fd3a0; } .est-range.lv2 { color: var(--orange-200); } .est-range.lv3 { color: var(--orange); }
.est-cost-basis { display: block; font-size: 11px; color: var(--on-dark-soft); margin-top: 3px; max-width: 230px; }
.est-card-window { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-dark); margin-top: 14px; padding: 10px 12px; background: rgba(8,14,26,.4); border-radius: 9px; }

/* ── TRANSIT WINDOWS ────────────────────────────────────── */
.transit-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.transit-table { width: 100%; border-collapse: collapse; }
.transit-table thead th {
  padding: 13px 20px; text-align: left;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.transit-table tbody td {
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.transit-table tbody tr:last-child td { border-bottom: none; }
.transit-table tbody tr:hover { background: var(--surface); }
.ch { display: flex; align-items: center; gap: 12px; }
.ch-ic { font-size: 20px; flex-shrink: 0; }
.ch-name { font-weight: 600; font-size: 15px; }
.ch-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.t-big {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; letter-spacing: -.03em; margin-right: 4px;
}
.t-big.fast { color: var(--orange); }
.t-unit { font-size: 13px; color: var(--muted); }
.t-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--orange); }
.t-chip .dot { background: var(--orange); width: 6px; height: 6px; }
.transit-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 14px 20px; border-top: 1px solid var(--line); line-height: 1.6;
}

/* ── HANDOFF CARDS ──────────────────────────────────────── */
.handoff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.handoff-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--line); transition: border-color .2s;
}
.handoff-card:hover { border-color: rgba(240,130,46,.35); }
.hc-no {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: .04em; margin-bottom: 12px;
}
.hc-icon {
  font-size: 22px; margin-bottom: 12px; width: 46px; height: 46px;
  background: rgba(240,130,46,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.handoff-card h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  margin-bottom: 10px; color: var(--ink); line-height: 1.3;
}
.handoff-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── COMPANY INTRO ──────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 56px; align-items: start;
}
.about-video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer; text-decoration: none;
}
.about-video::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,20,38,.9) 0%, rgba(12,20,38,.15) 60%, transparent 100%);
}
.ph-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; color: var(--on-dark-soft);
  background: rgba(12,20,38,.4); border: 1px solid var(--line-dark);
  padding: 4px 8px; border-radius: 4px; z-index: 1;
}
.av-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white); padding-left: 4px;
  transition: transform .15s, background .15s;
}
.about-video:hover .av-play { transform: translate(-50%,-50%) scale(1.08); }
.av-meta { position: relative; padding: 16px; z-index: 1; }
.av-dur { font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-soft); margin-bottom: 6px; }
.av-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--on-dark); line-height: 1.35; margin-bottom: 6px; }
.av-credit { font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-soft); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.stat-unit { font-size: 22px; }
.stat-lab { font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.stat-note { font-size: 13px; color: var(--muted); }

/* Team */
.team-header {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.team-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.team-hint { font-size: 14px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.team-card { text-align: center; }
.team-photo {
  position: relative; aspect-ratio: 1; background: var(--navy);
  border-radius: var(--radius); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.team-photo .ph-tag { top: 8px; left: 8px; font-size: 9px; }
.team-init {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: rgba(246,242,234,.2); letter-spacing: -.02em;
}
.team-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.team-role { font-family: var(--font-mono); font-size: 10.5px; color: var(--orange); letter-spacing: .04em; margin-bottom: 8px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── SERVICE PATHWAYS ───────────────────────────────────── */
.tier-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.tier-no {
  font-family: var(--font-mono); font-size: 12px; color: var(--orange);
  background: rgba(240,130,46,.12); padding: 4px 10px; border-radius: 4px;
}
.tier-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.tier-hint { font-size: 14px; color: var(--muted); }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.mode-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s;
}
.mode-card:hover { border-color: rgba(240,130,46,.35); }
.mc-top { display: flex; align-items: center; justify-content: space-between; }
.mc-icon {
  font-size: 22px; background: rgba(240,130,46,.1); width: 52px; height: 52px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.mc-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  color: var(--muted); background: var(--surface-2); padding: 4px 9px; border-radius: 4px;
}
.mode-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
.mc-for { display: flex; flex-direction: column; gap: 4px; }
.mc-for-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.mc-for span:last-child { font-size: 14px; color: var(--muted); }
.mc-fact { font-size: 14px; color: var(--orange); display: flex; align-items: center; gap: 6px; }
.mc-link { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--orange); margin-top: auto; }
.mc-link:hover { text-decoration: underline; }

/* Included */
.included-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.included-item {
  display: flex; gap: 16px; padding: 24px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
}
.inc-icon {
  font-size: 20px; flex-shrink: 0; width: 44px; height: 44px;
  background: rgba(240,130,46,.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.inc-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.inc-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.inc-fact { font-size: 13px; color: var(--green-dark); font-weight: 500; }

/* ── WAREHOUSES ─────────────────────────────────────────── */
.wh-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.wh-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.wh-img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-start; padding: 10px;
  background-color: var(--navy);
}
.wh-self {
  font-family: var(--font-mono); font-size: 10px; color: var(--on-dark);
  background: rgba(12,20,38,.55); padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.wh-meta { padding: 16px; background: var(--surface); }
.wh-city { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.wh-region { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--orange); margin-bottom: 10px; }
.wh-figs { display: flex; gap: 16px; margin-bottom: 10px; }
.wf { display: flex; flex-direction: column; gap: 2px; }
.wf-n { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.wf-l { font-size: 11px; color: var(--muted); }
.wh-tags { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.wh-total {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line);
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tm-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.tm-stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; }
.tm-quote { font-size: 15px; line-height: 1.65; color: var(--ink); font-style: italic; flex: 1; }
.tm-author { display: flex; align-items: center; gap: 12px; }
.tm-av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0; border: 1px solid var(--line);
}
.tm-name { font-weight: 600; font-size: 14px; }
.tm-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── PARTNER NETWORK ────────────────────────────────────── */
.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 16px; }
.lw-group { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.lw-head {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.lw-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.lw-tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink);
}
.partner-disc { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); line-height: 1.6; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section { background: var(--surface); border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: center; }
.cta-btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta-contact {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px;
}
.cc-item { display: flex; flex-direction: column; gap: 4px; }
.cc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.cc-val { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.footer-logo { flex-shrink: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; flex: 1; }
.footer-nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ── RESPONSIVE (≤ 768px) ───────────────────────────────── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  :root { --section-gap: 56px; }

  /* Nav */
  .nav { flex-wrap: wrap; height: auto; padding: 14px 0; gap: 10px; }
  .nav-links { display: none; }
  .nav-wa { display: none; }
  .nav-right { margin-left: auto; gap: 8px; }
  .nav-right .btn { padding: 10px 14px; font-size: 13px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .est-entry { padding: 18px; }
  .hc-row { max-width: none; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .est-gate-row { flex-direction: column; }
  .est-gate-send { width: 100%; justify-content: center; }

  /* Sections */
  .sec-head.row { flex-direction: column; }
  .sec-head.row .btn { align-self: flex-start; }
  .handoff-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid .team-card:nth-child(5) { grid-column: 1 / -1; }
  .mode-grid { grid-template-columns: 1fr; }
  .included-row { grid-template-columns: 1fr; }
  .wh-grid { grid-template-columns: 1fr 1fr; }
  .tm-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-copy { white-space: normal; }
  .transit-table { display: block; overflow-x: auto; }

  /* Transit table responsive */
  .t-big { font-size: 18px; }
}

@media (max-width: 480px) {
  .handoff-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: 1fr; }
  .wh-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   LIGHT THEME  ·  [data-theme="light"]
   Warm-paper hero + estimator. Remap the on-dark ink tokens,
   patch the hard-coded dark fills, keep photo-overlay text light.
   ════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --on-dark:       #1b2640;
  --on-dark-soft:  rgba(27,38,64,.64);
  --on-dark-faint: rgba(27,38,64,.42);
  --line-dark:     rgba(27,38,64,.13);
  --line-dark-2:   rgba(27,38,64,.07);
  --orange-200:    #c25e12;
  --graphite:      #ece4d4;
}

/* hero photo wash → warm paper (left solid, fading right) */
[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(245,241,232,.97) 0%, rgba(245,241,232,.9) 42%, rgba(245,241,232,.74) 74%, rgba(245,241,232,.58) 100%),
    linear-gradient(0deg, rgba(245,241,232,.92) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb),.16), transparent 60%);
}
[data-theme="light"] .hero-kicker { color: var(--orange); }
[data-theme="light"] .hero-kicker .dot { background: var(--orange); }

/* estimator entry + modal surfaces → light */
[data-theme="light"] .est-entry { background: linear-gradient(180deg, #fffdf8, #f3eee3); border-color: rgba(27,38,64,.14); box-shadow: 0 30px 64px -32px rgba(27,38,64,.4); }
[data-theme="light"] .est-modal { background: linear-gradient(180deg, #fffdf8, #f4efe5); border-color: rgba(27,38,64,.14); box-shadow: 0 50px 110px -20px rgba(27,38,64,.45); }
[data-theme="light"] .est-overlay { background: rgba(27,38,64,.45); }
[data-theme="light"] .lp-menu { background: #fffdf8; border-color: rgba(27,38,64,.16); box-shadow: 0 24px 60px -16px rgba(27,38,64,.35); }

/* form fields / chips / preview cards → warm light fill */
[data-theme="light"] .cf-ctl,
[data-theme="light"] .est-seg button,
[data-theme="light"] .est-mtoggle button,
[data-theme="light"] .qm-input,
[data-theme="light"] .est-card,
[data-theme="light"] .est-card-window,
[data-theme="light"] .est-res-edit,
[data-theme="light"] .est-promo-box { background: #f1ebdf; }
[data-theme="light"] .est-card.rec { background: linear-gradient(180deg, rgba(var(--accent-rgb),.1), #f1ebdf); }

/* active segments / toggles stay orange */
[data-theme="light"] .est-seg button.on,
[data-theme="light"] .est-mtoggle button.on,
[data-theme="light"] .est-promo input:checked + .est-promo-box { background: var(--orange); color: #1a1205; }

/* hover tints → dark-on-light */
[data-theme="light"] .est-x { background: rgba(27,38,64,.05); }
[data-theme="light"] .est-talk:hover,
[data-theme="light"] .est-x:hover,
[data-theme="light"] .lp-opt:hover { background: rgba(27,38,64,.07); }
[data-theme="light"] .egv-lock { background: rgba(245,241,232,.92); }

/* photo-overlay text must stay LIGHT over dark imagery */
[data-theme="light"] .av-title,
[data-theme="light"] .wh-self { color: #f6f2ea; }
[data-theme="light"] .av-dur,
[data-theme="light"] .av-credit,
[data-theme="light"] .ph-tag { color: rgba(246,242,234,.82); }
