/* vialshift.com: the public website (requirements section 15, layout A). Plain CSS, no build step. */
:root {
  --navy: #1b2461;
  --royal: #25348e;
  --ink: #1d2233;
  --muted: #5b6275;
  --line: #e3e6ef;
  --soft: #f4f6fb;
  --ok: #0f6e56;
  --warm: #fff8ec;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--royal); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--navy); text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); }
.btn { display: inline-block; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid var(--royal); cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--royal); color: #fff; }
.btn.ghost { background: #fff; color: var(--royal); }
.nav .btn { padding: 8px 14px; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { background: var(--soft); padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; color: var(--navy); letter-spacing: -0.5px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pilot-line { margin-top: 16px; font-size: 14px; color: var(--ok); font-weight: 600; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px; max-width: 320px; margin: 0 auto; }
.shot img { border-radius: 14px; }
.shot figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--soft); }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; color: var(--navy); }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 40em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--royal); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
ul.checks { list-style: none; padding: 0; margin: 12px 0 0; }
ul.checks li { padding-left: 26px; position: relative; margin: 6px 0; color: var(--ink); }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.calc input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.result { background: var(--navy); color: #fff; border-radius: 14px; padding: 24px; }
.result .big { font-size: 40px; font-weight: 700; line-height: 1.1; }
.result .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.2); padding: 8px 0; font-size: 15px; }
.result .note { font-size: 13px; opacity: .8; margin-top: 10px; }

/* Pricing */
.pilot-banner { background: #e6f4ee; color: var(--ok); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 22px; }
.price { font-size: 34px; font-weight: 700; color: var(--navy); margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--royal); }
.tag { display: inline-block; background: #e8ecfa; color: var(--royal); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Demo form */
form.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.demo .wide { grid-column: 1 / -1; }
form.demo label { font-weight: 600; font-size: 14px; }
form.demo input, form.demo select, form.demo textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
form.demo .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { form.demo { grid-template-columns: 1fr; } }
.form-msg { grid-column: 1 / -1; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.form-msg.ok { background: #e6f4ee; color: var(--ok); }
.form-msg.err { background: #fdecec; color: #8a1f1f; }

/* Footer */
footer { background: var(--navy); color: #cfd5ee; padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; margin-left: 16px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.legal h1 { color: var(--navy); }
.legal h2 { font-size: 21px; margin-top: 28px; }
.draft { background: var(--warm); border: 1px solid #f0d9a8; color: #7a4300; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.mt8 { margin-top: 8px; } .mt22 { margin-top: 22px; } .mb10 { margin-bottom: 10px; }

/* Help guides (requirements section 17, layout A) */
.help-hero { background: var(--soft); padding: 48px 0 40px; }
.help-hero h1 { font-size: 36px; line-height: 1.2; margin: 0 0 10px; color: var(--navy); }
.help-hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 38em; }
a.role-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.role-card:hover { border-color: var(--royal); }
.role-card .go { margin-top: 12px; color: var(--royal); font-weight: 600; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
ol.guide { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.guide > li { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
ol.guide > li:last-child { border-bottom: 0; }
ol.guide h2 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
ol.guide h2::before { content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--royal); color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
ol.guide p { color: var(--ink); margin: 0 0 10px; }
ol.guide .tip { font-size: 14px; color: var(--muted); }
ol.guide figure { margin: 0; background: var(--soft); border-radius: 16px; padding: 12px; }
ol.guide figure img { border-radius: 10px; border: 1px solid var(--line); background: #fff; margin: 0 auto; }
@media (max-width: 820px) { ol.guide > li { grid-template-columns: 1fr; gap: 16px; } ol.guide figure { max-width: 340px; } }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--ink); }

/* Gallery and feature grid (requirements section 18, layout A) */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--royal); color: #fff; }
.g-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-grid[hidden] { display: none; }
.g-card.wide { grid-column: span 2; }
@media (max-width: 980px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } .g-card.wide { grid-column: auto; } }
.g-open { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0; cursor: zoom-in; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.g-open:hover, .g-open:focus-visible { border-color: var(--royal); box-shadow: 0 8px 24px rgba(27,36,97,.12); transform: translateY(-2px); outline: none; }
.g-img { display: block; height: 300px; overflow: hidden; background: var(--soft); padding: 12px 12px 0; }
.g-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.g-card.wide .g-img img { object-fit: contain; object-position: top left; border-radius: 10px; border-bottom: 1px solid var(--line); height: auto; max-height: 100%; }
.g-text { display: block; padding: 14px 16px 16px; }
.g-text b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.g-text span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lightbox { border: 0; border-radius: 18px; padding: 20px 56px; max-width: min(960px, 94vw); max-height: 92vh; background: #fff; }
.lightbox::backdrop { background: rgba(14,18,48,.72); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 72vh; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; }
.lightbox figcaption { text-align: center; margin-top: 12px; max-width: 34em; margin-left: auto; margin-right: auto; }
.lightbox figcaption b { display: block; color: var(--navy); font-size: 17px; }
.lightbox figcaption span { color: var(--muted); font-size: 15px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: var(--soft); color: var(--navy); width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-close { top: 10px; right: 10px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (max-width: 560px) { .lightbox { padding: 52px 12px 16px; } .lb-nav { top: 10px; transform: none; } .lb-nav.prev { left: 10px; } .lb-nav.next { left: 56px; right: auto; } }
.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }
.f-grid ul.checks li { font-size: 15px; }
.f-cta { background: var(--soft); }
.g-join { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; }
.g-join h3 { margin: 0; font-size: 20px; color: #fff; }
.g-join p { margin: 0; color: #cfd5ee; }
.g-join .btn { align-self: flex-start; background: #fff; color: var(--navy); border-color: #fff; }
@media (max-width: 560px) {
  .seg { display: flex; width: 100%; flex-wrap: nowrap; }
  .seg button { flex: 1; padding: 8px 8px; font-size: 14px; }
  .g-card.wide .g-img { height: auto; padding-bottom: 12px; }
}

/* Add VialShift to your phone (2026-12-04). */
ol.install-steps { margin: 8px 0 0; padding-left: 22px; }
ol.install-steps li { margin: 0 0 10px; line-height: 1.5; }
