@font-face { font-family: 'Plex Mono'; src: url(fonts/IBMPlexMono-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(fonts/IBMPlexMono-Medium.ttf); font-weight: 500; font-display: swap; }

:root {
  --surface: #121212; --raised: #1c1c1c; --ink: #ededed; --muted: #8a8a8a;
  --line: rgba(255,255,255,.08); --accent: #2dd4bf;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Placeholders still to fill. Delete this rule once none are left. */
.ph { outline: 1px dashed #ffd866; outline-offset: 3px; }

nav { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
nav .home { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav .mark { width: 28px; height: 28px; background: currentColor;
  -webkit-mask: url(logo.svg) center/contain no-repeat; mask: url(logo.svg) center/contain no-repeat; }
nav .name { font: 500 18px var(--mono); }
nav .links { margin-left: auto; display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--ink); }

.hero { padding: 40px 0 0; }
.hero h1 { font: 500 clamp(34px, 4.6vw, 56px)/1.08 var(--mono); letter-spacing: -.02em; margin: 0; }
.hero h1 span { color: var(--muted); }
.hero p { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.lead { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.bigmark { position: relative; width: 340px; height: 340px; }
.bigmark img { position: relative; width: 100%; height: 100%; }
.bigmark .glow { position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.10), transparent 62%); }
.formula { position: relative; font: 18px var(--mono); letter-spacing: .04em; opacity: .7; text-align: center; margin-top: 4px; }
.formula sup { font-size: .72em; vertical-align: .55em; line-height: 0; }

.cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); color: #062a26; border-color: transparent; }
.small { font-size: 13px; color: var(--muted); margin-top: 14px; }

figure { margin: 0; }
.heroshot { margin: 48px auto 0; max-width: 1000px; }
.heroshot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(45,212,191,.18), 0 20px 60px rgba(0,0,0,.5); }
.heroshot figcaption, .shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

section { padding: 96px 0 0; }
h2 { font: 500 28px/1.2 var(--mono); margin: 0 0 12px; }
.lede { color: var(--muted); max-width: 660px; margin: 0 0 36px; }
.story { max-width: 720px; margin: 0 auto; text-align: center; }
.story p { font-size: 22px; line-height: 1.5; margin: 0 0 18px; }
.story p.soft { color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 48px; }
.tile { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.tile h3 { margin: 0 0 8px; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.mapshot { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.mapshot img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); }
.mapshot ul { padding-left: 18px; color: var(--muted); }
.mapshot a { color: var(--accent); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line); }
.shots figcaption { text-align: left; }
.shots figcaption b { color: var(--ink); font-weight: 500; }
.zoom { display: block; border-radius: 12px; cursor: zoom-in; }
.zoom img { transition: border-color .15s, transform .15s; }
.zoom:hover img, .zoom:focus-visible img { border-color: var(--accent); transform: translateY(-2px); }

.lightbox { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; padding: 24px 16px;
  border: 0; background: rgba(8,10,10,.92); color: var(--ink); cursor: zoom-out; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line); }
.lightbox p { margin: 0; color: var(--muted); font-size: 14px; text-align: center; max-width: 720px; }
.lightbox p b { color: var(--ink); font-weight: 500; }

.yours { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.yours ul { margin: 0; padding: 0; list-style: none; }
.yours li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.yours li b { color: var(--ink); font-weight: 600; }

.spec { font: 14px/1.95 var(--mono); color: var(--muted); background: var(--raised); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 28px; }
.spec b { color: var(--ink); font-weight: 500; display: inline-block; width: 120px; }

.price { text-align: center; background: var(--raised); border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px; }
.price .amount { font: 500 56px var(--mono); }
.price .amount small { font-size: 18px; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 24px auto 32px; max-width: 560px; color: var(--muted); }
.price li { padding: 6px 0; }
.price .cta { justify-content: center; margin-top: 0; }

/* the written pages: pricing, privacy, terms, refunds, support, reading the map */
.page { max-width: 720px; margin: 0 auto; padding: 48px 0 0; }
.page h1 { font: 500 clamp(30px, 5vw, 42px)/1.15 var(--mono); letter-spacing: -.01em; margin: 0 0 12px; }
.page h2 { font-size: 21px; margin: 44px 0 10px; }
.page h3 { font-size: 17px; margin: 28px 0 6px; }
.page .intro { color: var(--muted); font-size: 19px; margin: 0 0 8px; }
.page .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.page p, .page li { color: #c4c4c4; }
.page strong { color: var(--ink); font-weight: 600; }
.page ul { padding-left: 20px; }
.page li { margin: 6px 0; }
.page a { color: var(--accent); }
.page .btn { color: var(--ink); }
.page .btn.primary { color: #062a26; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.page th, .page td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: #c4c4c4; }
.page th { color: var(--ink); font-weight: 600; }
.page .price { margin: 32px 0 0; }

footer { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted);
  font-size: 14px; display: flex; gap: 24px; flex-wrap: wrap; }
footer .right { margin-left: auto; }

@media (max-width: 820px) {
  .lead { grid-template-columns: 1fr; text-align: center; }
  .bigmark { margin: 0 auto; width: 220px; height: 220px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .yours, .mapshot { grid-template-columns: 1fr; }
  nav .links { gap: 16px; font-size: 14px; }
  nav .links .wide { display: none; }
  .spec b { display: block; width: auto; margin-top: 8px; }
  footer .right { margin-left: 0; }
}

/* the docs */
.page { min-width: 0; }
.page code { font: .9em var(--mono); }
.page pre { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.35; }
.page pre code { font-size: 13px; }
.page table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.page th, .page td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--raised); font-weight: 600; }

.pager { display: flex; justify-content: space-between; gap: 24px; margin: 0 0 28px; padding: 0; align-items: flex-start; }
main .pager:last-child { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.pager a { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.pager a:hover { color: var(--ink); }
.pager a span { display: none; }
.pager .prev::before { content: '← '; }
.pager .next { text-align: right; }
.pager .next::after { content: ' →'; }
