/* Zap Ride — shares Zap Cloud's family look (Inter, bolt mark, 8px radius); green is Zap Ride's own accent. */
:root {
  --ink: #151a28;
  --muted: #5b6475;
  --bg: #f6f7f9;
  --card: #fff;
  --line: #e4e7ec;
  --ride: #15803d;
  --ride-dark: #116632;
  --ride-soft: #e8f5ec;
  --cloud: #2463eb;
  --cloud-soft: #eaf0fe;
  --maple: #d52b1e;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 8px 24px rgb(16 24 40 / .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ride); margin-bottom: .75rem; }
:focus-visible { outline: 3px solid var(--ride); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .7rem 1.2rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--ride); color: #fff; }
.btn-primary:hover { background: var(--ride-dark); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9ced6; }
.btn-block { width: 100%; padding: .9rem 1.2rem; font-size: 1rem; }

/* Top strip: parent company + Canadian identity */
.topbar { background: var(--ink); color: #d6dae3; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* Header + nav */
.site-header { background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.1rem; text-decoration: none; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: var(--ride-soft); color: var(--ride); }
.mark.cloud { background: var(--cloud-soft); color: var(--cloud); }
.mark.holdings { background: var(--ink); color: #fff; }
.mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links > a:not(.btn), .dropdown > button {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted);
  background: none; border: 0; padding: .5rem .75rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
}
.nav-links > a:not(.btn):hover, .dropdown > button:hover, .nav-links > a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.nav-links .btn { margin-left: .5rem; }
.chev { width: 14px; height: 14px; transition: transform .15s; }
.dropdown { position: relative; }
.dropdown > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem;
}
.dropdown > button[aria-expanded="true"] + .dropdown-panel { display: block; }
.product-link { display: flex; gap: .75rem; padding: .7rem; border-radius: var(--radius); text-decoration: none; }
.product-link:hover { background: var(--bg); }
.product-link strong { display: block; font-size: .95rem; }
.product-link small { color: var(--muted); font-size: .82rem; }
.product-link .mark { flex: none; }
.dropdown-foot { border-top: 1px solid var(--line); margin-top: .35rem; padding: .6rem .7rem .3rem; font-size: .85rem; }
.dropdown-foot a { color: var(--ride); font-weight: 600; text-decoration: none; }
.ext { width: 12px; height: 12px; display: inline; vertical-align: -1px; margin-left: 2px; opacity: .6; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; padding-top: .5rem; }
  .menu-toggle[aria-expanded="true"] + .nav-links { display: flex; }
  .nav-links > a:not(.btn), .dropdown > button { width: 100%; padding: .75rem; justify-content: space-between; font-size: 1rem; }
  .dropdown-panel { position: static; transform: none; width: auto; box-shadow: none; margin: .25rem 0 .5rem; }
  .nav-links .btn { margin: .5rem 0 0; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 400px at 80% -10%, var(--ride-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 550; margin-bottom: 1.25rem; }
.page-hero { padding: 64px 0 48px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Fare card */
.fare-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.fare-card h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.fare-card > p { color: var(--muted); font-size: .92rem; }
.route { position: relative; margin: 1.25rem 0; }
.route::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 44px; border-left: 2px dashed #c9ced6; }
.field { position: relative; margin-bottom: .75rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 .3rem 44px; }
.field input {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem .8rem 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ride); background: var(--card); box-shadow: 0 0 0 3px var(--ride-soft); }
.field .dot { position: absolute; left: 16px; bottom: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--ride); }
.field .dot.dest { border-radius: 3px; background: var(--ink); }
.fare-note { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--ride-soft); color: #0d4f26; font-size: .92rem; }
.fare-note[hidden] { display: none; }
.fine { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--ride-soft); color: var(--ride); margin-bottom: 1rem; }
.icon svg { width: 20px; height: 20px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .25rem; }
.cta-band p { color: #c3c9d4; margin: 0; max-width: 36rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e9ecf1; }

/* Zap Holdings family */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.product-card:hover { border-color: #c9ced6; box-shadow: var(--shadow); }
.product-card .mark { width: 44px; height: 44px; margin-bottom: 1rem; }
.product-card .mark svg { width: 22px; height: 22px; }
.product-card p { color: var(--muted); flex: 1; }
.product-card .go { font-weight: 600; font-size: .92rem; }
.product-card.ride .go { color: var(--ride); }
.product-card.cloud .go { color: var(--cloud); }
.product-card.soon { border-style: dashed; background: transparent; }
.tag { display: inline-block; font-size: .72rem; font-weight: 650; padding: .15rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); margin-left: .4rem; vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips li { font-size: .78rem; padding: .2rem .55rem; border-radius: 999px; background: var(--cloud-soft); color: #1a4fc4; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ride-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Investors */
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3245; }
.btn-ink:disabled { opacity: .6; cursor: progress; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.icon.ink { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.legal { font-size: .82rem; color: var(--muted); max-width: 48rem; margin: 0; }
.modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); background: var(--card); }
.modal::backdrop { background: rgb(21 26 40 / .55); }
.memo-form { padding: 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-close { background: none; border: 0; padding: .35rem; border-radius: var(--radius); cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.memo-fields > p.muted { font-size: .9rem; }
.form-field { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .85rem; }
.form-field input, .form-field select {
  display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px var(--line); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: var(--maple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-field { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .25rem 0 1rem; cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--maple); font-size: .9rem; margin: 0 0 .85rem; }
.form-error[hidden], .memo-fields[hidden], .memo-done[hidden] { display: none; }
.memo-done { text-align: center; padding: 8px 0 0; }
.memo-done .icon { margin: 0 auto 1rem; }
.memo-done p { color: var(--muted); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; color: var(--ink); }
.footer-grid a:hover { color: var(--ride); }
.footer-grid .muted { margin-top: .75rem; max-width: 22rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .family-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero, .page-hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 28px 24px; }
}
