/* Public website. Visual system: Geist, ink + white + one red accent, huge tight headlines,
   mono labels, pill buttons, inset rounded dark panels. */
:root {
  --ink: #0a0a0a;
  --ink-2: #232323;
  --white: #fff;
  --grey: #5d5d5d;
  --muted: #9d9d9d;
  --line: #e6e6e6;
  --soft: #f3f3f3;
  --red: #de322d;
  --red-dark: #c42722;
  --r-panel: 32px;
  --r-card: 24px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Geist, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grey { color: var(--muted); }

/* type scale */
.display { font-size: clamp(48px, 7.4vw, 104px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; }
.h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 500; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.031em; font-weight: 500; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--grey); letter-spacing: -0.01em; }

/* label pill: ■ TEXT */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 99px; background: var(--soft); font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.tag::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--red); box-shadow: inset 0 0 0 2px #f9b9b6; }
.dark .tag, .tag.on-dark { background: rgba(255,255,255,.1); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px; font: inherit; font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; white-space: nowrap; }
.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); }
.btn.white { background: #fff; color: var(--ink); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.line { border-color: var(--line); background: #fff; }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.textlink { font-size: 18px; letter-spacing: -0.03em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px calc(var(--gutter) + 8px); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 21px; letter-spacing: -0.04em; }
.logo sup { font-size: 10px; font-weight: 400; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { opacity: .9; }
.nav-links a:hover, .nav-links a.on { color: var(--red); opacity: 1; }
.nav-cta { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.nav-cta .login { font-size: 15px; padding: 9px 12px; }
.nav.light { color: #fff; }
.nav.solid { position: relative; color: var(--ink); }
.burger { display: none; background: none; border: 0; color: inherit; font-size: 26px; cursor: pointer; justify-self: end; }

/* hero: inset dark panel with live map */
.hero { padding: 10px; }
.hero-panel { position: relative; border-radius: var(--r-panel); background: var(--ink); color: #fff; overflow: hidden; min-height: min(920px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; }
#hero-map { position: absolute; inset: 0; z-index: 0; background: #111; }
#hero-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.62) contrast(1.15); }
.hero-panel::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.1) 100%), linear-gradient(0deg, rgba(10,10,10,.85) 0%, transparent 40%); }
.hero-content { position: relative; z-index: 2; padding: 150px calc(var(--gutter) + 8px) 48px; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero h1 { margin: 22px 0 18px; max-width: 12ch; }
.hero-sub { max-width: 40ch; font-size: 17px; color: rgba(255,255,255,.75); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 64px; flex-wrap: wrap; }
.hero-right { max-width: 430px; }
.hero-right .h3 { color: #fff; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(222,50,45,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(222,50,45,0); } 100% { box-shadow: 0 0 0 0 rgba(222,50,45,0); } }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 60s linear infinite; }
.marquee span { display: inline-flex; gap: 10px; align-items: baseline; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; }
.marquee span b { font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 400; color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head .h2 { margin-top: 18px; max-width: 18ch; }
.panel { margin: 0 10px; border-radius: var(--r-panel); }
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: rgba(255,255,255,.65); }
.softbg { background: var(--soft); }

/* intro + stats */
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; }
.stat .num { font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.05em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat .bar { border-top: 1px dashed #cfcfcf; margin: 22px 0 14px; }
.stat h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.stat p { font-size: 14px; color: var(--grey); margin-top: 4px; }

/* numbered steps (dark) */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step-list li { border-top: 1px solid var(--ink-2); padding: 26px 0; cursor: default; }
.step-list li:last-child { border-bottom: 1px solid var(--ink-2); }
.step-list h3 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.045em; line-height: 1.05; color: #6f6f6f; transition: color .25s; display: inline; }
.step-list sup { font-family: 'Geist Mono', monospace; font-size: 12px; color: #8a8a8a; margin-left: 8px; vertical-align: super; }
.step-list p { max-height: 0; overflow: hidden; opacity: 0; transition: all .35s; color: rgba(255,255,255,.65); max-width: 52ch; }
.step-list li.on h3, .step-list li:hover h3 { color: #fff; }
.step-list li.on p, .step-list li:hover p { max-height: 160px; opacity: 1; margin-top: 12px; }
.steps-aside { position: sticky; top: 40px; }

/* product preview */
.preview { border-radius: var(--r-card); background: #161616; border: 1px solid var(--ink-2); padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.preview-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.pcard { background: #1e1e1e; border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.pcard + .pcard { margin-top: 8px; }
.pscore { min-width: 42px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; background: #fff; color: var(--ink); font-size: 14px; }
.pscore.red { background: var(--red); color: #fff; }
.pcard b { display: block; font-weight: 500; font-size: 15px; }
.pcard small { color: #8a8a8a; font-size: 12.5px; }
.ppill { font-family: 'Geist Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: #ddd; }
.ppill.red { background: rgba(222,50,45,.18); color: #ff8a86; }

/* features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--soft); border-radius: var(--r-card); padding: 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.feature h3 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 8px; }
.feature p { color: var(--grey); font-size: 15px; }

/* pricing */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.toggle button { border: 0; background: none; font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 99px; cursor: pointer; color: var(--grey); }
.toggle button.on { background: var(--ink); color: #fff; }
.toggle .save { color: var(--red); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: #fff; border-radius: var(--r-card); padding: 30px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pop { border: 1.5px solid var(--red); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-family: 'Geist Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; display: inline-flex; gap: 8px; align-items: center; }
.plan-name::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.badge { background: var(--red); color: #fff; font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.price { font-size: 40px; letter-spacing: -0.04em; font-weight: 600; margin: 26px 0 6px; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; color: var(--grey); font-weight: 400; letter-spacing: -0.01em; }
.plan .desc { color: var(--grey); font-size: 15px; min-height: 48px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '↗'; color: var(--red); }
.plan .btn { justify-content: center; }
.plans-note { margin-top: 22px; color: var(--grey); font-size: 14px; text-align: center; }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.faq details { background: var(--soft); border-radius: 18px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; transition: transform .25s; color: var(--grey); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--grey); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founder { background: #161616; border: 1px solid var(--ink-2); border-radius: var(--r-card); padding: 26px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 22px; font-weight: 600; margin-bottom: 40px; letter-spacing: -0.03em; }
.founder h3 { font-size: 22px; letter-spacing: -0.03em; }
.founder p { color: #8a8a8a; font-size: 14px; margin-top: 4px; }
.company { margin-top: 16px; background: #161616; border: 1px solid var(--ink-2); border-radius: var(--r-card); padding: 22px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.company dt { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; color: #8a8a8a; letter-spacing: .05em; }
.company dd { margin: 4px 0 0; font-size: 15px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { background: var(--soft); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; min-height: 340px; transition: transform .25s; }
.post:hover { transform: translateY(-4px); }
.post-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.post-cat { font-size: 14px; font-weight: 500; }
.post-art { width: 104px; height: 104px; border-radius: 16px; flex-shrink: 0; overflow: hidden; }
.post h3 { font-size: 24px; letter-spacing: -0.035em; line-height: 1.2; margin-top: auto; padding-top: 32px; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e2e2; }
.post-meta .dot::before { content: '●'; color: var(--red); font-size: 9px; margin-right: 6px; vertical-align: 2px; }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 120px; }
.article h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.045em; margin: 18px 0 20px; }
.article .meta { color: var(--grey); font-size: 14px; display: flex; gap: 16px; margin-bottom: 40px; }
.article .body { font-size: 18px; line-height: 1.75; color: #2a2a2a; }
.article .body h2 { font-size: 30px; letter-spacing: -0.035em; line-height: 1.2; margin: 52px 0 14px; color: var(--ink); }
.article .body h3 { font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 8px; color: var(--ink); }
.article .body p { margin: 0 0 18px; }
.article .body ul, .article .body ol { margin: 0 0 18px; padding-left: 22px; }
.article .body li { margin-bottom: 8px; }
.article .body a { color: var(--red); border-bottom: 1px solid rgba(222,50,45,.3); }
.article .body blockquote { margin: 28px 0; padding: 20px 24px; background: var(--soft); border-radius: 16px; font-size: 17px; }
.article .body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.article .body th, .article .body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article .body th { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--grey); }
.legal .body { font-size: 16px; }
.legal .body h2 { font-size: 22px; margin-top: 36px; }

/* cta */
.cta { text-align: center; padding: clamp(100px, 12vw, 170px) var(--gutter); }
.cta .display { max-width: 14ch; margin: 22px auto 34px; }

/* footer */
.footer { margin: 0 10px 10px; padding: 56px calc(var(--gutter) + 8px) 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 64px; }
.foot-grid h3 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.25; max-width: 16ch; }
.signup { display: flex; margin-top: 26px; border: 1px solid #3a3a3a; border-radius: 99px; padding: 5px 5px 5px 20px; max-width: 380px; }
.signup input { flex: 1; background: none; border: 0; color: #fff; font: inherit; font-size: 14px; outline: none; }
.signup button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-left: 1px solid var(--ink-2); padding-left: 48px; }
.foot-cols h4 { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; color: #8a8a8a; letter-spacing: .05em; font-weight: 400; margin-bottom: 12px; }
.foot-cols a { display: block; padding: 4px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--red); }
.wordmark { font-size: clamp(56px, 15.2vw, 250px); font-weight: 600; letter-spacing: -0.065em; line-height: .78; margin-top: 70px; white-space: nowrap; transform: translateY(6%); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; color: #8a8a8a; font-size: 13px; border-top: 1px solid var(--ink-2); position: relative; z-index: 1; background: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee-track { animation: none; } }

/* responsive */
@media (max-width: 1000px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta .login, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 16px; right: 16px; background: #fff; color: var(--ink); padding: 20px 24px; border-radius: 20px; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
  .nav.open .nav-links .mob { display: block; }
  .intro, .steps, .faq, .about, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features, .plans, .posts { grid-template-columns: 1fr; }
  .foot-cols { border-left: 0; padding-left: 0; }
  .company { grid-template-columns: 1fr; }
  .steps-aside { position: static; }
  .hero-content { padding-top: 120px; }
}
.nav-links .mob { display: none; }
@media (max-width: 560px) {
  .founders { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
