/* airpurifierdoi.net — core stylesheet
   Navbar: Purple (#800080) · Footer: RebeccaPurple (#663399) · Theme: Black + RebeccaPurple */

:root {
  --ink: #08070b;
  --ink-2: #110e17;
  --ink-3: #1a1522;
  --line: rgba(201, 167, 255, 0.16);
  --line-strong: rgba(201, 167, 255, 0.34);
  --rebecca: #663399;
  --rebecca-deep: #4d2673;
  --purple: #800080;
  --lilac: #c9a7ff;
  --lilac-soft: #e9dcff;
  --text: #f4effa;
  --muted: #b8accb;
  --paper: #f6f1fc;
  --paper-ink: #1d1428;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 30px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-display: "Avenir Next Condensed", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lilac);
}
.tag::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border-radius: 8px 22px 8px 22px;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--rebecca); color: #fff; border-color: var(--lilac); }
.btn--solid:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.btn--line { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--line:hover { border-color: var(--lilac); color: #fff; transform: translateY(-2px); }
.btn--paper { background: var(--paper); color: var(--paper-ink); }
.btn--paper:hover { background: #fff; color: var(--rebecca); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.signal-strip {
  background: #000; color: var(--muted);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.signal-strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.signal-strip a { color: var(--lilac-soft); text-decoration: none; }
.signal-strip a:hover { text-decoration: underline; }
.signal-strip .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(201,167,255,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,167,255,.55);} 70% { box-shadow: 0 0 0 9px rgba(201,167,255,0);} 100% { box-shadow: 0 0 0 0 rgba(201,167,255,0);} }

.topbar { position: sticky; top: 0; z-index: 50; background: var(--purple); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 42px; height: 42px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word strong { font-family: var(--f-display); font-size: 1.18rem; letter-spacing: -.01em; }
.brand-word strong em { font-style: normal; color: var(--lilac-soft); }
.brand-word small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.brand:hover { color: #fff; }

.mainnav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav a {
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 11px; border-radius: 8px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.mainnav a .idx { font-family: var(--f-mono); font-size: .66rem; color: rgba(255,255,255,.62); }
.mainnav a:hover { background: rgba(0,0,0,.22); color: #fff; }
.mainnav a[aria-current="page"] { background: #000; box-shadow: inset 0 -3px 0 var(--lilac); }
.mainnav a[aria-current="page"] .idx { color: var(--lilac); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font: 700 .85rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-btn .bars::before { top: 1px; }
.menu-btn .bars::after { top: 9px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--purple); border-top: 1px solid rgba(255,255,255,.18);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .mainnav.is-open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .mainnav ol { flex-direction: column; gap: 0; padding: 10px var(--gutter) 20px; max-width: var(--wrap); margin: 0 auto; }
  .mainnav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .mainnav li:last-child a { border-bottom: 0; }
}
@media (max-width: 560px) {
  .signal-strip .hide-sm { display: none; }
  .brand-word small { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(102,51,153,.45), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--lilac); }
.hero .lede { margin-bottom: 28px; }
.readouts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.readouts li { padding: 16px 18px; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.readouts li:last-child { border-right: 0; }
.readouts b { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-bottom: 4px; font-weight: 600; }
.readouts span { font-size: .95rem; font-weight: 600; }

.hero-visual { position: relative; padding: 18px; }
.hero-ring { position: absolute; inset: -4% -8%; width: 116%; height: 108%; color: var(--rebecca); animation: spin 60s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.arch {
  position: relative; margin: 0 auto; max-width: 430px;
  border-radius: 999px 999px 26px 26px; overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 5.4; background: #fff;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.float-chip {
  position: absolute; right: 0; top: 14%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; background: rgba(8,7,11,.88); border: 1px solid var(--line-strong);
  border-radius: 999px; backdrop-filter: blur(6px); max-width: 80%;
}
.float-chip img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 62%; }
.float-chip p { margin: 0; font-size: .85rem; line-height: 1.3; }
.float-chip p b { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--lilac); text-transform: uppercase; }

/* ---------- Ticker ---------- */
.ticker { background: var(--rebecca); color: #fff; overflow: hidden; border-block: 1px solid rgba(255,255,255,.18); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 14px 0; }
.ticker li { padding: 0 28px; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; position: relative; }
.ticker li::after { content: "✳"; position: absolute; right: -6px; color: var(--lilac-soft); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Airflow steps ---------- */
.flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.flow-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.flow-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: contrast(1.05); }
.flow-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(8,7,11,.84); font-size: .85rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px dashed var(--line-strong); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--lilac); color: var(--lilac); font-family: var(--f-mono); font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Room sizing ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.room {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px; background: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px var(--radius-l) 4px var(--radius-l);
}
.room:nth-child(2) { background: linear-gradient(160deg, var(--rebecca-deep), var(--ink-3) 70%); border-color: var(--line-strong); }
.room-icon { width: 64px; height: 64px; margin-bottom: 18px; color: var(--lilac); }
.room dl { margin: 6px 0 0; display: grid; gap: 12px; }
.room dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.room dd { margin: 2px 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- Video ---------- */
.mistsplit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.videobox { position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line-strong); background: #000; aspect-ratio: 16 / 9; }
.videobox video { width: 100%; height: 100%; object-fit: cover; }
.videobox-label { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0,0,0,.72); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac-soft); pointer-events: none; }
.note {
  margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--lilac);
  background: rgba(102,51,153,.18); border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--text);
}

/* ---------- Placement mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 16px; }
.tile { position: relative; margin: 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.88)); font-size: .92rem; }
.tile figcaption b { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 2px; }
.tile--a { grid-column: span 5; grid-row: span 2; }
.tile--a img { aspect-ratio: auto; min-height: 100%; }
.tile--b { grid-column: span 4; }
.tile--c { grid-column: span 3; }
.tile--d { grid-column: span 7; }
.tile--d img { aspect-ratio: 16 / 9; object-position: 50% 70%; }

/* ---------- Checklist grid ---------- */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.check { background: var(--ink); padding: 26px 24px; }
.check-num { font-family: var(--f-mono); font-size: .78rem; color: var(--lilac); letter-spacing: .1em; }
.check h3 { margin-top: 10px; }
.check p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- CTA slab ---------- */
.slab { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-l); background: var(--rebecca); color: #fff; }
.slab::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); pointer-events: none; }
.slab h2 { margin-bottom: .3em; }
.slab p { margin: 0; color: rgba(255,255,255,.86); }
.slab .btn-row { position: relative; z-index: 1; }

/* ---------- Inner page heads ---------- */
.pagehead { padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, rgba(102,51,153,.42), transparent 55%); }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.updated { font-family: var(--f-mono); font-size: .8rem; color: var(--lilac); }

