/* review-party.com. Brand: brand/README.md.
   Ink and Chalk neutrals; Marker yellow is the signature, used only for the pins that tie an
   explanation to its code; Cobalt for links; Pink only for questions. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #1c1a33;
  --ink-2: #2a2847;
  --chalk: #f5f4fa;
  --paper: #ffffff;
  --marker: #ffd84d;
  --marker-soft: #fff1b8;
  --cobalt: #3a3de0;
  --pink: #ff4f8b;
  --add: #1a7f37;
  --del: #cf222e;

  --bg: var(--paper);
  --bg-band: var(--chalk);
  --text: var(--ink);
  --muted: #5e5c75;
  --line: #e2e0ec;
  --link: var(--cobalt);
  --code-bg: #17162a;
  --code-fg: #e6e4f2;

  --display: "Bricolage Grotesque", ui-sans-serif, -apple-system, sans-serif;
  --prose: "Newsreader", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15142a;
    --bg-band: #1b1a33;
    --text: #ecebf5;
    --muted: #a3a1ba;
    --line: #2e2c47;
    --link: #a3a5ff;
    --code-bg: #0f0e1f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--prose);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.6vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 25px; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }

code, pre, kbd { font-family: var(--mono); font-size: 0.82em; }
:not(pre) > code { background: color-mix(in srgb, var(--text) 7%, transparent); padding: 0.08em 0.35em; border-radius: 5px; }
pre { background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ui { font-family: var(--display); }
.muted { color: var(--muted); }
.fine { font-family: var(--display); font-size: 14px; color: var(--muted); line-height: 1.5; }
.measure { max-width: 34em; }

/* ---- header & footer ----------------------------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body[data-page="index"] .site-header { background: color-mix(in srgb, var(--ink) 92%, transparent); border-bottom-color: transparent; color: var(--chalk); --link: var(--chalk); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; font-family: var(--display); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.015em; color: inherit; text-decoration: none; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 26px; font-size: 15.5px; font-weight: 500; }
.links a { color: inherit; text-decoration: none; }
.links a:hover { text-decoration: underline; }
body[data-page="pricing"] [data-nav="pricing"], body[data-page="changelog"] [data-nav="changelog"] { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
@media (max-width: 640px) { .links a:not(.button) { display: none; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 56px; font-family: var(--display); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.foot-links a { color: var(--muted); }
.site-footer .fine { grid-column: 1 / -1; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---- buttons ------------------------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: 12px; border: 2px solid transparent;
  background: var(--marker); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 85%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 85%, transparent); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.button.quiet { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); box-shadow: none; }
.button.quiet:hover { border-color: currentColor; }
.button.small { padding: 9px 14px; font-size: 15px; border-radius: 10px; }
.button svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover, .button:active { transform: none; } }

/* ---- the pin: the brand's one device -------------------------------------------------------------------- */

.pin {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--marker); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1;
}
.pin.small { width: 26px; height: 26px; font-size: 14px; }
.pin.pink { background: var(--pink); color: #fff; }
mark { background: linear-gradient(transparent 12%, var(--marker-soft) 12%, var(--marker-soft) 88%, transparent 88%); color: inherit; padding: 0 0.1em; }
@media (prefers-color-scheme: dark) { mark { background: linear-gradient(transparent 12%, color-mix(in srgb, var(--marker) 30%, transparent) 12%, color-mix(in srgb, var(--marker) 30%, transparent) 88%, transparent 88%); } }

/* ---- hero ---------------------------------------------------------------------------------------------- */

.hero { background: var(--ink); color: var(--chalk); padding: 72px 0 0; overflow: hidden; --link: var(--chalk); }
.hero-text { max-width: 860px; }
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.5; color: color-mix(in srgb, var(--chalk) 82%, transparent); max-width: 31em; margin: 26px 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta-note { font-family: var(--display); font-size: 15px; color: color-mix(in srgb, var(--chalk) 62%, transparent); }

/* The screenshot rises out of the dark band into the page. */
.hero-shot { position: relative; margin-top: 64px; }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--bg); z-index: 0; }
.hero-shot .window { position: relative; z-index: 1; }

.window { border-radius: 14px; overflow: hidden; background: #15142a; border: 1px solid #2e2c47; box-shadow: 0 30px 80px -20px rgb(10 8 30 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.04) inset; }
.window .bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #1d1b33; border-bottom: 1px solid #2e2c47; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b3958; display: block; }
.window img { display: block; width: 100%; height: auto; }

/* ---- the problem --------------------------------------------------------------------------------------- */

.problem { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; padding: 96px 0 40px; }
.problem p { font-size: 21px; }
.problem p.after { color: var(--muted); }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; gap: 40px; } }

/* A diff stat for a single prompt, too long to read: the page's picture of the problem. */
.pile { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 0; background: var(--bg-band); max-height: 470px; overflow: hidden; position: relative; }
.pile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, var(--bg-band)); }
.pile .sum { font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pile .sum .a { color: var(--add); } .pile .sum .d { color: var(--del); }
.pile ol { list-style: none; margin: 0; padding: 0; }
.pile li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; white-space: nowrap; }
.pile li span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pile .bar { letter-spacing: -1px; }
.pile .bar .a { color: var(--add); } .pile .bar .d { color: var(--del); }

