/* Trim Dispatch marketing site. Colour tokens are copied from
   resources/css/app.scss so the site reads as the same product as the app. */
:root {
  --ivory: #F4F1EA;        /* $body-bg */
  --ivory-deep: #EAE6DB;   /* $light */
  --charcoal: #333333;     /* $body-color */
  --blue: #72A0C5;         /* $primary — fill */
  --blue-ink: #3E6A8E;     /* darker blue for text on ivory */
  --grey: #736D67;         /* $secondary — text */
  --sand: #E7D7BC;         /* §1.4 accent */
  --sand-ink: #6D5A3A;
  --danger: #A8493D;       /* $danger */
  --rule: rgba(51, 51, 51, 0.14);
  --max: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #1F1E1C;
    --ivory-deep: #2A2825;
    --charcoal: #EDEAE3;
    --grey: #B3ACA3;
    --blue-ink: #9CC2E0;
    --sand: #3D3527;
    --sand-ink: #E7D7BC;
    --rule: rgba(237, 234, 227, 0.16);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace; }
a { color: var(--blue-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--grey); }
.rule-top { border-top: 1px solid var(--rule); }
.section-pad { padding: 52px 0; }
.section-pad-end { padding: 24px 0 64px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--charcoal); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--charcoal); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.header-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--charcoal); }
.btn-primary:hover { background: #5E92B9; }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: var(--ivory-deep); }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 28px 0 12px; font-weight: 600; }
h3 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 600; }
p.lead { font-size: 1.15rem; max-width: 62ch; margin: 0 0 24px; text-wrap: pretty; }
.crumbs { font-size: 14px; color: var(--grey); margin: 28px 0 0; }
.crumbs a { color: var(--grey); }

/* Cards and panels */
.callout { border-left: 4px solid var(--blue); background: var(--ivory-deep); padding: 16px 18px; border-radius: 0 8px 8px 0; }
.callout strong { color: var(--charcoal); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.stat { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); font-weight: 600; }
.stat .v { font-family: "IBM Plex Mono", monospace; font-size: 1.7rem; font-weight: 600; margin-top: 4px; }
.placeholder-box { background: var(--ivory-deep); border: 1px dashed var(--grey); border-radius: 10px; padding: 48px 20px; text-align: center; color: var(--grey); margin: 20px 0; font-size: 15px; }
.placeholder-box.video { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* Homepage hero */
.hero-b { padding: 72px 0 64px; }
.hero-b h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.hero-b .lead { max-width: 46ch; }
.panel-b { background: var(--charcoal); color: var(--ivory); border-radius: 12px; padding: 26px 26px 22px; box-shadow: 0 18px 40px -24px rgba(51,51,51,0.55); }
.panel-b .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.panel-b .label { color: #C9C3B8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.panel-b .tag { font-size: 12px; background: rgba(244,241,234,0.12); color: var(--ivory); padding: 3px 10px; border-radius: 999px; }
.panel-b .row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(244,241,234,0.16); font-size: 15px; }
.panel-b .row:last-of-type { border-bottom: 0; }
.panel-b .row .mono { font-size: 1.25rem; font-weight: 600; }
.panel-b .row .sub { color: #C9C3B8; font-size: 13px; display: block; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 96px; margin: 18px 0 6px; }
.bars div { background: var(--blue); border-radius: 3px 3px 0 0; min-height: 6px; }
.bars div.now { background: var(--sand); }
.bars-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; font-size: 11px; color: #C9C3B8; font-family: "IBM Plex Mono", monospace; text-align: center; }
.panel-b .note { margin-top: 16px; padding: 12px 14px; background: rgba(244,241,234,0.08); border-radius: 8px; font-size: 13px; color: #E4DED3; }
.panel-b .note strong { color: var(--ivory); }

.steps-b { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps-b > div { padding: 22px 24px 4px 0; border-top: 2px solid var(--charcoal); }
.steps-b > div + div { padding-left: 24px; }
.steps-b .num { font-family: "IBM Plex Mono", monospace; color: var(--grey); font-size: 14px; display: block; margin-bottom: 10px; }
.steps-b h3 { font-size: 1.25rem; }

.split-b { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.list-b { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.list-b li { padding-left: 22px; position: relative; }
.list-b li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

.data-b { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.data-b > div { padding: 26px 24px 26px 0; }
.data-b > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.data-b h3 { margin-bottom: 6px; }

.close-b { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 12px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.close-b h2 { margin: 0 0 6px; }

/* Inner pages */
.inner-head { padding-bottom: 8px; }
.inner-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.page-body.single { grid-template-columns: minmax(0, 1fr); }
.side nav { display: grid; gap: 4px; position: sticky; top: 24px; }
.side a { color: var(--grey); text-decoration: none; font-size: 15px; padding: 6px 0 6px 12px; border-left: 2px solid transparent; }
.side a[aria-current="page"] { color: var(--charcoal); border-left-color: var(--blue); font-weight: 600; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 20px; }
.prose.full { max-width: 68ch; }
.cta-band { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* Import feature card (your-data page) */
.import-card { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; margin: 8px 0 28px; border-top: 4px solid var(--blue); }
.import-head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.import-head p { margin: 0 0 20px; }
.import-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.import-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--ivory); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.import-steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--charcoal); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; font-family: "IBM Plex Mono", monospace; }
.import-steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.import-steps span:not(.num) { font-size: 14px; color: var(--grey); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt { font-size: 13px; font-family: "IBM Plex Mono", monospace; padding: 4px 11px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--rule); color: var(--charcoal); }
.fmt-own { background: var(--sand); border-color: transparent; color: var(--sand-ink); font-family: inherit; font-weight: 600; }
@media (max-width: 860px) { .import-steps { grid-template-columns: 1fr; } .import-card { padding: 22px; } }

/* Contact form */
.contact-wrap { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.contact-form { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: grid; gap: 18px; position: relative; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 13px; color: var(--grey); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--grey); border-radius: 6px; background: var(--ivory); color: var(--charcoal); width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue-ink); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .fine { font-size: 13px; color: var(--grey); margin: 0; max-width: 46ch; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.contact-aside .card-mini { background: var(--ivory-deep); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.contact-aside h3 { margin-bottom: 4px; }
.contact-aside p { margin: 0; font-size: 15px; color: var(--grey); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: 14px; color: var(--grey); }
.site-footer .wrap { display: grid; gap: 22px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer a { color: var(--grey); }
.site-footer .liability { margin-top: 14px; max-width: 70ch; }
.footer-links { display: grid; gap: 6px; align-content: start; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2, .split-b, .steps-b, .data-b, .site-footer .wrap { grid-template-columns: 1fr; }
  .steps-b > div + div, .data-b > div + div { padding-left: 0; border-left: 0; }
  .data-b > div { padding-right: 0; }
  .hero-b { padding: 44px 0 40px; }
  .close-b { padding: 26px; }
  .page-body, .page-body.single { grid-template-columns: 1fr; gap: 24px; }
  .form-row, .contact-aside { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .side nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .side a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 6px 10px; }
  .side a[aria-current="page"] { border-bottom-color: var(--blue); }
}
