/* TRA-2387 / TRA-2422: one stylesheet for every page built by scripts/build-site.py, so the whole site looks the same.
   Template rule: per section one picture, a headline of 8 words or fewer, 25 words of text or fewer. */
:root {
  --ink: #1c2b39; --muted: #5b6470; --blue: #2891C0; --blue-lt: #43ABDB;
  --sky: #eef7fc; --line: #d3e6f1; --spine: #33414f; --orange: #ff8e09;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Gilroy', system-ui, sans-serif; color: var(--ink); line-height: 1.45; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Menu: three role doors in the middle; Pricing, Log in and Start free on the right */
header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 84px; }
.nav .logo img { height: 54px; width: auto; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; }
.nav ul a, .nav-right a { text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--blue); }
.nav ul a[aria-current] { box-shadow: inset 0 -3px 0 var(--blue); padding-bottom: 6px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.nav-right a[aria-current] { color: var(--blue); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-lt); }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); }
.nav-right .btn { padding: 9px 16px; }
.drawer { display: none; }

section { padding: 64px 0; }
h1 { font-size: 46px; line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 32px; margin: 0 0 28px; text-align: center; }
.accent { color: var(--blue); }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero: text on the left, one picture or the video on the right */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero video, .hero .shot { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.10); background: #fff; }
.hero video { aspect-ratio: 1280 / 532; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* The spine: Dispatch → Track → Invoice in its own neutral colour, the same on every page */
.spine-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.step img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.step-body { padding: 18px 20px 22px; }
.step-label { display: inline-block; background: var(--spine); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.step-label.n::before { counter-increment: step; content: counter(step) " · "; }
.step p { margin: 10px 0 0; font-size: 17px; }
.chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--sky); border: 1px solid var(--line); }
a.chip { color: inherit; text-decoration: none; font-weight: 600; }
a.chip:hover { border-color: currentColor; }
.arrow { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }

/* "You are here" strip on subpages: the same three steps, lit where this page sits */
.here { background: var(--spine); color: #c5d3df; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.here .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.here a { text-decoration: none; }
.here .on { color: #fff; }
.here .sep { opacity: .5; }

/* Feature rows: one picture, one headline, one or two lines. Pictures alternate sides. */
.rows section:nth-child(even) { background: var(--sky); }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.rows section:nth-child(even) .row { grid-template-columns: 1.3fr 1fr; }
.rows section:nth-child(even) .row .pic { order: -1; }
.row h3 { font-size: 28px; line-height: 1.15; margin: 8px 0 12px; }
.row p { font-size: 18px; color: var(--muted); margin: 0; }
.row .pic img, .row .pic video { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.08); background: #fff; }
.row .pic video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; }
.row.wide, .rows section:nth-child(even) .row.wide { grid-template-columns: 1fr; gap: 24px; }
.row.wide .pic { order: 0 !important; }
.row .pic.tall img { max-height: 460px; width: auto; margin: 0 auto; }

/* Who it's for */
.who { background: var(--sky); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; text-decoration: none; }
.door:hover { border-color: var(--blue); }
.door h3 { margin: 0 0 8px; font-size: 21px; }
.door p { margin: 0 0 14px; color: var(--muted); }
.door span { color: var(--blue); font-weight: 600; }

/* Plain cards (pricing plans, "what it doesn't do") */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.card h3 { margin: 0 0 6px; font-size: 21px; }
.card .price { font-size: 30px; font-weight: 700; margin: 6px 0 12px; }
.card .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }
.card.main { border: 2px solid var(--blue); }
.note { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--spine); border-radius: 8px; padding: 22px 26px; }
.note h3 { margin: 0 0 10px; }
.note ul { margin: 0; padding-left: 18px; color: var(--muted); }
.note li { margin: 6px 0; }
.small { font-size: 14px; color: var(--muted); text-align: center; max-width: 760px; margin: 14px auto 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* What paper costs */
.cost { text-align: center; }
.cost p { font-size: 20px; margin: 0 0 18px; }

/* Start: the same closing band on every page */
.start { background: var(--ink); color: #fff; text-align: center; }
.start ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 17px; }
.start ul li::before { content: "✓ "; color: var(--blue-lt); }
.start .ctas { justify-content: center; }
.start .btn-ghost { border-color: #fff; color: #fff; }
.start .phone { margin-top: 18px; color: #c5d3df; }
.start .phone a { color: #fff; }

footer { padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer img { height: 30px; width: auto; margin-right: 10px; }

@media (max-width: 900px) {
  .nav { height: 70px; }
  .nav .logo img { height: 44px; }
  .nav ul, .nav-right .hide-sm { display: none; }
  .drawer { display: block; margin-left: 12px; }
  .drawer summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; }
  .drawer ul { position: absolute; right: 12px; top: 66px; background: #fff; border: 1px solid var(--line); border-radius: 10px; list-style: none; margin: 0; padding: 10px 0; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: block; }
  .drawer li a { display: block; padding: 10px 18px; text-decoration: none; font-weight: 600; }
  .drawer li.sep { border-top: 1px solid var(--line); margin: 6px 0; }
  .nav-right { margin-left: auto; }
  .hero-grid, .spine-steps, .doors, .row, .rows section:nth-child(even) .row, .cards { grid-template-columns: 1fr; }
  .rows section:nth-child(even) .row .pic { order: 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .row h3 { font-size: 24px; }
  section { padding: 44px 0; }
}

/* Blog list: one card per post. The markup is scripts/prerender-blog.mjs's .blog-card, written on every deploy. */
.blog-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.blog-card:hover { border-color: var(--blue); }
.blog-card-link { display: block; text-decoration: none; height: 100%; }
.blog-card-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.blog-card-image .blog-category { display: block; margin: 16px 20px 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.blog-card-content { padding: 0 20px 20px; }
.blog-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; margin-top: 2px; }
.blog-card-title { text-align: left; margin: 6px 0 8px; font-size: 19px; line-height: 1.25; }
.blog-card-excerpt { margin: 0 0 10px; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { color: var(--blue); font-weight: 600; font-size: 15px; }

/* Privacy and Terms: plain reading column */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 38px; }
.legal h2 { text-align: left; font-size: 22px; margin: 32px 0 10px; }
.legal h3 { font-size: 18px; margin: 20px 0 8px; }
.legal p, .legal li { color: #34404c; font-size: 16px; line-height: 1.6; }
.legal a { color: var(--blue); }
.legal .last-updated { color: var(--muted); }

@media (max-width: 900px) {
  .blog-grid-container { grid-template-columns: 1fr; }
}

/* In-page links (#tonne, #track) land below the sticky header */
section[id] { scroll-margin-top: 96px; }
