/* Tractline website. Brand colors from brand/README.md; Nunito is served from
   this site (fonts/), so a visit makes no request to any other host. */

@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('fonts/Nunito_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/Nunito_900Black.ttf') format('truetype'); }

:root {
  --night: #14281A;
  --deep: #1D4A23;
  --forest: #2E6B34;
  --leaf: #5FB257;
  --mint: #A8DB98;
  --mint-wash: #EAF5E4;
  --cream: #F6F1E4;
  --orange: #F08A2C;
  --ink: #1F2421;
  --ink-soft: #5A5F59;
  --line: #E2DCCB;
  --line-dark: #CFC8B4;
  --mine: #8E44D9;
  --mine-deep: #6A2FB0;
  --mine-wash: #F3ECFB;
  --sign: #F2C230;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--forest); font-weight: 800; text-underline-offset: 3px; }
a:hover { color: var(--deep); }

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { background: var(--night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.wordmark { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; color: var(--cream); }
.wordmark span { color: var(--leaf); }
.wordmark.light { color: var(--ink); }
.wordmark.light span { color: var(--forest); }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--mint); font-weight: 800; font-size: 16px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; }

/* Hero */
.hero { background: var(--night); color: var(--cream); padding: 40px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: end; }
.hero h1 { color: var(--cream); }
.hero h1 span { color: var(--leaf); }
.hero .lead { color: var(--mint); font-size: 20px; max-width: 34em; }
.hero-art { display: block; width: calc(100% + 40px); height: auto; margin: 0 -20px; }
.badge {
  display: inline-block;
  background: var(--leaf);
  color: var(--night);
  font-weight: 800;
  border-radius: 16px;
  border-bottom: 4px solid var(--forest);
  padding: 12px 22px;
  margin: 4px 0 8px;
}
.hero .small { color: var(--mint); opacity: 0.85; font-size: 15px; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr 1.1fr; }
  .hero-art { width: 100%; margin: 0; }
  .hero-text { padding-bottom: 48px; }
}

/* Sections */
section { padding: 56px 0; }
.section-lead { color: var(--ink-soft); max-width: 40em; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: #FFFFFF;
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-bottom-color: var(--line-dark);
  border-radius: 20px;
  padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.card.mine { border-color: #D9C4F2; border-bottom-color: #BFA0E6; }
.card.mine .tag { color: var(--mine-deep); }
.card.public .tag { color: var(--forest); }

/* The notice: never imply survey accuracy (CLAUDE.md). */
.notice {
  background: #FFF7D6;
  border: 2px solid #EAD27A;
  border-bottom: 5px solid #C9A92C;
  border-radius: 20px;
  padding: 24px;
}
.notice h2 { font-size: 26px; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li { margin-bottom: 0.4em; }

.coverage { background: var(--mint-wash); }

.credits { font-size: 15px; color: var(--ink-soft); }
.credits li { margin-bottom: 0.4em; }

/* Long-form pages (privacy, support) */
.page { padding: 40px 0 64px; }
.page h2 { font-size: 24px; margin-top: 1.6em; }
.page .updated { color: var(--ink-soft); font-size: 15px; }
.summary {
  background: var(--mint-wash);
  border: 2px solid var(--mint);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 20px 0 8px;
}
.summary p:last-child { margin-bottom: 0; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.5em; }
.faq h3 { margin-top: 1.4em; }

.mail {
  display: inline-block;
  background: var(--night);
  color: var(--cream);
  text-decoration: none;
  border-radius: 16px;
  border-bottom: 4px solid #000000;
  padding: 12px 22px;
}
.mail:hover { color: #FFFFFF; }

/* Footer */
.site-footer { background: var(--night); color: var(--mint); padding: 32px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--cream); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* "Open the map" next to the App Store note in the hero. */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta {
  display: inline-block;
  background: var(--cream);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
  border-radius: 16px;
  border-bottom: 4px solid var(--line-dark);
  padding: 12px 22px;
}
.cta:hover { color: var(--night); background: #FFFFFF; }
.ctas .badge { margin: 0; background: transparent; color: var(--mint); border: 2px solid var(--deep); padding: 10px 18px; }
