/* Shared by the "What we fix" process pages. Brand values and shared component dimensions follow index.html and otoq/styles.css. */
:root {
  --oxford: #04172E;
  --oxford-deep: #030E1C;
  --sky: #0077B6;
  --capri: #13B2F7;
  --emerald: #39D08A;
  --blizzard: #ADE8F4;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-mid: #6B7280;
  --gray-dark: #374151;
  --border: #E5E7EB;
  --input-border: #8290A2;
  --capri-tint: #F0F9FF;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--oxford); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
a { color: var(--sky); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p { line-height: 1.7; text-wrap: pretty; }
p + p { margin-top: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 9999; padding: 10px 18px; background: var(--emerald); color: var(--oxford); font-size: 14px; font-weight: 700; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Homepage navigation. */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 22px 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease; }
nav.scrolled { background: rgba(4,23,46,0.93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo { display: inline-block; transition: transform 0.2s ease; }
.nav-logo:hover, .nav-logo:focus-visible { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .nav-logo { transition: none; } }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 1px; background: var(--capri); transform: scaleX(0); transform-origin: left center; transition: transform 0.28s var(--ease-out-strong); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links .nav-cta { display: inline-flex; align-items: center; padding: 12px 22px; border: 1.5px solid var(--capri); border-radius: 7px; color: var(--capri); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: background 0.2s, color 0.2s, transform 0.15s var(--ease-out-strong); }
.nav-links .nav-cta:hover { background: var(--capri); color: var(--oxford); }
.nav-cta:active { transform: scale(0.97); transition-duration: 100ms; }
nav :focus-visible { outline-color: var(--capri); }

.nav-brand { display: flex; align-items: center; gap: 20px; }

/* Footer, shared with the homepage and skill page. */
footer { background: var(--oxford-deep); padding: 72px 64px 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(190px,0.9fr) repeat(2,minmax(190px,1fr)); gap: clamp(32px,4.5vw,64px); align-items: start; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 32px; }
.footer-heading { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.015em; margin-bottom: 12px; }
.footer-email, .office-phone { color: rgba(255,255,255,0.64); text-decoration: none; transition: color 0.2s; }
.footer-email { font-size: 14px; }
.footer-email:hover, .office-phone:hover { color: var(--white); }
.office-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.office-name { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 12px; }
.office-address { font-size: 14px; font-style: normal; color: rgba(255,255,255,0.64); line-height: 1.85; }
.office-meta { display: block; margin-top: 8px; }
.footer-bottom { max-width: 1240px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
footer :focus-visible { outline-color: var(--capri); }
:is(h2, h3) { scroll-margin-top: 110px; }

/* ─── Process page ─── */
.container { max-width: 1080px; margin: 0 auto; }
.section { padding: 96px 64px; }
.section h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.section-lead { margin-top: 16px; max-width: 56ch; font-size: 17px; color: var(--gray-mid); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero: dark band so the fixed nav reads the same as on the homepage */
.hero { padding: 168px 64px 96px; background: linear-gradient(160deg, rgba(19,178,247,0.10) 0%, transparent 50%), var(--oxford); color: rgba(255,255,255,0.75); }
.crumbs { position: static; z-index: auto; padding: 0; display: flex; justify-content: flex-start; align-items: center; background: none; border: 0; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); }
.crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--capri); }
.hero-grid { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--white); text-wrap: balance; }
.hero-sub { max-width: 640px; margin-top: 16px; font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--white); text-wrap: balance; }
.hero-sub span { color: var(--capri); }
.hero-lead { max-width: 620px; margin-top: 20px; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.btn-emerald { display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px; background: var(--emerald); color: var(--oxford); border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; transition: transform 0.22s var(--ease-out-strong); }
.btn-emerald:hover { transform: translateY(-2px); }
.btn-emerald:active { transform: scale(0.97); transition-duration: 100ms; }


/* Shared pieces the four pages compose differently */
:root {
  --held: #F5C46B;            /* held/flagged on dark */
  --held-ink: #8A4B00;        /* held text on light, 7:1 on --held-bg */
  --held-bg: #FFF4E0;
  --held-line: #E9B35A;
  --ok-bg: #EAF6FD;
  --ink-soft: #4B5563;
}
::selection { background: var(--blizzard); color: var(--oxford); }
.num { font-variant-numeric: tabular-nums; }
.hero-grid--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.section--tint { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--oxford); color: rgba(255,255,255,0.75); }
.section--dark h2 { color: var(--white); }
.section--dark .section-lead { color: rgba(255,255,255,0.72); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.ico { flex: none; width: 16px; height: 16px; }
.text-link { font-weight: 600; color: var(--sky); }
.text-link:hover { color: var(--oxford); }
.section--dark .text-link { color: var(--capri); }
.section--dark .text-link:hover { color: var(--white); }

/* Status tags: one shape everywhere, colour by outcome */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.tag--ok { background: var(--ok-bg); color: #00527D; }
.tag--held { background: var(--held-bg); color: var(--held-ink); box-shadow: inset 0 0 0 1px var(--held-line); }
.hero .tag--ok, .section--dark .tag--ok { background: rgba(19,178,247,0.14); color: var(--blizzard); }
.hero .tag--held, .section--dark .tag--held { background: rgba(245,181,68,0.14); color: var(--held); box-shadow: inset 0 0 0 1px rgba(245,181,68,0.45); }

/* Buyer questions specific to the process: open columns, no boxes */
.qa { display: grid; grid-template-columns: repeat(var(--qa-cols, 2), minmax(0, 1fr)); gap: 40px 48px; margin-top: 40px; }
.qa article { padding-top: 22px; border-top: 2px solid var(--oxford); }
.qa h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.qa p { margin-top: 10px; font-size: 15px; color: var(--gray-dark); }


/* Closing call to action */
.closing { padding: 88px 64px; background: var(--oxford); color: rgba(255,255,255,0.75); text-align: center; }
.closing h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--white); text-wrap: balance; }
.closing .section-lead { margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.72); }
.closing .hero-actions { justify-content: center; }

