/* Simpld public site — "sticker book".
   White page, flat sticker illustrations in four saturated accents over
   pale warm-gray circles, medium geometric grotesk display with tight
   tracking, Inter body, pill buttons and big soft-cornered cards. */

:root {
  --page: #fefefd;
  --ink: #1a1a1a;
  --head: #2a2a2a;
  --body: #5c5a57;
  --muted: #8a8782;
  --warm: #f2f0ec;
  --warm-2: #e9e6e0;
  --line: #ebe8e2;
  --sky: #04b3fe;
  --red: #fd3c06;
  --green: #03c975;
  --gold: #f6c25a;
  --sky-wash: #e3f6ff;
  --green-wash: #def8ec;
  --gold-wash: #fdf1d8;
  --red-wash: #ffe6dd;
  --green-ink: #018a50;
  --display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1200px;
  --card-r: clamp(24px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
::selection { background: var(--sky-wash); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* intro: the whole page fades in after a white frame */
body.intro main, body.intro .nav { opacity: 0; }
body.ready main, body.ready .nav { opacity: 1; transition: opacity .45s ease; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  margin: 0;
  color: var(--head);
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.display.md { font-size: clamp(32px, 4.4vw, 52px); }
.lede { margin: 18px 0 0; max-width: 34rem; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--warm);
  color: var(--head); font-size: 13px; font-weight: 500;
}
.kicker i { width: 18px; height: 18px; border-radius: 50%; background: var(--k, var(--sky)); }
h3 { margin: 0; color: var(--head); font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--warm); color: var(--ink);
  font: 500 14px/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); background: var(--warm-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 13px; font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.center .actions { justify-content: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--warm); color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- stickers ---------- */
.stickers { position: relative; width: 100%; aspect-ratio: 1; pointer-events: none; }
.stk-bg, .stk { position: absolute; aspect-ratio: 1; }
.stk-bg { border-radius: 50%; background: var(--warm); animation: bg-in .6s ease both; }
.stk { animation: pop .75s var(--spring) both; filter: drop-shadow(0 6px 10px rgba(26, 26, 26, .08)); }
.stk.is-confetti { filter: none; }
.stk-art { display: block; width: 100%; height: 100%; }
.stk-art svg { width: 100%; height: 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(0); } to { opacity: 1; transform: none; } }
@keyframes bg-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
body.intro .stk, body.intro .stk-bg { animation-play-state: paused; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 32px); padding-block: clamp(32px, 7vh, 80px) clamp(48px, 9vh, 100px); }
.hero-copy { text-align: center; }
.hero-copy .lede { margin-inline: auto; max-width: 27rem; }
.hero-copy .actions { justify-content: center; }
.hero .stickers { max-width: 360px; justify-self: center; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 12.5px; }
/* Darker than --red so small text stays readable on the light page. */
.hero-note.is-warning, .hero-note.is-warning a { color: #c62d00; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 10vh, 112px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--card-r);
  background: var(--warm);
}
.card.sky { background: var(--sky); }
.card.green { background: var(--green); }
.card.gold { background: var(--gold); }
.card.white { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature p { margin: 0; color: var(--body); }
.feature .sticker-mini { width: 76px; height: 76px; margin-bottom: 10px; }
.feature .sticker-mini svg { width: 100%; height: 100%; }
.num { color: var(--muted); font-size: 13px; font-weight: 500; }

/* white inset panels inside cards */
.panel { margin-top: 18px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(26, 26, 26, .04), 0 10px 30px -18px rgba(26, 26, 26, .25); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.panel-body { padding: 16px; color: var(--head); font-size: 14px; }
.panel-body p { margin: 0; }
mark { padding: 0 .25em; border-radius: 6px; background: var(--gold-wash); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips code, .chip { padding: 5px 11px; border-radius: 999px; background: var(--warm); color: var(--head); font-size: 12px; }
.diff { font: 12.5px/1.8 var(--mono); }
.diff div { padding: 0 10px; border-radius: 6px; white-space: pre; }
.diff .del { background: var(--red-wash); color: #b52a00; }
.diff .add { background: var(--green-wash); color: var(--green-ink); }
.diff .ctx { color: var(--muted); }
.receipt { display: grid; gap: 6px; font: 12.5px/1.5 var(--mono); }
.receipt span { display: flex; justify-content: space-between; }
.receipt i { font-style: normal; color: var(--muted); }
.receipt i.ok { color: var(--green-ink); }
.receipt .rule { border-top: 1.5px dashed var(--line); }

/* ---------- app window mock ---------- */
.window { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 2px 0 rgba(26, 26, 26, .04), 0 30px 60px -30px rgba(26, 26, 26, .35); }
.window-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.lights i:nth-child(2) { background: var(--gold); }
.lights i:nth-child(3) { background: var(--green); }
.url { flex: 1; color: var(--muted); font-size: 12.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-spacer { width: 47px; }
.bar-note { padding: 4px 10px; border-radius: 999px; background: var(--warm); color: var(--muted); font-size: 11.5px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--warm); }
.seg button { height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--body); font: 500 13px var(--sans); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(26, 26, 26, .12); }

.demo-card { padding: clamp(16px, 4vw, 56px); }
.demo-card .stickers { position: absolute; width: 180px; }
.demo-card .stk-bg { display: none; }
.demo-card .deco-l { left: -30px; bottom: -40px; }
.demo-card .deco-r { right: -24px; top: -30px; }
.demo-window { position: relative; z-index: 1; max-width: 880px; margin-inline: auto; }
.chat { display: grid; gap: 14px; min-height: 340px; padding: clamp(16px, 3vw, 28px); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chat-file { color: var(--muted); font-size: 12.5px; }
.bubble-user { justify-self: end; max-width: 80%; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #fff; font-size: 14.5px; }
.bubble-user p { margin: 0; }
.bubble-user mark { background: rgba(255, 255, 255, .16); color: #fff; }
.bubble-ai { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.bubble-ai .avatar { width: 40px; height: 40px; }
.bubble-ai .avatar svg { width: 100%; height: 100%; }
.bubble-ai .who { color: var(--head); font-size: 13px; font-weight: 600; }
.bubble-ai .who span { margin-left: 6px; color: var(--muted); font-weight: 400; }
.bubble-ai pre { margin: 6px 0 0; padding: 14px 16px; border-radius: 6px 20px 20px 20px; background: var(--warm); color: var(--head); font: 14px/1.65 var(--sans); white-space: pre-wrap; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px clamp(16px, 3vw, 28px); border-top: 1px solid var(--line); }
.status-row .chip { display: inline-flex; align-items: center; gap: 6px; }
.status-row .push { margin-left: auto; color: var(--muted); background: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--sky); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.list .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ic, var(--warm)); color: #fff; font: 600 13px var(--display); }
.list b { display: block; color: var(--head); font-weight: 600; }
.list span { color: var(--muted); font-size: 14px; }
.code-card { display: grid; gap: 14px; }
.code { margin: 0; padding: 18px 20px; overflow-x: auto; color: var(--head); font-size: 12.5px; line-height: 1.75; white-space: pre; }
.tk-key, .tk-cmd { color: #0a86c4; }
.tk-str { color: var(--green-ink); }
.tk-num, .tk-flag { color: #c43200; }
.tk-lit { color: #a26c00; }
.tk-com { color: var(--muted); }

/* ---------- models ---------- */
.lib { display: grid; grid-template-columns: 180px 1fr; min-height: 320px; }
.lib-side { display: grid; align-content: start; gap: 4px; padding: 16px; border-right: 1px solid var(--line); background: #fbfaf8; }
.lib-side .brand { margin: 0 6px 12px; font-size: 15px; }
.lib-side .brand img { width: 22px; height: 22px; }
.lib-nav { padding: 8px 12px; border-radius: 999px; color: var(--body); font-size: 13.5px; }
.lib-nav.on { background: var(--ink); color: #fff; }
.lib-main { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 24px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stats div { padding: 14px; border-radius: 18px; background: var(--warm); }
.stats span { display: block; color: var(--muted); font-size: 12px; }
.stats b { display: block; margin: 2px 0; color: var(--head); font: 500 24px/1.2 var(--display); letter-spacing: -.02em; }
.stats em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.stats div:nth-child(1) { background: var(--sky-wash); }
.stats div:nth-child(2) { background: var(--green-wash); }
.stats div:nth-child(3) { background: var(--gold-wash); }
.stats div:nth-child(4) { background: var(--red-wash); }
.progress-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.progress-head code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-head b { color: var(--head); }
.bar { height: 12px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--warm); }
.bar i { display: block; width: 64%; height: 100%; border-radius: 999px; background: var(--sky); }
.rows { display: grid; gap: 4px; font-size: 13px; }
.rows div { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.rows .head { color: var(--muted); font-size: 12px; }
.rows div:not(.head) { background: #fbfaf8; color: var(--head); }
.pill-ok, .pill-off { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.pill-ok { background: var(--green-wash); color: var(--green-ink); }
.pill-off { background: var(--warm); color: var(--body); }

/* ---------- price ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.price .card.gold { color: var(--ink); }
.price-big { display: flex; align-items: flex-start; margin-top: 20px; color: var(--ink); font: 500 clamp(96px, 14vw, 168px)/0.9 var(--display); letter-spacing: -.06em; }
.price-big .cur { margin-top: .12em; font-size: .4em; letter-spacing: 0; }
.price-unit { margin: 8px 0 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.price-scale { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.price-scale div { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; }
.price-scale dt, .price-scale dd { display: inline; margin: 0; }
.price-scale dt { color: rgba(26, 26, 26, .65); }
.price-scale dd { margin-left: 4px; color: var(--ink); font-weight: 600; }
.price .stickers { position: absolute; right: 8px; top: 12px; width: clamp(110px, 32%, 200px); }
.checks { display: grid; gap: 2px; margin: 0; padding: 8px; list-style: none; }
.checks li { display: grid; grid-template-columns: 28px 74px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; font-size: 14px; }
.checks li:nth-child(odd) { background: #fbfaf8; }
.ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.checks code { color: var(--muted); font-size: 12px; }
.checks .t { color: var(--head); }
.checks .v { color: var(--head); font-weight: 600; }

/* ---------- builds (downloads) ---------- */
.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.build-col { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--card-r); background: var(--warm); transition: box-shadow .3s; }
.build-col.is-you { box-shadow: 0 0 0 3px var(--ink); }
.build-col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.build-col-head .sticker-mini { width: 54px; height: 54px; }
.build-col-head h3 { margin-right: auto; }
.you { padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.build { display: grid; gap: 8px; padding: 18px; border-radius: 20px; background: #fff; }
.build-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--head); font: 500 18px var(--display); letter-spacing: -.02em; }
.build p { margin: 0; color: var(--body); font-size: 14px; }
.build code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.build .btn { justify-self: start; margin-top: 4px; }
.rec { display: none; padding: 4px 10px; border-radius: 999px; background: var(--green-wash); color: var(--green-ink); font: 500 11.5px var(--sans); letter-spacing: 0; }
.build.is-rec .rec { display: inline-block; }
.build.is-rec { box-shadow: 0 0 0 2px var(--green); }
.build-note { margin: auto 0 0; color: var(--muted); font-size: 13px; }
.gpu-chips { display: flex; padding: 0; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.gpu-chips li { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 9px; border-radius: 999px; background: var(--warm); color: var(--head); font-size: 14px; }
.gpu-chips i { width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--sky)); }

/* ---------- closing ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 32px); }
.closing .stickers { max-width: 240px; justify-self: center; }
.term-card { margin-top: clamp(40px, 6vw, 64px); padding: clamp(14px, 2.4vw, 28px); border-radius: var(--card-r); background: var(--ink); }
.term-card .window { max-width: 760px; margin-inline: auto; background: #242322; box-shadow: none; }
.term-card .window-bar { border-color: #333130; }
.term-card .url { color: #a8a49e; }
.term { min-height: 190px; color: #f2f0ec; }
.term .prompt { color: var(--sky); }
.term .dim { color: #8f8b85; }
.term .ok { color: var(--green); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--gutter) var(--gutter); }
.footer-card { max-width: calc(var(--wide) - 2 * var(--gutter)); margin-inline: auto; padding: clamp(28px, 4vw, 52px); border-radius: var(--card-r); background: var(--warm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h4 { margin: 0 0 4px; color: var(--head); font-size: 14px; font-weight: 600; }
.footer-col a { color: var(--body); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--warm-2); color: var(--muted); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-3, .builds { grid-template-columns: 1fr; }
  .split, .price { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero, .closing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy, .closing .center { grid-column: 1 / -1; grid-row: 1; }
  .hero .stickers, .closing .stickers { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lib { grid-template-columns: 1fr; }
  .lib-side { display: none; }
  .demo-card .stickers { width: 120px; }
}
@media (max-width: 560px) {
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .rows div { grid-template-columns: 1fr auto; }
  .rows div > :nth-child(2), .rows div > :nth-child(3) { display: none; }
  .checks li { grid-template-columns: 28px 1fr auto; }
  .checks code { display: none; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body.intro main, body.intro .nav { opacity: 1; }
}
