/* TaskTram marketing site. Tokens first; everything else uses them. */
:root {
  --teal: #0e8c7e;
  --teal-deep: #0a6e63;
  --teal-wash: #e3f1ee;
  --depot: #0f1f1c;
  --depot-2: #18302b;
  --signal: #f5b83d;
  --brake: #e0563c;
  --platform: #f4f7f6;
  --paper: #ffffff;
  --ink: #14201d;
  --rail: #55655f;
  --line: #dbe4e1;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1160px;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--platform);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lede { font-size: 1.2rem; color: var(--rail); max-width: 34em; }
.muted { color: var(--rail); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { height: 40px; padding: 0 16px; font-size: .95rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244, 247, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: var(--rail); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 0 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 13px 0 18px; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3; margin: 10px 0 0; }
  .nav.open .nav-links a { padding: 10px 0; font-size: 1.1rem; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; margin: 8px 0 0; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--rail); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- departures board (the signature element) ---------- */
.board {
  background: var(--depot); color: #e9f2ef; border-radius: var(--radius-l);
  padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px rgba(15, 31, 28, .55);
  font-family: var(--mono);
}
.board-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--sans); }
.board-top b { font-size: 1.05rem; letter-spacing: -0.01em; }
.board-clock { margin-left: auto; font-family: var(--mono); color: var(--signal); font-weight: 600; font-size: 1.05rem; }
.board-head, .board-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 6.2em 8.4em; gap: 12px; align-items: center; }
.board-head { color: #8aa59e; font-size: .74rem; padding: 0 4px 8px; border-bottom: 1px solid var(--depot-2); }
.board-row { padding: 11px 4px; border-bottom: 1px solid var(--depot-2); font-size: .9rem; }
.board-row:last-child { border-bottom: 0; }
.board-row .t { color: var(--signal); font-weight: 600; }
.board-row .task { font-family: var(--sans); font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .line { display: inline-flex; align-items: center; gap: 6px; color: #bcd0ca; font-size: .8rem; white-space: nowrap; overflow: hidden; }
.board-row .line i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.st { justify-self: start; font-weight: 600; font-size: .78rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.st-on { color: #7fe0c9; background: rgba(14, 140, 126, .22); }
.st-today { color: var(--depot); background: var(--signal); }
.st-late { color: #fff; background: var(--brake); }
.st-done { color: #8aa59e; background: rgba(255, 255, 255, .06); }
.flap { display: inline-block; min-width: .62em; }
.board-foot { display: flex; gap: 18px; padding-top: 12px; font-family: var(--sans); font-size: .85rem; color: #8aa59e; }
.board-foot b { color: #fff; }
@media (max-width: 560px) {
  .board { padding: 16px 14px 12px; }
  .board-head, .board-row { grid-template-columns: 3.6em minmax(0, 1fr) 7.4em; }
  .board-head .h-line, .board-row .line { display: none; }
}

/* ---------- route (a real sequence, so it is numbered as stops) ---------- */
.route { padding: 64px 0 24px; }
.route h2 { max-width: 15em; }
.route-line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; list-style: none; padding: 0; }
.route-line::before { content: ''; position: absolute; left: 10px; right: 10px; top: 10px; height: 6px; border-radius: 3px; background: var(--teal); }
.stop { position: relative; padding-top: 42px; }
.stop::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 6px solid var(--teal); }
.stop h3 { margin-bottom: 6px; }
.stop p { color: var(--rail); font-size: .98rem; }
@media (max-width: 860px) {
  .route-line { grid-template-columns: 1fr; gap: 28px; }
  .route-line::before { left: 10px; right: auto; top: 10px; bottom: 10px; width: 6px; height: auto; }
  .stop { padding: 0 0 0 46px; }
}

/* ---------- feature rows ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-copy p { color: var(--rail); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 26px; } .feature.flip .feature-copy { order: 0; } }

/* mock screens */
.screen { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; box-shadow: 0 20px 40px -32px rgba(15, 31, 28, .45); }
.upnext { border: 2px solid var(--teal); border-radius: var(--radius-m); padding: 18px; }
.chip { display: inline-block; font: 600 .74rem var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--teal-wash); color: var(--teal-deep); }
.chip-late { background: #fbe4df; color: #b33a22; }
.chip-amber { background: #fdf0d3; color: #8a5a00; }
.mock-title { font-weight: 800; font-size: 1.2rem; margin: 10px 0 6px; letter-spacing: -0.01em; }
.mock-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mock-btns span { font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); }
.mock-btns span:first-child { background: var(--teal); color: #fff; border-color: var(--teal); }
.then { margin-top: 12px; }
.then div { display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); font-size: .92rem; }
.then div b { font: 600 .75rem var(--mono); color: var(--rail); width: 1.6em; }
.then div em { margin-left: auto; font: 600 .75rem var(--mono); font-style: normal; color: var(--rail); }

.bubbles { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); font-size: .93rem; background: var(--platform); }
.bubble small { display: block; color: var(--rail); font-size: .78rem; margin-bottom: 2px; }
.bubble.me { justify-self: end; background: var(--teal-wash); border-color: #bfe0d9; }
.bubble .mention { color: var(--teal-deep); font-weight: 700; }
.reply { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--rail); font-size: .9rem; }

.tabs-mock { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; font-weight: 600; color: var(--rail); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.tabs-mock span.on { color: var(--ink); box-shadow: 0 10px 0 -8px var(--teal); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--platform); border-radius: 10px; padding: 8px; }
.col h4 { margin: 2px 4px 8px; font-size: .82rem; }
.card-mock { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: .8rem; margin-bottom: 6px; }
.card-mock i { display: block; font: 600 .7rem var(--mono); font-style: normal; color: var(--rail); margin-top: 4px; }

.alerts .alert { display: flex; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: .92rem; }
.alerts .alert:first-of-type { border-top: 0; }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: none; color: var(--depot); }
.alerts .alert small { display: block; color: var(--rail); font-size: .8rem; }
.tabbar { display: flex; align-items: center; gap: 8px; background: #e7ecea; border-radius: 10px 10px 0 0; padding: 8px 10px; font-size: .82rem; margin: -18px -18px 12px; }
.tabbar span { background: var(--paper); border-radius: 8px; padding: 4px 10px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.tabbar svg { width: 14px; height: 14px; }

/* ---------- small grid of everyday details ---------- */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.details h3 { font-size: 1.08rem; margin-bottom: 6px; }
.details p { color: var(--rail); font-size: .97rem; }
@media (max-width: 860px) { .details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }

/* ---------- band ---------- */
.band { background: var(--depot); color: #e9f2ef; border-radius: var(--radius-l); padding: 56px 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #a9c0ba; margin-top: 12px; }
.band .btn-ghost { color: #fff; border-color: #3a5550; }
.band .btn-ghost:hover { border-color: #fff; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 40px 24px; } }

/* ---------- pricing ---------- */
.price-hero { padding: 56px 0 20px; text-align: center; }
.price-hero .lede { margin: 16px auto 0; }
.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 8px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; font: 700 .95rem var(--sans); color: var(--rail); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.save { font-weight: 600; color: var(--teal-deep); font-size: .9rem; align-self: center; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.pick { border: 2px solid var(--teal); position: relative; }
.plan.pick .tag { position: absolute; top: -13px; left: 24px; background: var(--teal); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.plan .for { color: var(--rail); font-size: .95rem; margin-top: 4px; min-height: 3em; }
.amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.amount b { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.amount span { color: var(--rail); font-size: .95rem; }
.billing-note { color: var(--rail); font-size: .88rem; min-height: 2.8em; }
.plan .btn { margin: 18px 0 22px; width: 100%; }
.plan .ticks { margin-top: 0; font-size: .96rem; }
.soon { font-size: .75rem; font-weight: 700; color: #8a5a00; background: #fdf0d3; padding: 1px 7px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.enterprise { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.compare-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .96rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { position: sticky; top: 0; background: var(--paper); font-size: 1rem; }
.compare tbody tr.group td { background: var(--platform); font-weight: 700; text-align: left; }
.yes { color: var(--teal); font-weight: 800; }
.no { color: #a8b5b1; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--rail); }

/* ---------- prose pages ---------- */
.page-head { padding: 56px 0 24px; }
.page-head .lede { margin-top: 14px; }
.prose { max-width: 720px; padding-bottom: 72px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.prose p, .prose li { color: #2f3d39; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.draft { background: #fdf0d3; border: 1px solid #f1d38f; color: #6b4700; border-radius: var(--radius-s); padding: 12px 16px; font-size: .95rem; margin-bottom: 24px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); padding: 12px 14px; border: 1px solid #c9d5d1; border-radius: 10px; background: var(--paper); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14, 140, 126, .3); border-color: var(--teal); }
textarea { min-height: 120px; resize: vertical; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding-bottom: 80px; }
.contact-side h3 { margin: 0 0 6px; font-size: 1.1rem; }
.contact-side p + h3 { margin-top: 26px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; margin-top: 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 10px; font-size: .95rem; }
.foot-grid a { display: block; color: var(--rail); text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { margin-top: 36px; color: var(--rail); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot-grid .brand { display: flex; color: var(--ink); padding: 0; }
