/* Hallmark · macrostructure: Index-First (with book hero) · tone: utilitarian/technical · anchor hue: green 138°
 * genre: atmospheric · theme: studied-DNA (source: https://norzer.me)
 * paper oklch(14.1% 0.003 69.4) · accent oklch(52% 0.162 138.5) · display Inter + body DM Sans + mono Courier Prime
 * nav: site-bar + sticky chip rail · footer: slim stand-in · enrichment: real book cutout + PDF page thumbs
 * Hallmark · pre-emit critique: P4 H5 E5 S5 R5 V4  (rev 2: soft hairlines, accent restraint)
 * contrast: pass (40–41) · nav: site-bar + chip rail · footer: slim · slop: pass (42–45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30)
 * gate 1 waived: Inter display is norzer.me's own heading face (studied DNA)
 */

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
}
p { margin: 0; }
cite { font-style: normal; color: var(--color-ink); }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

a { color: var(--color-accent-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-ink); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width-page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-md); top: -100px; z-index: 50;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent); color: var(--color-on-accent);
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

/* ---------- Buttons (norzer pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"], .copy-btn:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none;
}

.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn--primary:hover .icon:last-child { transform: translateX(2px); }

.btn--ghost { border-color: var(--color-rule-soft); color: var(--color-ink); background: var(--color-wash); }
.btn--ghost:hover { border-color: var(--color-rule); color: var(--color-ink); background: var(--color-wash); }

.btn--amazon { background: var(--color-amazon); color: var(--color-on-amazon); }
.btn--amazon:hover { background: var(--color-ink); color: var(--color-on-amazon); }
.btn--amazon .icon { width: 1.35em; height: 1.35em; }

.btn--amazon-outline { border-color: var(--color-rule); color: var(--color-ink); background: var(--color-wash); }
.btn--amazon-outline .icon { color: var(--color-amazon); width: 1.35em; height: 1.35em; }
.btn--amazon-outline:hover { background: var(--color-amazon-wash); border-color: var(--color-rule); color: var(--color-ink); }

.btn--sm { padding: 10px 18px; font-size: var(--text-xs); }
.btn--block { width: 100%; }

.text-btn {
  background: none; border: 0; padding: var(--space-2xs) 0;
  color: var(--color-accent-3); font: 600 var(--text-sm) / 1 var(--font-body);
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
  white-space: nowrap;
}
.text-btn:hover { color: var(--color-ink); }

/* ---------- Hero (norzer Matrix bg + gradient) ---------- */
.hero {
  position: relative;
  background-color: var(--color-paper);
  /* Veil darkens the rain behind the copy column; the book side keeps more of it. */
  background-image:
    linear-gradient(90deg, var(--color-paper-veil) 0%, var(--color-paper-veil) 38%, var(--color-paper-scrim) 62%, var(--color-paper-thin) 100%),
    linear-gradient(0deg, var(--color-paper) 7.7%, var(--color-paper-fade) 55.7%),
    url("../assets/norzer-hero-bg.webp");
  background-size: cover;
  background-position: center top;
  padding-bottom: var(--space-3xl);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}
.site-logo img { width: 148px; height: auto; }
.site-back {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  color: var(--color-ink); font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-soft);
  background: var(--color-paper-glass);
  transition: border-color var(--dur-base) var(--ease-out);
}
.site-back:hover { border-color: var(--color-rule); color: var(--color-ink); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero__lede {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-ink);
  max-width: 54ch;
}
.hero__body { margin-top: var(--space-md); max-width: 58ch; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.amazon-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-soft);
  background: var(--color-paper-glass);
  color: var(--color-ink);
  font-size: var(--text-sm);
  text-decoration: none;
  max-width: 100%;
  transition: border-color var(--dur-base) var(--ease-out);
}
.amazon-chip:hover { border-color: var(--color-amazon); color: var(--color-ink); }
.amazon-chip__badge {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--color-amazon);
  color: var(--color-on-amazon);
}
.amazon-chip__badge .icon { width: 20px; height: 20px; margin-top: 2px; }
.amazon-chip__text { min-width: 0; }
.amazon-chip__arrow { color: var(--color-amazon); }

