/* ==========================================================================
   渡运 DOVO — a calm freight workbench landing page
   My own implementation of the reference design: tokens first, then each
   block of the page top-to-bottom, with the three adaptive breakpoints at
   the end. Palette: warm terracotta on paper-teal.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
@font-face {
  font-family: "Dovo Serif";
  src: url("fonts/noto-serif-sc.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #F8FAF9;
  --white: #fff;
  --ink: #203943;
  --accent: #B54F36;
  --accent-pressed: #943F2C;
  --muted: #5F7279;
  --quiet: #7F9399;
  --line: #D7E1DF;
  --soft: #EDF2F1;
  --selection-bg: #F5EAE4;
  --accent-line: #DDAC9D;
  --warning: #856319;
  --error: #9A3046;
  --radius: 4px;
  --sans: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Dovo Serif", "Songti SC", serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  line-break: strict;
  font-variant-numeric: tabular-nums;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: var(--quiet) var(--soft);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; color: inherit; background: none; }
button:disabled { cursor: wait; opacity: .68; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
strong { font-weight: 650; }
button, input, select, a, summary { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
}
::selection { background: #E8C8BA; color: var(--ink); }
[x-cloak] { display: none !important; }

/* ---- Small shared pieces -------------------------------------------------- */
.wrap { width: calc(100% - 128px); max-width: 1240px; margin-inline: auto; }
.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter;
  flex-shrink: 0;
}
.tiny-icon { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.mobile-only { display: none; }
.skip-link {
  position: fixed; top: -80px; left: 24px; z-index: 100;
  background: var(--accent); color: white; padding: 12px 20px;
}
.skip-link:focus { top: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 24px;
  background: var(--accent); color: white;
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 15px 24px;
  font-size: 15px; font-weight: 600; line-height: 1.5;
  transition: background 180ms, transform 180ms, box-shadow 180ms;
  white-space: nowrap;
}
.button:hover {
  background: var(--accent-pressed); border-color: var(--accent-pressed);
  box-shadow: 0 3px 8px #B54F3615;
}
.button:active { transform: translateY(1px) scale(.985); }
.button.small { padding: 11px 17px; gap: 18px; font-size: 14px; }

.text-button {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 550; padding: 8px 0;
  transition: color 180ms;
}
.text-button:hover { color: var(--accent); }

.outlined-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 13px; min-height: 38px; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--white);
  font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: border-color 180ms, color 180ms, background 180ms, transform 180ms;
}
.outlined-button:hover { border-color: var(--accent); color: var(--accent); background: var(--paper); }
.outlined-button:active { transform: scale(.975); }
.outlined-button .icon { width: 16px; height: 16px; }

.eyebrow { color: var(--muted); font-size: 13px; line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  height: 88px;
  display: flex; align-items: center;
  border-bottom: .5px solid var(--line);
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 37px; height: 37px; color: var(--accent); }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: -1.3px; line-height: 1; }
.brand-cn {
  font-size: 16px; font-weight: 600;
  border-left: 1px solid var(--line);
  padding-left: 13px; margin-left: 3px; line-height: 20px;
}
.desktop-nav { display: flex; gap: 38px; margin-left: 91px; font-size: 14px; }
.desktop-nav a { padding: 14px 0; position: relative; }
.desktop-nav a:after {
  content: ""; position: absolute; bottom: 8px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 180ms;
}
.desktop-nav a:hover:after { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 29px; }
.workspace-link { font-size: 13px; }
.workspace-link span { margin-left: 8px; }
.workspace-link:hover { color: var(--accent); }
.menu-toggle, .mobile-nav { display: none; }

/* ---- Hero: kicker, headline, route ---------------------------------------- */
.hero { padding-bottom: 64px; }
.hero-copy { text-align: center; padding-top: 49px; animation: enter 480ms var(--ease) both; }
.hero-kicker {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 13px; color: var(--muted);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 68px; font-weight: 600; line-height: 1.3; letter-spacing: -2.4px;
  margin-top: 17px;
}
.hero h1 span { white-space: nowrap; }
.hero-description { margin-top: 17px; font-size: 16px; color: var(--muted); line-height: 1.85; }

.route-stage {
  position: relative;
  margin-top: 12px; height: 306px;
  animation: enter 550ms 90ms var(--ease) both;
}
.map-crop { height: 100%; position: relative; overflow: hidden; }
.world-map { width: 100%; height: auto; overflow: visible; }

