/* InsertReady brand stylesheet — shared across all site pages */

:root {
  --navy:   #0d1b2e;
  --blue:   #185FA5;
  --sky:    #2d7dd2;
  --sky-2:  #60a5fa;
  --green:  #0f7c4a;
  --gold:   #c28a00;
  --teal:   #1FB8A6;
  --red:    #9e1c1c;
  --bg:     #f5f7fa;
  --bg-2:   #ffffff;
  --ink:    #1a2332;
  --ink-2:  #4a5a72;
  --muted:  #7a8aa0;
  --border: #d0d8e4;
  --shadow: 0 4px 16px rgba(13,27,46,.06);
  --radius: 8px;
  --maxw:   1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Top bar / nav ===== */
.topbar {
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: white;
  letter-spacing: .02em;
  line-height: 1;
}
.logo span { color: var(--sky-2); }
@media (max-width: 720px) {
  .logo { font-size: 22px; }
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ca0c8;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: white; text-decoration: none; }
.nav a.active { color: white; border-bottom-color: var(--sky-2); }
.nav a.cta {
  background: var(--green);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  border-bottom: none;
}
.nav a.cta:hover { background: #0a5e37; }
.nav a.login {
  background: var(--green);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  border-bottom: none;
}
.nav a.login:hover { background: #0a5e37; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122845 100%);
  color: white;
  padding: 72px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.hero .lede {
  font-size: 19px;
  opacity: .92;
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Containers / sections ===== */
.section { padding: 64px 20px; }
.section.alt { background: white; }
.container { max-width: var(--maxw); margin: 0 auto; }

.section h2 {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
}
.section .lede {
  text-align: center;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ===== Tiles grid (Features page — Item 5: colored + justified) ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tile.t-blue   { border-top-color: var(--blue); }
.tile.t-green  { border-top-color: var(--green); }
.tile.t-sky    { border-top-color: var(--sky); }
.tile.t-gold   { border-top-color: var(--gold); }
.tile.t-navy   { border-top-color: var(--navy); }
.tile.t-teal   { border-top-color: var(--teal); }

.tile .tag {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* a11y — tags use --navy uniformly so they meet 4.5:1 contrast on white.
   The colored tile-top border carries the visual variant affordance. */
.tile .tag { color: var(--navy); }

.tile h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.tile p {
  color: var(--ink-2);
  text-align: justify;        /* Item 5: justify text inside tiles */
  hyphens: auto;
  font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--blue); color: white; }
.btn.primary:hover { background: #134a82; box-shadow: 0 4px 12px rgba(24,95,165,.3); }
.btn.cta { background: var(--green); color: white; }
.btn.cta:hover { background: #0a5e37; box-shadow: 0 4px 12px rgba(15,124,74,.3); }
.btn.ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: white; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ===== Forms ===== */
.form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form h3 { color: var(--navy); margin-bottom: 8px; font-size: 22px; }
.form .sub { color: var(--ink-2); margin-bottom: 22px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field label .req { color: var(--red); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.field textarea { min-height: 110px; resize: vertical; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }

.field-error {
  display: none;
  color: var(--red);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}
.field.has-error .field-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success,
.form-failure {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-success { background: #e8f5ee; color: var(--green); border: 1px solid #b8dcc6; }
.form-failure { background: #fbecec; color: var(--red); border: 1px solid #e8c0c0; }
.form-success.show, .form-failure.show { display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #a8bdd5;
  padding: 40px 20px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.footer a { color: #a8bdd5; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: white; text-decoration: none; }
.footer .legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1d2e48;
  font-size: 12px;
  color: #6c84a3;
  text-align: center;
}

/* ===== Misc ===== */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: white;
  padding: 56px 20px;
  text-align: center;
}
.cta-band h2 { color: white; font-size: 28px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; opacity: .94; margin-bottom: 22px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--ink-2); font-size: 14px; }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-table th,
.rate-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rate-table th { background: var(--navy); color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-2);
}
.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 6px;
}

/* ===== Back-to-top (used on long pages — Item 8 placeholder hook) ===== */
.to-top {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--blue);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13,27,46,.25);
  z-index: 40;
}
.to-top.show { display: block; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .nav { margin-left: 0; gap: 12px; }
  .nav a { font-size: 11px; }
  .section { padding: 44px 16px; }
}

/* a11y — body paragraph links get an underline so they aren't color-only.
   Excludes navs and tile titles which use class-based affordance. */
.section p a, .container p a, .legal a, footer p a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* a11y — screen-reader-only utility class */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ===================================================================
   Hero rate estimator (InsertReady DISPATCH) + first modal on the site
   Added for the public rate estimator. Presentation only — every number
   rendered inside .rate-card is supplied by the server at runtime.
   =================================================================== */

/* --- Two-column hero. Copy left, estimator right; stacks under 980px. --- */
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: start;
  text-align: left;
}
.hero-grid .hero-copy h1 { font-size: 36px; }
.hero-grid .hero-copy .lede { margin: 0 0 26px; max-width: 620px; }
.hero-grid .hero-copy .actions { justify-content: flex-start; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-grid .hero-copy .lede { margin: 0 auto 26px; }
  .hero-grid .hero-copy .actions { justify-content: center; }
}
@media (max-width: 720px) {
  .hero-grid .hero-copy h1 { font-size: 28px; }
}

/* --- The estimator card --- */
.rate-card {
  background: var(--bg-2);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(4, 12, 24, .38);
  text-align: left;
}
.rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.rate-badge {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.rate-note {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.rate-card h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
  text-align: left;
}
.rate-card .rate-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* Compact form density inside the card */
.rate-form .field { margin-bottom: 12px; }
.rate-form .field label { font-size: 11px; margin-bottom: 4px; }
.rate-form .field input,
.rate-form .field select { padding: 9px 10px; font-size: 14px; }
.rate-form .form-row { gap: 12px; }
.rate-form .form-row.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rate-form .form-row.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate-form .rate-go { margin-top: 4px; }

@media (max-width: 720px) {
  .rate-form .form-row.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-form .form-row.g3 { grid-template-columns: 1fr; }
}

/* Status line — replaced the instant a result or an error arrives. */
.rate-status {
  display: none;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 10px;
}
.rate-status.show { display: block; }

/* Lane readout chips (zone / miles / billable weight) */
.rate-lane { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rate-chip {
  background: #eef2f8;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--ink-2);
}
.rate-chip b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* Savings headline — always visible, never gated. */
.rate-savings {
  background: #e8f5ee;
  border: 1px solid #b8dcc6;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
}
.rate-savings .big {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rate-savings .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.rate-savings .annual { font-size: 14px; color: var(--navy); font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* Carrier rows + the lock overlay */
.rate-rows-wrap { position: relative; margin-top: 14px; }
.rate-scroll { overflow-x: auto; border-radius: var(--radius); }
.rate-card .rate-table { font-size: 13px; }
.rate-card .rate-table th { font-size: 11px; padding: 8px 10px; }
.rate-card .rate-table td { padding: 9px 10px; vertical-align: top; }
.rate-card .rate-table .svc { display: block; font-size: 11px; color: var(--muted); }
.rate-card .rate-table .yours { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rate-card .rate-table td.retail { color: var(--muted); text-decoration: line-through; }
.rate-card .rate-table tr.best td { background: #f2faf5; }
.rate-card .rate-table tr.best td.price { color: var(--green); font-weight: 800; }
.rate-card .rate-table td.price { font-weight: 700; color: var(--navy); }

.rate-blur { filter: blur(6px); user-select: none; }
.rate-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  background: rgba(245, 247, 250, .62);
  border-radius: var(--radius);
}
.rate-lock p { font-size: 12px; color: var(--ink-2); max-width: 300px; }

.rate-quotes-left {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* Hand-off / not-serviceable / degraded panels — replace the rate rows. */
.rate-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #f7f9fc;
  padding: 16px;
}
.rate-panel h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.rate-panel p { font-size: 13px; color: var(--ink-2); }
.rate-panel .checklist li { font-size: 13px; padding: 5px 0 5px 24px; }
.rate-panel .checklist li::before { content: "\25A1"; color: var(--blue); top: 3px; }
.rate-panel .btn { margin-top: 12px; }
.rate-panel.warn { border-left-color: var(--gold); background: #fdf8ec; }
.rate-panel.down { border-left-color: var(--red); background: #fbecec; }

.rate-disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* --- Modal. First one on the marketing site; idiom matches the cloud
       login template (.modal-bg / .modal-bg.open). --- */
.modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 27, 46, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(4, 12, 24, .4);
  position: relative;
}
.modal h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; padding-right: 28px; }
.modal .modal-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 6px;
}
.modal-close:hover { color: var(--ink); background: #eef2f8; }
.modal-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rate-table th.num { text-align: right; }

/* Lock overlay: an opaque card, not a wash — the carrier names and transit
   days underneath have to stay readable, they are the visible half of the gate. */
/* Sit the pill over the price columns, not the carrier names. */
.rate-lock { background: none; padding: 8px; pointer-events: none; justify-content: flex-end; }
.rate-lock-inner {
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(4, 12, 24, .22);
  padding: 14px 16px;
  text-align: center;
  max-width: 260px;
}
.rate-lock-inner p { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.rate-card .rate-table { min-width: 320px; }
.rate-card .rate-table td.num { white-space: nowrap; }