/* ---------- Purifier (collection) page ---------- */
.cat-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 56px; align-items: center; }
.cat-hero-img { border-radius: 50% 50% var(--radius-m) var(--radius-m) / 36% 36% var(--radius-m) var(--radius-m); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 5; max-width: 340px; justify-self: end; width: 100%; }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; }
.jump a:hover { border-color: var(--lilac); background: rgba(102,51,153,.3); }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.filterbar span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
.filterbar button {
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--text); font: 600 .92rem var(--f-sans);
}
.filterbar button:hover { border-color: var(--line-strong); }
.filterbar button[aria-pressed="true"] { background: var(--rebecca); border-color: var(--lilac); color: #fff; }

.specgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spec {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
  scroll-margin-top: 110px;
}
.spec[hidden] { display: none; }
@media (min-width: 1025px) {
  .spec:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, .4fr) minmax(0, 1.6fr); }
  .spec:last-child:nth-child(odd) .spec-img img { aspect-ratio: 4 / 3; }
}
.spec-img { position: relative; background: #000; min-height: 100%; }
.spec-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.spec-kind { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.78); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac-soft); }
.spec-body { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.spec-body h3 { font-size: 1.22rem; }
.spec-body > p { color: var(--muted); font-size: .95rem; }
.spec-rows { margin: 0 0 16px; border-top: 1px solid var(--line); }
.spec-rows div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-rows dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); padding-top: 3px; }
.spec-rows dd { margin: 0; }
.spec-link { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.spec-link:hover { text-decoration: underline; }
.empty-msg { color: var(--muted); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--rebecca); color: #fff; font-family: var(--f-display); font-size: 1rem; }
.compare tbody th { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); font-weight: 600; width: 16%; background: var(--ink-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--muted); }
.compare td strong { color: var(--text); }