.route-shadow { fill: none; stroke: var(--soft); stroke-width: 10; opacity: .45; }
.route-remaining { fill: none; stroke: #AEBFBD; stroke-width: 1.5; stroke-dasharray: 3 6; }
.route-progress { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }

.port-point circle:nth-child(odd) { fill: var(--paper); stroke: var(--accent-line); stroke-width: 1.5; }
.port-point circle:nth-child(even) { fill: var(--accent); }
.port-code { font: 700 38px var(--sans); fill: var(--ink); letter-spacing: -1px; }
.port-name { font: 500 14px var(--sans); fill: var(--ink); }
.port-note { font: 400 12px var(--sans); fill: var(--muted); }

.vessel-clearance { fill: var(--paper); }
.vessel-body { fill: var(--accent); }
.vessel-waterline { stroke: var(--accent); }
.freight-tag {
  fill: var(--white); stroke: var(--line); stroke-width: 1;
  filter: drop-shadow(0 4px 7px #20394308);
}
.freight-id { font: 600 12px var(--mono); fill: var(--accent); letter-spacing: .5px; }
.freight-state { font: 500 13px var(--sans); fill: var(--ink); }

/* Journey player: play trigger, three stage pills, live date. */
.journey-control {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 28px; height: 50px;
}
.journey-play {
  justify-self: start; padding: 9px 0;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 13px; transition: color 180ms;
}
.journey-play .icon { width: 17px; height: 17px; stroke: var(--accent); }
.journey-play:hover { color: var(--accent); }
.journey-steps {
  display: flex; padding: 4px; position: relative;
  background: var(--soft); border: 1px solid var(--line); border-radius: 5px;
}
.journey-steps button {
  position: relative; z-index: 1; width: 122px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 8px;
  font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.5;
  transition: color 220ms;
}
.journey-steps button:hover { color: var(--accent); }
.journey-steps button:active { background: var(--selection-bg); }
.journey-steps button.active { color: var(--accent); }
.journey-selector {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 122px;
  border-radius: 3px; background: white;
  box-shadow: 0 1px 3px #20394310;
  transition: transform 260ms var(--ease);
}
.step-dot {
  width: 11px; height: 11px;
  border: 1.2px solid var(--quiet); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.active .step-dot { border: 3px solid var(--accent); }
.step-dot.done { color: white; background: var(--quiet); border-color: var(--quiet); }
.journey-date {
  font-size: 12px; color: var(--muted);
  justify-self: end; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---- Quote form ------------------------------------------------------------ */
.quote-wrap {
  margin-top: 25px;
  animation: enter 550ms 170ms var(--ease) both;
  scroll-margin-top: 24px;
}
.quote-form {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 22px 1.12fr 1fr 1.05fr 178px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 3px 5px #20394303, 0 10px 30px #20394305;
  background: white;
}
.quote-field {
  display: flex; flex-direction: column; gap: 6px;
  padding: 4px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.quote-field:first-child { border-right: 0; }
.quote-field span { font-size: 12px; color: var(--muted); padding-left: 3px; }
.quote-field select {
  width: 100%; height: 30px;
  font-size: 15px; font-weight: 550; color: var(--ink);
  border: 0; background-color: white;
  padding: 0 20px 0 0; border-radius: 0;
  cursor: pointer; accent-color: var(--accent); line-height: 1.5;
}
.quote-field select:focus-visible { outline-offset: 2px; }
.form-route-arrow { color: var(--quiet); font-size: 23px; }
.cargo-field { border-right: 0; }
.quote-submit { height: 60px; padding-inline: 20px; font-size: 15px; gap: 30px; }
.spinner {
  width: 17px; height: 17px;
  border: 1.5px solid #FFFFFF60; border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ---- Product: heading, tabs, work surface ----------------------------------- */
.product-section {
  border-top: .5px solid var(--line);
  padding-top: 78px; padding-bottom: 75px;
}
.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 39px;
}
.section-heading h2, .plan-copy h2, .faq-section h2 {
  font-family: var(--serif);
  font-weight: 600; font-size: 44px; line-height: 1.4; letter-spacing: -1.1px;
}
.section-heading > p {
  font-size: 15px; color: var(--muted);
  padding-bottom: 5px; line-height: 1.9;
}

.product-tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  border-block: .5px solid var(--line);
}
.product-tabs button {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; text-align: left; padding: 18px 24px;
  transition: color 220ms;
}
.product-tabs button + button { border-left: 1px solid var(--line); }
.product-tabs button:hover { color: var(--accent); }
.product-tabs button:active { background: var(--selection-bg); }
.product-tabs button[aria-selected="true"] { color: var(--accent); }
.product-tabs strong { display: block; font-size: 15px; line-height: 1.5; }
.product-tabs button[aria-selected="true"] .icon { color: var(--accent); }
.product-tab-indicator {
  position: absolute; inset: 0 auto 0 0; width: 25%;
  background: var(--selection-bg);
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform 260ms var(--ease);
}

.workspace-surface {
  border: 1px solid var(--line); border-radius: 6px;
  background: white; overflow: hidden;
}
.workspace-topbar {
  min-height: 65px; padding: 15px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: .5px solid var(--line);
  background: var(--paper);
}
.workspace-brand { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.workspace-brand svg { width: 26px; height: 26px; color: var(--accent); }
.workspace-brand > span { color: var(--muted); }
.export-button { font-size: 12px; color: var(--muted); }
.export-button .icon { width: 16px; height: 16px; }

.workspace-content { padding: 27px 35px 22px; min-height: 386px; }
.workspace-caption {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 25px; gap: 20px;
}
.workspace-caption .eyebrow { font-size: 12px; }
.workspace-content h3 {
  font-size: 23px; font-weight: 650; line-height: 1.5;
  margin-top: 5px; letter-spacing: -.6px;
}
.status-label {
  font-size: 12px; background: var(--soft); color: var(--muted);
  padding: 5px 10px; border-radius: 3px; white-space: nowrap;
}
.status-label.saved { color: var(--accent); background: var(--selection-bg); }

/* Tab 1 — rate table and saved draft */
.quote-table { width: 100%; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 1.65fr 1.15fr 1fr 128px;
  align-items: center; gap: 20px;
}
.table-head {
  font-size: 12px; color: var(--muted);
  padding: 0 0 12px;
  border-bottom: .5px solid var(--line);
}
.table-head > span:nth-child(3) { text-align: right; }
.table-row {
  padding: 15px 0;
  border-bottom: .5px solid var(--line);
  font-size: 13px;
}
.table-row:last-child { border-bottom: 0; }
.table-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.table-row .money { text-align: right; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.service-cell { display: flex; align-items: center; gap: 16px; }
.service-index {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--quiet);
  width: 31px; height: 31px; flex-shrink: 0;
}
.service-cell strong { font-size: 14px; }

.workspace-file-strip {
  display: flex; align-items: center; gap: 19px;
  border-top: .5px solid var(--line);
  padding-top: 14px; margin-top: 6px;
  font-size: 12px; color: var(--muted);
}
.workspace-file-strip > .icon { width: 16px; height: 16px; stroke: var(--quiet); }
.workspace-file-strip > strong { font-size: 12px; color: var(--ink); }
.workspace-file-strip .file-needed { color: var(--warning); }
.workspace-file-strip button { margin-left: auto; padding: 0; font-size: 12px; }
.workspace-file-strip button .icon { width: 16px; height: 16px; }

.draft-detail {
  display: flex; gap: 25px; align-items: center;
  min-height: 224px; padding: 15px 0;
}
.draft-icon {
  width: 65px; height: 65px;
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent); background: var(--paper); border-radius: 4px;
}
.draft-icon svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.draft-detail h4 { font-size: 21px; margin: 6px 0 7px; }
.draft-detail p { font-size: 14px; }
.draft-detail .draft-id { font-size: 12px; font-family: var(--mono); color: var(--accent); }
.draft-detail span { display: block; color: var(--muted); font-size: 12px; margin-top: 12px; }
.draft-actions {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

/* Tab 2 — tracking */
.tracking-content {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px;
  padding-top: 38px; padding-bottom: 36px;
}
.tracking-summary h3 { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.route-inline { font-size: 14px; margin-top: 14px; }
.route-inline span { margin: 0 15px; color: var(--quiet); }
.arrival-number { display: flex; align-items: center; gap: 24px; margin: 18px 0 15px; }
.arrival-number > strong {
  font-size: 61px; font-weight: 500; letter-spacing: -3px;
  line-height: 1.3; font-variant-numeric: tabular-nums;
}
.arrival-number > span { font-size: 12px; color: var(--muted); line-height: 1.8; }
.tracking-events { list-style: none; padding: 0; margin: 0; }
.tracking-events li { position: relative; display: flex; gap: 21px; padding-bottom: 27px; }
.tracking-events li:before {
  content: ""; width: 1px; background: var(--line);
  position: absolute; left: 5px; top: 14px; bottom: 0;
}
.tracking-events li:last-child:before { display: none; }
.event-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line); margin-top: 4px; flex-shrink: 0; position: relative;
}
.current .event-dot { background: var(--accent); outline: 4px solid var(--selection-bg); }
.tracking-events time { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.tracking-events strong { display: block; font-size: 14px; }
.tracking-events p { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Tab 3 — documents */
.document-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.document-count strong { font-size: 24px; color: var(--accent); }
.document-row {
  display: flex; align-items: center; gap: 17px;
  min-height: 59px;
  border-top: .5px solid var(--line);
}
.document-row .document-icon {
  width: 21px; height: 24px;
  fill: none; stroke: var(--quiet); stroke-width: 1.1; flex-shrink: 0;
}
.document-row strong { display: block; font-size: 13px; }
.document-row small {
  display: block; font-size: 12px; color: var(--muted);
  max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-status { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.doc-status.missing { color: var(--warning); }
.upload-button { cursor: pointer; position: relative; font-size: 12px; min-height: 38px; padding: 7px 12px; }
.upload-button input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-button:hover { border-color: var(--accent); color: var(--accent); }
.upload-button:active { background: var(--selection-bg); }
.upload-button.upload-needed { color: white; background: var(--accent); border-color: var(--accent); }
.upload-button.upload-needed:hover { background: var(--accent-pressed); border-color: var(--accent-pressed); }
.upload-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.document-footer {
  display: flex; justify-content: flex-end; align-items: center;
  border-top: .5px solid var(--line);
  padding-top: 13px; color: var(--muted); font-size: 12px;
}

/* Tab 4 — team */
.team-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: .5px solid var(--line); }
.avatar {
  height: 39px; width: 39px;
  display: grid; place-items: center;
  background: var(--soft); border-radius: 50%;
  font-size: 13px; font-family: var(--mono); color: var(--muted);
}
.member-name { width: 185px; flex-shrink: 0; }
.member-name strong, .member-task strong { display: block; font-size: 14px; }
.member-name small, .member-task small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.member-task { flex: 1; }
.task-status { margin-left: auto; font-size: 12px; color: var(--muted); }
.workspace-bottom-note {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 12px; margin-top: 17px;
}
.workspace-bottom-note .icon { width: 15px; height: 15px; stroke: var(--quiet); }

/* ---- Plans ------------------------------------------------------------------- */
.plans-section { background: var(--soft); border-block: .5px solid var(--line); padding-block: 78px; }
.plan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.plan-copy h2 { font-size: 46px; line-height: 1.4; }
.plan-copy > p { margin-top: 23px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.included-features {
  display: flex; flex-direction: column; gap: 11px;
  margin-top: 29px; font-size: 13px;
}
.included-features span { display: flex; gap: 10px; align-items: center; }
.included-features .icon { width: 15px; height: 15px; color: var(--muted); }

.plan-calculator {
  padding: 33px 39px 25px;
  background: white; border: 1px solid var(--line); border-radius: 5px;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-top > strong { font-size: 16px; }
.plan-top > strong > span {
  display: block; font-size: 12px; color: var(--muted);
  font-weight: 400; margin-top: 5px;
}
.billing-toggle {
  position: relative; display: flex; padding: 3px;
  background: var(--soft); border-radius: 4px; border: 1px solid var(--line);
}
.billing-toggle button {
  width: 62px; position: relative; z-index: 1;
  padding: 5px 8px; font-size: 12px; color: var(--muted);
}
.billing-toggle button:hover { color: var(--accent); }
.billing-toggle button:active { background: var(--selection-bg); }
.billing-toggle button[aria-pressed="true"] { color: var(--ink); }
.billing-toggle > span {
  position: absolute; left: 3px; top: 3px; bottom: 3px; width: 62px;
  background: white; border-radius: 2px;
  box-shadow: 0 1px 2px #2039430A;
  transition: transform 220ms var(--ease);
}
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.plan-price strong {
  font-size: 76px; font-weight: 500; letter-spacing: -4px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.plan-price .currency { font-size: 27px; align-self: flex-start; margin-top: 10px; }
.plan-price > span:last-child { font-size: 13px; color: var(--muted); margin-left: 2px; }
.billing-note { color: var(--muted); font-size: 12px; margin-top: 12px; min-height: 20px; }

.member-control { margin-top: 30px; padding-top: 20px; border-top: .5px solid var(--line); }
.member-control label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 13px; }
.member-control label strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.member-control input {
  width: 100%; display: block; margin: 0; height: 4px;
  appearance: none; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));
  accent-color: var(--accent); cursor: pointer;
}
.member-control input::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid white;
  box-shadow: 0 0 0 1px var(--accent);
}
.member-control input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid white;
}
.member-control > div {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-top: 13px;
}
.plan-download { width: 100%; margin-top: 24px; gap: 60px; font-size: 14px; padding-block: 13px; min-height: 48px; }
.plan-fineprint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---- FAQ ---------------------------------------------------------------------- */
.faq-section {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px;
  padding-block: 77px 89px;
}
.faq-section h2 { font-size: 32px; letter-spacing: -.5px; margin-top: 11px; }
.faq-list details { border-bottom: .5px solid var(--line); }
.faq-list details:first-child { border-top: .5px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 15px; cursor: pointer; list-style: none;
  font-weight: 550;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 24px; line-height: 20px; font-weight: 300; color: var(--quiet); transition: transform 180ms; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); color: var(--accent); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p { font-size: 14px; color: var(--muted); line-height: 1.9; padding: 0 30px 24px 0; max-width: 600px; }

/* ---- Footer -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #F1F5F3; padding-block: 45px 27px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 35px;
  border-bottom: 1px solid #FFFFFF1B;
}
.site-footer .brand svg { color: #E6B7A6; }
.site-footer .brand-cn { border-color: #FFFFFF30; font-weight: 400; color: #BDCECD; }
.footer-action {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--serif); font-size: 29px;
}
.footer-action .icon { width: 29px; height: 29px; stroke-width: 1; }
.footer-action:hover { color: #E6B7A6; }
.footer-bottom {
  display: flex; align-items: center; gap: 60px;
  margin-top: 25px; font-size: 12px; color: #B4C6C5;
}
.footer-bottom nav { display: flex; gap: 28px; margin-left: auto; }
.footer-bottom a:hover { color: white; }

/* ---- Quote dialog ---------------------------------------------------------------- */
.quote-dialog {
  padding: 0;
  width: min(820px, calc(100% - 40px));
  max-height: calc(100dvh - 70px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 40px #20394325;
  overflow: hidden;
}
.quote-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 260ms var(--ease) both; }
.quote-dialog::backdrop { background: #20394355; backdrop-filter: blur(4px); }
.dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 30px 24px;
  border-bottom: .5px solid var(--line);
  flex-shrink: 0;
}
.dialog-head h2 { font-size: 25px; line-height: 1.5; margin-top: 5px; font-weight: 650; letter-spacing: -.6px; }
.dialog-head .eyebrow { font-size: 12px; }
.icon-button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 4px; color: var(--muted);
}
.icon-button:active { background: var(--selection-bg); }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.dialog-body { padding: 8px 30px 24px; overflow: auto; background: var(--white); scrollbar-color: var(--quiet) var(--soft); }
.offer-row {
  background: var(--white);
  border-bottom: .5px solid var(--line);
  padding: 22px 14px;
  display: grid; grid-template-columns: 1fr 1.18fr; gap: 24px; align-items: center;
  transition: background 180ms;
}
.offer-row.chosen { background: var(--selection-bg); }
.offer-title { display: flex; gap: 12px; align-items: center; }
.offer-title h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
.offer-title p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.offer-divider { margin: 0 5px; }
.offer-badge {
  font-size: 12px; color: var(--muted);
  background: var(--soft); margin-left: auto;
  padding: 3px 6px; align-self: flex-start;
  border-radius: 2px; white-space: nowrap;
}
.offer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.offer-bottom strong {
  font-size: 25px; font-weight: 600; line-height: 1.4;
  font-variant-numeric: tabular-nums; letter-spacing: -.7px;
}
.offer-bottom small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.offer-bottom .outlined-button { font-size: 12px; min-height: 38px; }
.chosen-button { background: var(--selection-bg) !important; border-color: var(--accent-line); color: var(--accent); }
.quote-validity { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 18px; }
.inline-error { font-size: 12px; color: var(--error); margin-top: 12px; }
.dialog-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 30px;
  border-top: .5px solid var(--line);
  background: white; flex-shrink: 0; min-height: 74px;
}
.dialog-foot p { font-size: 12px; color: var(--muted); max-width: 310px; line-height: 1.7; }
.dialog-foot .button.small { font-size: 12px; padding: 9px 12px; gap: 10px; }

/* ---- Notice toast ------------------------------------------------------------------ */
.notice {
  position: fixed; bottom: 27px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: white; z-index: 50;
  padding: 12px 21px;
  border: 1px solid #49616A;
  box-shadow: 0 6px 20px #20394316;
  border-radius: 4px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  white-space: nowrap;
}
.notice .icon { width: 16px; height: 16px; color: #E6B7A6; }

/* ---- Motion -------------------------------------------------------------------------- */
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---- Adaptive: wide desktop ------------------------------------------------------------ */
@media (min-width: 1600px) {
  .hero h1 { font-size: 74px; }
  .hero-copy { padding-top: 60px; }
  .route-stage { height: 322px; }
}

/* ---- Adaptive: narrow desktop ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .desktop-nav { margin-left: 48px; gap: 25px; }
  .workspace-link { display: none; }
  .header-actions { gap: 15px; }
  .hero h1 { font-size: 57px; }
  .route-stage { height: 270px; }
  .quote-form { grid-template-columns: 1.1fr 14px 1.1fr .9fr 1fr 155px; padding: 12px; }
  .quote-field { padding-inline: 12px; }
  .quote-field select { font-size: 13px; }
  .quote-submit { gap: 18px; }
  .product-tabs button { padding-inline: 16px; gap: 10px; }
  .product-tabs button .icon { display: none; }
  .section-heading h2 { font-size: 39px; }
  .plan-layout { gap: 55px; }
  .plan-calculator { padding-inline: 28px; }
  .member-name { width: 130px; }
  .workspace-content { padding-inline: 26px; }
  .table-head, .table-row { grid-template-columns: 1.3fr 1fr .9fr 115px; gap: 15px; }
  .service-cell { gap: 11px; }
  .tracking-content { gap: 30px; }
  .faq-section { gap: 40px; }
  .port-code { font-size: 36px; }
  .footer-bottom { gap: 35px; }
}

/* ---- Adaptive: tablet / phone ------------------------------------------------------------ */
@media (max-width: 760px) {
  html { scroll-padding-top: 18px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 70px; }
  .brand { gap: 8px; }
  .brand svg { width: 29px; height: 29px; }
  .wordmark { font-size: 23px; letter-spacing: -1px; }
  .brand-cn { font-size: 13px; padding-left: 9px; margin-left: 1px; line-height: 16px; }
  .desktop-nav { display: none; }
  .header-actions .button { padding: 9px 12px; font-size: 12px; gap: 10px; }
  .header-actions .button .icon { width: 15px; height: 15px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 28px; height: 44px; padding: 0; }
  .menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: -20px; right: -20px;
    padding: 14px 20px;
    background: var(--paper);
    border-bottom: .5px solid var(--line);
    box-shadow: 0 8px 10px #20394308;
  }
  .mobile-nav a { padding: 12px 0; font-size: 14px; }

  .hero { padding-bottom: 47px; }
  .hero-copy { padding-top: 32px; }
  .hero-kicker { font-size: 12px; gap: 7px; }
  .hero h1 {
    font-size: 42px; line-height: 1.35; letter-spacing: -1.5px;
    margin-top: 21px; max-width: 355px; margin-inline: auto;
  }
  .hero h1 span { display: block; }
  .hero-description { font-size: 13px; line-height: 1.9; margin-top: 18px; }
  .mobile-only { display: initial; }

  .route-stage { height: 196px; margin-top: 20px; max-width: none; width: 100%; }
  .map-crop { height: 196px; }
  .world-map {
    position: absolute; width: 880px; height: auto;
    left: 50%; transform: translateX(-50%); top: 0; margin-left: -6px;
  }
  .origin-label { transform: translate(100px, 30px); }
  .destination-label { transform: translate(-100px, 30px); }
  .port-note { display: none; }
  .port-code { font-size: 36px; }
  .port-name { font-size: 16px; }
  .freight-id { font-size: 14px; }
  .freight-state { font-size: 15px; }
  .vessel-clearance { fill: var(--paper); }
  .vessel-body { fill: var(--accent); }
  .vessel-waterline { stroke: var(--accent); }
  .freight-tag { stroke-width: 1.3; }
  .journey-control {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; height: auto; margin-top: -13px;
  }
  .journey-play { font-size: 12px; width: 100%; justify-content: center; padding: 4px 0 10px; }
  .journey-steps button { width: 106px; padding-block: 8px; font-size: 12px; gap: 6px; }
  .journey-selector { width: 106px; }
  .journey-date { display: none; }

  .quote-wrap { margin-top: 18px; }
  .quote-form { padding: 10px; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 5px; }
  .form-route-arrow { display: none; }
  .quote-field { padding: 9px 10px 10px; border-right: 0; gap: 3px; }
  .quote-field:first-child, .quote-field:nth-of-type(3) { border-right: 1px solid var(--line); }
  .quote-field:nth-of-type(1), .quote-field:nth-of-type(2) { border-bottom: .5px solid var(--line); }
  .quote-field span { font-size: 12px; padding-left: 0; }
  .quote-field select { font-size: 16px; height: 30px; padding: 0 15px 0 0; }
  .quote-submit { grid-column: 1 / -1; margin-top: 9px; height: 46px; font-size: 14px; justify-content: space-between; padding-inline: 20px; }

  .product-section { padding-top: 45px; padding-bottom: 45px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading h2, .plan-copy h2 { font-size: 32px; line-height: 1.45; letter-spacing: -.8px; }
  .section-heading > p { font-size: 13px; line-height: 1.8; margin-top: 18px; padding-bottom: 0; }
  .section-heading > p br { display: none; }
  .product-tabs { grid-template-columns: 1fr 1fr; margin-bottom: 15px; }
  .product-tabs button { min-height: 58px; gap: 10px; padding: 13px 16px; }
  .product-tabs button:nth-of-type(2) { border-left: 1px solid var(--line); }
  .product-tabs button:nth-of-type(3) { border-left: 0; border-top: .5px solid var(--line); }
  .product-tabs button:nth-of-type(4) { border-top: .5px solid var(--line); }
  .product-tabs strong { font-size: 13px; }
  .product-tab-indicator {
    width: 50%; height: 50%;
    transform: translate(calc(mod(var(--tab-index), 2) * 100%), calc(round(down, var(--tab-index) / 2) * 100%));
  }

  .workspace-topbar { padding: 12px 16px; min-height: 55px; }
  .workspace-brand { gap: 7px; font-size: 12px; }
  .workspace-brand svg { width: 22px; height: 22px; }
  .export-button { font-size: 0; }
  .export-button .icon { width: 19px; height: 19px; }
  .workspace-content { padding: 20px 17px 17px; min-height: 400px; }
  .workspace-caption { margin-bottom: 20px; gap: 10px; align-items: flex-start; }
  .workspace-caption .eyebrow { font-size: 12px; }
  .workspace-content h3 { font-size: 18px; letter-spacing: -.5px; margin-top: 5px; }
  .status-label { font-size: 12px; padding: 4px 7px; margin-top: 4px; }

  .table-head { display: none; }
  .table-row {
    position: relative;
    grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 17px 0; align-items: center;
  }
  .table-row:first-child { border-top: .5px solid var(--line); }
  .service-cell { grid-column: 1 / -1; gap: 10px; }
  .service-cell strong { font-size: 13px; }
  .service-index { width: 26px; height: 26px; font-size: 12px; }
  .table-row > div:nth-child(2) { padding-left: 36px; font-size: 12px; grid-column: 1; }
  .table-row .money { grid-column: 2; grid-row: 2; font-size: 18px; line-height: 1.2; align-self: start; }
  .table-row > .outlined-button {
    grid-row: 3; grid-column: 2; margin-top: 0;
    min-height: 44px; font-size: 12px; padding: 8px 12px; justify-self: end;
  }
  .table-row small { font-size: 12px; margin-top: 2px; }
  .table-row > div:nth-child(2) small { margin-top: 4px; }
  .table-row .outlined-button .icon { width: 13px; height: 13px; }
  .workspace-bottom-note { font-size: 12px; line-height: 1.8; gap: 5px; margin-top: 13px; align-items: flex-start; }
  .workspace-bottom-note .icon { margin-top: 2px; width: 12px; height: 12px; }

  .draft-detail { flex-wrap: wrap; gap: 15px; min-height: 270px; align-content: center; }
  .draft-icon { width: 48px; height: 48px; }
  .draft-detail > div:nth-child(2) { flex: 1; min-width: 0; }
  .draft-detail h4 { font-size: 17px; }
  .draft-detail p { font-size: 12px; }
  .draft-detail span { font-size: 12px; }
  .draft-actions { flex-direction: row; justify-content: space-between; width: 100%; margin-left: 0; gap: 14px; padding-top: 18px; }
  .draft-actions .button { font-size: 12px; padding: 11px 13px; gap: 14px; }
  .draft-actions .text-button { font-size: 12px; }

  .tracking-content { grid-template-columns: 1fr; gap: 29px; }
  .tracking-summary h3 { font-size: 20px; }
  .route-inline { font-size: 12px; margin-top: 10px; }
  .arrival-number { margin-top: 10px; margin-bottom: 12px; }
  .arrival-number > strong { font-size: 53px; }
  .arrival-number > span { font-size: 12px; }
  .tracking-events li { gap: 16px; padding-bottom: 23px; }
  .tracking-events strong { font-size: 12px; }
  .tracking-events p, .tracking-events time { font-size: 12px; }
  .tracking-events li:last-child { padding-bottom: 0; }

  .document-count { font-size: 12px; align-self: center; }
  .document-count strong { font-size: 21px; }
  .document-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 68px;
    gap: 10px; min-height: 85px; padding: 12px 0;
  }
  .document-row .document-icon { width: 18px; height: 20px; grid-row: 1 / 3; }
  .document-row strong { font-size: 14px; }
  .document-row small { font-size: 14px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
  .doc-status { font-size: 13px; grid-column: 3; grid-row: 1; align-self: start; margin-top: 2px; }
  .document-row .upload-button { grid-column: 3; grid-row: 2; font-size: 13px; padding: 7px 6px; min-height: 44px; }
  .document-row > div { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .document-footer { gap: 10px; align-items: flex-start; font-size: 12px; padding-top: 12px; }
  .document-footer .text-button { font-size: 12px; white-space: nowrap; padding: 0; gap: 5px; }
  .document-footer .icon { width: 14px; height: 14px; }

  .team-row { display: grid; grid-template-columns: 33px 1fr auto; gap: 10px; padding: 17px 0; }
  .avatar { width: 32px; height: 32px; font-size: 12px; grid-row: 1 / 3; }
  .member-name { width: auto; grid-column: 2; }
  .member-task { grid-column: 2; }
  .member-name strong, .member-task strong { font-size: 12px; }
  .member-name small, .member-task small { font-size: 12px; }
  .task-status { grid-column: 3; grid-row: 1 / 3; align-self: start; font-size: 12px; padding-top: 3px; }
  .member-name small { display: none; }
  .member-task small { margin-top: 5px; }

  .plans-section { padding-block: 43px; }
  .plan-layout { grid-template-columns: 1fr; gap: 30px; }
  .plan-copy .eyebrow { font-size: 12px; margin-bottom: 13px; }
  .plan-copy > p { font-size: 13px; margin-top: 16px; }
  .included-features { gap: 8px; margin-top: 19px; font-size: 12px; }
  .plan-calculator { padding: 24px 25px 22px; }
  .plan-top > strong { font-size: 14px; }
  .plan-top > strong > span { font-size: 12px; }
  .plan-price strong { font-size: 64px; }
  .plan-price .currency { font-size: 23px; }
  .billing-note { font-size: 12px; }
  .member-control { margin-top: 25px; }
  .billing-toggle button { min-height: 38px; }
  .plan-download { margin-top: 23px; }
  .plan-fineprint { font-size: 12px; }

  .faq-section { grid-template-columns: 1fr; gap: 24px; padding-block: 45px 49px; }
  .faq-section h2 { font-size: 27px; margin-top: 0; }
  .faq-list summary { font-size: 13px; padding-block: 21px; }
  .faq-list details p { font-size: 12px; line-height: 1.85; padding-right: 10px; }

  .site-footer { padding-block: 30px 23px; }
  .footer-top { display: block; padding-bottom: 26px; }
  .footer-action { font-size: 24px; margin-top: 28px; justify-content: space-between; }
  .footer-action .icon { width: 24px; height: 24px; }
  .footer-bottom { margin-top: 20px; gap: 21px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; }
  .footer-bottom p { width: 100%; font-size: 12px; }
  .footer-bottom nav { margin-left: 0; gap: 20px; }

  .quote-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 30px); border-radius: 7px; }
  .dialog-head { padding: 20px 20px 17px; }
  .dialog-head h2 { font-size: 22px; }
  .dialog-body { padding: 17px 17px 20px; }
  .offer-row {
    padding: 18px 14px; display: block;
    border: 1px solid var(--line); border-radius: 4px; margin-top: 12px;
  }
  .offer-title { gap: 9px; }
  .offer-title h3 { font-size: 15px; }
  .offer-title p { font-size: 14px; line-height: 1.7; }
  .offer-badge { font-size: 12px; padding: 2px 4px; }
  .offer-bottom { gap: 10px; margin-top: 18px; }
  .offer-bottom strong { font-size: 23px; }
  .offer-bottom .outlined-button { font-size: 14px; padding: 9px 11px; gap: 8px; min-height: 44px; }
  .offer-bottom .outlined-button .icon { width: 14px; height: 14px; }
  .offer-bottom small { font-size: 14px; }
  .quote-validity { font-size: 14px; }
  .dialog-foot { padding: 15px 18px; gap: 15px; min-height: 71px; }
  .dialog-foot p { font-size: 14px; max-width: 220px; flex: 1; }
  .dialog-foot .button.small { font-size: 12px; padding: 9px 10px; gap: 7px; }

  .workspace-file-strip {
    display: grid; grid-template-columns: 18px 1fr auto;
    gap: 7px 8px; font-size: 12px; padding-top: 15px; margin-top: 9px;
  }
  .workspace-file-strip > .icon { grid-column: 1; grid-row: 1 / 4; }
  .workspace-file-strip > strong { grid-column: 2; grid-row: 1; font-size: 12px; }
  .workspace-file-strip > span { grid-column: 2; line-height: 1.7; }
  .workspace-file-strip button { grid-column: 3; grid-row: 1 / 4; font-size: 12px; min-height: 44px; gap: 6px; }
  .workspace-file-strip button .icon { width: 14px; height: 14px; }

  .notice { font-size: 12px; padding: 11px 15px; bottom: 18px; }
  .notice .icon { width: 14px; height: 14px; }
}

/* ---- Adaptive: very small phones ----------------------------------------------------------- */
@media (max-width: 359px) {
  .header-actions .button { display: none; }
  .hero h1 { font-size: 37px; }
  .world-map { width: 810px; }
  .journey-steps button, .journey-selector { width: 93px; }
  .quote-field select { font-size: 13px; }
  .brand-cn { display: none; }
}

/* ---- Accessibility: honor reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .hero-copy, .route-stage, .quote-wrap { opacity: 1; transform: none; }
}
