/* OnDispatch.com public website. One stylesheet, no framework, nothing shared with the ERP's /css. */

:root {
  --blue: #317ab6;          /* the logo's blue */
  --blue-dark: #1f5a8c;     /* buttons and links: 6.9:1 on white */
  --navy: #0e2236;
  --ink: #1b2b3a;
  --muted: #566778;
  --line: #dbe3ea;
  --wash: #f3f7fa;
  --white: #fff;
  --amber: #f0a232;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: .8em; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 650; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--blue-dark); color: var(--blue-dark); background: transparent; }
.btn-ghost:hover { background: var(--wash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .97rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); }
.nav .btn { color: var(--white); padding: 9px 16px; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.lang a { padding: 3px 8px; border-radius: 5px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 650; color: var(--navy); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .lang { align-self: flex-start; margin: 14px 0; }
  .nav .lang a { border: 0; padding: 4px 10px; }
  .nav .btn { text-align: center; border: 0; margin-top: 6px; padding: 12px; }
}

/* sections */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.wash { background: var(--wash); }
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, #eef5fb 0%, var(--white) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } section { padding: 52px 0; } }

.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-5, .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card .more { display: inline-block; margin-top: .8em; font-weight: 650; font-size: .93rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 40px; height: 40px; border-radius: 9px; background: #e4eff8; color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 66px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: .95rem; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 1.2em 0 0; list-style: none; }
.pills li { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: .93rem; font-weight: 550; }

.country { display: flex; gap: 14px; align-items: flex-start; }
.country .code { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }

.cta-band { background: var(--navy); color: #d6e2ee; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-primary { background: var(--amber); color: var(--navy); }
.cta-band .btn-primary:hover { background: #ffc061; }
.cta-band .btn-row { justify-content: center; }

/* the drawn screen (an illustration with invented data, never a real screenshot) */
.screen { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -28px rgba(14,34,54,.45); overflow: hidden; font-size: .86rem; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--navy); color: #c9d8e6; font-size: .78rem; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #48627b; display: inline-block; }
.screen-bar span { margin-left: 8px; }
.screen-body { padding: 18px; display: grid; gap: 14px; }
.screen-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.screen-head b { display: block; color: var(--navy); font-size: 1rem; }
.screen-head small { color: var(--muted); }
.tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tag-blue { background: #e4eff8; color: var(--blue-dark); }
.tag-green { background: #e3f4ea; color: #1d6b3c; }
.tag-amber { background: #fdf0da; color: #8a5a0b; }
.rows { display: grid; gap: 8px; margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track span { height: 6px; border-radius: 3px; background: var(--line); }
.track span.on { background: var(--blue); }
.screen-note { font-size: .74rem; color: var(--muted); text-align: center; padding: 0 18px 14px; margin: 0; }

/* footer */
.site-footer { background: #091827; color: #a9bccd; padding: 48px 0 28px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6e2ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #1d3145; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* a placeholder must look like one */
.todo { background: #fff3cd; color: #6b4e00; border: 1px dashed #c9a227; border-radius: 4px; padding: 0 6px; font-size: .85em; font-weight: 650; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* page head (every page but the home page) */
.page-head { padding: 56px 0 40px; background: linear-gradient(180deg, #eef5fb 0%, var(--white) 100%); }
.page-head .lede { margin-bottom: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1.6em 0 0; list-style: none; }
.jump a { display: block; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--blue-dark); }

/* product: one block per job */
.feature { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature:nth-of-type(even) { background: var(--wash); }
@media (max-width: 860px) { .feature .wrap { grid-template-columns: 1fr; gap: 24px; } .feature { padding: 40px 0; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding: 14px 16px 14px 46px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 9px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.ticks strong { color: var(--navy); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin-top: 1.2em; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.best { border: 2px solid var(--blue-dark); }
.plan .plan-name { font-size: 1.2rem; }
.plan .price { font-size: 2.2rem; font-weight: 750; color: var(--navy); line-height: 1.1; margin: .2em 0 0; }
.plan .price small { font-size: .9rem; font-weight: 550; color: var(--muted); }
.plan .per { color: var(--muted); font-size: .9rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 1em 0 1.4em; display: grid; gap: 8px; font-size: .95rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; text-align: center; }
.cur { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--white); }
.cur button { font: inherit; font-weight: 650; font-size: .9rem; border: 0; background: none; border-radius: 6px; padding: 6px 14px; color: var(--muted); cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
[data-cur="eur"] .usd, [data-cur="usd"] .eur { display: none; }
table.simple { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); }
table.simple th, table.simple td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.simple th { color: var(--navy); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* long text: about, terms, privacy */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.banner-draft { background: #fff3cd; color: #6b4e00; border: 1px dashed #c9a227; border-radius: var(--radius); padding: 14px 18px; font-weight: 650; margin-bottom: 28px; }

/* "See OnDispatch in action": faithful recreations of the screens, every name and number invented */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 32px; }
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 18px 40px -30px rgba(14,34,54,.5); }
.shots img { width: 100%; height: auto; display: block; }
.shots figcaption { margin-top: 10px; font-size: .95rem; color: var(--ink); }
.shots figcaption strong { display: block; color: var(--navy); }
.shots figcaption span { color: var(--muted); }
.shots-note { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* home: three large screens, alternating sides */
.showcase { display: grid; gap: 40px; margin-top: 36px; }
.showrow { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: center; }
.showrow:nth-child(even) .shot { order: 2; }
.showrow .shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 24px 50px -30px rgba(14,34,54,.5); }
.showrow img { width: 100%; height: auto; display: block; }
.showrow h3 { font-size: 1.35rem; }
.showrow p { color: var(--muted); margin: 0; }
.showrow .more { display: inline-block; margin-top: 12px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.showcase.gallery { gap: 48px; margin-top: 28px; }
@media (max-width: 860px) { .showrow { grid-template-columns: 1fr; gap: 14px; } .showrow:nth-child(even) .shot { order: 0; } }

/* product tour: sticky jump pills, evidence screenshots, the recruiting callout */
.page-head .jump { position: sticky; top: 76px; z-index: 5; background: rgba(255,255,255,.96); padding: 8px 0; margin: 1.6em 0 0; border-bottom: 1px solid var(--line); }
.feature .evidence { grid-column: 1 / -1; margin: 32px 0 0; }
.feature .evidence a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 24px 50px -30px rgba(14,34,54,.5); }
.feature .evidence img { width: 100%; height: auto; display: block; }
.feature .evidence figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.callout { margin: 16px 0 0; padding: 16px 18px; background: #e4eff8; border-left: 4px solid var(--blue-dark); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.callout strong { color: var(--navy); }

/* product: the workflow graphic under the page head */
.flowwrap { border-bottom: 1px solid var(--line); }
.flowlabel { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.flow { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; align-items: stretch; }
.flow li { position: relative; background: var(--navy); color: var(--white); font-weight: 650; font-size: .9rem; line-height: 1.25; padding: 12px 14px 12px 18px; margin-right: 26px; min-width: 120px; display: flex; align-items: center; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.flow li::after { content: ""; position: absolute; right: -22px; top: 50%; width: 14px; height: 2px; background: var(--blue); transform: translateY(-50%); }
.flow li:last-child { margin-right: 0; } .flow li:last-child::after { display: none; }
.flow li:nth-child(odd) { background: var(--blue-dark); }
.around { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.around li { border: 1px solid var(--blue-dark); color: var(--blue-dark); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
@media (max-width: 700px) { .flow { flex-direction: column; gap: 6px; } .flow li { margin-right: 0; clip-path: none; border-radius: 6px; } .flow li::after { display: none; } }

/* product: lightbox for the screens */
.shots figcaption .more { display: inline-block; margin-top: 8px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,24,39,.92); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; color: var(--white); font-weight: 650; }
.lightbox-close { font: inherit; font-weight: 650; background: var(--white); color: var(--navy); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.lightbox-body { flex: 1; overflow: auto; padding: 0 20px 20px; }
.lightbox-body img { width: auto; max-width: none; min-width: 100%; height: auto; display: block; margin: 0 auto; background: var(--white); border-radius: 6px; }
@media (min-width: 1700px) { .lightbox-body img { min-width: 0; max-width: 1600px; } }
.shots figure:nth-child(odd):last-child { grid-column: 1 / -1; }
.shots-note + .shots { margin-top: 20px; }

/* product: the technician app, a row of phones */
.phones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 32px 0 0; }
@media (max-width: 900px) { .phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .phones { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.phones figure { margin: 0; }
.phones a { display: block; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px -28px rgba(14,34,54,.5); }
.phones img { width: 100%; height: auto; display: block; }
.phones figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); text-align: center; }
.phones figcaption strong { display: block; color: var(--navy); }
.phones-note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* product: one connected timeline under the page head (replaces the chevron flow) */
.journeywrap { border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.journey-h { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .4em; }
.journeywrap .lede { max-width: 44em; }
.timeline { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 21px; border-top: 2px solid var(--line); }
.timeline li { position: relative; text-align: center; padding: 0 6px; }
.timeline .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-dark); color: var(--blue-dark); }
.timeline .dot svg { width: 20px; height: 20px; }
.timeline b { display: block; color: var(--navy); font-size: .98rem; }
.timeline li > span:last-child { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; margin-top: 2px; }
.connected { margin: 30px 0 0; font-size: .95rem; color: var(--muted); }
.connected strong { color: var(--navy); margin-right: 4px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; padding-left: 0; }
  .timeline::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px solid var(--line); }
  .timeline li { text-align: left; padding-left: 60px; min-height: 44px; }
  .timeline .dot { position: absolute; left: 0; top: 0; margin: 0; }
}
