:root {
  --ink: #10223b;
  --ink-soft: #40566d;
  --navy: #07182c;
  --navy-2: #0b2440;
  --mint: #12d6a7;
  --mint-dark: #05765d;
  --blue: #42a5ff;
  --paper: #f6f8f5;
  --paper-2: #edf2ef;
  --white: #fff;
  --line: #d9e2df;
  --warning: #b66b13;
  --danger: #b13b4b;
  --shadow: 0 24px 70px rgba(8, 27, 48, 0.12);
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--navy);
  background: var(--mint);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.section-shell { width: var(--shell); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: #f4fbff;
  background: rgba(7, 24, 44, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand strong { font-weight: 780; }
.brand-mark { width: 32px; height: 32px; color: var(--mint); }
.brand-mark svg path:first-child { fill: currentColor; }
.brand-mark-cut { fill: var(--navy); }
.primary-nav { display: flex; gap: 28px; font-size: 14px; }
.primary-nav a, .text-button { color: #bfd0dd; text-decoration: none; }
.primary-nav a:hover, .text-button:hover { color: var(--white); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.text-button { border: 0; background: none; cursor: pointer; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #031c18;
  background: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(18, 214, 167, 0.2); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.button-small { min-height: 40px; padding-inline: 16px; border-radius: 10px; font-size: 14px; }
.button-ghost { color: inherit; background: transparent; border-color: rgba(16, 34, 59, 0.22); }
.site-header .button-ghost, .hero .button-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.button-light { color: var(--navy); background: var(--white); border-color: var(--white); }
.button-full { width: 100%; }
.button-danger { color: #fff; background: var(--danger); border-color: var(--danger); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
  min-height: 660px;
  color: var(--white);
}
.hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  content: "";
  background:
    radial-gradient(circle at 78% 25%, rgba(24, 145, 183, 0.22), transparent 34%),
    linear-gradient(145deg, #07182c 0%, #0a213b 57%, #08192c 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { max-width: 650px; padding: 74px 0 84px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #90f3d8; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px rgba(18, 214, 167, 0.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 5vw, 72px); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 3.7vw, 52px); }
h3 { margin-bottom: 12px; font-size: 22px; }
.hero-lede { max-width: 620px; margin-bottom: 34px; color: #c5d6e3; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; gap: 34px; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong { font-size: 22px; }
.hero-proof span { color: #aec4d2; font-size: 12px; }

.hero-visual { position: relative; min-height: 520px; overflow: hidden; }
.visual-glow { position: absolute; inset: 14% 8% 18%; background: radial-gradient(circle, rgba(66, 165, 255, 0.2), transparent 66%); filter: blur(14px); }
.route-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.92; }
.map-grid path { fill: none; stroke: rgba(190, 222, 235, 0.08); stroke-width: 1; }
.route-arc { fill: none; stroke: url(#routeLine); stroke-width: 2.2; stroke-dasharray: 6 8; animation: route 20s linear infinite; }
.route-arc-two { opacity: 0.44; animation-direction: reverse; }
.route-node circle:first-child { fill: var(--mint); }
.route-node circle:last-child { fill: transparent; stroke: var(--mint); opacity: 0.35; animation: node-pulse 2.4s ease-out infinite; }
.node-two circle:first-child { fill: var(--blue); }
.node-two circle:last-child { stroke: var(--blue); animation-delay: .7s; }
.node-three circle:last-child { animation-delay: 1.2s; }
@keyframes route { to { stroke-dashoffset: -280; } }
@keyframes node-pulse { 70%, 100% { r: 33px; opacity: 0; } }
.route-card { position: absolute; padding: 20px; color: var(--white); background: rgba(11, 36, 64, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); backdrop-filter: blur(14px); }
.route-card-primary { right: 5%; bottom: 12%; width: min(310px, 76%); }
.route-card-primary strong { display: block; margin: 4px 0 17px; font-size: 20px; }
.route-label { color: #bad0dd; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.route-metrics { display: flex; gap: 22px; color: #abc0cf; font-size: 12px; }
.route-metrics b { color: var(--white); font-size: 15px; }
.capacity { height: 5px; margin: 18px 0 7px; overflow: hidden; background: rgba(255, 255, 255, 0.1); border-radius: 99px; }
.capacity span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--blue)); border-radius: inherit; }
.route-card small { color: #b4c9d6; }
.route-card-secondary { top: 16%; left: 4%; display: flex; align-items: center; gap: 12px; padding: 14px 17px; }
.route-card-secondary strong, .route-card-secondary small { display: block; }
.route-card-secondary strong { font-size: 13px; }
.route-card-secondary small { color: #b4c9d6; font-size: 10px; }
.pulse-icon { width: 10px; height: 10px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(18, 214, 167, 0.12); }

.trust-strip { color: #d9e7ef; background: #0a1e35; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 22px; }
.trust-inner span { position: relative; padding-left: 19px; font-size: 13px; text-align: center; }
.trust-inner span::before { position: absolute; top: 7px; width: 6px; height: 6px; margin-left: -17px; content: ""; background: var(--mint); border-radius: 50%; }

.content-section { padding-block: 112px; }
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { min-height: 250px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(16, 34, 59, 0.04); }
.benefit-card p { color: var(--ink-soft); }
.icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 35px; color: var(--navy); background: #dff9f1; border-radius: 12px; font-weight: 800; }

.transit-section { color: var(--white); background: #0a1e35; }
.transit-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; }
.transit-section .section-heading > p:not(.eyebrow) { color: #c3d4df; }
.transit-section .eyebrow { color: #91efd6; }
.source-link { display: inline-flex; gap: 8px; color: #9af2dc; font-size: 14px; font-weight: 750; text-decoration: none; }
.source-link:hover { color: var(--white); }
.transit-comparison { display: grid; gap: 14px; }
.transit-row { padding: 24px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; }
.transit-row.premium-transit { background: linear-gradient(135deg, rgba(18, 214, 167, .12), rgba(66, 165, 255, .08)); border-color: rgba(18, 214, 167, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .15); }
.transit-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.transit-copy strong { font-size: 18px; }
.transit-copy span, .transit-row small { color: #b4c9d6; font-size: 12px; }
.route-diagram { display: flex; align-items: center; margin: 24px 0 16px; }
.route-diagram i { flex: 0 0 auto; display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 9px; color: #dce9f0; background: #163552; border: 1px solid rgba(255, 255, 255, .17); border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 800; }
.route-diagram i.wide-node { min-width: 126px; color: #05261e; background: var(--mint); border-color: var(--mint); border-radius: 99px; }
.route-diagram b { flex: 1 1 30px; height: 2px; background: repeating-linear-gradient(90deg, #5e7b91 0 6px, transparent 6px 11px); }
.premium-transit .route-diagram b { height: 3px; background: linear-gradient(90deg, var(--mint), var(--blue)); }
.diagram-note { margin: 2px 4px 0; color: #9fb7c6; font-size: 11px; }

.pricing-section { background: var(--white); border-block: 1px solid var(--line); }
.pricing-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: none; }
.pricing-heading > div:first-child { max-width: 670px; }
.billing-toggle { display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.billing-toggle button { min-height: 38px; padding: 0 14px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.billing-toggle button.active { color: var(--navy); background: var(--white); box-shadow: 0 4px 14px rgba(16, 34, 59, 0.09); font-weight: 750; }
.billing-toggle span { color: var(--mint-dark); font-size: 10px; }
.notice-bar { margin: -22px 0 30px; padding: 14px 17px; color: #725119; background: #fff7e4; border: 1px solid #efdcae; border-radius: 12px; font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 510px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-card.featured { color: var(--white); background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-8px); }
.popular-badge { position: absolute; top: 20px; right: 20px; padding: 6px 9px; color: #03221c; background: var(--mint); border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-card .plan-eyebrow { margin-bottom: 4px; color: var(--mint-dark); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.plan-card.featured .plan-eyebrow { color: #87ebd1; }
.plan-card h3 { margin: 0 0 8px; font-size: 27px; }
.plan-summary { min-height: 66px; color: var(--ink-soft); font-size: 14px; }
.plan-card.featured .plan-summary { color: #c0d0da; }
.price-line { display: flex; align-items: baseline; margin: 18px 0 24px; }
.price-line strong { font-size: 43px; letter-spacing: -.06em; }
.price-line span { margin-left: 7px; color: var(--ink-soft); }
.plan-card.featured .price-line span { color: #c0d0da; }
.plan-features { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.plan-features li { position: relative; padding-left: 22px; font-size: 14px; }
.plan-features li::before { position: absolute; left: 0; content: "✓"; color: var(--mint-dark); font-weight: 900; }
.plan-card.featured .plan-features li::before { color: var(--mint); }
.plan-checkout { margin-top: auto; }
.plan-checkout .button { width: 100%; }
.coupon-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.coupon-field input { min-width: 0; height: 42px; padding: 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.plan-card.featured .coupon-field input { color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255,255,255,.17); }
.coupon-field button { padding: 0 11px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 9px; opacity: .72; cursor: pointer; }
.pricing-footnote { max-width: 720px; margin: 28px auto 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.loading-card { grid-column: 1 / -1; padding: 48px; color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.managed-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.managed-copy { position: sticky; top: 120px; }
.managed-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.text-link { display: inline-flex; gap: 10px; color: var(--mint-dark); font-weight: 750; text-decoration: none; }
.text-link:hover span { transform: translateX(3px); }
.managed-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.managed-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 32px 0; border-top: 1px solid var(--line); }
.managed-steps li:last-child { border-bottom: 1px solid var(--line); }
.managed-steps li > span { color: var(--mint-dark); font-size: 12px; font-weight: 800; }
.managed-steps strong { font-size: 20px; }
.managed-steps p { margin: 8px 0 0; color: var(--ink-soft); }

.app-section { padding-block: 96px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, #07182c, #0d2a49); }
.app-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.app-copy > p:not(.eyebrow) { color: #c5d6e0; font-size: 18px; }
.app-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-identity img { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.app-identity .eyebrow { margin: 0; color: #91efd6; }
.app-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.app-actions > span { color: #b4c9d6; font-size: 12px; }
.app-gallery { position: relative; min-height: 560px; perspective: 1200px; }
.phone-shot { position: absolute; top: 50%; width: 38%; margin: 0; overflow: hidden; background: #0f2a46; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .42); transform: translateY(-50%); }
.phone-shot img { width: 100%; height: auto; }
.phone-shot-left { z-index: 1; left: 0; transform: translateY(-48%) rotateY(9deg) rotateZ(-4deg); }
.phone-shot-center { z-index: 3; left: 31%; width: 40%; }
.phone-shot-right { z-index: 2; right: 0; transform: translateY(-48%) rotateY(-9deg) rotateZ(4deg); }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.section-heading.compact { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 24px 42px 24px 0; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { float: right; content: "+"; color: var(--mint-dark); font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-right: 40px; color: var(--ink-soft); }

.legal-band { padding-block: 34px; background: #e8f0ec; border-top: 1px solid var(--line); }
.legal-inner { display: flex; align-items: center; gap: 18px; }
.legal-inner .icon-box { flex: 0 0 auto; margin: 0; background: #fff2d8; color: var(--warning); }
.legal-inner strong, .legal-inner p { display: block; margin: 0; }
.legal-inner p { color: var(--ink-soft); font-size: 13px; }

.site-footer { padding: 64px 0 24px; color: #b5c6d3; background: var(--navy); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 44px; }
.footer-brand { color: var(--white); }
.footer-inner p { margin: 14px 0 0; color: #9fb5c5; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 34px; }
.footer-links a { color: #a9becd; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: #91aabd; font-size: 11px; }

.portal-page { min-height: 72vh; padding-block: 78px 110px; }
.portal-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.portal-heading h1 { margin-bottom: 10px; font-size: clamp(40px, 5vw, 62px); }
.portal-heading p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.portal-content, .admin-content { display: grid; gap: 20px; }
.empty-state, .portal-card, .admin-panel, .demo-payment { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state { text-align: center; }
.empty-state p { color: var(--ink-soft); }
.demo-payment { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; background: #eafff8; border-color: #9de5d1; }
.demo-payment p { margin: 0; color: var(--ink-soft); }
.subscription-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.subscription-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pill { display: inline-flex; padding: 5px 9px; color: #425669; background: var(--paper-2); border-radius: 99px; font-size: 11px; font-weight: 750; }
.pill.active { color: #04664f; background: #dff9f1; }
.pill.failed { color: #962f40; background: #fde8eb; }
.credential-box { margin-top: 20px; }
.credential-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.credential-row label { font-size: 12px; font-weight: 800; }
.credential-row code { overflow: hidden; padding: 7px 9px; color: #34495c; background: var(--paper); border-radius: 7px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { min-height: 34px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.qr-panel { display: grid; place-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.qr-panel img { width: 220px; height: 220px; }
.portal-aside { min-width: 190px; text-align: right; }
.portal-aside strong { display: block; font-size: 14px; }
.portal-aside span { color: var(--ink-soft); font-size: 12px; }

.admin-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-panel.wide { grid-column: 1 / -1; }
.admin-panel h2 { margin-bottom: 8px; font-size: 26px; }
.admin-panel > p { color: var(--ink-soft); font-size: 13px; }
.admin-list { display: grid; gap: 10px; margin-top: 20px; }
.admin-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(80px, .5fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-row small { display: block; color: var(--ink-soft); }
.admin-row input, .admin-row select, .admin-form input, .admin-form select, .admin-form textarea, .auth-dialog input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd7d3;
  border-radius: 9px;
}
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.admin-form label, .auth-dialog label { display: grid; gap: 6px; color: #465b6e; font-size: 12px; font-weight: 750; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form .button { width: fit-content; }
.secret-status { align-self: end; min-height: 42px; margin: 0; padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.secret-status.configured { color: #045c48; background: #dff9f1; }
.secret-status.missing { color: #7a4d0f; background: #fff2d8; }
.email-test-form { display: grid; grid-template-columns: minmax(220px, 360px) auto; gap: 10px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.email-test-form input { min-height: 42px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #cbd7d3; border-radius: 9px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-kpi { padding: 16px; background: var(--paper); border-radius: 13px; }
.admin-kpi strong { display: block; font-size: 24px; }
.admin-kpi span { color: var(--ink-soft); font-size: 11px; }
.credential-group { margin-top: 24px; }
.credential-group h3 { margin: 0; color: var(--ink); font-size: 15px; }
.vault-row { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.vault-row input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #cbd7d3; border-radius: 9px; }
.credential-copy { display: grid; justify-items: start; gap: 4px; }
.credential-copy small { color: var(--ink-soft); }
.credential-copy .secret-status { min-height: 0; padding: 5px 8px; }
.credential-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.icon-button.danger { color: #8c2637; border-color: #edbcc4; }

.auth-dialog { width: min(480px, calc(100vw - 30px)); padding: 38px; color: var(--ink); background: var(--white); border: 0; border-radius: 24px; box-shadow: 0 30px 100px rgba(3, 15, 27, .4); }
.auth-dialog::backdrop { background: rgba(3, 16, 29, .7); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; color: #718393; background: transparent; border: 0; border-radius: 50%; font-size: 25px; cursor: pointer; }
.auth-mark { margin-bottom: 22px; }
.auth-mark .brand-mark { width: 40px; height: 40px; }
.auth-mark .brand-mark-cut { fill: var(--white); }
.auth-dialog h2 { font-size: 32px; }
.auth-dialog p:not(.eyebrow) { color: var(--ink-soft); }
.auth-dialog form { display: grid; gap: 18px; margin-top: 24px; }
.form-message { min-height: 22px; margin: 16px 0 0; color: var(--danger) !important; font-size: 13px; }
.development-code { padding: 10px; color: #725119 !important; background: #fff5db; border-radius: 9px; font-size: 12px; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(400px, calc(100vw - 44px)); padding: 14px 18px; color: var(--white); background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #7f2635; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 0; }
  .hero-copy { padding-bottom: 10px; }
  .hero-visual { min-height: 480px; }
  .benefit-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: auto; }
  .plan-card.featured { transform: none; }
  .managed-section, .app-inner, .faq-section, .transit-inner { grid-template-columns: 1fr; gap: 50px; }
  .managed-copy { position: static; }
  .app-gallery { width: min(720px, 100%); min-height: 610px; margin-inline: auto; }
  .admin-content { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; padding-inline: 14px; }
  .site-header .brand { font-size: 16px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .header-actions .button { display: none; }
  .hero { min-height: 0; }
  .hero-copy { padding-top: 58px; }
  h1 { font-size: 43px; }
  .hero-lede { font-size: 17px; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-proof strong { font-size: 18px; }
  .hero-visual { min-height: 390px; }
  .route-card-primary { right: 1%; bottom: 6%; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-inner span { text-align: left; }
  .content-section { padding-block: 76px; }
  .section-heading { margin-bottom: 36px; }
  .pricing-heading, .portal-heading, .footer-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .pricing-heading { display: flex; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .managed-steps li { grid-template-columns: 50px 1fr; }
  .app-section { padding-block: 72px; }
  .app-actions { align-items: flex-start; flex-direction: column; }
  .app-gallery { min-height: 430px; }
  .phone-shot { border-radius: 15px; }
  .phone-shot-left { left: -4%; }
  .phone-shot-center { left: 30%; }
  .phone-shot-right { right: -4%; }
  .transit-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
  .route-diagram i { min-width: 34px; height: 34px; padding-inline: 6px; font-size: 9px; }
  .route-diagram i.wide-node { min-width: 100px; }
  .footer-links { margin-top: 20px; }
  .footer-bottom { display: flex; gap: 6px; }
  .portal-page { padding-block: 54px 80px; }
  .subscription-card { grid-template-columns: 1fr; }
  .portal-aside { text-align: left; }
  .credential-row { grid-template-columns: 1fr auto; }
  .credential-row label { grid-column: 1 / -1; }
  .credential-row code { grid-column: 1 / -1; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .full { grid-column: auto; }
  .email-test-form { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .vault-row { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-payment { align-items: flex-start; flex-direction: column; }
  .auth-dialog { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
