/* ============================================================
   Tracked.26 — marketing site
   Design tokens: cool paper white surface, ink navy text,
   three accent colors mapped to the app's own three subjects
   (Physics / Chemistry / Maths) used as the recurring
   structural device instead of generic numbered markers.
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --ink: #1b2233;
  --ink-soft: #5b6478;
  --ink-faint: #8b93a7;
  --line: #e2e5ef;

  --physics: #4453d6;
  --physics-soft: #eceeff;
  --chem: #d98d20;
  --chem-soft: #fdf1de;
  --maths: #1f9c80;
  --maths-soft: #e4f5f0;

  --ink-on-dark: #f6f7fb;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 34, 51, 0.04), 0 8px 24px -12px rgba(27, 34, 51, 0.12);
  --max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- subject spectrum bar — the signature structural device ---------- */
.spectrum {
  height: 6px;
  width: 100%;
  display: flex;
}
.spectrum span { flex: 1; }
.spectrum .s-physics { background: var(--physics); }
.spectrum .s-chem { background: var(--chem); }
.spectrum .s-maths { background: var(--maths); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--physics);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--ink-on-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(27,34,51,0.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--maths); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
h1.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
h1.display em {
  font-style: italic;
  color: var(--physics);
}
.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* countdown */
.countdown {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  max-width: 420px;
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.countdown-digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown-tag {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.countdown-edit {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.countdown-edit input[type="date"] {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.countdown-edit input[type="date"]:focus-visible {
  outline: 2px solid var(--physics);
  outline-offset: 1px;
}

/* app window frame for screenshots */
.app-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-frame-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.app-frame-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: #d7dbe6;
}
.app-frame img { display: block; width: 100%; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
h2.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

/* subject cards */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subject-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.subject-card.physics::before { background: var(--physics); }
.subject-card.chem::before { background: var(--chem); }
.subject-card.maths::before { background: var(--maths); }
.subject-name {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.subject-card.physics .subject-name { color: var(--physics); }
.subject-card.chem .subject-name { color: var(--chem); }
.subject-card.maths .subject-name { color: var(--maths); }
.subject-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 14px;
}
.subject-card ul { margin: 0; padding: 0; list-style: none; }
.subject-card li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.subject-card li:first-of-type { border-top: none; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}
.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px;
}
.feature-copy p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 18px; }
.feature-copy ul { margin: 0; padding: 0; list-style: none; }
.feature-copy li {
  font-size: 14.5px;
  color: var(--ink);
  padding: 8px 0 8px 20px;
  position: relative;
  border-top: 1px solid var(--line);
}
.feature-copy li:first-child { border-top: none; }
.feature-copy li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--ink-on-dark);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  margin: 0 auto;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  margin: 0 0 12px;
}
.cta-band p { color: #b7bcd0; margin: 0 0 28px; font-size: 16px; }
.cta-band .btn-primary { background: var(--ink-on-dark); color: var(--ink); }
.cta-band .btn-ghost { border-color: #3a4260; color: var(--ink-on-dark); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note { font-size: 13.5px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* ---------- docs page ---------- */
.docs-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 56px 0 90px;
}
.docs-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 14px;
}
.docs-nav .kicker { margin-bottom: 14px; }
.docs-nav ul { list-style: none; margin: 0 0 26px; padding: 0; }
.docs-nav li { margin-bottom: 4px; }
.docs-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 8px;
}
.docs-nav a:hover { color: var(--ink); background: var(--surface-2); }
.docs-content h1.display { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.docs-content .lede { margin-bottom: 44px; }
.doc-section { padding: 34px 0; border-top: 1px solid var(--line); }
.doc-section:first-of-type { border-top: none; padding-top: 0; }
.doc-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
}
.doc-section p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 16px; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step-list li:first-child { border-top: none; padding-top: 0; }
.step-list li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { margin: 2px 0 6px; font-size: 15.5px; font-weight: 600; }
.step-body p { margin: 0; font-size: 14.5px; }
pre {
  background: var(--ink);
  color: #e6e9f5;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 10px 0 0;
}
code { font-family: var(--font-mono); }
p code, li code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
/* undo inline-code styling when code sits inside a <pre> block
   (e.g. pre inside a step-list <li>) — the dark block needs its
   own light text, not the light inline-code background */
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 1em;
}
.tree {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--ink-soft);
  line-height: 1.7;
  white-space: pre;
}
.roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roadmap span {
  font-size: 14px; color: var(--ink-soft);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .subject-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual { order: 0; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .nav-links { display: none; }
  .cta-band { padding: 40px 24px; }
  .roadmap { grid-template-columns: 1fr; }
}

/* ---------- github logo ---------- */
.github-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.github-icon{
  width:18px;
  height:18px;
  flex:none;
}