.care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.care-col { padding: 28px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--ink-2); }
.care-col:first-child { border-top: 4px solid var(--lilac); }
.care-col:last-child { border-top: 4px solid var(--purple); }
.care-col ul { list-style: none; padding: 0; margin: 0; }
.care-col li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.care-col li:last-child { border-bottom: 0; }
.care-col li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border: 2px solid var(--lilac); border-radius: 50%; }

.setup { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.setup-photo { border-radius: var(--radius-l) 4px var(--radius-l) 4px; overflow: hidden; border: 1px solid var(--line); }
.setup-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--lilac); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--line-strong); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Privacy policy (layout A: sticky index + ruled sections) ---------- */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.glance div { padding: 18px 20px; border-radius: 14px; background: rgba(102,51,153,.22); border: 1px solid var(--line-strong); }
.glance b { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }
.glance span { color: var(--muted); font-size: .92rem; }
.privacy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.toc h2 { font-size: .74rem; font-family: var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: .9rem; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }
.pv-sec { padding: 0 0 28px 26px; margin-bottom: 30px; border-left: 2px solid var(--rebecca); scroll-margin-top: 110px; }
.pv-sec:last-child { margin-bottom: 0; }
.pv-sec h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); position: relative; }
.pv-sec h2::before { content: ""; position: absolute; left: -34px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--lilac); }
.pv-sec p, .pv-sec li { color: var(--muted); }
.pv-sec strong { color: var(--text); }

/* ---------- Terms (layout B: articles with margin numerals) ---------- */
.terms-intro { max-width: 860px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; color: var(--muted); font-style: italic; }
.articles-index { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; counter-reset: art; }
.articles-index a { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); font-size: .9rem; background: var(--ink-2); }
.articles-index a:hover { border-color: var(--lilac); }
.articles-index a span { font-family: Georgia, serif; color: var(--lilac); min-width: 2.2em; }
.article { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 36px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.article-num { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--lilac); }
.article h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0; }
.clauses { list-style: none; padding: 0; margin: 0; }
.clauses li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 6px 0; color: var(--muted); }
.clauses li > span { font-family: var(--f-mono); font-size: .82rem; color: var(--lilac); padding-top: 3px; }
.plain { margin-top: 14px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: .92rem; color: var(--text); }
.plain b { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-right: 8px; }

