/* nihilnovi.ptk.fyi — the product site. The palette and the font come from /design/tokens.css, base
   styles from /design/fire.css (the monorepo's shared design, ../../../design/README.md), linked
   before this file. The components follow colorphrase.ptk.fyi's (projects/colorphrase/site/public/style.css).
   Nothing loads from another host, and there are no scripts. */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 17px/1.6 var(--fire-body); }
img, svg { max-width: 100%; }
a { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--fire-teal); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 16px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 20px; }
.prose { max-width: 40rem; }

/* ── Header ─────────────────────────────────────────── */
.top nav { display: flex; align-items: center; gap: 24px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; font: 750 1.3rem/1 var(--fire-display); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; flex: none; }
.top nav a:not(.brand) { color: var(--fire-ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 2px; border-bottom: 2px solid transparent; }
.top nav a:not(.brand):hover { border-bottom-color: var(--fire-lime); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: 24px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero h1 { font: 800 clamp(2.5rem, 6vw, 4.3rem)/1.02 var(--fire-display); letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance; }
/* Text on lime or teal-soft is always deep. */
.hero h1 mark { color: var(--fire-deep); padding-inline: .08em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 .m1 { background: var(--fire-lime); }
.hero h1 .m2 { background: var(--fire-teal-soft); }
.hero p.lede { font-size: 1.2rem; line-height: 1.5; color: var(--fire-muted); margin: 0 0 28px; max-width: 32rem; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* Buttons: an outline and a flat shadow; they press into it. */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; font: 650 16px var(--fire-body); text-decoration: none; color: var(--fire-deep); background: var(--fire-surface); border: 2px solid var(--fire-edge); box-shadow: 4px 4px 0 var(--fire-shadow); transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fire-shadow); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--fire-shadow); }
.button.primary { background: var(--fire-lime); }
.button.ghost { color: var(--fire-ink); background: transparent; }
.button svg { width: 20px; height: 20px; flex: none; }
/* Until the Web Store listing is public: shown, not pressable. */
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:hover, .button[aria-disabled="true"]:active { transform: none; box-shadow: 4px 4px 0 var(--fire-shadow); }
.soon { font-size: 14px; color: var(--fire-muted); margin: 18px 0 0; }
.picture { margin: 0; border: 2px solid var(--fire-edge); border-radius: 24px; box-shadow: 6px 6px 0 var(--fire-shadow); overflow: hidden; background: var(--fire-teal-soft); }
.picture img { display: block; width: 100%; height: auto; }

/* ── Sections ───────────────────────────────────────── */
section { padding-block: 72px; border-top: 2px solid var(--fire-line); }
.eyebrow { display: inline-block; font: 650 12.5px/1 var(--fire-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fire-deep); background: var(--fire-teal-soft); border: 2px solid var(--fire-edge); border-radius: 999px; padding: 6px 12px; margin: 0 0 18px; }
h2 { font: 750 clamp(1.8rem, 3.6vw, 2.6rem)/1.08 var(--fire-display); letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 700 1.2rem/1.25 var(--fire-display); margin: 0 0 6px; text-wrap: balance; }
.intro { color: var(--fire-muted); font-size: 1.1rem; max-width: 38rem; margin: 0 0 36px; }

/* A card: outlined, with the flat shadow. */
.features li, .steps li { background: var(--fire-surface); border: 2px solid var(--fire-edge); border-radius: 18px; box-shadow: 5px 5px 0 var(--fire-shadow); padding: 22px 24px; }

/* For feeds that never end: four cards. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.features p { margin: 0; color: var(--fire-muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fire-lime); border: 2px solid var(--fire-edge); color: var(--fire-deep); font: 800 1.35rem/1 var(--fire-display); margin-bottom: 14px; }
.steps li:nth-child(2)::before { background: var(--fire-teal-soft); }
.steps li:nth-child(3)::before { background: var(--fire-cream); }
.steps p { margin: 0; color: var(--fire-muted); }
.needs { margin: 28px 0 0; color: var(--fire-muted); font-size: 15px; max-width: 46rem; }

.privacy-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.privacy-points > div { border-left: 4px solid var(--fire-lime); padding-left: 16px; }
.privacy-points > div:nth-child(2) { border-left-color: var(--fire-teal-soft); }
.privacy-points > div:nth-child(3) { border-left-color: var(--fire-green); }
.privacy-points p { margin: 0; color: var(--fire-muted); }

.faq { display: grid; gap: 12px; max-width: 46rem; }
.faq details { background: var(--fire-surface); border: 2px solid var(--fire-edge); border-radius: 14px; padding: 0 18px; }
.faq details[open] { box-shadow: 4px 4px 0 var(--fire-shadow); }
.faq summary { cursor: pointer; list-style: none; padding-block: 14px; font: 650 1.1rem/1.3 var(--fire-display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--fire-lime); border: 2px solid var(--fire-edge); color: var(--fire-deep); font: 700 16px/1 var(--fire-body); }
.faq details[open] summary::after { content: "–"; background: var(--fire-teal-soft); }
.faq details p { margin: 0 0 16px; color: var(--fire-muted); }

/* ── Footer ─────────────────────────────────────────── */
footer { padding-block: 32px 48px; color: var(--fire-muted); font-size: 15px; border-top: 2px solid var(--fire-line); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--fire-muted); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
/* Ko-fi's "Support me" pill is fire.css's .kofi; a plain link, because their widget script would load
   from another host, which the privacy policy rules out. */
.kofi { font-size: 15px; padding: 4px 16px 4px 6px; }
.kofi svg { width: 30px; height: 30px; }
.hero .kofi { margin-top: 18px; }

/* ── A reading page (the privacy policy) ────────────── */
.doc { padding-block: 32px 72px; }
.doc h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.05 var(--fire-display); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.doc .date { color: var(--fire-muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--fire-accent); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid var(--fire-line); }
.doc code { font: .9em var(--fire-mono); background: var(--fire-surface); border: 1.5px solid var(--fire-line); padding: 1px 5px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* ── Narrow screens ─────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features, .steps, .privacy-points { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 56px; }
}
@media (max-width: 520px) {
  .top nav a.hide-narrow { display: none; }
}
