/* SBA ELD — site styles
   Palette taken from the SBA ELD mark: hex teal + deep ink. */
:root {
  --ink: #04021D;
  --ink-2: #110F2C;
  --ink-3: #1D1B3B;
  --ink-line: #2B2950;
  --teal: #48B4C4;
  --teal-soft: #A9DDE5;
  --teal-text: #16707D;
  --paper: #F2F6F7;
  --white: #FFFFFF;
  --line: #D6E1E4;
  --muted: #545D6B;
  --on-ink-muted: #A6A9C2;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--teal); color: var(--ink); }
.btn-solid:hover { background: var(--teal-soft); color: var(--ink); }
.btn-line { border-color: var(--ink-line); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--teal); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); color: var(--white); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); border-bottom: 1px solid var(--ink-line);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.top .brand img { height: 38px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a:not(.btn) {
  color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 8px 14px;
}
.menu > a:not(.btn):hover { color: var(--white); }
.menu .btn { min-height: 42px; padding: 0 18px; font-size: 1.05rem; }
.menu .btn-line { margin-left: 14px; }
.menu .btn-solid { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--ink-line); border-radius: 4px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: none;
  font-size: clamp(3rem, 8.4vw, 6.75rem); line-height: .92; letter-spacing: -.01em;
}
.hero h1 span { display: block; color: var(--teal); }
.hero-side p { color: var(--on-ink-muted); font-size: 1.125rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The duty-status grid */
.logsheet { margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--ink-line); }
.logsheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0 14px; font-size: .95rem; color: var(--on-ink-muted);
}
.logsheet-head strong { color: var(--white); font-weight: 600; }
.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 6px 14px 6px 10px; color: var(--white); font-weight: 500;
}
.status-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(72, 180, 196, .25); }
.status-chip b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--teal); }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.grid-scroll svg { min-width: 760px; width: 100%; height: auto; }
.grid-scroll text { font-family: var(--body); }
.trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .3s cubic-bezier(.45, 0, .2, 1) forwards; }
.now-dot { opacity: 0; animation: appear .3s 2.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line); margin-top: 8px;
}
.hero-facts div { padding: 22px 24px 30px 0; color: var(--on-ink-muted); font-size: .95rem; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.hero-facts strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--white); line-height: 1.1; }

/* ---------- Generic section ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-paper { background: var(--paper); }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; letter-spacing: -.005em;
}
.lede { color: var(--muted); font-size: 1.125rem; max-width: 52ch; margin-top: 18px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 72px; }
.features-intro { position: sticky; top: 112px; align-self: start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.feature { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.feature svg { width: 28px; height: 28px; stroke: var(--teal-text); margin-bottom: 18px; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1rem; }

/* ---------- Stat band ---------- */
.band { background: var(--teal); color: var(--ink); }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.band .wrap > div { padding: 36px 24px 38px; }
.band .wrap > div:first-child { padding-left: 0; }
.band .wrap > div + div { border-left: 1px solid rgba(4, 2, 29, .18); }
.band strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; }
.band span { display: block; margin-top: 8px; font-weight: 500; }

/* ---------- Solutions (tabs) ---------- */
.solutions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: 40px; }
.tabs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.tabs button {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.panel[hidden] { display: none; }
.panel-media { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.panel-media svg { width: 100%; height: auto; }
.panel-media text { font-family: var(--body); }
.panel h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.02; }
.panel p { color: var(--muted); margin-top: 16px; }
.ticks { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%2304021D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 72px; }
.faq-aside .note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.faq-aside .note a { font-weight: 600; }
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat;
  transition: transform .2s, background-color .2s;
}
.qa details[open] summary::after {
  transform: rotate(45deg); background-color: var(--teal); border-color: var(--teal);
}
.qa summary:hover { color: var(--teal-text); }
.qa .answer { padding: 0 56px 26px 0; color: var(--muted); }
.qa .answer p + p, .qa .answer ul + p, .qa .answer p + ul { margin-top: 10px; }
.qa .answer ul { padding-left: 20px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; }
.contact .lede { color: var(--on-ink-muted); }
.reach { list-style: none; margin-top: 40px; border-top: 1px solid var(--ink-line); }
.reach li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.reach svg { width: 44px; height: 44px; padding: 11px; border: 1px solid var(--ink-line); border-radius: 50%; stroke: var(--teal); }
.reach small { display: block; color: var(--on-ink-muted); font-size: .9rem; }
.reach a, .reach b { color: var(--white); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.reach a:hover { color: var(--teal); }

.form {
  background: var(--white); color: var(--ink); border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.form .full { grid-column: 1 / -1; }
.form h3 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(72, 180, 196, .45); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { padding: 12px 14px; border-radius: 4px; font-weight: 500; }
.form-status.success { background: #E3F4F6; color: #0E5560; border: 1px solid #A9DDE5; }
.form-status.error { background: #FDECEC; color: #8A1F1F; border: 1px solid #F3C2C2; }

/* ---------- Footer ---------- */
.foot { background: var(--ink-2); color: var(--on-ink-muted); padding: 64px 0 28px; font-size: .98rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot .brand img { height: 32px; width: auto; }
.foot-grid > div:first-child p { margin-top: 18px; max-width: 34ch; }
.foot h4 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--white); margin-bottom: 14px; letter-spacing: .01em; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--on-ink-muted); text-decoration: none; }
.foot a:hover { color: var(--teal); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: .9rem; }
.foot-bottom nav { display: flex; gap: 20px; }

/* ---------- Legal pages ---------- */
.legal-top { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.legal-top h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .95; }
.legal-top p { color: var(--on-ink-muted); margin-top: 14px; max-width: 56ch; font-size: 1.1rem; }
.legal-top .updated { margin-top: 22px; font-size: .95rem; color: var(--teal-soft); }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px 72px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
.legal-nav { position: sticky; top: 104px; align-self: start; display: grid; border-top: 2px solid var(--ink); }
.legal-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 500; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--teal); padding-left: 14px; }
.legal-nav .ext::after { content: " ↗"; color: var(--teal-text); }
.legal-body { max-width: 70ch; }
.legal-body h2 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #2E3442; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 8px var(--gutter) 20px;
  }
  .menu.open { display: flex; }
  .menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
  .menu .btn-line, .menu .btn-solid { margin: 12px 0 0; min-height: 48px; }
  .hero-text, .features, .faq, .contact-grid, .panel { grid-template-columns: 1fr; }
  .features-intro { position: static; }
  .panel-media { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}
@media (max-width: 720px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 26px 0 28px; border-left: 0; }
  .band .wrap { grid-template-columns: 1fr 1fr; }
  .band .wrap > div { padding: 28px 16px; }
  .band .wrap > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .band .wrap > div:nth-child(n+3) { border-top: 1px solid rgba(4, 2, 29, .18); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div + div { padding: 16px 0; border-left: 0; }
  .hero-facts div + div { border-top: 1px solid var(--ink-line); }
  .hero-facts strong { display: inline; font-size: 1.5rem; margin-right: 10px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 0 10px; }
  .form { grid-template-columns: 1fr; }
  .qa .answer { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .now-dot { animation: none; opacity: 1; }
  * { transition: none !important; }
}
