/* Shared styles for the /track/* SEO pages.
   Tokens and components copied from index.html so the pages match the homepage;
   if you change a colour or component there, change it here too. */
:root { --paper: #FDF6F3; --grid-minor: #F8E9E4; --grid-major: #F3DCD5; --ink: #1E2A32; --ink-soft: #5C6B75; --trace: #D6413C; --teal: #127C72; --teal-soft: #E3F0EE; --card: #FFFFFF; --line: #E8DAD5; --amber: #C98A2D; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", sans-serif; color: var(--ink); line-height: 1.6;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: "IBM Plex Mono", monospace; }

/* header — same as homepage */
header { position: sticky; top: 0; z-index: 50; background: rgba(253, 246, 243, 0.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: Archivo; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo .pulse { width: 34px; height: 22px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--trace); }
.nav-links a.nav-login { color: #fff; background: var(--trace); padding: 7px 16px; border-radius: 6px; font-weight: 600; }
.nav-links a.nav-login:hover { background: #A32F2B; color: #fff; }
@media (max-width: 720px) {
  .nav-links { gap: 12px; }
  .nav-links a { display: none; }
  .nav-links a.nav-login { display: inline-block; }
}

/* breadcrumb */
.crumbs { padding-top: 28px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--trace); }

/* hero */
.hero { padding-top: 36px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--trace); font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--trace); }
h1 { font-family: Archivo; font-weight: 850; font-stretch: 72%; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.02em; max-width: 16ch; }
.lede { margin-top: 22px; max-width: 56ch; font-size: 18.5px; color: var(--ink-soft); }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.demo-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.badge { background: var(--teal-soft); color: var(--teal); border-radius: 20px; padding: 3px 10px; font-size: 10.5px; letter-spacing: 0.12em; font-weight: 600; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero .appshot { max-width: 300px; }
}

.btn { display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn-primary { background: var(--trace); color: #fff; box-shadow: #A32F2B 0 2px 0; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { border: 1.5px solid #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* app screenshot */
.appshot { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: rgba(30, 42, 50, 0.06) 0 6px 24px; }
.appshot img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1169; object-fit: cover; object-position: top; max-height: 470px; border-bottom: 1px solid var(--line); }
.appshot figcaption { padding: 12px 14px 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.appshot figcaption b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }

/* sections */
section { padding: 64px 0; }
.sec-head { margin-bottom: 32px; max-width: 680px; }
.sec-tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
h2 { font-family: Archivo; font-weight: 800; font-stretch: 80%; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.015em; }
.sec-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

.prose { max-width: 68ch; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 30px 32px; }
.prose p { font-size: 16.5px; color: var(--ink); }
.prose p + p { margin-top: 14px; }
.prose .note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft); }
@media (max-width: 600px) { .prose { padding: 22px 20px; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.feature h3 { font-family: Archivo; font-weight: 750; font-size: 18.5px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--ink-soft); }

.usteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ustep { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.ustep-n { width: 36px; height: 36px; border-radius: 50%; background: var(--trace); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Archivo; font-weight: 800; font-size: 17px; }
.ustep h3 { font-family: Archivo; font-weight: 750; font-size: 19px; margin: 14px 0 6px; }
.ustep p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 820px) { .usteps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--trace); font-weight: 600; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.faq-item a { color: var(--trace); font-weight: 500; }

/* metric link grid — used for "related" and the /track hub */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.metric-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: transform 0.18s, box-shadow 0.18s; }
.metric-link:hover { transform: translateY(-3px); box-shadow: rgba(30, 42, 50, 0.08) 0 10px 28px; }
.metric-link b { display: block; font-family: Archivo; font-weight: 750; font-size: 18px; }
.metric-link b::after { content: " →"; color: var(--trace); }
.metric-link span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

.safety { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); padding: 28px 30px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.safety .cross { width: 46px; height: 46px; border-radius: 8px; background: var(--trace); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; font-family: Archivo; }
.safety h2 { font-size: 22px; font-stretch: 100%; margin-bottom: 6px; }
.safety p { color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 600px) { .safety { grid-template-columns: 1fr; } }

.final { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 60px 36px; text-align: center; margin: 24px 0 80px; }
.final h2 { color: #fff; }
.final p { color: #B9C4CB; max-width: 52ch; margin: 16px auto 28px; font-size: 17px; }
.final-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--trace); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .metric-link:hover { transform: none; }
  html { scroll-behavior: auto; }
}