.hero__book {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.hero__book img { position: relative; z-index: 1; width: 100%; }

/* ---------- Jump rail (sticky) ---------- */
.jump {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--color-paper-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--color-rule-soft);
}
.jump__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
}
.jump__label {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}
.jump__list {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  padding: 3px;
  margin: -3px;
}
.jump__list::-webkit-scrollbar { display: none; }

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-soft);
  color: var(--color-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.chip:hover { border-color: var(--color-rule); color: var(--color-ink); background: var(--color-wash); }
.chip[aria-current="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-3xl) 0;
  /* land the heading ~24px under the sticky rail */
  scroll-margin-top: calc(var(--rail-h) + var(--space-lg) - var(--space-3xl));
}
.section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section__intro { margin-top: var(--space-sm); max-width: 68ch; }
.section__head-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md);
}

/* ---------- Amazon review ---------- */
.review__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background:
    linear-gradient(90deg, var(--color-amazon-wash), transparent 55%),
    var(--color-surface);
}
.review__text { color: var(--color-body); max-width: 52ch; }
.review__title {
  margin: var(--space-xs) 0 var(--space-2xs);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.review__stars-row { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.review__amazon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-amazon); color: var(--color-on-amazon);
}
.review__amazon .icon { width: 32px; height: 32px; margin-top: 3px; }
.review__stars { display: flex; gap: 2px; color: var(--color-amazon); }
.review__stars .icon { width: 18px; height: 18px; }

/* ---------- Start here ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin-top: var(--space-xl);
  display: grid;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-rule-soft);
}
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-surface-2);
  box-shadow: inset 0 0 0 1px var(--color-rule-soft);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}
.step--feature::before { background: var(--color-accent-wash); box-shadow: inset 0 0 0 1px var(--color-accent-line); color: var(--color-accent-3); }
.step__body { padding-top: 8px; color: var(--color-ink); grid-column: 2 / -1; }
.step--feature .step__body { grid-column: 2; }
.step--feature {
  align-items: center;
  padding: var(--space-lg);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--color-accent-line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: linear-gradient(90deg, var(--color-accent-wash), transparent 70%), var(--color-surface);
}
.step--feature .step__body { padding-top: 0; }
.link-strong { color: var(--color-accent-3); font-weight: 600; }

.prompt-list {
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-xs);
}
.prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
}
.prompt__text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink);
}
.prompt__when {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-body);
}
.prompt-list--pair .prompt { align-content: start; row-gap: var(--space-xs); }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-soft);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 500 var(--text-xs) / 1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.copy-btn:hover { border-color: var(--color-rule); background: var(--color-surface-2); }
.copy-btn:active { transform: translateY(1px); }
.copy-btn .icon--done { display: none; }
.copy-btn[data-state="success"] { border-color: var(--color-accent-line); color: var(--color-accent-3); }
.copy-btn[data-state="success"] .icon--copy { display: none; }
.copy-btn[data-state="success"] .icon--done { display: block; }
.copy-btn[data-state="error"] { border-color: var(--color-amazon); color: var(--color-amazon); }

.two-q {
  margin-top: var(--space-2xl);
}
.two-q__title { font-size: var(--text-xl); font-weight: 600; }
.two-q__intro { margin-top: var(--space-xs); }
.prompt-list--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.prompt-list--pair .prompt { align-items: center; padding-block: var(--space-md); }

/* ---------- Prompt index (Index-First) ---------- */
.chapter { margin-top: var(--space-2xl); }
.chapter__title {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule-soft);
}
.index { list-style: none; }
.index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  gap: var(--space-xl);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-rule-soft);
  scroll-margin-top: 90px;
}
.index__row:target { background: linear-gradient(90deg, var(--color-accent-wash), transparent); }
.index__name {
  display: inline;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}
.index__name .icon { display: inline-block; margin-left: 6px; vertical-align: -0.05em; color: var(--color-muted); width: 0.9em; height: 0.9em; transition: transform var(--dur-base) var(--ease-out); }
.index__name:hover { color: var(--color-accent-3); }
.index__name:hover .icon { transform: translate(2px, -2px); color: var(--color-accent-3); }
.index__main p { margin-top: var(--space-xs); max-width: 66ch; }
.index__ref {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-muted);
  padding-top: 6px;
}
.index__ref--inline { display: block; margin-top: var(--space-xs); padding-top: 0; }

