/* LastStop public site. One stylesheet, no scripts. Colors come from the hub's neutral LastStop theme
   (chrome #1c1f26, accent #2b4a78) and the app icon (route blue #9db9e8, slate #505d74). */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #1c1f26;
  --ink-2: #252932;
  --ink-3: #30343d;
  --ink-line: #3b3f49;
  --on-ink: #ffffff;
  --on-ink-2: #c6cbd4;
  --on-ink-3: #a3aab6;
  --route: #9db9e8;
  --route-hover: #b8cbef;
  --slate: #505d74;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-tint: #e6ecf7;
  --text: #16181d;
  --text-2: #43474e;
  --text-3: #62666e;
  --line: #e4e6e8;
  --line-strong: #cbcdd1;
  --accent: #2b4a78;
  --accent-hover: #1e365a;
  --focus: #1d4ed8;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --gutter: 16px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.015em; color: inherit; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.45rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--route); color: var(--ink); padding: .6rem 1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .55rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-route { background: var(--route); color: var(--ink); }
.btn-route:hover { background: var(--route-hover); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 420px) { .btn-row .btn { flex: 1 1 100%; } }

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-height: 72px; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { color: #fff; }
.brand .mark { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { color: var(--on-ink-2); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .5rem .8rem; border-radius: 999px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(157,185,232,.16); }
.btn-signin { min-height: 42px; padding: .45rem 1.1rem; font-size: .98rem; }
@media (max-width: 559px) {
  .header-row { padding-bottom: .35rem; }
  .nav-links { order: 3; width: 100%; margin-left: -.8rem; }
}

/* Home hero */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; padding: 3.5rem 0 0; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%;
  background: radial-gradient(closest-side, rgba(157,185,232,.22), rgba(157,185,232,0));
  pointer-events: none;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: end; position: relative; }
.hero-copy { padding-bottom: 1rem; }
.hero .eyebrow { color: var(--route); }
.hero h1 { color: #fff; max-width: 13em; }
.hero .lead { color: var(--on-ink-2); }
.hero-note { margin-top: 1.4rem; font-size: .95rem; color: var(--on-ink-3); }
.hero-note a { color: var(--route); font-weight: 600; }
.hero-note a:hover { color: var(--route-hover); }
.hero-route { display: flex; align-items: center; gap: .55rem; margin-top: 2.25rem; color: var(--on-ink-3); font-size: .9rem; flex-wrap: wrap; }
.hero-route span { display: inline-flex; align-items: center; gap: .55rem; }
.hero-route span::after { content: ""; width: 18px; height: 2px; background: var(--slate); border-radius: 2px; }
.hero-route span:last-child::after { display: none; }
.hero-route span:last-child { color: var(--route); font-weight: 600; }
.hero-visual { justify-self: center; width: min(300px, 80vw); margin-bottom: -4.5rem; }
@media (min-width: 900px) {
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 3rem; }
  .hero-copy { padding-bottom: 6.5rem; }
  .hero-visual { justify-self: end; width: 320px; margin-bottom: -2.5rem; }
}

/* Phone frame around real screenshots (demo company, made-up people) */
.phone { background: #0b0c10; border-radius: 42px; padding: 9px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.1); }
.phone img { display: block; width: 100%; border-radius: 33px; background: #f4f5f7; }
.phone.is-cropped { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.phone.is-cropped img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.shot-caption { font-size: .85rem; color: var(--text-3); text-align: center; margin-top: .75rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.hero + .section { padding-top: 4.5rem; }
@media (min-width: 900px) { .section { padding: 6rem 0; } }

/* The route: five modules as stops on one line */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; position: relative; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 27px; bottom: -2rem; width: 3px; background: #8a9cb4; }
.stop { position: relative; padding-left: 46px; }
.stop-dot { position: absolute; left: 0; top: 4px; width: 23px; height: 23px; border-radius: 50%; background: #fff; border: 3px solid var(--slate); }
.stop:last-child .stop-dot { background: var(--route); border-color: var(--slate); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--slate); }
.stop h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .4rem; }
.stop h3 .icon { color: var(--accent); }
.stop p { color: var(--text-2); font-size: 1rem; margin-bottom: .6rem; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .95rem; text-decoration: none; }
.more .icon { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }
@media (min-width: 960px) {
  .route { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
  .stop:not(:last-child)::after { left: 23px; right: -1.75rem; top: 10px; bottom: auto; width: auto; height: 3px; }
  .stop { padding-left: 0; padding-top: 50px; }
  .stop-dot { top: 0; }
}

/* Two column split with a picture */
.split { display: grid; gap: 3rem; align-items: center; }
.split-visual { justify-self: center; width: min(320px, 82vw); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .split.flip .split-visual { order: -1; }
  .split.flip > .example { order: -1; }
}
.points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.points .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--accent); display: grid; place-items: center; }
.points h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.points p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) and (max-width: 1023px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.section-soft .card { border-color: transparent; box-shadow: 0 1px 2px rgba(22,24,29,.05); }
.card h3 { display: flex; align-items: center; gap: .6rem; }
.card h3 .icon { color: var(--accent); }
.card p { color: var(--text-2); font-size: 1rem; }
.card ul { color: var(--text-2); font-size: 1rem; padding-left: 1.1em; margin-bottom: 0; }
.card li + li { margin-top: .35rem; }
.card > :last-child { margin-bottom: 0; }

/* Dark band */
.band-dark { background: var(--ink); color: var(--on-ink); }
.band-dark .eyebrow { color: var(--route); }
.band-dark .lead, .band-dark p { color: var(--on-ink-2); }
.band-dark a { color: var(--route); }
.band-dark a:hover { color: var(--route-hover); }
.trust { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust h3 { display: flex; align-items: center; gap: .55rem; color: #fff; font-size: 1.08rem; }
.trust h3 .icon { color: var(--route); }
.trust p { font-size: .98rem; margin: 0; }

/* Call to action panel */
.cta { background: var(--bg-tint); border-radius: 28px; padding: 2.5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cta h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.cta p { color: var(--text-2); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
@media (min-width: 760px) { .cta { padding: 3.5rem 3rem; } }

/* Inner page hero */
.page-hero { background: var(--ink); color: var(--on-ink); padding: 3.25rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(157,185,232,.18), rgba(157,185,232,0)); pointer-events: none; }
.page-hero .eyebrow { color: var(--route); }
.page-hero h1 { color: #fff; max-width: 16em; font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); }
.page-hero .lead { color: var(--on-ink-2); margin-bottom: 0; }
.page-hero .meta { color: var(--on-ink-3); font-size: .95rem; margin: 1rem 0 0; }

/* Feature page */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; list-style: none; padding: 0; }
.jump a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: .95rem; font-weight: 550; }
.jump a .icon { width: 18px; height: 18px; color: var(--route); }
.jump a:hover { background: rgba(255,255,255,.08); color: #fff; }
.feature { scroll-margin-top: 1.5rem; }
.feature + .feature { border-top: 1px solid var(--line); }
.stop-label { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.stop-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--slate); background: #fff; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; color: var(--text-2); }
.checks .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.checks strong { color: var(--text); font-weight: 600; }

/* Example panels drawn in HTML (made-up sample data, marked as an example) */
.example { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -35px rgba(22,24,29,.35); overflow: hidden; width: 100%; max-width: 440px; justify-self: center; }
.example-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.example-head b { font-weight: 650; }
.example-head span { font-size: .85rem; color: var(--text-3); }
.example-rows { list-style: none; margin: 0; padding: 0; }
.example-rows li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.example-rows li:last-child { border-bottom: 0; }
.example-rows small { grid-column: 1; color: var(--text-3); font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-tint); color: var(--accent); white-space: nowrap; grid-row: 1 / span 2; grid-column: 2; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #e3f3ea; color: #1f6b45; }
.pill.warn { background: #faf0cf; color: #6a5300; }
.example-note { font-size: .82rem; color: var(--text-3); text-align: center; margin: .75rem 0 0; }

/* Legal and long-form pages */
.doc { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 4.5rem; }
@media (min-width: 1000px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; padding-top: 4rem; } }
.toc { font-size: .95rem; }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--bg-soft); }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: .75rem 0 0; padding-left: 1.2em; display: grid; gap: .35rem; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 1.5rem; align-self: start; }
  .toc details { background: none; border: 0; padding: 0; }
  .toc summary { list-style: none; pointer-events: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .toc summary::-webkit-details-marker { display: none; }
}
.prose { max-width: 46rem; min-width: 0; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin-top: 2.6rem; padding-top: .25rem; scroll-margin-top: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-2); }
.prose li + li { margin-top: .4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.summary-box { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 2.5rem; }
.summary-box h2 { margin-top: 0; font-size: 1.15rem; }
.summary-box ul { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; width: 34%; }
.prose td { color: var(--text-2); }
.address { font-style: normal; }

/* Support page */
.contact-grid { display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: 0 20px 40px -30px rgba(22,24,29,.35); }
.contact-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; }
.contact-card h2 .icon { color: var(--accent); }
.contact-card p { color: var(--text-2); font-size: 1rem; }
.contact-card > :last-child { margin-bottom: 0; }
.email-big { display: inline-block; font-size: clamp(1.2rem, 1rem + 1vw, 1.45rem); font-weight: 650; letter-spacing: -0.01em; word-break: break-word; margin-bottom: .75rem; }
.faq { display: grid; gap: 3rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; } }
.faq-group h2 { font-size: 1.5rem; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.qa { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.qa h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.qa p, .qa li { color: var(--text-2); font-size: 1rem; }
.qa > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding: 3.5rem 0 2.25rem; font-size: .97rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2rem; } }
.footer-brand p { margin-top: .9rem; max-width: 22rem; color: var(--on-ink-3); }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: .9rem; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-ink-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin: 3rem 0 .35rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); color: var(--on-ink-2); }
.footer-copy { margin: 0; color: var(--on-ink-3); font-size: .9rem; }

/* 404 */
.notfound { padding: 5rem 0 6rem; text-align: center; }
.notfound .btn-row { justify-content: center; }

/* Support page: contact cards overlap the title band */
.page-hero.tall { padding-bottom: 5.5rem; }
.section.overlap { padding-top: 0; }
.overlap .contact-grid { margin-top: -3rem; }
.split-visual .example { margin: 0 auto; }
figure.example { margin: 0 auto; }