/* Closing: the shared answers live here once, as plain facts */
.closing .facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; max-width: 920px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; color: rgba(255,255,255,0.72); }
.closing .facts li { display: inline-flex; align-items: center; gap: 8px; }
.closing .facts .ico { color: var(--capri); }

/* Other process pages */
.related { padding: 56px 64px; background: var(--off-white); border-top: 1px solid var(--border); }
.related h2 { font-size: 15px; font-weight: 700; color: var(--gray-dark); }
.related ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 16px; }
.related a { display: block; height: 100%; padding: 18px 0 4px; border-top: 1px solid var(--input-border); color: var(--oxford); text-decoration: none; }
.related a strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.related a strong .ico { color: var(--sky); transition: transform 0.22s var(--ease-out-strong); }
.related a span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.related a:hover strong { color: var(--sky); }
.related a:hover strong .ico { transform: translateX(4px); }

/* ─── Supplier invoices: the annotated invoice ─── */
.inv-figure { margin: 0; }
.inv-wrap { position: relative; padding-right: 232px; }
.inv { position: relative; max-width: 368px; padding: 26px 26px 20px; background: var(--white); color: var(--oxford); border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 28px 60px rgba(0,0,0,0.38); font-size: 13px; line-height: 1.45; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.inv-supplier { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.inv-supplier small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--gray-mid); }
.inv-type { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); }
.inv-meta { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.inv-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.inv-label { color: var(--gray-mid); }
.inv-meta strong { font-weight: 600; }
.inv-lines { padding: 12px 0; border-bottom: 1px solid var(--border); }
.inv-lines .inv-row { grid-template-columns: minmax(0, 1fr) 40px 56px 70px; padding: 5px 0; }
.inv-lines .inv-row > span:not(:first-child) { text-align: right; }
.inv-lines .inv-cols { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--gray-mid); }
.inv-total { display: grid; gap: 4px; padding-top: 12px; }
.inv-total .inv-row { grid-template-columns: minmax(0, 1fr) auto; }
.inv-total .inv-row:last-child { margin-top: 4px; font-size: 14px; font-weight: 800; }
.mark { margin: -2px -5px; padding: 2px 5px; border-radius: 4px; }
.mark--ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px #9CCFEA; }
.mark--held { background: var(--held-bg); box-shadow: inset 0 0 0 1px var(--held-line); }
.inv-note { position: absolute; top: 50%; left: calc(100% + 26px + 34px); width: 206px; transform: translateY(-50%); display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: normal; text-align: left; }
.inv-note::before { content: ''; position: absolute; top: 50%; right: 100%; width: 34px; border-top: 1.5px dashed currentColor; opacity: 0.7; }
.inv-note::after { content: ''; position: absolute; top: calc(50% - 3.5px); right: calc(100% + 34px); width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.inv-note .ico { width: 15px; height: 15px; margin-top: 1px; }
.inv-note--ok { background: #0B2C4E; color: var(--blizzard); border: 1px solid rgba(173,232,244,0.3); }
.inv-note--held { background: #2E2614; color: var(--held); border: 1px solid rgba(245,181,68,0.5); }
.inv-status { display: flex; align-items: center; gap: 10px; max-width: 368px; margin-top: 18px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.68); }


.match-wrap { margin-top: 40px; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 14px; }
.match { width: 100%; border-collapse: collapse; font-size: 15px; }
.match caption { padding: 16px 22px; text-align: left; font-size: 13px; color: var(--gray-mid); border-bottom: 1px solid var(--border); caption-side: top; }
.match th, .match td { padding: 16px 22px; text-align: left; vertical-align: middle; }
.match thead th { font-size: 13px; font-weight: 700; color: var(--gray-dark); background: var(--off-white); border-bottom: 1px solid var(--border); }
.match thead th small { display: block; font-weight: 500; color: var(--gray-mid); }
.match tbody tr + tr { border-top: 1px solid var(--border); }
.match tbody th { font-weight: 700; }
.match td.num { font-weight: 600; }
.match tr.is-held { background: var(--held-bg); }
.match tr.is-held td.num.is-off { color: var(--held-ink); font-weight: 800; }

.client-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: center; }
.client-strip img { display: block; width: auto; height: 44px; }
.client-strip p { max-width: 60ch; font-size: 19px; line-height: 1.55; color: var(--oxford); }
.client-strip p + p { margin-top: 10px; font-size: 15px; color: var(--gray-dark); }

/* ─── Carrier invoices: the audited bill ─── */
.audit { margin: 0; padding: 22px 22px 18px; background: #0A2443; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; box-shadow: 0 28px 60px rgba(0,0,0,0.3); }
.audit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.audit-head strong { font-size: 15px; font-weight: 700; color: var(--white); }
.audit-head span { font-size: 12.5px; color: rgba(255,255,255,0.62); }
.audit table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.audit th, .audit td { padding: 12px 4px; text-align: right; vertical-align: top; }
.audit thead th { padding-top: 12px; padding-bottom: 8px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.6); }
.audit th:first-child, .audit td:first-child { text-align: left; }
.audit tbody tr { border-top: 1px solid rgba(255,255,255,0.08); }
.audit tbody th { font-weight: 600; color: var(--white); text-align: left; }
.audit tbody th small { display: block; margin-top: 6px; font-weight: 500; }
.audit td { color: rgba(255,255,255,0.78); }
.audit tr.is-held td.is-off { color: var(--held); font-weight: 700; }
.audit tfoot td, .audit tfoot th { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.2); font-weight: 700; color: var(--white); }
.audit-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: rgba(245,181,68,0.08); border: 1px solid rgba(245,181,68,0.35); border-radius: 10px; font-size: 13px; color: rgba(255,255,255,0.8); }
.audit-foot strong { color: var(--held); white-space: nowrap; }

