/* TicketsOnWheels public landing page. Tokens mirror itsm.css so the marketing page and the product share one world. */

:root {
    --ink: #172131;
    --ink-soft: #334155;
    --muted: #5b6779;
    --canvas: #f3f5f8;
    --surface: #fff;
    --border: #e2e7ee;
    --border-strong: #cbd3dd;
    --sidebar: #111c2a;
    --sidebar-raised: #1b2a3b;
    --sidebar-text: #c9d3df;
    --accent: #15766a;
    --accent-strong: #0e5a51;
    --accent-deep: #0a463f;
    --accent-soft: #e2f2ef;
    --accent-light: #9fdccf;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --shell: 1180px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-space: clamp(72px, 10vw, 128px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--accent);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

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

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
::selection { background: #c3e7e0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

html { scrollbar-color: #b7c2cf var(--canvas); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 50;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--radius-md);
    font: inherit; font-size: .9688rem; font-weight: 600; line-height: 1; white-space: nowrap;
    text-decoration: none; cursor: pointer;
    transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.button-large { min-height: 52px; padding: 0 26px; font-size: 1.0313rem; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgb(10 70 63 / 30%), 0 6px 16px -6px rgb(21 118 106 / 55%); }
.button-primary:hover { background: var(--accent-strong); color: #fff; }
.button-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--canvas); color: var(--ink); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgb(255 255 255 / 82%); backdrop-filter: saturate(1.4) blur(12px); }
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
@media (max-width: 400px) {
    .nav { gap: 12px; }
    .brand { font-size: 1rem; gap: 8px; }
    .brand img { width: 32px; height: 32px; }
    .nav-menu summary { padding: 0 10px; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.125rem; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a, .nav-menu-panel li a {
    display: flex; align-items: center; gap: 7px; padding: 8px 12px; white-space: nowrap; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-size: .9688rem; font-weight: 500; text-decoration: none;
}
.nav-links a:hover, .nav-menu-panel li a:hover { background: var(--canvas); color: var(--ink); }
.nav-icon { width: 18px; height: 18px; color: var(--accent-strong); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }

.nav-menu { display: none; margin-left: auto; }
.nav-menu summary {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    font-weight: 600; cursor: pointer; list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--canvas); }
.nav-menu-panel {
    position: absolute; inset: 100% 0 auto; padding: 12px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgb(16 24 40 / 30%);
}
.nav-menu-panel li a { padding: 12px; font-size: 1.0625rem; }
.nav-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-menu-actions .button-quiet { border-color: var(--border-strong); }

@media (max-width: 1270px) {
    .nav-links, .nav-actions { display: none; }
    .nav-menu { display: block; }
}

/* ---------- Hero ---------- */

.hero {
    padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
    background:
        radial-gradient(60rem 30rem at 85% 0%, rgb(21 118 106 / 9%), transparent 70%),
        var(--canvas);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.375rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--accent-strong); }
.hero-slogan { margin-top: 16px; color: var(--accent-strong); font-size: clamp(1.1875rem, 1.8vw, 1.375rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.hero-slogan + .lede { margin-top: 12px; }
.lede { max-width: 34ch; margin-top: 24px; color: var(--ink-soft); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.screen {
    overflow: hidden;
    border: 1px solid #d3dae4; border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 2px 4px rgb(16 24 40 / 6%), 0 28px 56px -28px rgb(17 28 42 / 45%);
}
.hero-shot { margin: 0; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Section heads ---------- */

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .benefits-head h2, .audience h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 750; line-height: 1.1; letter-spacing: -.028em; }
.section-head p, .benefits-head p, .audience p { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center p { margin-inline: auto; }

/* ---------- Problem: paired frustrations and answers ---------- */

.problem { padding-block: var(--section-space); }
.pairs-labels, .pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); }
.pairs-labels { padding-bottom: 12px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.pairs { border-top: 1px solid var(--border-strong); }
.pairs li { padding-block: 22px; border-bottom: 1px solid var(--border); align-items: start; }
.pain { color: var(--muted); font-size: 1.125rem; }
.answer { display: flex; gap: 14px; color: var(--ink); font-size: 1.125rem; font-weight: 500; }
.answer .icon { margin-top: 4px; color: var(--accent); }
.problem-close { margin-top: clamp(36px, 5vw, 56px); max-width: 30ch; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }

@media (max-width: 760px) {
    .pairs-labels { display: none; }
    .pairs li { grid-template-columns: 1fr; gap: 10px; }
    .pain { font-size: 1rem; }
}

/* ---------- Benefits ---------- */

.benefits { padding-block: var(--section-space); background: var(--canvas); border-block: 1px solid var(--border); }
.benefits-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.benefits-head { position: sticky; top: 108px; }
.benefits-head .text-link { margin-top: 28px; }
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 48px); }
.benefit-list li { padding-block: 28px; border-top: 1px solid var(--border-strong); }
.benefit-list .icon {
    width: 44px; height: 44px; padding: 11px; margin-bottom: 18px;
    border-radius: var(--radius-md); background: var(--surface); color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--border);
}
.benefit-list h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.012em; }
.benefit-list p { margin-top: 8px; color: var(--ink-soft); }

@media (max-width: 980px) {
    .benefits-inner { grid-template-columns: 1fr; }
    .benefits-head { position: static; }
}
@media (max-width: 620px) {
    .benefit-list { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.steps-section { padding-block: var(--section-space); }
.track { position: relative; height: 56px; margin: 0 calc(100% / 6); }
.track::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 14px, transparent 14px 24px);
}
.track-ticket { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; transform: translate(-50%, -62%); filter: drop-shadow(0 6px 10px rgb(10 70 63 / 28%)); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 8px; text-align: center; }
.step-number {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
    border: 2px solid var(--accent); border-radius: 50%;
    background: var(--surface); color: var(--accent-strong); font-weight: 750;
}
.steps h3 { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.steps p { max-width: 30ch; margin: 10px auto 0; color: var(--ink-soft); }

/* The one authored motion moment: the ticket rolls from Receive to Resolve as the section scrolls by. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .track-ticket {
            animation: roll linear both;
            animation-timeline: view();
            animation-range: entry 60% cover 55%;
        }
    }
}
@keyframes roll {
    from { left: 0; }
    to { left: 100%; }
}

@media (max-width: 760px) {
    .track { display: none; }
    .steps { grid-template-columns: 1fr; gap: 36px; text-align: left; }
    .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
    .step-number { grid-row: span 2; margin: 0; }
    .steps p { margin: 6px 0 0; }
}

/* ---------- Showcase ---------- */

.showcase { padding-block: var(--section-space); background: var(--canvas); border-block: 1px solid var(--border); }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.shot { grid-column: span 2; margin: 0; }
.shot:nth-child(-n+2) { grid-column: span 3; }
.shot .screen img { width: 100%; aspect-ratio: 1030 / 700; object-fit: cover; object-position: left top; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: .9688rem; }
.shot figcaption strong { color: var(--ink); font-weight: 650; }
.screenshot-link { position: relative; display: block; cursor: zoom-in; text-decoration: none; }
.screenshot-link img { display: block; width: 100%; }
.screenshot-link:focus-visible { outline-offset: -4px; }
.screenshot-zoom {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    background: rgb(17 28 42 / 92%); color: #fff;
    box-shadow: 0 2px 6px rgb(17 28 42 / 24%);
    font-size: .875rem; font-weight: 650; line-height: 1;
    transition: background-color .18s var(--ease-out);
}
.screenshot-zoom .icon { width: 16px; height: 16px; }
.screenshot-link:hover .screenshot-zoom { background: var(--accent-strong); }

.screenshot-dialog {
    width: min(96vw, 1440px); max-width: none; max-height: 96vh; max-height: 96dvh;
    margin: auto; padding: 16px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    background: var(--surface); color: var(--ink);
    box-shadow: 0 20px 60px rgb(17 28 42 / 40%);
}
.screenshot-dialog::backdrop { background: rgb(17 28 42 / 84%); }
.screenshot-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.screenshot-dialog-bar p { color: var(--ink); font-weight: 650; }
.screenshot-dialog-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 auto;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink); cursor: pointer;
}
.screenshot-dialog-close:hover { background: var(--canvas); }
.screenshot-dialog-image {
    display: block; width: 100%; max-height: calc(92vh - 76px); max-height: calc(92dvh - 76px);
    margin-inline: auto; object-fit: contain;
}