/* ---- the walkthrough: this page as a narrative ---------------------------------------------------------- */

.walk-head { padding: 72px 0 8px; max-width: 760px; }
.walk-head p { font-size: 21px; color: var(--muted); }

.walk { position: relative; counter-reset: step; }
/* The thread joining the pins, down the left edge. */
.walk::before { content: ""; position: absolute; top: 40px; bottom: 120px; left: 21px; width: 2px; background: repeating-linear-gradient(to bottom, var(--marker) 0 6px, transparent 6px 14px); }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 40px; padding: 48px 0; align-items: start; }
.step .pin { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg); }
.step h3 { margin-top: 6px; }
.step .text p { color: var(--muted); }
.step .text p strong { color: var(--text); font-weight: 600; }
.step figure { margin: 0; }
.step figcaption { font-family: var(--display); font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; }
  .step figure { grid-column: 2; margin-top: 20px; }
}

/* A narrative's opening, typeset: title, intent, and the steps as the route through the change. */
.specimen { border-radius: 16px; padding: 28px 30px; background: var(--ink); color: var(--chalk); box-shadow: 0 30px 80px -30px rgb(10 8 30 / 0.5); }
.specimen h4 { font-size: 26px; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.specimen p { font-size: 18px; color: color-mix(in srgb, var(--chalk) 82%, transparent); }
.specimen strong { color: #fff; font-weight: 600; }
.specimen ol { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-family: var(--display); font-size: 16px; line-height: 1.35; }
.specimen li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; }
.specimen li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--chalk) 14%, transparent); color: var(--chalk); }
.specimen li:first-child::before { background: var(--marker); color: var(--ink); }

/* ---- also in the box ----------------------------------------------------------------------------------- */

.band { background: var(--bg-band); border-block: 1px solid var(--line); padding: 88px 0; margin-top: 56px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.pair h3 { margin-top: 22px; }
.pair p { color: var(--muted); }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* ---- setup ----------------------------------------------------------------------------------------------- */

.setup { padding: 96px 0 0; }
.setup ol { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.setup li { display: grid; grid-template-columns: 26px 1fr; gap: 6px 14px; align-content: start; }
.setup li h3 { font-size: 20px; margin: 0; align-self: center; }
.setup li p { grid-column: 2; margin: 0; color: var(--muted); font-size: 17.5px; }
@media (max-width: 860px) { .setup ol { grid-template-columns: 1fr; gap: 28px; } }

/* ---- guarantees ---------------------------------------------------------------------------------------- */

.promise { padding: 96px 0 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.promise dl { margin: 0; display: grid; gap: 26px; }
.promise dt { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.promise dd { margin: 0; color: var(--muted); font-size: 17.5px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; gap: 24px; } }

/* ---- price strip --------------------------------------------------------------------------------------- */

.price-strip { margin-top: 96px; background: var(--ink); color: var(--chalk); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; --link: var(--marker); }
.price-strip h2 { color: #fff; }
.price-strip p { color: color-mix(in srgb, var(--chalk) 80%, transparent); margin: 0; font-size: 19px; }
@media (max-width: 760px) { .price-strip { grid-template-columns: 1fr; padding: 36px 28px; } }

/* ---- FAQ ------------------------------------------------------------------------------------------------- */

.faq { max-width: 760px; padding-top: 96px; }
.faq h3 { font-size: 20px; margin: 34px 0 6px; }
.faq p { color: var(--muted); font-size: 18px; }

/* ---- pricing page ---------------------------------------------------------------------------------------- */

.page-head { padding: 72px 0 12px; max-width: 820px; }
.page-head p { font-size: 21px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 20px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 26px; display: flex; flex-direction: column; background: var(--bg); }
.plan.featured { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--marker); }
@media (prefers-color-scheme: dark) { .plan.featured { border-color: var(--marker); box-shadow: none; } }
.plan h3 { font-size: 21px; margin-bottom: 2px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.035em; line-height: 1; margin: 18px 0 6px; }
.plan .price small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan .for { color: var(--muted); font-size: 17px; min-height: 3.2em; margin: 6px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 9px; font-family: var(--display); font-size: 15.5px; line-height: 1.4; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); }
@media (prefers-color-scheme: dark) { .plan li::before { box-shadow: none; } }
.plan .button { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

/* ---- prose pages: terms, privacy, changelog, thanks, download --------------------------------------------- */

.prose { max-width: 720px; padding: 64px 0 0; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); }
.prose h2 { font-size: 28px; margin: 1.7em 0 0.5em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose .updated { font-family: var(--display); color: var(--muted); font-size: 15px; }

.download-box { margin: 28px 0 8px; padding: 30px; border-radius: 18px; background: var(--bg-band); border: 1px solid var(--line); display: grid; gap: 16px; }
.download-box .meta { font-family: var(--display); color: var(--muted); font-size: 15px; }
.download-box ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 17px; }

.key-box { position: relative; }
.key-box pre { white-space: pre-wrap; word-break: break-all; font-size: 13.5px; padding-right: 96px; min-height: 76px; }
.key-box .button { position: absolute; top: 12px; right: 12px; }
.status-line { font-family: var(--display); color: var(--muted); font-size: 16px; }
.status-line.error { color: var(--del); }