/* ---------- Cookie policy (layout C: paper board + status tiles + table) ---------- */
.cookie-sheet { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 52px); }
.cookie-sheet h2, .cookie-sheet h3 { font-family: var(--f-mono); letter-spacing: -.02em; color: var(--rebecca-deep); }
.cookie-sheet h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); text-transform: uppercase; }
.cookie-sheet p, .cookie-sheet li, .cookie-sheet td { color: #3b2f4a; }
.cookie-sheet a { color: var(--rebecca); }
.cookie-sheet a:hover { color: var(--purple); }
.cookie-block + .cookie-block { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(32px, 4vw, 48px); border-top: 2px solid #e2d6f1; }
.status-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status { padding: 18px; border-radius: 12px; background: #fff; border: 1px solid #e2d6f1; }
.status small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #6d5a85; }
.status strong { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--f-mono); font-size: 1rem; color: var(--paper-ink); }
.status strong::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rebecca); }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qa { padding: 20px; background: #fff; border-radius: 12px; border-left: 4px solid var(--rebecca); }
.qa h3 { font-size: 1rem; margin-bottom: .5em; }
.qa p { margin: 0; font-size: .95rem; }
.store-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; }
.store-table th, .store-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid #ece3f7; vertical-align: top; }
.store-table thead th { background: var(--paper-ink); color: #fff; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.store-table tbody th { font-family: var(--f-mono); font-size: .88rem; color: var(--paper-ink); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: .74rem; background: #ece3f7; color: var(--rebecca-deep); white-space: nowrap; }
.browser-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.browser-steps li { padding: 16px 18px; background: #fff; border-radius: 12px; border: 1px solid #e2d6f1; }
.browser-steps b { display: block; font-family: var(--f-mono); color: var(--rebecca-deep); margin-bottom: 4px; }

/* ---------- Contact ---------- */
.reach { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.reach-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-l); border: 1px solid var(--line-strong); background: var(--ink-2); }
.reach-card--mail { background: linear-gradient(145deg, var(--rebecca), var(--rebecca-deep)); border-color: transparent; }
.reach-card .k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac-soft); }
.reach-mail { display: block; margin: 12px 0 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 3.2vw, 2.3rem); color: #fff; text-decoration: none; overflow-wrap: anywhere; line-height: 1.15; }
.reach-mail:hover { color: var(--lilac-soft); text-decoration: underline; }
.reach-card address { font-style: normal; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.45; margin: 12px 0 18px; }
.pin { width: 72px; height: 72px; color: var(--lilac); margin-bottom: 8px; }
.copy-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 600 .9rem var(--f-sans); cursor: pointer; }
.copy-btn:hover { background: rgba(0,0,0,.25); }
.copy-state { display: inline-block; margin-left: 10px; font-family: var(--f-mono); font-size: .8rem; color: var(--lilac-soft); min-height: 1em; }
.brief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: brief; }
.brief li { list-style: none; padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); }
.brief li::before { counter-increment: brief; content: "Include " counter(brief); display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-bottom: 10px; }
.brief li p { margin: 0; color: var(--muted); font-size: .94rem; }
.brief { padding: 0; margin: 0; }
.topics { columns: 2; column-gap: 40px; list-style: none; padding: 0; }
.topics li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.topics a { text-decoration: none; font-weight: 600; }
.topics a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.basefoot { background: var(--rebecca); color: #fff; margin-top: clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.basefoot a { color: #fff; }
.foot-word {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(2rem, 8.4vw, 7.4rem); color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.55);
  padding: clamp(30px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); border-bottom: 1px solid rgba(255,255,255,.22);
  overflow-wrap: anywhere; user-select: none; margin: 0;
}
.foot-word span { color: #fff; -webkit-text-stroke: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding: clamp(30px, 4vw, 48px) 0; }
.foot-grid h2 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lilac-soft); margin-bottom: 16px; font-weight: 600; }
.foot-grid p { color: rgba(255,255,255,.86); font-size: .96rem; }
.foot-pages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.foot-pages a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot-pages a:hover { text-decoration: underline; }
.foot-contact { font-style: normal; display: grid; gap: 14px; }
.foot-contact div { padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.16); }
.foot-contact b { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac-soft); margin-bottom: 4px; font-weight: 600; }
.foot-contact a { overflow-wrap: anywhere; font-weight: 600; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.22); font-size: .86rem; color: rgba(255,255,255,.82); }
.foot-base a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 600; }
.foot-base a:hover { background: #000; border-color: #000; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .code { font-family: var(--f-mono); font-size: clamp(4rem, 16vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--lilac); margin-bottom: 10px; }
.lost .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .specgrid { grid-template-columns: minmax(0, 1fr); }
  .status-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .flow, .mistsplit, .cat-hero, .setup, .reach, .privacy-layout { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: span 1; grid-row: auto; }
  .tile--a img { aspect-ratio: 3 / 4; }
  .tile--d { grid-column: span 2; }
  .slab { grid-template-columns: minmax(0, 1fr); }
  .cat-hero-img { justify-self: start; max-width: 300px; }
  .care { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .setup-photo { max-width: 420px; }
  .article { grid-template-columns: 70px minmax(0, 1fr); gap: 10px 20px; }

  /* comparison table → stacked cards */
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare { border: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .compare tbody th { width: 100%; background: var(--rebecca); color: #fff; }
  .compare td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--text); font-size: .85rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .readouts li { border-right: 0; border-bottom: 1px solid var(--line); }
  .readouts li:last-child { border-bottom: 0; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .tile--d { grid-column: span 1; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec-img img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
  .qa-grid, .browser-steps, .status-board, .brief { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-pages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .topics { columns: 1; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article-num { font-size: 2.2rem; }
  .clauses li { grid-template-columns: 40px minmax(0, 1fr); }
  .compare td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .store-table thead { display: none; }
  .store-table, .store-table tbody, .store-table tr, .store-table th, .store-table td { display: block; width: 100%; }
  .store-table tr { border-bottom: 2px solid #e2d6f1; }
  .store-table td, .store-table th { border-bottom: 0; padding: 8px 15px; }
  .store-table tbody th { padding-top: 14px; }
  .store-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--paper-ink); }
  .float-chip { right: 6px; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}
