/* Up To Here — uptohere.app
   One family (Overpass, a nod to highway lettering), self-hosted: no third-party requests. */

@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --sign: #00613a;       /* guide-sign green */
  --sign-deep: #004a2c;
  --asphalt: #23272b;    /* text */
  --shoulder: #5a6168;   /* quiet text */
  --fog: #eef1ef;        /* page */
  --paper: #ffffff;
  --lane: #f2c230;       /* centre-line yellow, used once per page */
  --glow: #ff6b3d;       /* the map's glow */
  --rule: #d5dbd7;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--asphalt);
  background: var(--fog);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sign); text-underline-offset: 0.18em; }
a:hover { color: var(--sign-deep); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.bar { padding: 1.25rem 0; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--asphalt); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.wordmark img { width: 28px; height: 28px; }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.bar nav a { color: var(--asphalt); text-decoration: none; font-weight: 600; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--sign); }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.sign {
  background: var(--sign);
  color: #fff;
  border-radius: 14px;
  padding: clamp(1.4rem, 3.4vw, 2.4rem) clamp(1.5rem, 3.6vw, 2.6rem);
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px #fff;
  max-width: 36rem;
}
.sign h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.sign .rows { margin: 1.4rem 0 0; padding: 1rem 0 0; border-top: 2px solid rgba(255,255,255,0.85); display: grid; gap: 0.35rem; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
.sign .rows div { display: flex; justify-content: space-between; gap: 1rem; }
.sign .rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.sign .rows dt { margin: 0; }

.lede { max-width: var(--measure); margin: 1.75rem 0 0; font-size: 1.2rem; line-height: 1.55; }
.lede span { display: block; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--asphalt); color: #fff; text-decoration: none;
  padding: 0.75rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
}
.badge-soon:hover { color: #fff; background: #000; }
.badge-soon svg { width: 18px; height: 18px; }
.badge-soon img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.cta-note { color: var(--shoulder); font-size: 0.95rem; }

/* Phone with the Glow map */
.phone {
  justify-self: center;
  width: min(100%, 300px);
  aspect-ratio: 9 / 19;
  background: #101315;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(0, 40, 25, 0.55), 0 0 0 1px rgba(0,0,0,0.6);
}
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0d1114; position: relative; }
.phone .screen svg { width: 100%; height: 100%; }
.phone .stat {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(255,255,255,0.94); color: var(--asphalt);
  border-radius: 16px; padding: 0.7rem 0.9rem; font-size: 0.82rem; line-height: 1.35;
}
.phone .stat strong { display: block; font-size: 1.15rem; font-weight: 800; }

.route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s ease-out 0.3s forwards; }
.route.r2 { animation-delay: 0.7s; }
.route.r3 { animation-delay: 1.1s; }
.route.r4 { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route { animation: none; stroke-dashoffset: 0; } }

/* Centre line divider: used once */
.centreline { height: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 78px); opacity: 0.9; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 1rem; max-width: 30ch; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 800; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }
.intro { max-width: var(--measure); color: var(--shoulder); font-size: 1.1rem; }

/* How it works: a real sequence, marked like kilometre posts */
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { position: relative; padding-top: 4.25rem; }
.post {
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 3.3rem;
  background: var(--paper); border: 2px solid var(--asphalt); border-radius: 6px 6px 3px 3px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; color: var(--sign);
}
.steps p { color: var(--shoulder); max-width: 26ch; }

/* Features: plain two-column list, no cards */
.features { background: var(--paper); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem clamp(2rem, 6vw, 5rem); margin-top: 2.25rem; }
.feature-list div { border-top: 2px solid var(--asphalt); padding-top: 1rem; }
.feature-list p { color: var(--shoulder); margin: 0; max-width: 40ch; }

/* Privacy band */
.private { background: var(--sign); color: #fff; }
.private h2 { color: #fff; }
.private p { max-width: var(--measure); color: rgba(255,255,255,0.88); font-size: 1.12rem; }
.private a { color: #fff; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.25rem; max-width: 52rem; }
.plan { background: var(--paper); border: 2px solid var(--rule); border-radius: 12px; padding: 1.6rem 1.6rem 1.4rem; }
.plan.pro { border-color: var(--sign); }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0.2rem 0 0.3rem; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--shoulder); letter-spacing: 0; }
.plan .alt { color: var(--shoulder); font-size: 0.95rem; margin-bottom: 1rem; }
.plan ul { margin: 0; padding-left: 1.1rem; }
.plan li { margin: 0.3rem 0; }
.fine { color: var(--shoulder); font-size: 0.92rem; margin-top: 1.25rem; max-width: 52rem; }

/* Footer */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); font-size: 0.93rem; color: var(--shoulder); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--shoulder); }

/* Document pages (privacy, support) */
.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 0.75rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; }
.doc .meta { color: var(--shoulder); margin-bottom: 2rem; }
.doc .short { background: var(--paper); border-left: 6px solid var(--sign); padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; font-size: 1.1rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--sign); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--shoulder); }

/* Contact form */
form.contact { display: grid; gap: 1rem; margin-top: 1.25rem; background: var(--paper); padding: 1.5rem; border-radius: 12px; border: 2px solid var(--rule); }
form.contact label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.97rem; }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; font-weight: 400; color: var(--asphalt);
  padding: 0.7rem 0.8rem; border: 2px solid var(--rule); border-radius: 8px; background: #fff;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 3px rgba(0,97,58,0.18); }