/* ---------- Downloads ---------- */
.downloads {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.dl {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.dl:hover { border-color: var(--color-rule); }
.dl__thumb {
  display: block;
  height: 210px;
  overflow: hidden;
  padding: var(--space-lg) var(--space-xl) 0;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule-soft);
}
.dl__thumb img {
  width: 100%;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 30px var(--color-shadow);
  transition: transform var(--dur-base) var(--ease-out);
}
.dl:hover .dl__thumb img { transform: translateY(-6px); }
.dl__body {
  display: flex; flex-direction: column; gap: var(--space-sm);
  flex: 1;
  padding: var(--space-lg);
}
.dl__body > p:not(.dl__meta) { flex: 1; }
.dl__meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
}
.dl__title { font-size: var(--text-xl); font-weight: 600; }
.dl__title a { color: var(--color-ink); text-decoration: none; }
.dl__title a:hover { color: var(--color-accent-3); }
.dl .btn { margin-top: var(--space-xs); }

/* ---------- Cards (ads, help) ---------- */
.cards { margin-top: var(--space-xl); display: grid; gap: var(--space-lg); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
  transition: border-color var(--dur-base) var(--ease-out);
}
.card:hover { border-color: var(--color-rule); }
/* Ad cards: logo sits beside the title, not stacked above it. */
.cards--2 .card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-md);
  row-gap: var(--space-sm);
}
.cards--2 .card > :not(.card__icon) { grid-column: 1 / -1; }
.cards--2 .card > .card__title { grid-column: 2; align-self: center; }
.cards--2 .card > .index__ref { margin-top: var(--space-xs); align-self: end; }
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1px var(--color-rule-soft);
  color: var(--color-ink);
}
.card__icon .icon { width: 22px; height: 22px; }
.card__icon--brand .icon { width: 24px; height: 24px; }
.card__title { font-size: var(--text-lg); font-weight: 600; }
.card__link { color: var(--color-ink); text-decoration: none; }
.card__link .icon { display: inline; width: 0.85em; height: 0.85em; margin-left: 6px; vertical-align: -1px; color: var(--color-muted); }
.nowrap { white-space: nowrap; }
.card__link:hover { color: var(--color-accent-3); }
.card .index__ref { margin-top: auto; }
.help {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-md);
}
.help__feature {
  grid-row: span 3;
  justify-content: center;
  border-color: var(--color-accent-line);
  background: linear-gradient(160deg, var(--color-accent-wash), transparent 65%), var(--color-surface);
}
.help__feature .card__title { font-size: var(--text-xl); }
.help__feature p { max-width: 46ch; }
.help__feature .btn { align-self: flex-start; margin-top: var(--space-sm); }
.help__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
}
.help__row .card__title { font-size: var(--text-base); }
.help__row p { margin-top: 2px; font-size: var(--text-sm); }

/* ---------- Platform guides ---------- */
.platforms {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}
.platform {
  display: flex; align-items: center; gap: var(--space-md);
  height: 100%;
  padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.platform:hover { border-color: var(--color-rule); color: var(--color-ink); background: var(--color-surface-2); }
.platform__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1px var(--color-rule-soft);
  color: var(--color-ink);
}
.platform__icon .icon { width: 22px; height: 22px; }
.platform__icon--wide .icon { width: 34px; height: 34px; }
.platform__name { flex: 1; min-width: 0; line-height: 1.35; }
.platform__arrow { color: var(--color-muted); transition: color var(--dur-base) var(--ease-out); }
.platform:hover .platform__arrow { color: var(--color-accent-3); }
.platform--folder { border-style: dashed; }
.brand-google    { color: var(--brand-google); }
.brand-yelp      { color: var(--brand-yelp); }
.brand-angi      { color: var(--brand-angi); }
.brand-houzz     { color: var(--brand-houzz); }
.brand-nextdoor  { color: var(--brand-nextdoor); }
.brand-thumbtack { color: var(--brand-thumbtack); }
.brand-apple     { color: var(--brand-apple); }
.brand-discord   { color: var(--brand-discord); }
.brand-youtube   { color: var(--brand-youtube); }

