/* Milepost site. One stylesheet for all pages.
   Layout: a green hero band, then centered content columns; legal pages are a single readable column. */
:root {
  --green-900: #0B5E36;
  --green-700: #12884E;
  --green-500: #1FB86A;
  --green-300: #5BE39E;
  --bg: #F6FAF7;
  --surface: #FFFFFF;
  --ink: #102017;
  --muted: #55665C;
  --line: #DCE7E0;
  --accent: #12884E;
  --on-accent: #FFFFFF;
  --hero-ink: #FFFFFF;
  --display: -apple-system, "SF Pro Display", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: -apple-system, "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1410;
    --surface: #131E18;
    --ink: #E6F0EA;
    --muted: #9AAEA2;
    --line: #23332A;
    --accent: #3DD688;
    --on-accent: #062614;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  background: #13A05A;
  color: var(--hero-ink);
}
.hero .site-header .brand, .hero .nav a { color: var(--hero-ink); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: 40px 64px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; }
.hero h1 span { display: block; color: #FFFFFF; }
.hero p.lede { font-size: 20px; max-width: 32ch; margin: 18px 0 28px; opacity: 0.95; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; }
.button.light { background: #FFFFFF; color: var(--green-900); }
.badge-soon { font-size: 14px; opacity: 0.9; }
.hero-shot { justify-self: center; width: min(320px, 100%); border-radius: 28px; }

/* Sections */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 12px 0 36px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery img { width: 240px; flex: 0 0 auto; border-radius: 20px; scroll-snap-align: start; border: 1px solid var(--line); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .tag { color: var(--muted); margin: 2px 0 14px; }
.plan .price { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 8px 0 0; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .price .or { font-family: var(--body); margin: 0 4px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 4px 0; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 70ch; }

/* Legal and support pages */
.page-head { background: #13A05A; color: var(--hero-ink); }
.page-head .site-header .brand, .page-head .nav a { color: var(--hero-ink); }
.page-title { padding-block: 24px 40px; }
.page-title h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page-title p { margin: 8px 0 0; opacity: 0.9; }
.doc { max-width: 720px; padding-block: 40px 72px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.contact code { font-size: 16px; user-select: all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: inherit; }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); padding-block: 16px 48px; gap: 32px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 14px; font-size: 14px; }
  section { padding-block: 52px; }
}
@media (max-width: 420px) {
  .nav a.hide-sm { display: none; }
}

/* Mileage notes: open editorial layout, no content cards. */
.journal { background: var(--bg); }
.journal-shell { width: 100%; padding-inline: clamp(22px, 5vw, 88px); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.journal .site-header { border-bottom: 1px solid var(--line); }
.journal-head { padding-block: 50px 38px; }
.journal-head h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.05; }
.journal-head > p:last-child { color: var(--muted); font-size: 20px; margin: 18px 0 0; }
.journal .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .11em; }
.journal-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: clamp(38px, 6vw, 100px); padding-bottom: 80px; }
.post-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-block: 30px; }
.post-date { font-size: 13px; color: var(--muted); padding-top: 6px; }
.post-date span { display: block; margin-top: 7px; }
.post-row h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.12; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-row p { color: var(--muted); font-size: 17px; width: min(100%, 58ch); margin: 14px 0 16px; }
.read-link { font-size: 15px; font-weight: 650; text-decoration: none; }
.journal-aside { border-top: 1px solid var(--line); padding-top: 32px; }
.journal-aside h2, .aside-note h2 { font-size: 22px; line-height: 1.2; }
.journal-aside p, .aside-note p { color: var(--muted); font-size: 15px; }
.journal-aside a, .aside-note a { font-size: 14px; }
.rss-link { margin-top: 28px; }
.back-link { display: inline-block; font-size: 14px; margin-block: 28px 24px; text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: clamp(40px, 7vw, 120px); padding-bottom: 72px; }
.article-layout article { width: min(100%, 76ch); }
.article-head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 4.3vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.article-meta { color: var(--muted); font-size: 13px; margin-block: 22px; }
.article-intro { font-size: 21px; line-height: 1.6; }
.journal article section { padding-block: 26px 8px; border: 0; }
.journal article section h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.article-layout article p, .article-layout article li { line-height: 1.75; }
.article-table { overflow-x: auto; margin-block: 24px; }
.article-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article-table th, .article-table td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-table th { font-size: 13px; color: var(--muted); }
.source-line { font-size: 13px; color: var(--muted); }
.article-aside { padding-top: 8px; }
.article-aside ol { list-style: none; padding: 0; margin: 0; }
.article-aside li { margin-bottom: 12px; }
.article-aside a { color: var(--muted); font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aside-note { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.journal article .sources { border-top: 1px solid var(--line); margin-top: 35px; padding-top: 28px; font-size: 14px; }
.sources h2 { font-size: 20px !important; }
.sources ol { padding-left: 20px; }
.sources li p { margin-block: 4px 16px; color: var(--muted); }
.editorial-note { color: var(--muted); font-size: 13px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 10px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
  .journal-head { padding-block: 34px 28px; }
  .journal-head > p:last-child { font-size: 18px; }
  .journal-grid, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 24px; }
  .post-date { display: flex; gap: 15px; padding-top: 0; }
  .post-date span { margin-top: 0; }
  .article-aside { display: none; }
  .article-intro { font-size: 19px; }
  .article-table table { font-size: 13px; }
  .article-table th, .article-table td { padding-right: 8px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 15px; }
}
