/* MoveCranes · styles. Vanilla CSS, no framework. */
:root {
  --navy-950: #0a1322;
  --navy-900: #0f1b2d;
  --navy-800: #16263d;
  --navy-700: #213651;
  --steel-500: #6f819a;
  --steel-300: #a9b7c9;
  --steel-100: #e5ebf2;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ink: #142033;
  --ink-2: #44546a;
  --amber: #f2a516;
  --amber-dark: #c98500;
  --green: #1f8a4c;
  --green-bg: #e3f4ea;
  --yellow: #8a5a00;
  --yellow-bg: #fff2d1;
  --red: #b42318;
  --red-bg: #fde8e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 19, 34, .06), 0 6px 20px rgba(10, 19, 34, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #1d4f91; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.fine { font-size: .85rem; color: var(--ink-2); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy-950); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--navy-950); }
.btn-primary:hover { background: #ffb935; color: var(--navy-950); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127, 140, 160, .12); }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }

/* ---- Header ---- */
.site-header { background: var(--navy-900); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-700); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--white); }
.brand-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); border: 1px solid var(--navy-700); padding: 2px 8px; border-radius: 999px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--steel-300); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--white); }

/* ---- Hero ---- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242,165,22,.16), transparent 60%),
              linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--steel-100); padding: 80px 0 90px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: var(--steel-300); max-width: 36em; }
.hero .fine { color: var(--steel-500); margin-top: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { color: var(--steel-100); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--amber); margin-bottom: 12px; }
.hero-card { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--steel-300); margin-bottom: 16px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-metrics div { background: var(--navy-900); border-radius: 10px; padding: 12px; }
.mini-metrics strong { display: block; color: var(--white); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.mini-metrics span { font-size: .78rem; color: var(--steel-500); }
.mini-loads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-loads li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--navy-900); border-radius: 8px; font-size: .9rem; color: var(--steel-100); }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--steel-100); border-bottom: 1px solid var(--steel-100); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--amber); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--steel-100); border-top: 3px solid var(--amber); background: var(--paper); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--ink-2); margin: 0; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.price-card { background: var(--white); border: 1px solid var(--steel-100); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.price { margin: 0 0 8px; }
.price .amount { font-size: 3rem; font-weight: 800; color: var(--navy-900); }
.price .per { color: var(--ink-2); margin-left: 4px; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 10px; }
.price-side { padding: 32px 8px; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 6px; }
.waitlist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist-row input { flex: 1 1 200px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: var(--steel-300); padding: 36px 0; font-size: .9rem; }
.site-footer .disclaimer { max-width: 60em; }
.site-footer strong { color: var(--amber); }
.site-footer a { color: var(--steel-100); }
.site-footer .fine { color: var(--steel-500); margin: 0; }

/* ---- Form controls ---- */
input[type="number"], input[type="email"], select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #c6d0dc; border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 44px;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy-700); }

/* ---- Badges ---- */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-legal { background: var(--green-bg); color: var(--green); }
.badge-permit { background: var(--yellow-bg); color: var(--yellow); }
.badge-super { background: var(--red-bg); color: var(--red); }
.badge-na { background: var(--steel-100); color: var(--ink-2); }
.badge-soon { background: var(--navy-900); color: var(--amber); }

/* ---- App ---- */
.app-main { padding-top: 24px; padding-bottom: 48px; display: grid; gap: 24px; }
.callout { background: #eef4fc; border: 1px solid #c9daf0; border-left: 4px solid #1d4f91; border-radius: 8px; padding: 14px 16px; font-size: .92rem; color: var(--ink); }
.panel { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.panel-head p { margin: 0; font-size: .92rem; }
.panel-title { font-size: 1.3rem; margin: 0; }
#rules .panel-title { margin-bottom: 16px; }

.config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #c6d0dc; transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--navy-800); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--amber); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--amber); outline-offset: 2px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.metric { background: var(--navy-900); color: var(--steel-300); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; }
.metric-value { color: var(--white); font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.metric-detail { font-size: .8rem; color: var(--amber); }

.segmented { display: inline-flex; flex-wrap: wrap; background: var(--steel-100); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 20px; }
.segmented button { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 7px; cursor: pointer; min-height: 38px; }
.segmented button[aria-checked="true"] { background: var(--white); color: var(--navy-900); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(15,27,45,.08); font-size: .8rem; font-variant-numeric: tabular-nums; }

.load-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.load-card { border: 1px solid var(--steel-100); border-left: 4px solid var(--green); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.load-card.status-permit { border-left-color: var(--amber); }
.load-card.status-superload { border-left-color: var(--red); }
.load-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.load-no { font-size: 1.05rem; margin: 0; font-family: var(--mono); }
.load-weight { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.load-weight .weight { font-size: 1.35rem; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.load-weight .trailer { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.fill { height: 8px; border-radius: 4px; background: var(--steel-100); overflow: hidden; }
.fill-in { height: 100%; background: #3b6db3; border-radius: 4px; }
.fill-in.high { background: var(--amber-dark); }
.fill-label { font-size: .78rem; color: var(--ink-2); margin: -4px 0 0; }
.items { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--ink); display: grid; gap: 2px; }
.items li { padding-left: 14px; position: relative; }
.items li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 1px; background: var(--steel-500); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--steel-100); color: var(--navy-800); }
.rule-note { font-size: .8rem; color: var(--ink-2); margin: 0; padding-top: 8px; border-top: 1px dashed var(--steel-100); }
.empty { padding: 20px 0; }

.table-wrap { overflow-x: auto; }
table.rules { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.rules th, table.rules td { text-align: left; padding: 12px; border-bottom: 1px solid var(--steel-100); vertical-align: top; }
table.rules th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--paper); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .pricing { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .app .nav-links li:not(:last-child) { display: none; }
  .steps, .feature-grid, .config-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
  .panel { padding: 18px; }
  .metric-value { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .segmented, .toggle-row, #reset, .skip-link { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .load-card { break-inside: avoid; }
}
