/* Planning product page. Same type, rhythm and layout as the Tire Pressure Predictor landing (landing.css):
   Big Shoulders Display for headlines, IBM Plex Mono for text, black page, thin rules.
   The product accent is teal #14B8A6 (D-icona); it marks small details, never whole surfaces. */
:root {
    --bg: #000;
    --ink: #f2f2f0;
    --muted: #9a9a9f;
    --dim: #62626a;
    --rule: #ffffff28;
    --panel: #07100f;
    --panel-rule: #23413d;
    --accent: #14b8a6;
    --accent-soft: #14b8a61f;
    --conflict: #f43f5e;
    --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.65 var(--mono); font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: .002em; line-height: .98; }
h2 { font-size: clamp(42px, 5.3vw, 68px); }
h3 { font-size: 17px; line-height: 1.4; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3e; }

.container { width: min(1240px, calc(100% - 64px)); margin: auto; }
.skip-link { position: fixed; left: 15px; top: -80px; z-index: 100; background: white; color: black; padding: 8px; }
.skip-link:focus { top: 10px; }

/* Top of the hero: suite wordmark with the product name and symbol, as on the Runsheet and Analysis pages
   (runsheet/styles.css .topbar, .wordmark). It scrolls away; the compact bar below takes over. */
.hero-shell { padding-top: 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; flex: 0 0 auto; width: 273px; }
.wordmark svg { display: block; width: 100%; height: auto; }
/* Set in the units of the mark: the capitals are as tall as the MSS letters. */
.wordmark-name { fill: #fff; font-family: var(--display); font-size: 125px; font-weight: 700; letter-spacing: 2.5px; }
.page-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.page-nav a { text-decoration: none; transition: color 160ms ease; }
.page-nav a:hover, .page-nav .page-nav-go { color: var(--ink); }

/* Compact bar and phone note, as runsheet/demo-entry.css. */
.demo-sticky-header { position: fixed; inset: 0 0 auto; z-index: 80; background: var(--bg); border-bottom: 1px solid var(--rule); }
.demo-sticky-header[hidden], .demo-device-note[hidden] { display: none; }
.demo-sticky-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.demo-sticky-brand { display: flex; width: 56px; flex-shrink: 0; }
.demo-sticky-brand svg { display: block; width: 100%; height: auto; }
.demo-sticky-links { display: flex; gap: 28px; margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.demo-sticky-links a { color: var(--muted); text-decoration: none; }
.demo-sticky-links a:hover { color: var(--ink); }
.demo-sticky-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.demo-sticky-inner .btn { min-height: 42px; padding: 0 20px; white-space: nowrap; }
.demo-device-note { padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.demo-device-note h2 { font: 600 1.3rem var(--display); margin-bottom: 8px; }
.demo-device-note p { max-width: 55ch; font-size: .8rem; line-height: 1.8; color: var(--muted); }

/* Buttons. */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #38383d; background: transparent; text-decoration: none; padding: 0 20px; min-height: 54px; line-height: 1.4; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.btn.primary { color: black; background: var(--ink); border-color: var(--ink); }
.btn:hover { background: #252525; color: white; }
.btn.primary:hover { color: black; background: #cfcfcd; border-color: #cfcfcd; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; color: var(--muted); background: transparent; border-color: #38383d; border-style: dashed; }

/* Hero. */
/* The title starts at the top, level with the text beside it, as on the Runsheet page. */
.hero-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 96px); padding: clamp(56px, 7vh, 96px) 0 48px; }
.hero h1 { font-size: clamp(4.2rem, 6.6vw, 6.6rem); line-height: .91; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-side > p { max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { margin-top: 32px; max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hero-actions .btn { width: 100%; padding: 0 12px; }
.hero-action { min-width: 0; }
.demo-phone-label { display: none; }
.availability { display: block; margin-top: 12px; line-height: 1.8; letter-spacing: .015em; font-size: 10px; color: var(--dim); text-transform: uppercase; }

/* Schematic line-up: cars in rows, roles in columns, as the app opens it (SPEC S3, E1). */
.lineup-stage { background: var(--panel); border: 1px solid var(--panel-rule); }
.stage-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--panel-rule); padding: 12px 22px; font-size: 11px; letter-spacing: .05em; }
.stage-heading i { color: #86a7a2; font-style: normal; margin-left: 12px; }
.stage-heading b { font-weight: 400; background: var(--accent-soft); color: #c9f3ee; padding: 4px 8px; }
.lineup-scroll { overflow-x: auto; padding: 22px 22px 6px; }
.lineup { width: 100%; min-width: 800px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.lineup caption { text-align: left; font-size: 10px; color: #86a7a2; padding-bottom: 12px; caption-side: top; }
.lineup th, .lineup td { border: 1px solid var(--panel-rule); padding: 9px 10px; vertical-align: top; text-align: left; }
.lineup thead th { background: #0b1817; color: #86a7a2; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.lineup thead th.car-col { width: 190px; }
.lineup thead th.field-col { width: 70px; }
.lineup tbody th { font-weight: 500; background: #0b1817; }
.lineup tbody th small { display: block; color: #86a7a2; font-size: 10px; font-weight: 400; }
.lineup td.field { color: #86a7a2; vertical-align: middle; }
.lineup td.is-merged { background: #0d1f1d; vertical-align: middle; }
.lineup td.is-empty { color: #3d5a56; }
.lineup tr.event-row th, .lineup tr.event-row td { border-top: 2px solid var(--panel-rule); }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.person + .person { margin-top: 6px; }
.person em { font-style: normal; font-size: 10px; color: #86a7a2; }
.callup { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #86a7a2; }
.callup.is-confirmed { background: var(--accent); border-color: var(--accent); }
.callup.is-called { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 35%, transparent 40%); }
.person.is-declined { color: #5d7672; text-decoration: line-through; }
.person.is-conflict { color: #ffd1da; }
.person.is-conflict .flag { font-size: 9px; color: var(--conflict); border: 1px solid var(--conflict); padding: 0 5px; letter-spacing: .06em; }
.stage-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 14px 22px 18px; font-size: 10px; color: #86a7a2; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .flag { color: var(--conflict); }
.schematic-note { color: #5f7c78; }

.proof-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); font-size: 11px; }
.proof-rail p span { display: block; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }

/* Sections. */
.section { padding-top: 100px; }
.eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .12em; font-size: 11px; font-weight: 500; color: var(--accent); }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 75px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 23px; }
.section-heading > p { color: #b2b2b8; max-width: 460px; align-self: end; }
.steps { list-style: none; padding: 0; margin: 45px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.steps li { border-top: 1px solid var(--rule); padding-top: 20px; }
.steps li > span { color: #696971; font-size: 11px; }
.steps h3 { margin: 15px 0 12px; }
.steps p { color: var(--muted); font-size: 12px; max-width: 330px; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; padding: 100px 0; border-bottom: 1px solid var(--rule); }
.split h2 { margin: 23px 0; }
.split p { color: var(--muted); font-size: 12px; max-width: 460px; margin-top: 15px; }
.split p strong { color: var(--ink); font-weight: 500; }
.panel { align-self: center; border: 1px solid #ffffff45; padding: 25px; }
.panel-header { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); padding: 16px 0; font-size: 11px; }
.panel-row > span small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.panel-row strong { font: 700 34px/1 var(--display); white-space: nowrap; }
.panel-row strong small { font: 10px var(--mono); color: #aaa; }
.panel-row .person { font-size: 12px; }
.panel-row.is-total strong { color: var(--accent); }
.panel-rules { list-style: none; margin: 16px 0 0; padding: 0; font-size: 10px; color: #c9f3ee; }
.panel-rules li { border: 1px solid var(--panel-rule); background: var(--panel); padding: 6px 10px; }
.panel-rules li + li { margin-top: 6px; }
.panel > p { font-size: 9px; line-height: 1.8; color: var(--muted); margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin: 40px 0; }
.features p { font-size: 12px; color: var(--muted); }
.features strong { display: block; color: var(--ink); margin-bottom: 10px; font-weight: 500; }

.faq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 75px; padding: 100px 0; border-bottom: 1px solid var(--rule); }
.faq h2 { margin-top: 22px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 13px; padding-right: 30px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); font-size: 12px; padding-top: 15px; }
.faq details a, .closing a { color: white; text-underline-offset: 4px; }
.questions { font-size: 11px; color: var(--muted); margin-top: 24px; }
.questions a { color: white; text-underline-offset: 4px; }

.closing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 75px; padding: 100px 0; }
.closing h2 { margin-top: 22px; }
.closing-body > p { color: var(--muted); font-size: 13px; max-width: 520px; }
.closing-body > p strong { color: var(--ink); font-weight: 500; }
.closing-body .btn { margin-top: 28px; min-width: 280px; }
/* Small and in sentence case, as the line under the Runsheet download button. */
.closing-body > p.closing-status { margin-top: 12px; font-size: 10px; text-transform: none; letter-spacing: .015em; }
.download-verification { margin-top: 16px; max-width: 520px; }
.closing-body > p.closing-note { margin-top: 16px; font-size: 11px; line-height: 1.8; }
.closing .proof-rail { margin-top: 36px; border-top: 1px solid var(--rule); border-bottom: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; font-size: 11px; }

footer { padding: 35px 0 40px; border-top: 1px solid var(--rule); display: flex; gap: 35px; align-items: center; }
footer img { display: block; }
footer p { font-size: 10px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer nav a { font-size: 10px; color: var(--muted); text-decoration: none; }
footer nav a:hover { color: white; }

/* Prepared screens of the read-only demo (planning/demo/previews), as on the Tire Pressure Predictor page. */
.app-preview { margin: 0 0 8px; border: 1px solid var(--panel-rule); background: var(--panel); }
.app-preview img { display: block; width: 100%; height: auto; }
.app-preview figcaption { font-size: 10px; color: #9faab9; padding: 12px 18px; border-top: 1px solid var(--panel-rule); }
.split > .app-preview { grid-column: 1 / -1; margin: 0; }

@media (max-width: 1150px) {
    .split { gap: 45px; }
    footer { flex-wrap: wrap; }
    footer nav { margin-left: 0; }
}
@media (max-width: 1023px) {
    .demo-desktop-label { display: none; }
    .demo-phone-label { display: inline; }
    .demo-sticky-links { display: none; }
}
@media (max-width: 800px) {
    .container { width: calc(100% - 32px); }
    .hero-shell { padding-top: 26px; }
    .page-nav a:not(.page-nav-go) { display: none; }
    .hero-head { display: block; padding: 56px 0 44px; }
    .hero h1 { font-size: clamp(3.7rem, 9vw, 4.3rem); }
    .hero-side { margin-top: 32px; }
    .hero-side > p { max-width: 100%; }
    .lineup-scroll { padding: 16px 16px 4px; }
    .stage-heading, .stage-foot { padding-left: 16px; padding-right: 16px; }
    .proof-rail { grid-template-columns: 1fr; gap: 14px; }
    .section { padding-top: 65px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 25px; }
    .steps, .features { grid-template-columns: 1fr; gap: 25px; }
    .steps li { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; }
    .steps h3 { margin: 0 0 10px; }
    .steps p { grid-column: 2; max-width: 100%; }
    .split, .faq, .closing { grid-template-columns: 1fr; gap: 35px; padding: 65px 0; }
    .closing-body .btn { width: 100%; min-width: 0; }
    footer { gap: 20px; }
    footer p { flex-basis: 100%; }
    footer nav { gap: 12px; }
}
@media (max-width: 520px) {
    .wordmark { width: 214px; }
    .demo-sticky-inner { min-height: 60px; gap: 12px; }
    .demo-sticky-brand { width: 42px; }
    .demo-sticky-actions { gap: 8px; }
    .demo-sticky-inner .btn { width: auto; min-height: 38px; padding: 0 12px; font-size: 9px; letter-spacing: .08em; }
    .hero-download-action .btn { min-height: 32px; border: 0; padding: 0; justify-content: flex-start; }
    .hero-download-action .availability { margin-top: 4px; }
    .hero h1 { font-size: clamp(3.3rem, 14vw, 3.85rem); }
    .hero-side > p { font-size: 12px; }
    .hero h1 span { white-space: normal; }
    .hero-actions { max-width: none; grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .app-preview figcaption { font-size: 9px; }
    h2 { font-size: 45px; }
    .panel { padding: 20px; }
    .panel-row strong { font-size: 28px; }
}
@media (max-width: 340px) {
    .wordmark { width: 182px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