.ledger-wrap { margin-top: 44px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th { padding: 0 0 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--gray-mid); border-bottom: 2px solid var(--oxford); }
.ledger tbody tr { border-bottom: 1px solid var(--border); }
.ledger th[scope="row"], .ledger td { padding: 22px 24px 22px 0; text-align: left; vertical-align: top; }
.ledger th[scope="row"] { width: 26%; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.ledger td { font-size: 15px; line-height: 1.6; color: var(--gray-dark); }
.ledger td:last-child { width: 34%; padding-right: 0; color: var(--oxford); font-weight: 600; }

.wa { margin: 0; padding: 18px 18px 20px; background: #EFEAE2; border-radius: 16px; border: 1px solid #DDD5C8; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; font-size: 13px; font-weight: 700; color: var(--oxford); }
.wa-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--oxford); }
.wa-avatar img { width: 20px; height: auto; }
.wa-head small { display: block; font-size: 11.5px; font-weight: 500; color: #54656F; }
.wa-msg { position: relative; max-width: 92%; padding: 10px 12px 8px; background: var(--white); border-radius: 0 10px 10px 10px; box-shadow: 0 1px 1px rgba(11,20,26,0.13); font-size: 14px; line-height: 1.5; color: #111B21; }
.wa-msg p { line-height: 1.5; }
.wa-msg p + p { margin-top: 8px; }
.wa-time { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: #4F5F68; }
.wa-attach { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px; background: #F5F6F6; border-radius: 8px; }
.wa-attach span { font-size: 13px; font-weight: 600; }
.wa-attach small { display: block; font-weight: 500; color: #4F5F68; }
.paper { flex: none; width: 56px; height: 70px; padding: 8px 7px; background: #FBFAF6; border: 1px solid #D9D4C7; border-radius: 3px; display: grid; align-content: start; gap: 4px; }
.paper i { display: block; height: 3px; border-radius: 2px; background: #C9C3B3; }
.paper i:nth-child(2) { width: 70%; }
.paper i:nth-child(4) { width: 55%; }
.paper svg { width: 100%; height: 16px; margin-top: 4px; color: #1F3B73; }

.coding { display: grid; gap: 10px; margin: 0; }
.coding-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 12px; }
.coding-row > span { padding: 13px 16px; border-radius: 10px; font-size: 14px; }
.coding-row > span:first-child { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--white); }
.coding-row > span:last-child { background: rgba(19,178,247,0.1); border: 1px solid rgba(19,178,247,0.35); color: var(--blizzard); font-weight: 600; }
.coding-row small { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); }
.coding-row .ico { justify-self: center; color: rgba(255,255,255,0.5); }
.coding figcaption { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.client-quote { margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--white); }
.client-name { display: block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--capri); }

/* ─── Proof of delivery: the driver's phone ─── */
.phone { justify-self: center; width: 300px; margin: 0; padding: 10px; background: #0A1626; border: 1px solid rgba(255,255,255,0.18); border-radius: 40px; box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.phone-screen { overflow: hidden; border-radius: 31px; background: #EFEAE2; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 34px 16px 12px; background: #F0F2F5; border-bottom: 1px solid #DDD5C8; font-size: 13px; font-weight: 700; color: #111B21; }
.phone-bar small { display: block; font-size: 11px; font-weight: 500; color: #54656F; }
.chat { list-style: none; display: grid; gap: 8px; padding: 14px 12px 22px; }
.chat li { max-width: 84%; padding: 6px 6px 5px; border-radius: 9px; box-shadow: 0 1px 1px rgba(11,20,26,0.13); font-size: 13px; line-height: 1.45; color: #111B21; }
.chat .from-driver { justify-self: end; background: #D9FDD3; border-top-right-radius: 0; }
.chat .from-bot { justify-self: start; background: var(--white); border-top-left-radius: 0; padding: 7px 9px 5px; }
.chat .wa-time { margin-top: 2px; }
.photo { position: relative; display: block; width: 160px; height: 96px; overflow: hidden; border-radius: 6px; background: #8A8273; }
.photo .paper { position: absolute; left: 30px; top: 12px; width: 112px; height: 132px; padding: 12px 12px; transform: rotate(-4deg); gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.photo .paper i { height: 4px; }
.photo .paper svg { height: 22px; }

.route { margin-top: 52px; display: grid; gap: 20px; }
.route-track { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.route-track h3 { padding-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.route-track ol { display: contents; list-style: none; }
.route-stop { position: relative; padding-top: 30px; }
.route-stop::before { content: ''; position: absolute; top: 7px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid currentColor; }
.route-stop::after { content: ''; position: absolute; top: 14px; left: 21px; right: -6px; height: 2px; background: currentColor; opacity: 0.35; }
.route-stop:last-child::after { display: none; }
.route-stop strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.route-stop span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; }
.route-track--paper { padding: 22px 24px; border-radius: 14px; background: var(--off-white); border: 1px solid var(--border); color: var(--gray-mid); }
.route-track--paper .route-stop::after { background: none; border-top: 2px dashed currentColor; height: 0; }
.route-track--paper strong { color: var(--gray-dark); }
.route-track--paper h3 { color: var(--gray-dark); }
.route-track--wa { padding: 22px 24px; border-radius: 14px; background: var(--oxford); color: var(--capri); }
.route-track--wa h3, .route-track--wa strong { color: var(--white); }
.route-track--wa span { color: rgba(255,255,255,0.72); }
.route-track--wa .route-stop::before { background: var(--oxford); }


.compare-wrap { margin-top: 40px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; vertical-align: top; line-height: 1.55; }
.compare thead th { font-size: 14px; font-weight: 700; color: var(--gray-mid); background: var(--off-white); border-bottom: 1px solid var(--border); }
.compare thead th:last-child { color: var(--oxford); }
.compare tbody tr + tr { border-top: 1px solid var(--border); }
.compare tbody th { width: 18%; font-weight: 700; }
.compare td { width: 41%; color: var(--gray-mid); }
.compare td:last-child { color: var(--oxford); font-weight: 600; background: var(--capri-tint); }

.pull { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 48px; align-items: center; max-width: 960px; margin: 0; }
.pull img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.18); }
.pull blockquote p { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: var(--white); text-wrap: balance; }
.pull figcaption { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,0.7); }
.pull figcaption strong { color: var(--white); }

/* ─── Reconciliations: the workbook ─── */
.sheet { margin: 0; overflow: hidden; background: var(--white); color: var(--oxford); border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 28px 60px rgba(0,0,0,0.38); }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; background: #F3F4F6; border-bottom: 1px solid #D1D5DB; font-size: 12.5px; font-weight: 600; color: var(--gray-dark); }
.sheet-bar small { font-weight: 500; color: var(--ink-soft); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th, .sheet td { padding: 9px 10px; text-align: left; border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; white-space: normal; }
.sheet thead th { font-size: 11.5px; font-weight: 700; color: var(--gray-dark); background: #F9FAFB; }
.sheet .rn { width: 30px; padding: 9px 6px; text-align: center; font-size: 11px; font-weight: 500; color: var(--ink-soft); background: #F3F4F6; }
.sheet td.num { text-align: right; }
.sheet tr.is-matched td:not(.rn) { color: #6B7280; }
.sheet tr.is-matched td.state { color: #00527D; }
.sheet tr.is-held td:not(.rn) { background: var(--held-bg); }
.sheet tr.is-held td.state { color: var(--held-ink); font-weight: 700; }
.sheet td.state { font-weight: 600; }
.sheet td.state > span { display: inline-flex; align-items: center; gap: 6px; }
.sheet tfoot td { font-weight: 700; background: #F9FAFB; }
.sheet-tabs { display: flex; gap: 2px; padding: 0 8px; background: #F3F4F6; border-top: 1px solid #D1D5DB; overflow: hidden; }
.sheet-tabs span { padding: 8px 12px; font-size: 12px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.sheet-tabs span[aria-current] { background: var(--white); color: var(--oxford); font-weight: 700; box-shadow: inset 0 2px 0 var(--sky); }

.files { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 300px); align-items: center; gap: 20px; margin-top: 48px; }
.file-groups { display: grid; gap: 18px; }
.file-group h3 { font-size: 13px; font-weight: 700; color: var(--gray-dark); }
.file-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-group li { display: grid; place-items: end center; width: 44px; height: 54px; padding-bottom: 6px; background: var(--white); border: 1px solid var(--input-border); border-radius: 4px 12px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--gray-dark); }
.files-arrow { color: var(--sky); justify-self: center; }
.files-arrow svg { width: 40px; height: 40px; }
.report { padding: 24px; background: var(--oxford); color: rgba(255,255,255,0.75); border-radius: 14px; }
.report strong { display: block; font-size: 18px; color: var(--white); }
.report p { margin-top: 10px; font-size: 15px; }
.report img { display: block; height: 40px; width: auto; margin-bottom: 18px; padding: 6px 10px; background: var(--white); border-radius: 6px; }

.pairs { width: 100%; margin-top: 44px; border-collapse: collapse; }
.pairs thead th { padding: 0 0 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--gray-mid); border-bottom: 2px solid var(--oxford); }
.pairs tbody tr { border-bottom: 1px solid var(--border); }
.pairs th[scope="row"], .pairs td { padding: 22px 16px 22px 0; text-align: left; vertical-align: middle; }
.pairs th[scope="row"] { width: 30%; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.pairs th[scope="row"] a { color: inherit; text-decoration-color: var(--capri); }
.pairs td { font-size: 16px; color: var(--gray-dark); }
.pairs td.pairs-vs { width: 48px; padding-right: 16px; color: var(--sky); }
.pairs td.pairs-vs svg { display: block; width: 28px; height: 20px; }

.exceptions { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.exceptions li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.exceptions strong { font-size: 17px; font-weight: 700; color: var(--white); }
.exceptions span { font-size: 14.5px; color: rgba(255,255,255,0.68); }

/* One authored moment per page: the hero's evidence arrives in order */
@media (prefers-reduced-motion: no-preference) {
  .reveal-seq > * { animation: seq-in 0.7s var(--ease-out-strong) both; animation-delay: calc(0.2s + var(--i, 0) * 0.22s); }
  @keyframes seq-in { from { opacity: 0; transform: translateY(8px); } }
}

@media (max-width: 1100px) {
  .hero-grid, .hero-grid--wide { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { gap: 24px; }
  .phone { justify-self: start; }
  .audit, .sheet { max-width: 600px; }
}
@media (max-width: 1024px) {
  nav { padding: 20px 40px; }
  .hero, .section, .closing, .related { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
  .split, .split--even { grid-template-columns: 1fr; gap: 40px; }
  .route-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-track h3 { grid-column: 1 / -1; margin-bottom: 16px; }
  .qa { --qa-cols: 1 !important; gap: 28px; }
  .related ul { grid-template-columns: 1fr; }
  .related li + li a { border-top-color: var(--border); }
}
@media (max-width: 960px) { .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 860px) {
  nav { padding: 18px 28px; }
  .nav-links .nav-cta { padding: 11px 16px; }
  .hero { padding: 120px 28px 64px; }
  .section, .closing { padding: 64px 28px; }
  .related { padding: 48px 28px; }
  footer { padding: 56px 28px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-office { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom { margin-top: 40px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { justify-content: flex-start; }

  /* Annotated invoice: notes drop under the line they explain */
  .inv-wrap { padding-right: 0; }
  .inv-note { position: static; grid-column: 1 / -1; width: auto; margin: 6px 0 4px; transform: none; }
  .inv-note::before, .inv-note::after { display: none; }


  /* Data tables become one labelled block per row */
  .stack thead { display: none; }
  .stack tbody tr { display: block; padding: 16px 18px; }
  .stack tbody th, .stack tbody td { display: block; width: auto !important; padding: 0; }
  .stack tbody td { margin-top: 8px; }
  .stack tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--gray-mid); }
  .match tbody td.num { display: inline-block; margin-right: 18px; }
  .ledger tbody tr, .pairs tbody tr { padding-left: 0; padding-right: 0; }
  .ledger th[scope="row"] { font-size: 18px; }
  .pairs td.pairs-vs { display: none; }
  .compare td:last-child { margin: 10px -18px -16px; padding: 10px 18px 16px; }

  .client-strip { grid-template-columns: 1fr; }
  .route-track { grid-template-columns: 1fr; gap: 0; }
  .route-track h3 { margin-bottom: 8px; }
  .route-stop { padding: 0 0 18px 30px; }
  .route-stop::before { top: 3px; }
  .route-stop::after { top: 21px; bottom: -3px; left: 6px; right: auto; width: 2px; height: auto; }
  .route-track--paper .route-stop::after { width: 0; border-top: 0; border-left: 2px dashed currentColor; }
  .files { grid-template-columns: 1fr; }
  .files-arrow { transform: rotate(90deg); }
  .pull { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero, .section, .closing, .related { padding-left: 16px; padding-right: 16px; }
  footer { padding-left: 16px; padding-right: 16px; }
  .footer-links { gap: 16px; }
  .inv { padding: 20px 16px 16px; }
  .inv-lines .inv-row { grid-template-columns: minmax(0, 1fr) 30px 50px 64px; gap: 4px 8px; }
  .audit { padding: 16px 12px 14px; }
  .audit th, .audit td { padding-left: 2px; padding-right: 2px; font-size: 12.5px; }
  .audit .tag { white-space: normal; }
  .audit-foot { flex-direction: column; align-items: flex-start; }
  .sheet th, .sheet td { padding: 8px 6px; font-size: 12px; }
  .sheet .col-ledger { display: none; }
  .route-track--paper, .route-track--wa { padding: 20px 18px; }
  .phone { width: 100%; max-width: 300px; }
  .coding-row { grid-template-columns: 1fr; gap: 4px; }
  .coding-row .ico { transform: rotate(90deg); }
  .closing .facts { justify-content: flex-start; text-align: left; }
}
@media (max-width: 374px) {
  nav { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .nav-links .nav-cta { padding: 10px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav, .nav-links a, .nav-links a::after, .nav-links .nav-cta, .btn-emerald, .related a strong .ico { transition: none; }
}

/* Eight footer links: wrap whole links instead of breaking them mid-name */
.footer-bottom { gap: 24px; }
.footer-copy { flex-shrink: 0; }
.footer-links { flex-wrap: wrap; row-gap: 12px; }
.footer-links a { white-space: nowrap; }
