/* NilStik — shared styles for index, thank-you and privacy.
   One self-hosted variable font, no third-party font request. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
}

:root {
  --oat: #EFEAE2;
  --paper: #FBF9F5;
  --indigo: #2B3A55;
  --deep: #1B2436;
  --sand: #DDD2C0;
  --mist: #E6DFD3;
  --muted: #5A5F6C;
  --error: #A3261C;
  --wrap: 68rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--oat);
  color: var(--deep);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--deep); color: var(--paper); padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.75rem, 10.5vw, 4.9rem); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(1.125rem, 2.6vw, 1.3rem); line-height: 1.45; max-width: 34rem; }
.measure { max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; line-height: 1.45; }

/* ── Top bar ─────────────────────────────────────────── */
.top { padding: 1.1rem 0 0.4rem; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 6.6rem; height: auto; }
.top-link { font-weight: 600; font-size: 0.975rem; text-decoration: none; padding: 0.5rem 0; }
.top-link:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 1.75rem 0 0; }
.hero-grid { display: grid; gap: 2rem; }
.hero-copy > * + * { margin-top: 1.25rem; }
.hero-art { margin: 0 auto; width: min(21rem, 78vw); position: relative; }
.hero-art img { width: 100%; border-radius: 999px 999px 0 0; }   /* the dome again */
.hero-art figcaption { position: absolute; left: 0; right: 0; bottom: 0.6rem; text-align: center; color: #EFEAE2; opacity: 0.85; font-size: 0.72rem; padding: 0 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ── Signup ──────────────────────────────────────────── */
.signup { max-width: 32rem; }
.signup-row { display: grid; gap: 0.6rem; }
.signup label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.signup input[type="email"] {
  width: 100%; min-height: 3.4rem; padding: 0 1rem;
  font: inherit; color: var(--deep);
  background: var(--paper); border: 2px solid var(--indigo); border-radius: 0.8rem;
}
.signup input[type="email"]::placeholder { color: #7B7F8A; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 0 1.5rem;
  font: inherit; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em;
  color: var(--paper); background: var(--indigo);
  border: 2px solid var(--indigo); border-radius: 0.8rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.signup-note { margin-top: 0.6rem; }
.signup-status { margin-top: 0.6rem; font-weight: 600; min-height: 1.4em; }
.signup-status.is-error { color: var(--error); }

/* ── Sections ────────────────────────────────────────── */
.band { padding: 3.75rem 0; }
.band > .wrap > h2 + * { margin-top: 1.5rem; }
.band-paper { background: var(--paper); }
.band-deep { background: var(--deep); color: var(--oat); }
.band-deep a { color: var(--sand); }
.band-deep .muted { color: #B9BDC9; }

/* 1, 2, 3: the routine people already know, plus one. */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-width: 46rem; }
.steps li { position: relative; background: var(--oat); border-radius: 1rem; padding: 0 0 0.9rem; text-align: center; overflow: hidden; }
.steps .num {
  position: absolute; left: 0.55rem; top: 0.55rem; z-index: 1;
  width: 1.9rem; height: 2.6rem; display: grid; place-items: end center; padding-bottom: 0.3rem;
  font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--paper); background: var(--indigo);
  border-radius: 0.95rem 0.95rem 0.3rem 0.3rem;   /* the dome */
}
.steps img { width: 100%; height: auto; aspect-ratio: 640 / 1037; object-fit: cover; background: var(--sand); }
.steps h3 { margin-top: 0.6rem; font-size: 1.05rem; }
.steps p { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.2; }
.steps .tag { display: inline-block; padding: 0.22rem 0.55rem; border-radius: 999px; font-weight: 600; background: var(--sand); color: var(--deep); }
/* Steps 1 and 2 are the visitor's own deodorant: quieter. Step 3 is the product. */
.steps .is-yours .num { background: var(--sand); color: var(--deep); }
.steps .is-yours img { filter: saturate(0.55) brightness(1.03); }
.steps .is-nilstik { outline: 3px solid var(--indigo); outline-offset: -3px; }
.steps .is-nilstik .tag { background: var(--indigo); color: var(--paper); }
.steps-note { margin-top: 1.5rem; }

/* Two-column prose blocks */
.split { display: grid; gap: 2rem; }
.split > div > * + * { margin-top: 1rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.6rem; height: 0.95rem; background: var(--indigo);
  border-radius: 0.3rem 0.3rem 0.12rem 0.12rem;
}
.band-deep .facts li::before { background: var(--sand); }

/* The sheet: honest expectations, printed on a square of paper. */
.sheet {
  position: relative; background: var(--paper); color: var(--deep);
  padding: 2.4rem 1.4rem; margin-top: 2rem; max-width: 44rem;
  box-shadow: 0 1px 0 rgba(27, 36, 54, 0.08), 0 18px 40px -24px rgba(27, 36, 54, 0.45);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background-image: radial-gradient(circle, var(--deep) 1.6px, transparent 2px);
  background-size: 13px 6px; background-position: center; opacity: 0.28;
}
.sheet::before { top: 0.75rem; }
.sheet::after { bottom: 0.75rem; }
.sheet dl { margin: 0; display: grid; gap: 1.35rem; }
.sheet dt { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.sheet dd { margin: 0.25rem 0 0; color: var(--muted); }

/* FAQ */
.faq { margin-top: 1.75rem; max-width: 44rem; border-top: 2px solid var(--deep); }
.faq details { border-bottom: 1px solid #CFC5B4; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.25rem 1.05rem 0; position: relative;
  font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.85rem;
  font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--indigo);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--muted); max-width: 38rem; }
