/* Charted Terrain site styles. Brand: forest green, topo lines, Manrope + Source Sans 3. No logo until Josh fixes it: text wordmark only. */
:root {
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --fg: #2C3034;
  --muted: #5E665F;
  --line: #DCE0D8;
  --topo: #627954;
  --topo-ink: #4E6143;
  --btn-fg: #F7F8F4;
  --forest: #112D28;
  --forest-fg: #EEF2EC;
  --forest-muted: #B5C4B6;
  --sheet: #FFFFFF;
  --site: #E8663A;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --step: clamp(15px, 0.35vw + 14px, 17px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131815; --surface: #1B221E; --fg: #E5EAE3; --muted: #A2ADA3; --line: #2E3832;
    --topo: #93AC83; --topo-ink: #5D7650; --sheet: #F4F5F1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: var(--step); line-height: 1.55; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--topo); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--forest-fg); border-bottom: 1px solid rgba(255,255,255,.08); }
header.site .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand .tick { width: 22px; height: 3px; background: var(--forest-muted); flex: none; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--forest-muted); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--forest-fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 6px; padding: 12px 20px; border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--topo-ink); color: var(--btn-fg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-light { background: var(--forest-fg); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--forest-fg); padding-inline: 4px; background: none; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
header .btn { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero { background: var(--forest) url("/assets/topo.webp") center / cover no-repeat; color: var(--forest-fg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero.solo .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 56px 60px; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-muted); }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; max-width: 18ch; }
.hero .lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--forest-muted); margin-top: 18px; max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero .ctas .btn-light { font-size: 16px; padding: 14px 24px; }
.shot { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.shot .bar { display: flex; gap: 6px; padding: 9px 12px; background: #E9ECE6; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #C4CAC1; }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { font-size: 13px; color: var(--forest-muted); margin-top: 10px; }

/* Funnel map */
.funnel { padding-block: 72px 56px; }
.funnel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.sec-h { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; max-width: 24ch; }
.funnel-head p { color: var(--muted); max-width: 44ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; overflow: hidden; background: var(--surface); }
.step { appearance: none; background: transparent; color: var(--fg); border: 0; border-right: 1px solid var(--line); padding: 16px 18px 14px; text-align: left; cursor: pointer; font: inherit; position: relative; }
.step:last-child { border-right: 0; }
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.step[aria-selected="true"]::after { background: var(--topo); }
.step[aria-selected="true"] { background: color-mix(in srgb, var(--topo) 9%, var(--surface)); }
.step .n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.step .l { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.step:last-child .n { color: var(--site); }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; overflow-x: auto; }
.sheet-inner { position: relative; min-width: 720px; aspect-ratio: 1600 / 390; margin: 18px 24px; }
.sheet-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.sheet-inner img.on { opacity: 1; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.map-meta .key { display: inline-flex; align-items: center; gap: 6px; }
.map-meta .key i { width: 11px; height: 11px; border-radius: 2px; background: var(--site); display: inline-block; }
.swipe { display: none; }
.byhand { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 18px; }
.byhand strong { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.byhand span { color: var(--muted); font-size: 15px; }

/* Rows, cards */
.row { padding-block: 24px 64px; }
.row h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: var(--fg); }
.card .who { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--topo); font-family: var(--display); }
.card h3 { font-size: 19px; font-weight: 700; }
.card .price { font-family: var(--display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.card .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.card p { color: var(--muted); font-size: 15px; }
.card .go { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--topo-ink); }
.card.feature { border-color: var(--topo); box-shadow: inset 0 0 0 1px var(--topo); }
a.card:hover { border-color: var(--topo); }
.card.later { background: transparent; border-style: dashed; }
.card.later .go { color: var(--muted); font-weight: 600; }
.ask-line { margin-top: 18px; color: var(--muted); }
.ask-line a { color: var(--fg); font-weight: 600; }

.about { border-top: 1px solid var(--line); }
.about .wrap { display: flex; align-items: center; gap: 24px; padding-block: 40px; }
.about img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.about p { max-width: 60ch; font-size: 18px; }
.about p b { font-family: var(--display); }
.about .btn { margin-left: auto; }

/* Developers */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 20px; border-top: 1px solid var(--line); }
.pains p { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 18px; font-family: var(--display); font-weight: 600; line-height: 1.35; min-width: 0; }
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 24px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.how li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
.how li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--topo-ink); color: var(--btn-fg); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; }
.how li b { font-family: var(--display); font-size: 18px; }
.how li span { color: var(--muted); }
.mapcard { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mapcard img { display: block; width: 100%; height: auto; }
.mapcard figcaption { font-size: 13px; color: #5E665F; margin-top: 8px; }

.band { background: var(--forest); color: var(--forest-fg); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: center; padding-block: 64px; }
.band h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 800; }
.band .offer { color: var(--forest-muted); margin-top: 14px; font-size: 18px; max-width: 48ch; }
.band .sig { display: flex; align-items: center; gap: 14px; color: var(--forest-muted); font-size: 15px; }
.band .sig img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.band .side { display: grid; gap: 18px; justify-items: start; }
.band .side .btn-light { font-size: 16px; padding: 14px 24px; }

/* Question page */
.article { padding-block: 56px 24px; }
.article .kicker { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--topo); }
.article h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; margin-top: 12px; }
.article .intro { font-size: 20px; margin-top: 18px; color: var(--muted); }
.qa { margin-top: 36px; border-top: 1px solid var(--line); }
.qa section { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.qa h2 { font-size: 21px; font-weight: 700; }
.qa p { max-width: 64ch; }
.qa ul { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.qa a { font-weight: 600; }
.endcta { margin-block: 40px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.endcta p { font-family: var(--display); font-weight: 700; font-size: 20px; flex: 1 1 280px; min-width: 0; }

footer { background: var(--forest); color: var(--forest-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-block: 24px; }
footer a { color: var(--forest-fg); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .sp { margin-left: auto; }

@media (max-width: 900px) {
  nav.links { display: none; }
  header.site .btn { margin-left: auto; }
  .hero .wrap, .how, .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .wrap { padding-block: 44px 52px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .about .wrap { flex-wrap: wrap; }
  .about .btn { margin-left: 0; }
  .pains { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .swipe { display: inline; }
  header.site .wrap { gap: 12px; }
  header.site .btn { padding: 8px 12px; font-size: 13px; }
  .brand { font-size: 13px; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .brand .tick { display: none; }
  .bl-full { display: none; }
}
@media (min-width: 421px) { .bl-short { display: none; } }
@media (prefers-reduced-motion: reduce) { .sheet-inner img { transition: none; } }

/* Developers form */
.band-form .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
form.top3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 22px; }
form.top3 .full { grid-column: 1 / -1; }
form.top3 label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--forest-fg); min-width: 0; }
form.top3 label small { font-weight: 400; color: var(--forest-muted); }
form.top3 input[type=text], form.top3 input[type=email] { font: inherit; font-size: 16px; color: #2C3034; background: #FFFFFF; border: 1px solid #DCE0D8; border-radius: 6px; padding: 10px 12px; width: 100%; }
form.top3 .check { display: flex; align-items: baseline; gap: 10px; font-weight: 400; }
form.top3 .fine { font-size: 13px; color: var(--forest-muted); }
form.top3 .fine a { color: var(--forest-fg); }
form.top3 .btn { justify-self: start; }
.legal .qa h2 { font-size: 19px; }
@media (max-width: 900px) { .band-form .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { form.top3 { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
