/* ModelFinch draft. Spacing, type and radius follow the landing-page-design
   scale: 2 4 8 12 16 24 32 40 48 64 80 96 px, Tailwind type steps, flat
   backgrounds, gradient only on hero heading text. */
:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #0e0e10;
  --ink-2: #3d3d42;
  --muted: #74737a;
  --line: #e6e4dd;
  --line-2: #d9d6cd;
  --soft: #efede6;
  --accent: #f2a007;
  --accent-ink: #7a4f00;
  --accent-soft: #fdf1d6;
  --ok: #1f8a5b;
  --ok-soft: #e3f4ea;
  --err: #c6362c;
  --err-soft: #fbe6e4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: translateY(80px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2f; transform: translateY(-1px); }
.btn-ghost { background: var(--card); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 12px; }
.btn-lg { padding: 12px 16px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 228, 221, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(14, 14, 16, 0.06);
  width: max-content; max-width: calc(100% - 32px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.brand-mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 14px; line-height: 20px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--soft); color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; position: relative; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 96px 24px 40px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.nav-open .menu { opacity: 1; pointer-events: auto; }
.menu a {
  font-size: 30px; line-height: 36px; font-weight: 600; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.nav-open .menu a { opacity: 1; transform: none; }
.menu .btn { margin-top: 24px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 160px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; color: var(--ink-2);
  padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.eyebrow b { font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; }
.hero h1 {
  margin-top: 24px; max-width: 680px;
  font-size: 60px; line-height: 1; letter-spacing: -0.035em;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--ink-2); }

.search {
  margin-top: 32px; max-width: 560px;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 1px 0 rgba(14, 14, 16, 0.02), 0 16px 40px rgba(14, 14, 16, 0.06);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--accent-soft), 0 16px 40px rgba(14, 14, 16, 0.06); }
.search i { font-size: 20px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); padding: 8px 0;
}
.search input::placeholder { color: var(--muted); }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.chip:hover { background: var(--card); border-color: var(--line-2); transform: translateY(-1px); }
.chip:active { transform: scale(0.98); }
.proof { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }

/* Live board */
.board {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px;
  box-shadow: 0 24px 64px rgba(14, 14, 16, 0.08);
  position: relative;
}
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 16px; }
.board-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.board-title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 16px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: 999px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); animation: pulse 2000ms var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.board-list { list-style: none; margin: 0; padding: 0; position: relative; }
.board-row {
  display: grid; grid-template-columns: 32px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 8px; border-radius: 8px;
  will-change: transform;
}
.board-row + .board-row { border-top: 1px solid var(--soft); }
.board-row.is-featured { background: var(--accent-soft); }
.rank { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.tile {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 16px; line-height: 24px; flex: none;
}
.board-name { font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 16px; }
.delta { font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.delta.up { background: var(--ok-soft); color: var(--ok); }
.delta.down { background: var(--err-soft); color: var(--err); }
.board-foot { margin-top: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--soft); display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: 12px; line-height: 16px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(14, 14, 16, 0.08);
  animation: bob 6000ms var(--ease) infinite;
}
.float-chip i { font-size: 16px; color: var(--accent); }
.float-a { left: -32px; top: -20px; }
.float-b { right: -24px; bottom: -24px; animation-delay: -3000ms; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Makers strip */
.makers { padding: 24px 0 64px; }
.makers p { text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.marquee { margin-top: 24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 48s linear infinite; }
.marquee-track span { font-size: 20px; line-height: 28px; font-weight: 600; color: #a4a29b; letter-spacing: -0.01em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────── */
section { scroll-margin-top: 96px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; }
.kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-ink); }
.section-head h2 { margin-top: 12px; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink-2); }

/* Tagline reveal */
.tagline { padding: 96px 0; }
.tagline p { max-width: 900px; font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.tagline .w { color: rgba(14, 14, 16, 0.28); transition: color 600ms var(--ease); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl.on { color: var(--accent-ink); }

/* Rankings */
.explorer { margin-top: 48px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.cats { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 12px; border: 0; background: transparent;
  font-size: 14px; line-height: 20px; color: var(--ink-2);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.cat i { font-size: 20px; color: var(--muted); transition: color 300ms var(--ease); }
.cat:hover { background: var(--soft); color: var(--ink); }
.cat[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.cat[aria-selected="true"] i { color: var(--accent); }
.cat .count { margin-left: auto; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; min-height: 520px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--soft); }
.panel-head h3 { font-size: 24px; line-height: 32px; }
.panel-head p { font-size: 14px; line-height: 20px; color: var(--muted); }
.filter { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.filter i { color: var(--muted); }
.filter input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; line-height: 20px; padding: 4px 0; width: 160px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 40px 48px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 8px; border-radius: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), background-color 300ms var(--ease);
}
.row.in { opacity: 1; transform: none; }
.row + .row { border-top: 1px solid var(--soft); }
.row:hover { background: var(--bg); }
.row .rank { font-size: 16px; line-height: 24px; }
.row .tile { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; line-height: 28px; }
.row-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.row-maker { font-weight: 400; color: var(--muted); font-size: 14px; line-height: 20px; }
.row-line { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 560px; }
.tag { font-size: 12px; line-height: 16px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.tag-featured { background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; }
.row.is-featured { background: #fffaf0; box-shadow: inset 0 0 0 1px #f6e2b5; }
.row.is-featured .rank { color: var(--accent-ink); }
.visit {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; line-height: 20px; font-weight: 600; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), background-color 300ms var(--ease);
}
.visit:hover { border-color: var(--ink); transform: translateY(-1px); }
.visit:active { transform: scale(0.98); }
.visit i { transition: transform 300ms var(--ease); }
.visit:hover i { transform: translate(2px, -2px); }
.panel-note { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.empty { padding: 64px 16px; text-align: center; color: var(--muted); }
.empty i { font-size: 40px; color: var(--line-2); }
.empty b { display: block; margin-top: 12px; color: var(--ink); font-weight: 600; }

/* Featured picks */
.picks { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; min-height: 264px;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms var(--ease);
}
.pick:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(14, 14, 16, 0.08); border-color: var(--line-2); }
.pick-top { display: flex; align-items: center; justify-content: space-between; }
.pick .tile { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
.pick h3 { font-size: 20px; line-height: 28px; }
.pick p { font-size: 14px; line-height: 20px; color: var(--ink-2); flex: 1; }
.pick-cat { font-size: 12px; line-height: 16px; color: var(--muted); }
.pick .visit { align-self: flex-start; }
.pick.wide { grid-column: span 2; }

/* Method */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.step-n { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.step i { margin-top: 24px; font-size: 32px; color: var(--accent); }
.step h3 { margin-top: 16px; font-size: 20px; line-height: 28px; }
.step p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* Makers / pricing */
.makers-sec { background: var(--ink); color: #fff; border-radius: 32px; margin: 0 16px; }
.makers-sec .kicker { color: var(--accent); }
.makers-sec .section-head p { color: #b9b8bf; }
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.flow-step { background: #1f1f1f; border: 1px solid #313131; border-radius: 16px; padding: 16px; position: relative; }
.flow-step i { font-size: 24px; color: var(--accent); }
.flow-step h3 { margin-top: 12px; font-size: 16px; line-height: 24px; }
.flow-step p { margin-top: 4px; font-size: 14px; line-height: 20px; color: #b9b8bf; }
.flow-step.ok i { color: #5fd39a; }
.flow-step.no i { color: #ff8a7f; }
.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: #181818; border: 1px solid #313131; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: #4a4a4a; }
.plan.pop { background: #272727; border-color: var(--accent); }
.plan-name { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.plan-name span { font-size: 12px; line-height: 16px; background: var(--accent); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.price { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.price small { font-size: 16px; line-height: 24px; font-weight: 400; color: #b9b8bf; letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: #d6d5db; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li i { color: var(--accent); font-size: 16px; margin-top: 2px; }
.plan .btn-light { background: #fff; color: var(--ink); }
.plan .btn-light:hover { background: #ececec; transform: translateY(-1px); }
.plan .btn-outline { background: transparent; border-color: #4a4a4a; color: #fff; }
.plan .btn-outline:hover { border-color: #fff; transform: translateY(-1px); }
.refund { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: #d6d5db; }
.refund i { font-size: 24px; color: #5fd39a; }

/* FAQ */
.faq { margin-top: 48px; max-width: 800px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: border-color 300ms var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 20px; color: var(--muted); transition: transform 500ms var(--ease); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; font-size: 16px; line-height: 24px; color: var(--ink-2); }

/* Final CTA */
.final { text-align: center; }
.final h2 { margin: 0 auto; max-width: 680px; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.final p { margin: 16px auto 0; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.final .actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.news { margin: 32px auto 0; max-width: 440px; display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; font: inherit; }
.news input:focus { outline: 0; border-color: var(--line-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-msg { margin-top: 12px; font-size: 14px; line-height: 20px; min-height: 20px; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }

/* Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 64px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-grid p { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); max-width: 320px; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.foot-links div { display: flex; flex-direction: column; gap: 8px; }
.foot-links b { font-weight: 600; margin-bottom: 4px; }
.foot-links a { color: var(--ink-2); transition: color 300ms var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--muted); }
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--ink); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.4); opacity: 0; transition: opacity 300ms var(--ease); }
.modal.open .modal-bg { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--card); border-radius: 24px; padding: 32px;
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--soft); display: grid; place-items: center; font-size: 20px; transition: background-color 300ms var(--ease); }
.modal-close:hover { background: var(--line); }
.modal h3 { font-size: 24px; line-height: 32px; }
.modal-sub { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.progress { margin-top: 24px; display: flex; gap: 8px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--soft); position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.progress span.done::after { transform: scaleX(1); }
.field { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; line-height: 24px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--line-2); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); }
.field .hint { font-size: 12px; line-height: 16px; color: var(--muted); }
.field .error { font-size: 12px; line-height: 16px; color: var(--err); display: none; }
.field.bad .error { display: block; }
.plan-pick { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.plan-opt:hover { border-color: var(--line-2); }
.plan-opt input { accent-color: var(--ink); }
.plan-opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.plan-opt b { font-weight: 600; }
.plan-opt span { margin-left: auto; font-family: var(--mono); font-size: 14px; line-height: 20px; }
.summary { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 16px; font-size: 14px; line-height: 20px; display: flex; flex-direction: column; gap: 8px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary .tot { font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; }
.notice { margin-top: 16px; display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; line-height: 20px; }
.notice i { font-size: 20px; flex: none; }
.modal-actions { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.skel { height: 16px; border-radius: 8px; background: var(--soft); animation: skel 1400ms var(--ease) infinite; }
@keyframes skel { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.done-ill { width: 64px; height: 64px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 8px auto 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .board { max-width: 560px; }
  .float-a { left: auto; right: 16px; top: -20px; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: 16px; padding: 4px 4px 4px 16px; }
  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 48px; }
  .explorer { grid-template-columns: 1fr; gap: 16px; }
  .cats { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 8px; scrollbar-width: none; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { width: auto; flex: none; border: 1px solid var(--line); }
  .cat .count { display: none; }
  .steps, .plans { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head h2, .final h2 { font-size: 36px; line-height: 40px; }
  .tagline p { font-size: 36px; line-height: 40px; }
  .makers-sec { margin: 0 8px; border-radius: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .picks, .flow { grid-template-columns: 1fr; }
  .pick.wide { grid-column: auto; }
  .panel { padding: 16px; border-radius: 16px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .filter input { width: 100%; }
  .row { grid-template-columns: 32px 40px minmax(0, 1fr); gap: 12px; }
  .row .tile { width: 40px; height: 40px; font-size: 16px; }
  .row .visit { grid-column: 2 / -1; justify-self: start; }
  .float-chip { display: none; }
  .board-row { grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 8px; }
  .modal-card { padding: 24px 16px; }
  .news { flex-direction: column; }
  .cats { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal, .row, .menu a { transform: none !important; transition: opacity 300ms linear !important; }
  .board-row { transition: none !important; }
  html { scroll-behavior: auto; }
}