.faq details > div > * + * { margin-top: 0.7rem; }

/* Closing call */
.closing h2 { max-width: 18ch; }
.closing .signup { margin-top: 1.75rem; }
.closing .signup input[type="email"] { border-color: var(--sand); }
.closing .btn { background: var(--sand); border-color: var(--sand); color: var(--deep); }
.closing .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--deep); }
.closing .signup-status.is-error { color: #FFB4A8; }

/* Footer */
.foot { background: var(--deep); color: #B9BDC9; padding: 0 0 6.5rem; }
.foot .wrap { border-top: 1px solid rgba(221, 210, 192, 0.25); padding-top: 1.75rem; display: grid; gap: 1rem; }
.foot img { width: 5.5rem; }
.foot a { color: var(--sand); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot-light { background: var(--oat); color: var(--muted); padding-bottom: 3rem; }
.foot-light .wrap { border-top-color: #CFC5B4; }
.foot-light a { color: var(--indigo); }

/* Sticky bar, phones only */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(239, 234, 226, 0.96); border-top: 1px solid #CFC5B4;
  transform: translateY(110%); transition: transform 180ms ease;
}
.sticky.is-on { transform: translateY(0); }
.sticky .btn { width: 100%; min-height: 3rem; }

/* Simple document pages (thank-you, privacy) */
.doc { padding: 2.25rem 0 4rem; }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; max-width: none; }
.doc h3 { margin-top: 1.5rem; }
.doc p, .doc ul, .doc ol, .doc table { margin-top: 1rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.4rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid #CFC5B4; }
.card { background: var(--paper); border-radius: 1rem; padding: 1.4rem; margin-top: 1.5rem; }
.card h2 { margin-top: 0; }
.ref-row { display: grid; gap: 0.6rem; margin-top: 1rem; }
.ref-row input {
  width: 100%; min-height: 3rem; padding: 0 0.9rem; font: inherit; font-size: 0.95rem; color: var(--deep);
  background: var(--oat); border: 2px solid var(--sand); border-radius: 0.7rem;
}
.share { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-weight: 600; }

@media (min-width: 34rem) {
  .signup-row { grid-template-columns: 1fr auto; }
  .ref-row { grid-template-columns: 1fr auto; }
  .sheet { padding: 2.75rem 2.25rem; }
}

@media (min-width: 54rem) {
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
  .hero { padding-top: 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: 3rem; }
  .hero-copy { padding-bottom: 4.5rem; }
  .hero-art { width: 100%; max-width: 25rem; }
  .hero-art figcaption { font-size: 0.78rem; }
  .band { padding: 5.5rem 0; }
  .steps { gap: 1.25rem; }
  .steps li { padding: 0 0 1.2rem; }
  .steps .num { left: 0.9rem; top: 0.9rem; width: 2.4rem; height: 3.3rem; font-size: 1.35rem; border-radius: 1.2rem 1.2rem 0.4rem 0.4rem; }
  .steps h3 { font-size: 1.25rem; }
  .steps p { font-size: 0.9rem; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .sticky { display: none; }
  .foot { padding-bottom: 3rem; }
}

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