@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot, .shot:nth-child(-n+2) { grid-column: span 1; }
    .shot:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
    .gallery { grid-template-columns: 1fr; }
    .shot, .shot:nth-child(-n+2), .shot:first-child { grid-column: auto; }
    .screenshot-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; padding: 12px; border-radius: 0; }
    .screenshot-dialog-image { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
}

/* ---------- Audience ---------- */

.audience { padding-block: var(--section-space); }
.audience-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.audience-list { border-top: 1px solid var(--border-strong); }
.audience-list li {
    padding-block: 16px; border-bottom: 1px solid var(--border);
    font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 650; letter-spacing: -.018em;
}

@media (max-width: 860px) {
    .audience-inner { grid-template-columns: 1fr; }
}

/* ---------- Feature overview ---------- */

.features { padding-block: var(--section-space); background: var(--canvas); border-top: 1px solid var(--border); }
.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px clamp(24px, 3vw, 40px); }
.feature-group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--accent); font-size: 1.0625rem; font-weight: 700; }
.feature-group li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--border); color: var(--ink-soft); font-size: .9688rem; line-height: 1.45; }
.feature-group li::before {
    content: ""; position: absolute; left: 3px; top: 14px; width: 6px; height: 10px;
    border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Why ---------- */

.why { padding-block: var(--section-space); background: var(--sidebar); color: var(--sidebar-text); }
.why-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(36px, 6vw, 88px); }
.why h2 { grid-column: 1 / -1; max-width: 16ch; color: #fff; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.why-copy p { max-width: 54ch; font-size: 1.1875rem; }
.why-copy p + p { margin-top: 16px; }
.why-points li { padding-block: 10px; border-bottom: 1px solid var(--sidebar-raised); color: var(--accent-light); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; }
.why-points li:first-child { border-top: 1px solid var(--sidebar-raised); }
.why :focus-visible { outline-color: var(--accent-light); }

@media (max-width: 860px) {
    .why-inner { grid-template-columns: 1fr; }
}

/* ---------- Questions ---------- */

.faq { padding-block: var(--section-space); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(36px, 6vw, 88px); align-items: start; }
.faq-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 750; line-height: 1.1; letter-spacing: -.028em; }
.faq-head p { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 1.125rem; }
.faq-head a, .features .section-head a { color: var(--accent-strong); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-list details { border-bottom: 1px solid var(--border-strong); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.35; }
.faq-list summary:hover h3 { color: var(--accent-strong); }
.faq-list summary .icon { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform .25s var(--ease-out); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 22px; color: var(--ink-soft); }

@media (max-width: 860px) {
    .faq-inner { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */

.final-cta { padding-block: var(--section-space); background: var(--accent-soft); text-align: center; }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta img { width: 64px; height: 64px; margin-bottom: 24px; }
.final-cta h2 { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -.032em; }
.final-cta p { max-width: 50ch; margin-top: 18px; color: var(--accent-deep); font-size: 1.1875rem; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px; background: var(--sidebar); color: var(--sidebar-text); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light img { width: 32px; height: 32px; }
.footer-brand p { max-width: 32ch; margin-top: 14px; font-size: .9688rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 8vw, 96px); }
.footer-nav h2 { margin-bottom: 12px; color: #fff; font-size: .9375rem; font-weight: 700; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { color: var(--sidebar-text); font-size: .9688rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent-light); }

@media (max-width: 480px) {
    .hero .cta-row .button { flex: 1 1 100%; }
}

@media print {
    .site-header, .nav-menu, .track { display: none; }
    .why, .site-footer { background: none; color: var(--ink); }
    .why h2, .footer-nav h2, .brand-light { color: var(--ink); }
}