/* ---------- Google walkthroughs ---------- */
.walk {
  margin-top: var(--space-xl);
  columns: 2;
  column-gap: var(--space-lg);
}
.walk__group {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
}
.walk__title {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-base);
  font-weight: 600;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-rule-soft);
}
.walk__title .icon { color: var(--color-muted); width: 18px; height: 18px; }
.walk__title .icon.brand-google { color: var(--brand-google); width: 20px; height: 20px; }
.walk__title .icon--brand { width: 20px; height: 20px; }
.links li { padding-block: 7px; line-height: 1.45; }
.links li + li { border-top: 1px solid var(--color-rule-soft); }
.links a { color: var(--color-ink); text-decoration-color: var(--color-rule); text-underline-offset: 4px; }
.links a:hover { color: var(--color-accent-3); text-decoration-color: currentColor; }
.links__note { color: var(--color-body); font-size: var(--text-sm); }
.links__brand { display: flex; align-items: flex-start; gap: var(--space-sm); }
.links__brand > .icon { width: 18px; height: 18px; margin-top: 3px; }
.links__brand > .icon--muted { color: var(--color-muted); }

/* ---------- Sources accordion ---------- */
.accordion {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
  overflow: hidden;
}
.acc + .acc { border-top: 1px solid var(--color-rule-soft); }
.acc__sum {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  color: var(--color-ink);
  font-weight: 500;
  transition: background-color var(--dur-base) var(--ease-out);
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover { background: var(--color-surface-2); }
.acc__sum:focus-visible { outline-offset: -2px; border-radius: 0; }
.acc__name { flex: 1; min-width: 0; }
.acc__count { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }
.acc__chev { color: var(--color-muted); transition: transform var(--dur-base) var(--ease-out); }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc[open] .acc__sum { background: var(--color-surface-2); }
.acc__list {
  padding: var(--space-xs) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 1.4em);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.acc__list li { padding-block: 6px; }
.acc__list li::marker { color: var(--color-muted); }
.acc__list a { color: var(--color-ink); text-decoration-color: var(--color-rule); }
.acc__list a:hover { color: var(--color-accent-3); text-decoration-color: currentColor; }

/* ---------- Newsletter (matches the norzer.me footer form) ---------- */
.newsletter {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  box-shadow: inset 0 1px 0 var(--color-highlight);
  background: var(--color-surface);
}
.newsletter__intro .section__intro { max-width: 60ch; }
.newsletter__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: start;
  max-width: 760px;
}
.newsletter__form[hidden] { display: none; }
.newsletter__input {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-field);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 300 var(--text-lg) / 1.2 var(--font-body);
  transition: border-color var(--dur-base) var(--ease-out);
}
.newsletter__input::placeholder { color: var(--color-muted); opacity: 1; }
.newsletter__input:hover { border-color: var(--color-rule); }
.newsletter__input:focus-visible { outline-offset: 2px; border-radius: var(--radius-field); }
.newsletter__input[aria-invalid="true"] { border-color: var(--color-error); }
.newsletter__input:disabled { opacity: 0.55; cursor: not-allowed; }
.newsletter__submit {
  height: 50px;
  padding-inline: 28px;
  font-size: var(--text-base);
  font-weight: 500;
}
.newsletter__submit[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.newsletter__turnstile { grid-column: 1 / -1; min-height: 65px; } /* reserves the widget's height so the form doesn't jump */
.newsletter__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__message {
  grid-column: 1 / -1;
  min-height: 1lh;
  margin-top: calc(var(--space-2xs) * -1);
  font-size: var(--text-sm);
  color: var(--color-error);
}
.newsletter__message:empty { min-height: 0; margin: 0; }
.newsletter__note { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--color-muted); }
.newsletter__note a { color: var(--color-body); }
.newsletter__note a:hover { color: var(--color-ink); }
.newsletter__done {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 60ch;
}
.newsletter__done:focus { outline: none; }
.newsletter__done[hidden] { display: none; }
.newsletter__done-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent-wash);
  box-shadow: inset 0 0 0 1px var(--color-accent-line);
  color: var(--color-accent-3);
}
.newsletter__done-icon .icon { width: 22px; height: 22px; }
.newsletter__done-title { color: var(--color-ink); font: 700 var(--text-xl) / 1.25 var(--font-display); }
.newsletter__done-text { margin-top: var(--space-2xs); }

