/* ============================================================
   Self-hosted webfonts. Serving these locally removes
   fonts.googleapis.com and fonts.gstatic.com from the page
   entirely: two fewer origins in the CSP, no third-party
   request carrying the reader's IP, and one less render-blocking
   round trip. unicode-range means latin-ext is only fetched if a
   page actually uses those glyphs.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/InterTight-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/InterTight-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/InterTight-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/InterTight-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/InterTight-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/InterTight-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   snoring-help.com
   Editorial system: warm neutral canvas, near-black type,
   large rounded panels, tight-tracked grotesk display.
   Logo navy and signal blue are used as accents only.
   ============================================================ */

:root {
  --canvas: #f4f3f1;
  --paper: #ffffff;
  --panel: #eceae7;
  --ink: #111111;
  --body: #43474c;
  --muted: #7b8087;
  --line: #dedbd7;
  --line-soft: #e8e5e2;

  --navy: #12305c;
  --navy-deep: #0b1d38;
  --blue: #2f8fd8;
  --blue-soft: #e6f0fa;

  --shell: 1240px;
  --measure: 42rem;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-reveal: 520ms;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17,17,17,.28); }
a:hover { text-decoration-color: var(--blue); color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.025em; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

.eyebrow {
  display: block; font-size: .69rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { clip-path: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Floating pill header ---------- */

.site-header { position: sticky; top: 0; z-index: 60; padding: 14px 0; }
.site-header .shell { max-width: calc(var(--shell) + 40px); }

.nav-row {
  display: flex; align-items: center; gap: 20px;
  min-height: 60px; padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(17, 17, 17, .06);
  border-radius: 100px;
  transition: box-shadow var(--dur-base) ease, background-color var(--dur-base) ease;
}
.site-header.is-stuck .nav-row {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 34px -18px rgba(17, 17, 17, .45);
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; }
.brand .mark { color: var(--navy); flex: none; }
.brand-text { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.brand-tld { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link {
  display: inline-block; padding: 9px 14px; border-radius: 100px;
  font-size: .82rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--body); text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-link:hover { color: var(--ink); background: rgba(17, 17, 17, .05); }
.nav-link.is-active { color: var(--ink); background: rgba(17, 17, 17, .06); }
.nav-link--cta { background: var(--ink); color: #fff; padding: 11px 20px; font-weight: 500; }
.nav-link--cta:hover { background: #000; color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: var(--ink); border: 0; border-radius: 100px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  margin-top: 8px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px; }
.mobile-nav a {
  display: block; padding: 13px 16px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
}
.mobile-nav a:hover { background: var(--canvas); }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-row { padding-right: 8px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 100px;
  font-size: .92rem; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.98); transition-duration: 120ms; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; color: #fff; }
.btn--ghost { border-color: rgba(17,17,17,.18); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(17,17,17,.04); color: var(--ink); }
.btn--light { background: rgba(255,255,255,.94); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero panel ---------- */

.hero {
  position: relative;
  margin: 6px 12px 0;
  padding: clamp(64px, 9vw, 132px) clamp(24px, 5vw, 72px) clamp(56px, 8vw, 112px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(47, 143, 216, .30), transparent 58%),
    radial-gradient(90% 80% at 8% 96%, rgba(18, 48, 92, .48), transparent 62%),
    linear-gradient(158deg, #17253c 0%, #101b2c 52%, #0b1320 100%);
  color: #e7ecf3;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .35;
  mask-image: radial-gradient(70% 60% at 70% 20%, #000, transparent 75%);
}
.hero .eyebrow { color: rgba(231, 236, 243, .62); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-deck {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem); line-height: 1.5;
  color: rgba(231, 236, 243, .78); max-width: 46ch; margin: 22px 0 34px;
}
.hero-inner { max-width: var(--shell); margin: 0 auto; }
.hero--plain {
  background: var(--panel); color: var(--body);
}
.hero--plain::after { display: none; }
.hero--plain h1 { color: var(--ink); max-width: 20ch; }
.hero--plain .eyebrow { color: var(--muted); }
.hero--plain .hero-deck { color: var(--body); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; color: #fff; }
.hero-stat span { font-size: .82rem; color: rgba(231, 236, 243, .6); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--panel { background: var(--paper); border-radius: var(--r-lg); margin: 0 12px; padding-inline: clamp(20px, 4vw, 56px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 56ch; }
.section-link { font-size: .85rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(17,17,17,.25); padding-bottom: 2px; }

.grid { display: grid; gap: 14px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(304px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 26px 24px 28px; text-decoration: none; color: inherit;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.card h3 { margin: 0; font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card--hub { background: var(--panel); border-color: transparent; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(17,17,17,.18); box-shadow: 0 18px 40px -28px rgba(17, 17, 17, .55); transform: translateY(-2px); }
  .btn:hover { transform: translateY(-1px); }
}

.chip { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.chip--dark { color: var(--navy); }

/* ---------- Article ---------- */

.article-wrap { background: var(--paper); border-radius: var(--r-lg); margin: 6px 12px 0; padding: 0 clamp(20px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.breadcrumb { padding: 28px 0 0; font-size: .78rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.article-head { padding: 32px 0 36px; max-width: 52rem; }
.article-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); max-width: 20ch; }
.article-deck { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: var(--measure); margin: 22px 0 28px; }
.byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 20px; }
.byline strong { color: var(--ink); font-weight: 600; }

.prose { font-size: 1.09rem; line-height: 1.72; max-width: var(--measure); color: #3a3e44; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.1em 0 .5em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; scroll-margin-top: 100px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.prose li { margin-bottom: .55em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.7em 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--ink); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.7em 0; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.prose tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 4px 18px; }

.callout {
  margin: 1.9em 0; padding: 24px 26px; border-radius: var(--r-md);
  background: var(--panel); font-size: 1rem; line-height: 1.6;
}
.callout--warn { background: #fdf1e7; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.toc { background: var(--canvas); border-radius: var(--r-md); padding: 24px 28px; margin: 0 0 44px; max-width: var(--measure); }
.toc h2 { font-size: .69rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; font-family: var(--font); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.toc li { margin-bottom: 7px; }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.faq { max-width: var(--measure); margin-top: 64px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.4rem; line-height: 1; font-weight: 300; transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; color: var(--body); max-width: 60ch; }

.related { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line-soft); }

/* ---------- Footer ---------- */

.site-footer { margin-top: 24px; background: var(--navy-deep); color: #a9bad0; padding: 72px 0 36px; font-size: .9rem; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-inline: 12px; }
.site-footer a { color: #d6e2f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 48px; }
.brand--footer .mark, .brand--footer .brand-text { color: #fff; }
.brand--footer .brand-tld { color: var(--blue); }
.footer-tagline { margin: 14px 0 10px; color: #8ba0bb; }
.footer-rss { font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-head { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6d84a3; margin: 0 0 14px; font-weight: 600; font-family: var(--font); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-legal { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .79rem; color: #8399b8; line-height: 1.6; }
.footer-legal p { margin: 0 0 12px; }
.copyright { margin: 22px 0 0; font-size: .78rem; color: #6d84a3; }

@media (max-width: 1040px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 24px 28px; }
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero, .section--panel, .article-wrap, .site-footer { margin-inline: 8px; }
}

/* Stagger index as classes rather than inline style attributes, so the CSP
   can refuse inline styles outright. */
.i-0 { --i: 0; } .i-1 { --i: 1; } .i-2 { --i: 2; }
.i-3 { --i: 3; } .i-4 { --i: 4; } .i-5 { --i: 5; }

.section-head--spaced { margin-top: 48px; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.js-ready .reveal {
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js-ready) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; }
  .js-ready .reveal { transition: opacity 200ms ease; transition-delay: 0ms; }
  .card:hover, .btn:hover, .btn:active { transform: none; }
  .mobile-nav { transform: none; transition: opacity 150ms ease; }
  .nav-toggle span { transition: none; }
}

/* Ghost button on the dark hero panel */
.btn--ghost-inv { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost-inv:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Snorer-type quiz ---------- */
.quiz-mount { margin: 32px 0 8px; }

.quiz-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px 24px 24px;
}
@media (min-width: 720px) { .quiz-card { padding: 36px 36px 30px; } }

.quiz-progress {
  height: 4px; background: var(--line-soft); border-radius: 100px;
  overflow: hidden; margin-bottom: 20px;
}
.quiz-progress-fill {
  display: block; height: 100%; background: var(--accent, #2f8fd8); border-radius: 100px;
  transition: width var(--dur-base) var(--ease-out);
}

.quiz-step {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 10px;
}

.quiz-fieldset { border: 0; padding: 0; margin: 0; }
.quiz-legend {
  font-family: var(--font-display); font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.25; letter-spacing: -.02em; padding: 0; margin: 0 0 8px;
}
.quiz-legend:focus { outline: none; }
.quiz-legend:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.quiz-help { color: var(--text-muted); font-size: 15px; margin: 0 0 20px; }

.quiz-options { display: grid; gap: 10px; margin-top: 16px; }
.quiz-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line-soft);
  border-radius: var(--r-md); cursor: pointer; background: var(--bg);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .quiz-option:hover { border-color: var(--line); background: var(--paper); }
}
.quiz-option input { margin-top: 3px; flex: none; accent-color: var(--ink); }
.quiz-option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-option-label { font-size: 16px; line-height: 1.45; }

.quiz-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.quiz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }

.quiz-card--result .eyebrow { margin-bottom: 8px; }
.quiz-result-title {
  font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px;
}
.quiz-result-title:focus { outline: none; }
.quiz-result-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.quiz-result-lede { font-size: 18px; line-height: 1.55; margin: 0 0 18px; }
.quiz-card--result p { margin: 0 0 14px; }

.quiz-warn {
  border-left: 3px solid var(--accent, #2f8fd8); padding: 12px 16px;
  background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.quiz-product {
  margin: 22px 0; padding: 22px; background: var(--bg);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
}
.quiz-product-eyebrow {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 8px;
}
.quiz-product-name {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: -.02em; margin: 0 0 8px;
}
.quiz-product-why { color: var(--text-muted); font-size: 15px; }
.quiz-product-alt { font-size: 14px; margin-bottom: 0; }

.quiz-links-title {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin: 22px 0 8px;
}
.quiz-links { margin: 0 0 18px; padding-left: 18px; }
.quiz-links li { margin-bottom: 6px; }
.quiz-footnote {
  font-size: 14px; color: var(--text-muted);
  border-top: 1px solid var(--line-soft); padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-progress-fill { transition: none; }
}

/* ---------- Interactive tools ---------- */
.tool-mount { margin: 32px 0 8px; }

.trivia-verdict {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; margin: 0 0 10px;
}
.trivia-verdict.is-right { color: #1c7a4b; }
.trivia-verdict.is-wrong { color: #a4442c; }
:root:not([data-theme="light"]) .trivia-verdict.is-right,
:root[data-theme="dark"] .trivia-verdict.is-right { color: #5fc48c; }
:root:not([data-theme="light"]) .trivia-verdict.is-wrong,
:root[data-theme="dark"] .trivia-verdict.is-wrong { color: #e0876a; }
.trivia-answer { margin: 4px 0 12px; }

.calc-fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .calc-fields { grid-template-columns: repeat(3, 1fr); } }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-label { font-size: 14px; color: var(--text-muted); line-height: 1.35; }
.calc-input {
  font: inherit; font-size: 16px; padding: 11px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); width: 100%;
}
.calc-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.calc-output { margin-top: 26px; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.calc-headline {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1; letter-spacing: -.025em; margin: 0 0 18px;
}
.calc-stats { display: grid; gap: 12px; margin: 0 0 20px; }
@media (min-width: 560px) { .calc-stats { grid-template-columns: repeat(3, 1fr); } }
.calc-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.calc-stat-v { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.calc-stat-k { font-size: 12px; color: var(--text-muted); line-height: 1.3; }

.timer-clock {
  font-family: var(--font-display); font-size: clamp(48px, 14vw, 88px);
  line-height: 1; letter-spacing: -.03em; text-align: center;
  margin: 18px 0 10px; font-variant-numeric: tabular-nums;
}

.tool-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-card {
  display: block; padding: 22px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .tool-card:hover { border-color: var(--line); transform: translateY(-2px); }
}
.tool-card-kind {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 8px;
}
.tool-card-name {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: -.02em; display: block; margin-bottom: 6px;
}
.tool-card-desc { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .tool-card:hover { transform: none; }
}