form.contact textarea { min-height: 9rem; resize: vertical; }
form.contact button {
  justify-self: start; font: inherit; font-weight: 800; color: #fff; background: var(--sign);
  border: 0; border-radius: 10px; padding: 0.8rem 1.4rem; cursor: pointer;
}
form.contact button:hover { background: var(--sign-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--shoulder); font-size: 0.92rem; margin: 0; }
.notice { padding: 0.9rem 1.1rem; border-radius: 10px; font-weight: 600; margin-top: 1rem; }
.notice.ok { background: #e2f1e8; color: var(--sign-deep); }
.notice.err { background: #fde7e1; color: #8a2a12; }

/* Small screens */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(78%, 270px); }
  .steps, .feature-list, .plans { grid-template-columns: 1fr; }
  .bar nav { gap: 0.9rem; font-size: 0.9rem; }
}
.wordmark, .bar nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .bar nav a[href$="#how"] { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root { --fog: #15191c; --paper: #1d2226; --asphalt: #e8ece9; --shoulder: #a7b0b6; --rule: #2f363b; }
  .badge-soon { background: #e8ece9; color: #15191c; }
  .badge-soon:hover { background: #fff; color: #15191c; }
  .post { color: #4fc48b; }
  a { color: #4fc48b; }
  .feature-list div { border-top-color: #e8ece9; }
  .notice.ok { background: #183526; color: #bfe8cf; }
  .notice.err { background: #3a1d15; color: #f7c3b2; }
  form.contact input, form.contact select, form.contact textarea { background: #15191c; }
}

/* ---- Added Dec 2026: map, sample logbook, what-if, who, launch ---- */
.text-link { font-weight: 600; }
.hero .cta-note { margin: 0.9rem 0 0; }

/* Heat map band */
.map-band { background: #0d1114; color: #e8ece9; }
.map-band .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map-band h2 { color: #fff; }
.map-copy p { color: rgba(232,236,233,0.82); max-width: var(--measure); }
.map-copy .map-note { color: #ffb487; font-weight: 600; font-size: 0.98rem; }
.map-figure { margin: 0; }
.map-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px #1f2a31; }
.map-figure figcaption { color: #7f8a91; font-size: 0.85rem; margin-top: 0.6rem; }

/* Sample logbook */
.sample-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.25rem; }
.pages { position: relative; display: block; aspect-ratio: 720 / 932; max-width: 25rem; margin-right: 3rem; }
.pages .page { position: absolute; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0,40,25,0.45), 0 0 0 1px rgba(0,0,0,0.08); transition: transform 0.25s ease; }
.pages .p1 { top: 0; left: 0; }
.pages .p2 { top: 1.6rem; left: 2.6rem; transform: rotate(3deg); }
.pages:hover .p2 { transform: rotate(5deg) translateX(0.6rem); }
@media (prefers-reduced-motion: reduce) { .pages .page { transition: none; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sign); }
.checks li::after { content: ""; position: absolute; left: 0.37rem; top: 0.48rem; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.button { display: inline-block; background: var(--sign); color: #fff; text-decoration: none; font-weight: 800; padding: 0.85rem 1.3rem; border-radius: 10px; }
.button:hover { background: var(--sign-deep); color: #fff; }
.odometer { margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper); border: 2px solid var(--rule); border-left: 6px solid var(--lane); border-radius: 12px; }
.odometer h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.odo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.odo-cols p { color: var(--shoulder); margin: 0; }

/* What if */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 5rem); margin: 2rem 0 1.75rem; }
.qa div { border-top: 2px solid var(--sign); padding-top: 0.9rem; }
.qa p { color: var(--shoulder); margin: 0; max-width: 42ch; }

/* Privacy band additions */
.private .big { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; color: #fff; max-width: 36rem; font-weight: 600; }
.no-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 18rem)); gap: 0.5rem 2rem; }
.no-list li { padding-left: 1.6rem; position: relative; color: rgba(255,255,255,0.9); }
.no-list li::before { content: ""; position: absolute; left: 0; top: 0.72rem; width: 0.9rem; height: 3px; background: var(--lane); }

/* Who it's for */
.who { background: var(--paper); }
.who-list { list-style: none; padding: 0; margin: 2rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.who-list li { border: 2px solid var(--asphalt); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; }

/* Launch signup */
.launch .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.launch p { max-width: var(--measure); }
form.contact label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
form.contact label.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; padding: 0; flex: none; accent-color: var(--sign); }
.optional { font-weight: 400; color: var(--shoulder); }

@media (max-width: 860px) {
  .map-band .wrap, .sample-grid, .odo-cols, .qa, .launch .wrap { grid-template-columns: 1fr; }
  .no-list { grid-template-columns: 1fr; }
  .pages { max-width: 18rem; }
}
@media (max-width: 600px) {
  .bar nav a[href="#sample"] { display: none; }
}
@media (prefers-color-scheme: dark) {
  .who-list li { border-color: #e8ece9; }
  .pages .page { box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8); }
}

/* ---- Dec 6 2026: real app screenshots replace the illustrations ---- */
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.map-figure { display: grid; justify-items: center; }
.map-figure .phone img { border-radius: 0; box-shadow: none; }
.map-figure .phone { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), 0 0 0 1px #1f2a31; }
.map-figure figcaption { text-align: center; }
