/* metapane.pages.dev: one page, real product shots, one action (early access). */

@font-face { font-family: "Newsreader"; src: url(fonts/Newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f7f6f0;
  --ink: #0b0b0a;
  --ink-2: #55544f;
  --line: rgb(11 11 10 / 0.12);
  --line-strong: rgb(11 11 10 / 0.9);
  --shade: #ecebe5;
  --mark: #edfe5e;
  --built: #31e992;
  --next: #bed4fb;
  --error: #a8201a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --shot: 0 1px 2px rgb(11 11 10 / 0.05), 0 28px 64px -28px rgb(11 11 10 / 0.32);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: 0.005em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--mark); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 2; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* Top bar */
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--sans); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.top nav { display: flex; gap: 26px; margin-inline-start: auto; font: 500 14px/1 var(--sans); color: var(--ink-2); }
.top nav a { text-decoration: none; padding: 10px 0; }
.top nav a:hover { color: var(--ink); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease-out, scale 120ms ease-out; }
.btn:hover { background: var(--shade); }
.btn:active { scale: 0.96; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #2a2a28; }
.btn.lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { font: 500 16px/1.2 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }

/* Hero */
.hero { padding-top: 60px; }
h1 { margin: 0; font: 360 clamp(40px, 4.7vw, 68px)/1.02 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lede { margin: 22px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.center { text-align: center; }
.center h1 { max-width: 21ch; margin-inline: auto; }
.center .lede { max-width: 50em; margin-inline: auto; }
.center .cta { justify-content: center; }
.split .head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.split .head .lede { margin-top: 0; max-width: 46ch; }
.split .head .cta { margin-top: 24px; }
.only-narrow { display: none; }

/* The product, as it is */
.window { margin: 48px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shot); background: #ecebe8; }
.window.narrow { max-width: 1040px; margin-inline: auto; }

/* Sections */
.section { padding-top: 136px; }
h2 { margin: 0; font: 360 clamp(34px, 3.6vw, 52px)/1.06 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.sub { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }

/* Rounds of one picture, in order */
.rounds { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rounds img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; }
.rounds .dropped img { opacity: 0.72; }
.rounds .kept img { outline: 2px solid var(--ink); outline-offset: 3px; }
.rounds .meta { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rounds .meta::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.rounds .kept .meta::before { background: var(--ink); }
.rounds .meta b { color: var(--ink); font-weight: 600; }
.rounds .why { margin: 6px 0 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.rounds .kept .why mark { background: var(--mark); color: inherit; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.credit { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); }

/* What Metapane keeps: the window, then three short points */
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.points li { font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.points b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* Finished slides, with how one came to be */
.reel-scroll { margin-top: 52px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 96px; }
.reel-scroll::-webkit-scrollbar { display: none; }
.reel { list-style: none; margin: 0; display: flex; gap: 16px; width: max-content; padding: 0 max(32px, calc((100vw - 1200px) / 2)); }
.reel li { position: relative; scroll-snap-align: start; scroll-margin-inline-start: max(32px, calc((100vw - 1200px) / 2)); }
.reel img { width: 264px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; }
.trace { position: absolute; left: 16px; top: 262px; z-index: 1; width: 420px; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shot); background: #fff; }
.trace img { width: 100%; aspect-ratio: auto; border-radius: 0; outline: 0; }

/* Roadmap */
.roadmap { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.roadmap li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 76px; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.roadmap b { font-weight: 500; font-size: 18px; line-height: 1.35; }
.roadmap .desc { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.tag { justify-self: end; display: inline-block; padding: 5px 7px 4px; border: 1px solid var(--ink); border-radius: 4px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.tag.built { background: var(--built); }
.tag.next { background: var(--next); }

/* Early access */
.access { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; margin-top: 44px; align-items: start; }
.field { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.field legend, .field > label { display: block; margin: 0 0 12px; padding: 0; font: 600 15px/1.3 var(--sans); }
.optional { font-weight: 400; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 24px; font: 500 14px/1 var(--sans); transition: background-color 120ms ease-out, color 120ms ease-out; }
.pill:hover span { background: var(--shade); }
.pill input:checked + span { background: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.input { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.45 var(--sans); }
textarea.input { resize: vertical; min-height: 92px; }
.input::placeholder { color: #7a7973; }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
[aria-invalid="true"].input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.err { margin: 10px 0 0; font-size: 14px; color: var(--error); }
.form-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.form-error { margin: 14px 0 0; font-size: 14px; color: var(--error); }
.done h3 { margin: 0; font: 360 40px/1.08 var(--serif); }
.done h3:focus { outline: none; }
.done p { margin: 14px 0 0; font-size: 17px; line-height: 1.5; max-width: 40ch; }
.access .window { margin: 0; }

/* Footer */
.foot { margin-top: 136px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 28px 0 44px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.foot .brand { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-inline-start: auto; }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* 404 */
.lost { padding: 120px 0 40px; }
.lost p { font-size: 18px; color: var(--ink-2); }

/* Phones */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .hero { padding-top: 44px; }
  h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .cta .btn.lg { flex: 1 1 100%; }
  .split .head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .window { margin-top: 32px; border-radius: 10px; }
  .section { padding-top: 96px; }
  h2 { font-size: 34px; }
  .sub { font-size: 17px; }
  .rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 36px; }
  .rounds .why { font-size: 15px; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
  .reel-scroll { padding-bottom: 64px; }
  .reel { gap: 10px; padding: 0 20px; }
  .reel li { scroll-margin-inline-start: 20px; }
  .reel img { width: 220px; }
  .trace { top: 218px; left: 10px; width: 300px; }
  .roadmap li { grid-template-columns: minmax(0, 1fr) auto; }
  .roadmap .desc { grid-column: 1 / -1; grid-row: 2; }
  .roadmap .tag { grid-row: 1; grid-column: 2; }
  .access { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .access .window { display: none; }
  .foot nav { margin-inline-start: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