/* ---------- Amazon buy band ---------- */
.buy {
  margin-top: var(--space-4xl);
  position: relative;
  border-top: 1px solid var(--color-rule-soft);
  background-image:
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-fade) 50%, var(--color-paper) 100%),
    url("../assets/norzer-hero-bg.webp");
  background-size: cover;
  background-position: center;
}
.buy__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2xl);
  padding-block: var(--space-3xl);
}
.buy__cover { margin: 0; width: 170px; }
.buy__cover img {
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 24px 60px var(--color-shadow-strong), 0 0 0 1px var(--color-rule-soft);
}
.buy__title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.buy__sub { margin-top: var(--space-sm); }
.buy .btn { margin-top: var(--space-lg); }

/* ---------- "Coming soon" pop-up (native <dialog>) ---------- */
html:has(.soon[open]) { overflow: hidden; }
.soon {
  width: min(480px, calc(100% - 2 * var(--space-md)));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--space-md));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-body);
  overflow: visible;
}
/* Older engines don't pass custom properties to ::backdrop, hence the fallback. */
.soon::backdrop {
  background: var(--color-backdrop, rgb(10 9 8 / 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.soon__panel {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-lg);
  max-height: calc(100dvh - 2 * var(--space-md));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-soft);
  background:
    linear-gradient(160deg, var(--color-amazon-wash), transparent 55%),
    var(--color-surface);
  box-shadow: inset 0 1px 0 var(--color-highlight), 0 24px 60px var(--color-shadow-strong);
}
.soon[open] .soon__panel { animation: soon-in var(--dur-base) var(--ease-out); }
.soon[open]::backdrop { animation: soon-fade var(--dur-base) var(--ease-out); }
@keyframes soon-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes soon-fade { from { opacity: 0; } }
.soon__cover {
  width: 96px;
  border-radius: 4px;
  box-shadow: 0 12px 30px var(--color-shadow), 0 0 0 1px var(--color-rule-soft);
}
.soon__text { display: grid; gap: var(--space-sm); min-width: 0; padding-right: var(--space-xl); }
.soon__text [data-variant] { display: grid; gap: var(--space-xs); }
.soon__text [data-variant][hidden] { display: none; }
.soon__badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-amazon);
}
.soon__amazon {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-amazon); color: var(--color-on-amazon);
}
.soon__amazon .icon { width: 15px; height: 15px; margin-top: 2px; }
.soon__title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.soon__ok { justify-self: start; margin-top: var(--space-xs); }
.soon__close {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-rule-soft);
  background: var(--color-wash);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.soon__close:hover { background: var(--color-surface-2); border-color: var(--color-rule); }
.soon__close:active { transform: translateY(1px); }
.soon__close .icon { width: 18px; height: 18px; }

/* Narrow phones (portrait): stack, smaller cover */
@media (max-width: 480px) {
  .soon__panel { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); gap: var(--space-md); }
  .soon__cover { width: 72px; }
  .soon__text { padding-right: 0; }
  .soon__ok { justify-self: stretch; }
}
/* Short screens (phones in landscape): keep it compact so it fits without scrolling */
@media (max-height: 500px) {
  .soon__panel { grid-template-columns: 64px minmax(0, 1fr); padding: var(--space-lg); gap: var(--space-md); }
  .soon__cover { width: 64px; }
  .soon__title { font-size: var(--text-lg); }
}

