/* TezGrid interest page. Paper, ink, one accent. */

:root {
  --paper: #f7f6f2;
  --sheet: #fffcf8;
  --ink: #161513;
  --ink-soft: #3a3834;
  --muted: #6d6a63;
  --faint: #8f8b83;
  --line: #e3e0d8;
  --line-strong: #cbc7bc;
  --accent: #e24b12;
  --accent-soft: #fff1ea;
  --ok: #1f6b3a;
  --ok-soft: #e8f5ec;
  --bad: #9f2d2d;
  --bad-soft: #fdecec;
  --slip: #141311;
  --slip-ink: #f3f0e8;
  --slip-dim: #a39e94;
  --font: "Geist", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --header: 64px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #f3c7b4; color: var(--ink); }

.skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  top: 8px; left: 16px; z-index: 80;
  width: auto; height: auto; margin: 0; padding: 8px 12px;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--ink); color: var(--sheet); border-radius: 6px;
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .menu-panel a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 6px 10px;
  border-radius: 6px;
}
.nav a:hover, .menu-panel a:hover { color: var(--ink); background: rgba(22, 21, 19, 0.04); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .burger { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: 8px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: var(--accent); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(22, 21, 19, 0.05); }
.btn-lg { min-height: 48px; width: 100%; font-size: 15.5px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.menu-panel {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
  padding: 8px 20px 20px;
}
.menu-panel.is-open { display: block; }
.menu-panel a, .menu-panel .btn { display: flex; margin-top: 4px; }
.menu-panel .btn { margin-top: 12px; }

.hero { padding: 56px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: start;
}
.kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 14ch;
}
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lede {
  margin-top: 22px;
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.facts span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding-top: 3px;
}
.facts strong { color: var(--ink); font-weight: 500; }
.hero-links { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero-links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.hero-links a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.join {
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 40px rgba(22, 21, 19, 0.04);
}
.join h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.join .join-lead { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.join-form { margin-top: 14px; display: grid; gap: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; }
.field span, .sides legend {
  font-size: 13px;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.field textarea { min-height: 64px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.place-field { position: relative; z-index: 2; }
.place-field:focus-within { z-index: 6; }
.place-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 7;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(22, 21, 19, 0.1);
  max-height: 220px;
  overflow: auto;
}
.place-list[hidden] { display: none; }
.place-list button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.place-list button small { color: var(--faint); font-size: 12px; }
.place-list button[aria-selected="true"],
.place-list button:hover { background: var(--paper); }
.place-empty { padding: 8px 10px; color: var(--faint); font-size: 13px; }
.sides { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sides legend { margin-bottom: 8px; grid-column: 1 / -1; }
.sides label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 8px;
  min-height: 52px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.25;
}
.sides input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sides label:has(input:checked) {
  border-color: var(--ink);
  background: var(--sheet);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.sides label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sides input { accent-color: var(--accent); }
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.form-note { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.form-error {
  margin: 0;
  background: var(--bad-soft);
  color: var(--bad);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.done {
  display: none;
  background: var(--ok-soft);
  border-radius: 12px;
  padding: 16px;
}
.done strong { display: block; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.done p { color: var(--ink-soft); font-size: 15px; }
.join-form.is-done .fields, .join-form.is-done .btn, .join-form.is-done .form-note, .join-form.is-done .form-error { display: none; }
.join-form.is-done .done { display: block; }

.band { padding: 28px 0 8px; }
.slip-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.slip {
  background: var(--slip);
  color: var(--slip-ink);
  border-radius: 16px;
  padding: 22px 22px 8px;
}
.slip .kicker { color: var(--slip-dim); }
.slip h2 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 4px 0 16px;
}
.slip dl { display: grid; }
.slip dl div {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(243, 240, 232, 0.12);
  font-size: 14.5px;
}
.slip dt { color: var(--slip-dim); }
.slip dd { margin: 0; font-family: var(--mono); font-size: 13px; }
.steps { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); overflow: hidden; }
.steps li { padding: 20px 22px 18px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n {
  font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em;
}
.steps h3 { margin-top: 6px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.section { padding: 72px 0; }
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 18ch;
}
.section-head p { margin-top: 12px; max-width: 40rem; color: var(--ink-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filters button {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}

.scene {
  display: grid;
  grid-template-columns: 148px 1.1fr 0.9fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.scene[hidden] { display: none; }
.scene .idx { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.scene .who { display: block; margin-top: 8px; font-size: 13px; color: var(--accent); }
.scene h3 { font-size: 1.28rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.scene .story { margin-top: 10px; color: var(--ink-soft); }
.scene .do { color: var(--muted); font-size: 15.5px; }
.scene .do strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; letter-spacing: -0.02em; }

.compare { border-top: 1px solid var(--line); }
.compare-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.compare-row strong { font-weight: 500; }
.compare-head { color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.compare-label { color: var(--muted); }
.compare-ours { color: var(--ink); }
.rival-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rival { border-top: 2px solid var(--ink); padding-top: 16px; }
.rival h3 {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.rival p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.rival-us { color: var(--ink); }
.rival strong { font-weight: 500; }
.price-foot { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 46rem; }
.price-foot a { border-bottom: 1px solid var(--line-strong); }
.price-foot a:hover { border-bottom-color: var(--accent); }

.limits { background: var(--sheet); border-block: 1px solid var(--line); }
.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
}
.limit-grid h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.limit-grid p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.close {
  padding: 72px 0 80px;
}
.close-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 48px;
  align-items: start;
}
.close h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
}
.close .lede { margin-top: 16px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer-row a { color: var(--ink-soft); }
.footer-row a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; margin-left: 4px; }
  .hero-grid, .slip-grid, .section-head, .scene, .compare-row, .rival-grid, .limit-grid, .close-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 32px; }
  h1 { max-width: none; }
  .slip dl div { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 52px 0; }
  .scene .do { padding-top: 4px; }
}

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sheet); color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 21, 19, 0.06), 0 6px 18px rgba(22, 21, 19, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s, background 0.15s, color 0.15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: var(--sheet); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.to-top-ring .to-top-progress { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; }
.to-top:hover .to-top-ring circle:not(.to-top-progress) { stroke: var(--ink); }
.to-top-arrow { position: relative; width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  body { font-size: 16px; }
  .join, .slip { border-radius: 12px; }
  .pair, .sides { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .to-top, .to-top-arrow, .to-top-progress { transition: none; }
}
