/* The public site: landing page and distance pages (2026-11-12). The planner's look — navy, the anchor pill,
   the blue button — as a page to read. System fonts only: nothing here waits for another host. */
:root {
  --bg: #ffffff; --bg-soft: #f1f5f9; --card: #ffffff; --line: #e2e8f0; --text: #0f172a; --muted: #475569;
  --link: #0369a1; --primary: #0369a1; --primary-hover: #075985; --navy: #0f172a; --navy-2: #1e293b;
  --sky: #38bdf8; --eca: #15803d; --warn-bg: #fffbeb; --warn-line: #fde68a; --warn-text: #92400e;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --bg-soft: #111a2c; --card: #152033; --line: #2a3a55; --text: #e8eef7; --muted: #a9b8cc;
    --link: #7dd3fc; --primary: #0284c7; --primary-hover: #0369a1; --eca: #4ade80;
    --warn-bg: #2b2410; --warn-line: #6b5a1e; --warn-text: #fcd34d; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, [role=option]:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #0f172a; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-head { background: var(--navy); color: #f8fafc; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; background: rgba(30, 41, 59, .9); border: 1px solid rgba(71, 85, 105, .8);
  border-radius: 30px; padding: 8px 16px; color: #f8fafc; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand svg { color: var(--sky); flex: none; }
.brand span { color: #a3b3c7; font-weight: 400; font-size: 12.5px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #dbe5f1; text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.site-nav a:hover { background: rgba(148, 163, 184, .16); color: #fff; }
.site-nav .btn { margin-left: 8px; color: #fff; }
@media (max-width: 860px) { .site-nav a.opt { display: none; } }
@media (max-width: 460px) { .brand span { display: none; } .brand { padding: 8px 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 24px;
  font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--link); }
.hero .btn-ghost { color: #e2e8f0; border-color: #475569; }

/* hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #13233f 100%); color: #f1f5f9; padding: 36px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.14rem; color: #cbd5e1; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: #cbd5e1; font-size: .98rem; }
.hero-points li { padding-left: 26px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg); }
.signin-note { background: #0c4a6e; border: 1px solid #0284c7; color: #f0f9ff; border-radius: 12px; padding: 14px 16px; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.signin-note p { margin: 0; flex: 1 1 260px; }
.signin-note strong { display: block; font-size: 1.05rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 26px; } .hero { padding: 24px 0 36px; } }

/* calculator */
.calc { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.calc h2 { font-size: 1.15rem; margin-bottom: 14px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid #94a3b8; border-radius: 10px; }
.field input[aria-invalid=true] { border-color: #dc2626; }
.calc-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; }
.calc-row .field { flex: 0 0 112px; }
.calc-row .btn { flex: 1; }
.combo-list { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.combo-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.combo-list li small { color: var(--muted); white-space: nowrap; }
.combo-list li[aria-selected=true], .combo-list li:hover { background: var(--bg-soft); }
.combo-list li.none { color: var(--muted); cursor: default; }
.allowance { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.calc-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); font-size: 14.5px; }
.calc-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.calc-title { font-size: 1.02rem; font-weight: 650; margin: 0 0 10px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.figures div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.figures dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.figures dd { margin: 2px 0 0; font-size: 1.22rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.figures dd small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.figures dd small.sub { display: block; margin-top: 2px; }
.figures .eca dd { color: var(--eca); }
.calc-meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.calc-meta b { color: var(--text); font-weight: 600; }
.preview { position: relative; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #d6e6f3; aspect-ratio: 32 / 15; }
.preview svg { display: block; width: 100%; height: 100%; }
.preview .map { position: absolute; inset: 0; }
.preview .grat { stroke: #a9bfd3; stroke-width: 1; stroke-opacity: .6; }
.preview .grat-label { fill: #5b6b7f; font-size: 11px; font-family: inherit; }
.preview .route-case { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.preview .route { fill: none; stroke: #0284c7; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.preview .end { fill: #0f172a; stroke: #fff; stroke-width: 2; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.calc-actions p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 220px; }
.exhausted { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.exhausted h3 { margin-bottom: 6px; }
.exhausted p { color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .calc { padding: 16px; } .calc-fields { grid-template-columns: 1fr; } .figures { grid-template-columns: 1fr 1fr; } .figures .wide { grid-column: 1 / -1; } }

/* sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.section-lead { color: var(--muted); max-width: 46em; font-size: 1.05rem; margin-bottom: 28px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tier .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.tier ul, .feature ul, .who ul { margin: 0; padding-left: 1.15em; color: var(--muted); font-size: .97rem; }
.tier li, .feature li { margin: .3em 0; }
.tier p { color: var(--muted); font-size: .97rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.feature p { color: var(--muted); }
.feature.main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.feature .tag { font-size: 12px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .05em; }
.figure { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.figure svg { display: block; width: 100%; height: auto; }
.mock { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mock caption { text-align: left; font-weight: 650; font-size: 13.5px; padding-bottom: 6px; color: var(--text); }
.mock th, .mock td { text-align: right; padding: 6px 0 6px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mock th:first-child, .mock td:first-child { text-align: left; padding-left: 0; }
.mock thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.mock tfoot td, .mock tfoot th { font-weight: 700; border-bottom: 0; }
.mock .delta { color: var(--muted); font-size: 12.5px; display: block; }
.mock .ls td, .mock .ls th { color: var(--eca); }
.bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.bar span { display: block; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--text); }
.legend li { display: flex; justify-content: space-between; gap: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
@media (max-width: 820px) { .tiers, .features { grid-template-columns: 1fr; } .feature.main { grid-template-columns: 1fr; gap: 16px; } section { padding: 40px 0; } }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 18px; }
.proof div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.proof dt { color: var(--muted); font-size: .95rem; order: 2; }
.proof dd { margin: 0; font-size: 2.1rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.proof div { display: flex; flex-direction: column; gap: 4px; }
.small { font-size: .92rem; color: var(--muted); max-width: 52em; }
@media (max-width: 700px) { .proof { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who div { border-top: 3px solid var(--primary); padding-top: 12px; }
.who p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .who { grid-template-columns: 1fr; } }

.faq { max-width: 50em; }
.faq h3 { margin-top: 1.6em; }
.faq p { color: var(--muted); }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.pairs a { display: inline-block; padding: 6px 0; }
.cta { background: var(--navy); color: #f1f5f9; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #cbd5e1; max-width: 40em; margin: 0 auto 20px; }
.cta .btn-ghost { color: #e2e8f0; border-color: #475569; margin-left: 8px; }

/* footer */
.site-foot { background: var(--navy); color: #a9b8cc; font-size: 14px; padding: 28px 0 36px; border-top: 1px solid #1e293b; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: #dbe5f1; text-decoration: none; padding: 8px 0; display: inline-block; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px 48px; }
.site-foot .foot-links nav { display: flex; flex-direction: column; gap: 0; }
.site-foot .foot-links a { padding: 5px 0; }
.foot-title { color: #f1f5f9; font-weight: 650; margin-bottom: 4px !important; }

/* weather section, "part of TrustedDocks" (2026-11-12) */
.feature-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.feature-split .tag { font-size: 12px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .05em; }
.feature-split ul { color: var(--muted); padding-left: 1.15em; }
.feature-split li { margin: .45em 0; }
.feature-split li strong { color: var(--text); }
.part-of { background: var(--bg-soft); border-top: 1px solid var(--line); }
.part-of p { color: var(--muted); max-width: 46em; }
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; gap: 18px; } }

/* distance pages */
.crumbs { font-size: 14px; color: #a9b8cc; margin: 0 0 14px; }
.crumbs a { color: #dbe5f1; }
.dist-hero { background: linear-gradient(180deg, var(--navy) 0%, #13233f 100%); color: #f1f5f9; padding: 28px 0 40px; }
.dist-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.dist-hero .lead { color: #cbd5e1; font-size: 1.1rem; max-width: 44em; margin: 0; }
.dist-hero .lead strong { color: #fff; }
.dist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.dist-grid .figures { grid-template-columns: 1fr 1fr; }
.dist-grid .preview { margin-top: 0; }
.dist-grid h2 { font-size: 1.2rem; margin-top: 1.4em; }
table.plain { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0 0 16px; }
table.plain caption { text-align: left; font-weight: 650; padding-bottom: 6px; }
table.plain th, table.plain td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
table.plain td:last-child, table.plain th:last-child { text-align: right; padding-right: 0; }
table.plain thead th { font-size: 13px; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.chips li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 14px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); font-size: 14.5px; }
.message { padding: 72px 0; max-width: 40em; }
@media (max-width: 820px) { .dist-grid { grid-template-columns: 1fr; } }