/* ---------- Footer stand-in ---------- */
.site-foot { border-top: 1px solid var(--color-rule-soft); }
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-xl);
}
.site-foot .site-logo img { width: 120px; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.site-foot__links a { color: var(--color-body); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; }
.site-foot__links a:hover { color: var(--color-ink); }

/* ---------- Tablet ≤ 900px ---------- */
@media (max-width: 900px) {
  /* Copy spans the full width here, so darken top-to-bottom instead of left-to-right. */
  .hero {
    background-image:
      linear-gradient(0deg, var(--color-paper) 8%, var(--color-paper-veil) 45%, var(--color-paper-scrim) 100%),
      url("../assets/norzer-hero-bg.webp");
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-top: var(--space-lg); }
  .hero__book { order: -1; width: min(70%, 320px); }
  .hero__title { max-width: none; }
  .downloads, .cards--3, .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads .dl:last-child { grid-column: 1 / -1; flex-direction: row; }
  .downloads .dl:last-child .dl__thumb { width: 40%; height: auto; max-height: 300px; border-bottom: 0; border-right: 1px solid var(--color-rule-soft); }
  .help { grid-template-columns: minmax(0, 1fr); }
  .help__feature { grid-row: auto; }
  .walk { columns: 1; }
  .index__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

/* ---------- Phone ≤ 600px ---------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-logo img { width: 120px; }
  .site-back span { display: none; }
  .site-back { padding: 10px; }
  .hero { padding-bottom: var(--space-2xl); }
  .hero__book { width: min(64%, 260px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .amazon-chip { border-radius: var(--radius-md); }
  .jump__label { display: none; }
  .section { padding-top: var(--space-2xl); scroll-margin-top: calc(var(--rail-h) + var(--space-lg) - var(--space-2xl)); }

  .review__card { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-lg); gap: var(--space-md); }
  .review__card .btn { grid-column: 1 / -1; width: 100%; }

  .step { grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-sm); }
  .step--feature { padding: var(--space-md); }
  .step::before { width: 32px; height: 32px; font-size: var(--text-sm); }
  .step__body { padding-top: 4px; }
  .step--feature .btn { grid-column: 1 / -1; }
  .step--feature .step__body { grid-column: 2; }

  .prompt { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-sm) var(--space-md); }
  .prompt .copy-btn { justify-self: start; }
  .prompt-list--pair { grid-template-columns: minmax(0, 1fr); }

  .downloads, .cards--2, .cards--3, .platforms { grid-template-columns: minmax(0, 1fr); }
  .downloads .dl:last-child { flex-direction: column; }
  .downloads .dl:last-child .dl__thumb { width: auto; height: 180px; border-right: 0; border-bottom: 1px solid var(--color-rule-soft); }
  .dl__thumb { height: 180px; }
  .card { padding: var(--space-lg); }
  .help__feature .btn { align-self: stretch; }
  .help__row { grid-template-columns: auto minmax(0, 1fr); }
  .help__row .btn { grid-column: 1 / -1; }
  .walk__group { padding: var(--space-md) var(--space-lg); }
  .acc__sum { padding: var(--space-md); }
  .acc__list { padding-inline: var(--space-md) var(--space-md); padding-left: calc(var(--space-md) + 1.4em); }

  .newsletter { padding: var(--space-lg); }
  .newsletter__form { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .newsletter__submit { width: 100%; }
  .buy__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-xl); }
  .buy__cover { width: 130px; }
  .buy .btn { width: 100%; }
  .site-foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Phone portrait: smaller book so the CTA reaches the first screen ---------- */
@media (max-width: 600px) and (orientation: portrait) {
  .hero__book { width: min(44%, 170px); }
  .site-bar { padding-block: var(--space-md); }
  .hero__grid { gap: var(--space-lg); padding-top: 0; }
}

/* ---------- Phones in landscape (short + wide): side-by-side hero ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-bottom: var(--space-xl);
    background-image:
      linear-gradient(90deg, var(--color-paper-veil) 0%, var(--color-paper-veil) 45%, var(--color-paper-scrim) 70%, var(--color-paper-thin) 100%),
      linear-gradient(0deg, var(--color-paper) 7.7%, var(--color-paper-fade) 55.7%),
      url("../assets/norzer-hero-bg.webp");
  }
  .site-bar { padding-block: var(--space-sm); }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-lg);
    padding-top: var(--space-xs);
  }
  .hero__book { order: 0; width: auto; }
  .hero__book img { width: auto; height: min(62vh, 240px); }
  .hero__title { font-size: var(--text-2xl); }
  .hero__lede { margin-top: var(--space-sm); font-size: var(--text-base); }
  .hero__body { margin-top: var(--space-xs); font-size: var(--text-sm); }
  .hero__actions { margin-top: var(--space-md); }
  .hero__actions .btn { flex: 0 0 auto; }
  .amazon-chip { margin-top: var(--space-sm); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soon[open] .soon__panel, .soon[open]::backdrop { animation: none; }
  *, *::before, *::after {
    transition-duration: 150ms !important;
    transition-property: opacity, color, background-color, border-color !important;
  }
}
