/* stencil.ai — off-white paper, #242424 ink, pixel display type, mono everything.
   Accent orange reserved for the "(buy now!)" pops, tinygrad-style. */
:root {
  --bg: #f5f3ee;          /* off-white paper */
  --ink: #242424;         /* near-black ink */
  --muted: #6b6b66;
  --line: #24242426;      /* ink @ 15% for hairlines */
  --accent: #f5a623;      /* buy-now orange */
  --card: #fbfaf7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
::selection { background: var(--accent); color: var(--ink); }

/* Pixel display face for the wordmark + headings */
h1, h2, .logo, .px { font-family: "Silkscreen", ui-monospace, monospace; font-weight: 700; letter-spacing: 0; }

.wrap { max-width: 720px; margin: 0 auto; padding: 8px 20px 72px; }
.muted { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
.accent { color: var(--accent); }
a { color: var(--ink); }
a:hover { color: var(--accent); }

/* ── Masthead (tinygrad-style: big wordmark, pipe nav under it) ─────── */
.landing-hero { border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 72px 20px 56px; text-align: center; }
.logo-mark {
  font-family: "Silkscreen", monospace; font-weight: 700;
  font-size: clamp(2.1rem, 8.5vw, 4.2rem); line-height: 1; color: var(--ink);
  margin: 0 0 10px; user-select: none;
}
.logo-mark .accent { color: var(--accent); }
.pipe-nav { color: var(--ink); font-size: .95rem; margin: 0 0 56px; }
.pipe-nav a { text-decoration: none; }
.pipe-nav .sep { color: var(--muted); padding: 0 .45em; }

.landing-hero h1 {
  font-size: clamp(1.5rem, 4.6vw, 2.4rem); line-height: 1.25; margin: 0 0 18px;
  text-transform: lowercase;
}
.lede { color: var(--ink); max-width: 560px; margin: 0 auto 14px; }
.lede strong { background: var(--ink); color: var(--bg); padding: 0 .35em; }
.no-list { color: var(--muted); margin: 0 0 30px; font-size: .92rem; }
.no-list b { color: var(--ink); font-weight: 700; }

/* ── CTA: ink block, orange on hover ────────────────────────────────── */
.cta {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  border-radius: 2px; padding: 15px 26px; font-size: 1rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background .12s, color .12s;
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cta[disabled] { opacity: .55; cursor: default; }
.hero-cta { display: inline-block; width: auto; }
.micro { color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section-title { text-align: center; font-size: 1.15rem; margin: 0 0 26px; text-transform: lowercase; }
.steps { padding: 56px 0 8px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 20px; }
.step-num {
  font-family: "Silkscreen", monospace; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); margin-bottom: 12px; font-size: .9rem;
}
.step h3 { margin: 0 0 6px; font-size: .95rem; text-transform: lowercase; }
.step p { margin: 0; color: var(--muted); font-size: .86rem; }

.props { padding: 44px 0 8px; max-width: 540px; margin: 0 auto; }
.prop { color: var(--ink); padding: 3px 0; font-size: .92rem; }
.prop::before { content: ">"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.check { display: none; }

/* ── Form card ──────────────────────────────────────────────────────── */
.start { padding: 56px 0 0; scroll-margin-top: 12px; }
.card {
  background: var(--card); border: 1px solid var(--ink); border-radius: 2px;
  padding: 26px; display: flex; flex-direction: column; gap: 30px;
}
section { display: flex; flex-direction: column; gap: 10px; }
h3 { font-size: .95rem; margin: 0 0 4px; text-transform: lowercase; }

.drop {
  display: block; border: 1.5px dashed var(--ink); border-radius: 2px;
  padding: 22px; text-align: center; cursor: pointer; color: var(--muted);
  transition: border-color .12s, color .12s; background: var(--bg);
}
.drop:hover { border-color: var(--accent); color: var(--ink); }
.drop input { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 64px; height: 80px; object-fit: cover; border: 1px solid var(--ink); border-radius: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field span { font-weight: 700; }
.field em { font-weight: 400; font-style: normal; }
.field input[type=text], .field textarea, select {
  padding: 11px 12px; border-radius: 2px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink); font-size: .95rem; font-family: inherit; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #a3a29b; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.pack {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--ink); border-radius: 2px; padding: 14px 16px;
}
.pack-name { font-weight: 700; }
.pack-price { font-family: "Silkscreen", monospace; font-size: 1.5rem; }
.tos { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.tos input { accent-color: var(--ink); }

.banner { border-radius: 2px; padding: 12px 14px; font-size: .9rem; border: 1px solid var(--ink); background: var(--card); }
.banner.warn { border-color: var(--accent); color: var(--ink); background: #f5a62314; }
.hidden { display: none; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { padding: 56px 0 0; max-width: 560px; margin: 0 auto; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dt::before { content: "Q: "; color: var(--accent); }
.faq dd { margin: 2px 0 0; color: var(--muted); }
.faq dd::before { content: "A: "; color: var(--ink); }

.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 64px 0 0; }

/* ── Processing page bits ───────────────────────────────────────────── */
.hero { text-align: center; margin: 48px 0 24px; }
.hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 0 0 8px; text-transform: lowercase; }
.sub { color: var(--muted); margin: 0; }
.progress { height: 10px; background: var(--bg); border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; margin: 16px 0 8px; }
.bar { height: 100%; background: var(--ink); width: 0; transition: width .4s; }
.spinner {
  width: 30px; height: 30px; margin: 8px auto; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.grid .tile { border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; background: var(--bg); }
.grid .tile img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.grid .tile.err { padding: 12px; font-size: .8rem; color: var(--accent); }

@media (max-width: 620px) {
  .step-grid { grid-template-columns: 1fr; }
}
