/* doorwide.org — built on the Doorwide design system (https://claude.ai/artifact/S2sRJFoGTTJJnrnsqk4y5L).
   Layout: one centered column (max 1120px); bands alternate paper and surface; the hero pairs copy with a real screenshot. */
:root {
  --paper: #fbfaf6; --surface: #ffffff; --tint: #eef2ff; --ink: #14162b; --ink-muted: #565868;
  --line: #dcdae2; --line-strong: #8e90a3; --door: #1d4ed8; --on-door: #ffffff; --sun: #ffc93c; --on-sun: #14162b;
  --focus: #1d4ed8; --ok: #1d6b3a; --bad: #b3261e;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;
  --radius-md: 10px; --radius-lg: 14px; --radius-xl: 24px; --radius-pill: 999px;
  --shadow-pop: 0 8px 24px rgba(20, 22, 43, .14);
  --shadow-soft: 0 1px 1px rgba(20, 22, 43, .02), 0 2px 4px rgba(20, 22, 43, .025), 0 8px 16px -4px rgba(20, 22, 43, .04), 0 24px 48px -16px rgba(20, 22, 43, .08);
  --shadow-lift: 0 1px 2px rgba(20, 22, 43, .03), 0 4px 8px rgba(20, 22, 43, .04), 0 16px 32px -8px rgba(20, 22, 43, .08), 0 40px 80px -24px rgba(20, 22, 43, .16);
  --glow-door: rgba(29, 78, 216, .14); --glow-sun: rgba(255, 201, 60, .22); --grid-line: rgba(20, 22, 43, .06);
  --section: clamp(88px, 11vw, 144px);
  --marker: #ffc93c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1020; --surface: #181a2e; --tint: #1c2440; --ink: #f3f2ec; --ink-muted: #b3b4c4;
    --line: #2c2f48; --line-strong: #6b6e8a; --door: #8ab4ff; --on-door: #0b1020; --focus: #ffc93c; --ok: #7fd8a0; --bad: #ff8a80;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .5); color-scheme: dark;
    --shadow-soft: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14), 0 8px 16px -4px rgba(0, 0, 0, .2), 0 24px 48px -16px rgba(0, 0, 0, .35);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .15), 0 4px 8px rgba(0, 0, 0, .18), 0 16px 32px -8px rgba(0, 0, 0, .28), 0 40px 80px -24px rgba(0, 0, 0, .5);
    --glow-door: rgba(138, 180, 255, .12); --glow-sun: rgba(255, 201, 60, .08); --grid-line: rgba(243, 242, 236, .06); --marker: rgba(255, 201, 60, .38);
  }
}
:root[data-theme="dark"] {
    --paper: #0f1020; --surface: #181a2e; --tint: #1c2440; --ink: #f3f2ec; --ink-muted: #b3b4c4;
    --line: #2c2f48; --line-strong: #6b6e8a; --door: #8ab4ff; --on-door: #0b1020; --focus: #ffc93c; --ok: #7fd8a0; --bad: #ff8a80;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .5); color-scheme: dark;
    --shadow-soft: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14), 0 8px 16px -4px rgba(0, 0, 0, .2), 0 24px 48px -16px rgba(0, 0, 0, .35);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .15), 0 4px 8px rgba(0, 0, 0, .18), 0 16px 32px -8px rgba(0, 0, 0, .28), 0 40px 80px -24px rgba(0, 0, 0, .5);
    --glow-door: rgba(138, 180, 255, .12); --glow-sun: rgba(255, 201, 60, .08); --grid-line: rgba(243, 242, 236, .06); --marker: rgba(255, 201, 60, .38);
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font-text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--door); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: .9em; }
code.nowrap { white-space: nowrap; display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--ink-muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow details { max-width: 780px; }
section { padding-block: var(--section); }
.band { background: var(--surface); }
.section-lead { color: var(--ink-muted); max-width: 60ch; margin: 18px 0 48px; font-size: 19px; line-height: 1.6; }
.note { color: var(--ink-muted); margin-top: 36px; max-width: 70ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-md); z-index: 20; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--paper); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; }
.logo img { height: 24px; width: auto; }
.top nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--door); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--door); border-radius: var(--radius-md);
  background: var(--door); color: var(--on-door); font: 700 16px/1 var(--font-text); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px -6px var(--glow-door); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; }
/* стани кнопок: наведення трохи темніше й вище, натискання — на місці */
.btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: color-mix(in srgb, var(--door) 86%, #000); border-color: color-mix(in srgb, var(--door) 86%, #000); box-shadow: 0 10px 24px -8px var(--glow-door); transform: translateY(-1px); }
.btn:active { transform: none; box-shadow: none; }
.btn.ghost:hover { background: var(--tint); border-color: var(--door); color: var(--door); box-shadow: none; }
.plan p.typ { font-size: 14px; line-height: 1.45; margin: -4px 0 16px; }
.plan p.typ b { color: var(--ink); font-weight: 700; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
/* фон першого екрана: тонка сітка, що тане до країв (як міліметрівка інструмента), без кольорових плям */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 44px 44px; background-position: center top;
  -webkit-mask: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 75%); mask: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.eyebrow { font: 700 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.lead { font-size: 20px; line-height: 1.6; margin-top: 28px; max-width: 58ch; color: var(--ink); }
.snippet { margin-top: 40px; }
.snippet-label { font-size: 14px; color: var(--ink-muted); margin-bottom: 6px; }
.snippet-row { display: flex; gap: 8px; align-items: stretch; }
.snippet-row code { flex: 1; min-width: 0; display: block; white-space: pre-wrap; word-break: break-all; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-muted); font-size: 15px; }
.facts b { color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.hero-shot { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift), 0 40px 90px -40px var(--glow-door); background: var(--surface); }

/* try it */
.profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.chip { text-align: left; display: grid; gap: 6px; align-content: start; padding: 22px; min-height: 120px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-soft); transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--ink); font: inherit; cursor: pointer; }
.chip b { font-family: var(--font-display); font-size: 18px; }
.chip span { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.chip:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.chip[aria-pressed="true"] { background: var(--door); border-color: var(--door); color: var(--on-door); }
.chip[aria-pressed="true"] span { color: var(--on-door); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.shots figure { margin: 0; }
.shots img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.shots figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }

/* cards and two-column blocks */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); align-items: start; margin-top: 8px; }
.wrap.two { margin-top: 0; }
.two:has(> .card + .card) { align-items: stretch; }
.two > .card:has(> .btn) { display: flex; flex-direction: column; }
.two > .card > .btn { margin-top: auto; align-self: flex-start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow-soft); }
.band .card { background: var(--paper); }
.card.tint { background: var(--tint); }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.card .btn { justify-self: start; }
.is h3, .isnt h3 { display: flex; align-items: center; gap: 12px; }
.is h3::before, .isnt h3::before { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 700 17px/1 var(--font-text); }
.is h3::before { content: "✓"; content: "✓" / ""; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.isnt h3::before { content: "✕"; content: "✕" / ""; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }

.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 8px; }
.groups h3 { margin-bottom: 10px; }
.groups p { color: var(--ink-muted); }

.specs { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-soft); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { font-weight: 700; } .specs dd { margin: 0; color: var(--ink-muted); }
#h-light + p { margin-top: 24px; } #h-light ~ p + p { margin-top: 16px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); align-items: stretch; }
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans.four .plan { display: flex; flex-direction: column; }
.plans.four .plan ul { margin-bottom: 20px; }
.plans.four .btn { width: 100%; max-width: none; margin-top: auto; min-height: 44px; white-space: nowrap; padding-inline: 12px; text-align: center; justify-content: center; }
.ent-row { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: clamp(20px, 2.5vw, 32px); }
.ent-row h3 { margin: 0 0 4px; }
.ent-row p { margin: 0; }
@media (max-width: 1100px) { .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; }
.plan > .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { border: 2px solid var(--door); box-shadow: var(--shadow-lift), 0 30px 70px -30px var(--glow-door); }
.price { font: 800 30px/1.1 var(--font-display); }

/* faq */
#faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
#faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; }
#faq summary { cursor: pointer; padding: 22px 0; font: 700 19px/1.35 var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.3em; line-height: 1; color: var(--ink-muted); }
#faq details[open] > summary::after { content: "−"; }
#faq details p { padding: 0 0 18px; color: var(--ink-muted); max-width: 68ch; }

.final { padding-block: var(--section); }
.final-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); color: #fff;
  background: radial-gradient(55% 90% at 100% 0%, rgba(255, 201, 60, .38), transparent 70%), radial-gradient(60% 90% at 0% 100%, #2f5cf0, transparent 70%), #1d4ed8; box-shadow: var(--shadow-lift); }
.final h2 { font-size: clamp(34px, 5.5vw, 60px); max-width: 16ch; }
.final .btn { background: #fff; color: #1d4ed8; border-color: #fff; box-shadow: none; }
.final .btn.ghost { background: transparent; color: #fff; border-color: currentColor; }
.final .btn:hover { background: #eef2ff; border-color: #eef2ff; color: #1739a8; }
.final .btn.ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.final :focus-visible { outline-color: #ffc93c; }
.foot { border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; }
.foot .bar { min-height: 0; gap: 16px; }

@media (max-width: 900px) {
  .hero-grid, .two, .wrap.two, .shots { grid-template-columns: minmax(0, 1fr); }
  .profiles, .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans, .plans.four { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .profiles, .groups { grid-template-columns: minmax(0, 1fr); }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .snippet-row { flex-direction: column; }
  .snippet-row .btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chip, .btn { transition: none; } .chip:hover, .btn:hover { transform: none; } }
.price small { font: 400 15px/1 var(--font-text); color: var(--ink-muted); margin-left: 4px; }
.many { margin-top: clamp(24px, 3vw, 40px); max-width: 860px; }
.many p { color: var(--ink); }

/* ── flavor: brand marker, screenshot fan, steps, icons, dark stats band ── */
.mark { background: linear-gradient(transparent 80%, var(--marker) 80%, var(--marker) 95%, transparent 95%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
section > .wrap > .eyebrow, .wrap > div > .eyebrow { margin-bottom: 14px; }

.steps-sec { padding-top: 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.steps h3 { display: flex; align-items: center; gap: 12px; }
.steps .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font: 800 17px/1 var(--font-display); }
.steps p { color: var(--ink-muted); }

.grp .ib { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--tint); color: var(--door); }
.grp .ico { width: 26px; height: 26px; }

.dark-band { position: relative; overflow: hidden; color: #f3f2ec; background: radial-gradient(55% 90% at 100% 0%, rgba(47, 92, 240, .55), transparent 70%), radial-gradient(45% 70% at 0% 100%, rgba(255, 201, 60, .14), transparent 70%), #121430; }
.dark-band .eyebrow { color: #c9cad8; }
.dark-band :focus-visible { outline-color: #ffc93c; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { display: grid; gap: 10px; align-content: start; padding: 28px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .06); }
.stats b { font: 800 clamp(52px, 6.5vw, 80px)/.95 var(--font-display); letter-spacing: -.03em; color: #ffc93c; }
.stats small { font-size: .38em; letter-spacing: 0; margin-left: 4px; }
.stats span { color: #c9cad8; font-size: 15px; line-height: 1.45; }
.light-copy { margin-top: 40px; }
.light-copy p { color: #c9cad8; }
.light-copy p.wide { grid-column: 1 / -1; }
.light-copy a { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark-band { border-block: 1px solid var(--line); } }
:root[data-theme="dark"] .dark-band { border-block: 1px solid var(--line); }

.final-panel > * { position: relative; z-index: 1; }
.final-panel::after { content: ""; position: absolute; z-index: 0; right: clamp(16px, 7vw, 120px); bottom: 0; translate: 0 30%; width: clamp(160px, 28vw, 380px); aspect-ratio: 1;
  background: rgba(255, 255, 255, .16); -webkit-mask: url(https://cdn.doorwide.org/brand/doorwide-mark-mono.svg) center / contain no-repeat; mask: url(https://cdn.doorwide.org/brand/doorwide-mark-mono.svg) center / contain no-repeat; pointer-events: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .final-panel::after { opacity: .6; }
  .stats li { padding: 22px 18px; }
}
h2 + .two, h2 + .groups { margin-top: 40px; }

/* ── hero art: the real panel cycling through site styles, with callouts that follow it ── */
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 36px; min-height: 560px; }
.panel-shot { position: relative; margin: 0; flex: 0 1 300px; min-width: 220px; display: grid; }
.panel-shot::before { content: ""; position: absolute; z-index: -1; inset: 8% -14% 18% 14%; border-radius: 50%; background: radial-gradient(circle, var(--glow-door), transparent 70%); }
.panel-shot img { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity .6s ease; filter: drop-shadow(0 30px 50px rgba(20, 22, 43, .22)) drop-shadow(0 4px 10px rgba(20, 22, 43, .08));
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.panel-shot img.on { opacity: 1; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 184px; flex: none; }
.co { position: relative; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.co::after { content: ""; position: absolute; left: 100%; top: 50%; width: 36px; border-top: 1.5px dashed var(--line-strong); }
.co::before { content: ""; position: absolute; left: calc(100% + 32px); top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--door)); transition: background .4s; }
.co small { font: 700 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.co-row { display: flex; align-items: center; gap: 10px; font: 700 15px/1.2 var(--font-text); min-height: 28px; }
.co .aa { font-size: 24px; line-height: 1; width: 34px; }
.sws { display: flex; gap: 7px; }
.sws i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(128, 128, 140, .45); transition: box-shadow .3s; }
.sws i.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.corner { width: 26px; height: 26px; border: 3px solid var(--acc, var(--door)); border-right: 0; border-bottom: 0; border-top-left-radius: 10px; transition: border-radius .4s, border-color .4s; }
.half { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fbfaf6; transition: background .4s; }
.half.dark { background: #0f172a; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.art-pause { position: absolute; left: 0; bottom: 0; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 13px/1 var(--font-text); cursor: pointer; }
.art-pause:hover { border-color: var(--door); }
@media (prefers-reduced-motion: reduce) { .panel-shot img, .sws i, .corner, .half, .co::before { transition: none; } }
@media (max-width: 1100px) and (min-width: 901px) { .callouts { width: 160px; } .hero-art { gap: 28px; } .co::after { width: 28px; } .co::before { left: calc(100% + 24px); } }
@media (max-width: 900px) { .hero-art { min-height: 0; padding-bottom: 52px; } }
@media (max-width: 560px) {
  .hero-art { flex-direction: column; gap: 20px; }
  .panel-shot { flex: none; width: 70%; }
  .callouts { order: 2; width: 100%; grid-template-columns: 1fr 1fr; }
  .co::after, .co::before { display: none; }
}

/* ── step illustrations ── */
.ill { display: grid; place-items: center; height: 156px; margin-bottom: 10px; border-radius: 14px; background: var(--tint); overflow: hidden; position: relative; }
.ill-code { padding: 0 16px; }
.ill-code code { display: block; padding: 12px 14px; border-radius: 10px; background: #14162b; color: #f3f2ec; font-size: 12.5px; line-height: 1.5; white-space: normal; word-break: break-all; box-shadow: var(--shadow-soft); }
.ill-code .t { color: #8ab4ff; } .ill-code .a { color: #ffc93c; } .ill-code .v { color: #7fd8a0; }
.ill-look { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 0 14px; }
.mini { display: grid; gap: 6px; width: 30%; max-width: 92px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #dcdae2; box-shadow: var(--shadow-soft); }
.mini.dark { background: #14162b; border-color: #2c2f48; color: #f3f2ec; }
.mini i { display: block; height: 12px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mini i:first-child { background: var(--c); border-color: var(--c); }
.mini b { font: 700 18px/1 var(--font-text); color: var(--c); }
.mini.dark b { color: #5eead4; }
.ill-set { align-content: center; gap: 8px; padding: 0 22px; place-items: stretch; }
.ill-set .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 700 13px/1 var(--font-text); }
.tg { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tg.on { background: var(--door); } .tg.on::after { left: 17px; background: var(--on-door); }

@media (max-width: 900px) {
}
@media (max-width: 560px) {
}

/* ── language switcher ── */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; font: 700 14px/1 var(--font-text); color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box;
  background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.langs summary:hover { border-color: var(--door); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lift); }
.langs a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.langs a:hover { background: var(--tint); }
.langs a[aria-current] { color: var(--door); }
.top nav { margin-right: -8px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-langs a { color: var(--ink-muted); }
.foot-langs [aria-current] { font-weight: 700; }
@media (max-width: 560px) { .top .langs { margin-left: auto; } .bar { gap: 12px; } }

/* ── legal pages ── */
.legal { max-width: 760px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 12px; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

/* ── audits home: example report, pains, layers, report list ── */
:root { --sev-c: #b3261e; --sev-s: #a1490b; --sev-m: #1d4ed8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sev-c: #ff8a80; --sev-s: #ffb36b; --sev-m: #8ab4ff; } }
:root[data-theme="dark"] { --sev-c: #ff8a80; --sev-s: #ffb36b; --sev-m: #8ab4ff; }
.hero-note { margin: 16px 0 0; color: var(--ink-muted); font-size: 15px; }
.report { margin: 0; display: grid; gap: 14px; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift), 0 40px 90px -40px var(--glow-door); font-size: 15px; }
.rp-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report .tag { font: 700 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink-muted); }
.rp-site { font-weight: 700; } .rp-meta { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.rp-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-sum span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--ink-muted); }
.rp-sum b { margin-right: 4px; font: 800 17px/1 var(--font-display); }
.sev-c b { color: var(--sev-c); } .sev-s b { color: var(--sev-s); } .sev-m b { color: var(--sev-m); } .sev-x b { color: var(--ok); }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.rp-item .rp-t { margin: 0 0 4px; font: 700 15px/1.3 var(--font-text); }
.rp-item p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.rp-where, .rp-by { color: var(--ink-muted); font-size: 13px !important; }
.rp-fix b { color: var(--ok); }
.rp-sev { align-self: start; padding: 5px 8px; border-radius: var(--radius-pill); font: 700 11px/1 var(--font-text); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.rp-sev.sev-c { background: #b3261e; } .rp-sev.sev-s { background: #a1490b; }
.rp-sev.sev-x { background: transparent; color: var(--ok); border: 1px solid var(--ok); }
.rp-removed .rp-t { text-decoration: line-through; color: var(--ink-muted); }
.rp-stack { margin: 0; color: var(--ink-muted); font-size: 13px; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.layers { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.layers li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.layers .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font: 800 19px/1 var(--font-display); }
.layers h3 { margin: 6px 0 6px; } .layers p { color: var(--ink-muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ticks li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 17px; top: 13px; color: var(--ok); font-weight: 800; }
.incl { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink-muted); }
.incl li::before { content: "✓ "; content: "✓ " / ""; color: var(--ok); font-weight: 800; }
.cross { align-items: center; }
.cross-img { width: min(260px, 70%); justify-self: center; filter: drop-shadow(0 24px 40px rgba(20, 22, 43, .2)); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.plan p:not(.price) { color: var(--ink-muted); }
@media (max-width: 900px) { .pains { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .layers li { grid-template-columns: 1fr; gap: 8px; padding: 18px; } .rp-meta { margin-left: 0; width: 100%; } }

/* ───────── Рух: поява при прокрутці, паралакс, прогрес, «живі» списки ─────────
   Усе вмикає site.js (клас html.motion) лише без «зменшити рух» і без «Без анімацій» віджета.
   Рух лише разовий (поява) або прив'язаний до прокрутки — нічого не рухається саме (WCAG 2.2.2). */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 80; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: var(--door); }
html:not(.motion) .scroll-progress { display: none; }
.hero > .wrap { position: relative; z-index: 1; }
html.motion .hero .report, html.motion .hero .hero-art { transform: translate3d(0, calc(var(--py, 0) * 1px), 0) rotate(calc(var(--py, 0) * -0.02deg)); will-change: transform; }

/* поява: блок випливає знизу, сусіди — по черзі */
html.motion .rv { opacity: 0; transform: translate3d(0, 32px, 0) scale(.985); transition: opacity .8s cubic-bezier(.2, .75, .2, 1), transform .8s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion .rv.from-left { transform: translate3d(-36px, 0, 0); }
html.motion .rv.in { opacity: 1; transform: none; }
/* перший екран — одна плавна поява при завантаженні */
html.motion .hero .hero-copy > *, html.motion .hero .report, html.motion .hero .hero-art { animation: heroIn .9s cubic-bezier(.2, .75, .2, 1) both; }
html.motion .hero .hero-copy > :nth-child(2) { animation-delay: .08s; } html.motion .hero .hero-copy > :nth-child(3) { animation-delay: .16s; }
html.motion .hero .hero-copy > :nth-child(4) { animation-delay: .24s; } html.motion .hero .report, html.motion .hero .hero-art { animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* «живі» списки: крок загоряється, коли до нього доходить прокрутка */
html.motion :is(.layers, .steps) li { transition: border-color .5s, box-shadow .5s, background-color .5s; }
html.motion :is(.layers, .steps) .num { transition: transform .5s cubic-bezier(.2, .75, .2, 1), background .5s, color .5s, box-shadow .5s; }
html.motion :is(.layers, .steps) li.lit { border-color: color-mix(in srgb, var(--door) 45%, var(--line)); box-shadow: var(--shadow-lift), 0 18px 40px -24px var(--glow-door); }
html.motion :is(.layers, .steps) li.lit .num { transform: scale(1.12); background: var(--door); color: var(--on-door); box-shadow: 0 8px 22px -6px var(--glow-door); }
html.motion .layers { position: relative; }
html.motion .layers::before { content: ""; position: absolute; left: 47px; top: 24px; bottom: 24px; width: 2px; background: var(--line); z-index: -1; }
html.motion .layers::after { content: ""; position: absolute; left: 47px; top: 24px; bottom: 24px; width: 2px; z-index: -1; transform-origin: top; transform: scaleY(var(--p, 0));
  background: var(--door); }
@media (max-width: 900px) { html.motion .layers::before, html.motion .layers::after { left: 39px; } }

/* картки: м'який підйом при наведенні */
:is(.pains, .plans, .two) > .card, .layers li, .steps li { transition: transform .35s cubic-bezier(.2, .75, .2, 1), box-shadow .35s, border-color .35s; }
@media (hover: hover) { :is(.pains, .plans, .two) > .card:hover, .layers li:hover, .steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }
/* фінальна панель і темна смуга: градієнт зсувається з прокруткою */
html.motion .final-panel { background-position: calc(50% + var(--fp, 0) * 30%) 50%; background-size: 160% 160%; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  :is(.pains, .plans, .two) > .card, .layers li, .steps li { transition: none; }
  :is(.pains, .plans, .two) > .card:hover, .layers li:hover, .steps li:hover { transform: none; }
}


/* ───────── Приклад звіту (перший екран аудитів): вікно документа, смуга важливості, компактні знахідки ───────── */
.report { gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.rp-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font: 600 13px/1 var(--font-mono, ui-monospace, monospace); color: var(--ink-muted); }
.rp-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.rp-bar i:nth-child(1) { background: #ff6b5f; } .rp-bar i:nth-child(2) { background: #ffbd2e; } .rp-bar i:nth-child(3) { background: #28c840; }
.rp-bar span { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report .rp-top { padding: 16px 20px 0; }
.rp-meter { display: flex; gap: 3px; height: 10px; margin: 14px 20px 0; border-radius: 99px; overflow: hidden; }
.rp-meter span { flex: var(--n) 1 0; } .rp-meter .c { background: var(--sev-c, #b3261e); } .rp-meter .s { background: var(--sev-s, #a1490b); } .rp-meter .m { background: var(--sev-m, #1d4ed8); }
.report .rp-sum { padding: 12px 20px 4px; }
.report .rp-list { padding: 8px 20px 4px; gap: 10px; }
.report .rp-stack { padding: 4px 20px 18px; margin: 0; }
.rp-item.rp-open { border-color: color-mix(in srgb, var(--sev-c, #b3261e) 35%, var(--line)); box-shadow: var(--shadow-soft); }
.rp-item .rp-fix { background: color-mix(in srgb, var(--ok, #1d6b3a) 9%, transparent); border-radius: 10px; padding: 8px 10px; }

/* ───────── «Інспектор» стилю поруч із панеллю (/widget/): одна картка замість чотирьох ───────── */
.hero-art { gap: 0; }
.inspector { position: absolute; left: 0; top: 50%; translate: 0 -50%; z-index: 2; width: 232px; margin: 0; padding: 6px 0; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--shadow-lift); }
.inspector .ins-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 48px; }
.inspector .ins-row:first-child { border-top: 0; }
.inspector small { font: 700 11px/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.inspector .co-row { font-size: 15px; min-height: 0; }
.inspector .aa { font-size: 22px; width: 30px; }
.hero-art { justify-content: flex-end; }
.hero-art .panel-shot { flex: 0 1 320px; margin-left: 218px; }
@media (max-width: 1100px) and (min-width: 901px) { .hero-art .panel-shot { margin-left: 170px; } .inspector { width: 200px; } }
@media (max-width: 900px) { .hero-art { justify-content: center; } .hero-art .panel-shot { margin-left: 0; } .inspector { position: static; translate: none; width: 100%; max-width: 420px; order: 2; margin-top: 16px; } }

/* ───────── Галерея «It reads your design»: на широкому екрані сайти їдуть убік разом із прокруткою ───────── */
html.gallery-on .gallery-sec { height: calc(var(--gh, 300vh)); }
html.gallery-on .gallery-sec > .wrap { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; max-width: none; margin: 0; padding-inline: max(24px, (100vw - 1180px) / 2); }
html.gallery-on .gallery-sec > .wrap > :not(.shots) { margin-left: 0; }
html.gallery-on .shots.gallery { display: flex; gap: 40px; width: max-content; transform: translate3d(calc(var(--gx, 0) * -1px), 0, 0); will-change: transform; }
html.gallery-on .shots.gallery figure { flex: none; width: min(56vw, 820px); transform: scale(var(--fs, 1)); transition: none; }
html.gallery-on .shots.gallery img { opacity: var(--fo, 1); }   /* тьмяніє лише картинка — підпис лишається контрастним */
html.gallery-on .shots.gallery img { box-shadow: var(--shadow-lift); }
.gallery-dots { display: none; }
html.gallery-on .gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.gallery-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s, background .3s; }
.gallery-dots i.on { width: 26px; background: var(--door); }

/* ───────── Pro: вибір кількості сайтів і ціна звичайним текстом ───────── */
.pro-pick { display: grid; gap: 8px; }
.pro-pick label { font-weight: 700; font-size: 15px; }
.pro-pick select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; }
.pro-pick .pro-prices { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.pro-prices li { padding: 2px 0; }
html.js .pro-prices li:not(.on) { display: none; }

/* ───────── Перемикач теми і футер ───────── */
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.theme-btn:hover { border-color: var(--door); color: var(--door); background: var(--tint); }
.theme-btn svg { width: 20px; height: 20px; } .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; } :root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.foot { padding-block: 56px 28px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .logo img { height: 24px; width: auto; display: block; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-h { margin: 0 0 4px; font: 700 12px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.foot-col a { color: var(--ink); text-decoration: none; width: fit-content; }
.foot-col a:hover { color: var(--door); text-decoration: underline; }
.theme-pick { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); width: fit-content; }
.theme-pick label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-muted); }
.theme-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-pick label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.theme-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }
.foot-bottom .foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-bottom .foot-langs { border: 0; padding: 0; margin: 0; width: auto; }
@media (max-width: 560px) { .top .theme-btn { display: none; } }   /* на телефоні — перемикач теми у футері */

/* гайди й порівняння (/guides/…) — колонка тексту для читання */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 112px); }
.doc-wrap { max-width: 800px; }
.doc section { padding-block: 0; margin-top: 48px; }
.doc section.card { padding: clamp(24px, 3vw, 36px); }   /* картка-секція: відступи картки, а не «без відступів» секції */
.card > p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 10px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.doc p, .doc li { font-size: 18px; line-height: 1.7; }
.doc section p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 14px 0 0; display: grid; gap: 8px; }
.doc sup { font-size: .68em; line-height: 0; margin-left: 1px; }
.doc sup a { text-decoration: none; padding: 0 2px; }
.doc sup a:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; margin-bottom: 28px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.byline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: var(--ink-muted); font-size: 15px; }
.answer { margin-top: 32px; padding: 24px 28px; border-radius: 20px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--door) 22%, var(--line)); box-shadow: var(--shadow-soft); }
.answer-h { font: 700 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--door); margin-bottom: 12px !important; }
.answer p:last-child { font-size: 19px; }
.toc { margin-top: 36px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc-h { font: 700 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.toc ol { gap: 6px; }
.toc li { font-size: 16px; line-height: 1.5; }
.table-cap { margin-top: 32px !important; font-weight: 700; font-size: 17px !important; }
.table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 1.5; }
.table-wrap table.wide { min-width: 860px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 18px; border-top: 1px solid var(--line); }
.table-wrap thead th { background: var(--tint); font-size: 14px; }
.doc #faq details { border-bottom: 1px solid var(--line); padding: 0; }
.doc #faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; }
.doc #faq details p { padding-bottom: 16px; }
.doc #faq details p { margin-top: 10px; }
.doc-cta { margin-top: 56px; }
.doc-cta h2 { margin: 0; }
.doc-cta .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sources li { font-size: 15px; line-height: 1.5; word-break: break-word; }
.doc .note { font-size: 15px; margin-top: 18px; }
.related { margin-top: 48px; }
.related ul { list-style: none; padding: 0; }
.related a { font-weight: 600; }
.hub .lead { margin-top: 18px; }
.hub-h { margin-top: 56px; }
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; margin-top: 20px !important; }
.guide-list a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: border-color .15s, transform .15s, box-shadow .15s; }
.guide-list a:hover { border-color: var(--door); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.guide-list b { font-family: var(--font-display); font-size: 20px; line-height: 1.3; }
.guide-list span { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .guide-list a { transition: none; } .guide-list a:hover { transform: none; } }
@media (max-width: 560px) { .doc p, .doc li { font-size: 17px; } .answer { padding: 20px; } }

/* /widget/ — перший екран: приклад сторінки й чотири перемикачі, як у панелі. Після завантаження вмикаються по черзі один раз (≈3 с),
   далі людина клацає сама; сам по колу нічого не рухається (WCAG 2.2.2). Без руху — усе ввімкнено одразу. */
.compare { margin: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.cmp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.cmp-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.cmp-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.cmp-tgl { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.cmp-tgl button { font: 600 14px/1 var(--font-text); min-height: 36px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s, border-color .25s; }
.cmp-tgl button::before { content: ""; width: 26px; height: 16px; border-radius: 99px; background: var(--line); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .25s;
  background-image: radial-gradient(circle at 8px 50%, #fff 5px, transparent 5.5px); transition: background-position .25s, background-color .25s; }
.cmp-tgl button[aria-pressed="true"] { border-color: var(--door); background: var(--tint); color: var(--door); }
.cmp-tgl button[aria-pressed="true"]::before { background-color: var(--door); box-shadow: none; background-image: radial-gradient(circle at 18px 50%, #fff 5px, transparent 5.5px); }
.cmp-stage { margin: 14px 16px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.cmp-page { padding: 22px 24px 26px; display: grid; align-content: start; gap: 10px; min-height: 420px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #9a9aa3; --t: .25s; }
.cmp-page * { transition: font-size var(--t), line-height var(--t), letter-spacing var(--t), word-spacing var(--t), color var(--t), background-color var(--t), border-color var(--t), padding var(--t), text-decoration-color var(--t); }
.cmp-nav { display: flex; gap: 10px; margin-bottom: 8px; } .cmp-nav i { height: 8px; width: 54px; border-radius: 4px; background: #e6e6ea; } .cmp-nav i:first-child { width: 32px; background: #c9cad3; }
.cmp-h { font: 300 20px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #7b7b85; }
.cmp-p { font-size: 13px; line-height: 1.4; }
.cmp-link span { font-size: 13px; color: #9db3ea; text-decoration: underline 2px transparent; text-underline-offset: 4px; }
.cmp-label { font-size: 12px; color: #b4b4bb; }
.cmp-input { height: 36px; border: 1px solid #e3e3e8; border-radius: 6px; }
.cmp-btn { justify-self: start; margin-top: 6px; font-size: 12px; padding: 7px 13px; border-radius: 6px; background: #c7d3f5; color: #fff; }
.compare.s-text .cmp-h { font-size: 26px; } .compare.s-text .cmp-p, .compare.s-text .cmp-link span { font-size: 17px; } .compare.s-text .cmp-label { font-size: 15px; } .compare.s-text .cmp-btn { font-size: 16px; padding: 11px 18px; }
.compare.s-space .cmp-page { gap: 16px; } .compare.s-space .cmp-p { line-height: 1.8; letter-spacing: .03em; word-spacing: .1em; }
.compare.s-contrast .cmp-page { color: #1b1c2b; } .compare.s-contrast .cmp-h { color: #0b0c1a; font-weight: 700; } .compare.s-contrast .cmp-label { color: #14162b; font-weight: 700; }
.compare.s-contrast .cmp-input { border: 2px solid #14162b; } .compare.s-contrast .cmp-btn { background: #1739a8; font-weight: 700; } .compare.s-contrast .cmp-link span { color: #1739a8; }
.compare.s-links .cmp-link span { text-decoration-color: currentColor; font-weight: 700; }
.cmp-cap { padding: 0 18px 16px; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 560px) { .cmp-page { padding: 16px; min-height: 340px; } .compare.s-text .cmp-h { font-size: 22px; } .compare.s-text .cmp-p, .compare.s-text .cmp-link span { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .cmp-page *, .cmp-tgl button, .cmp-tgl button::before { transition: none; } }
html.a11y-still .cmp-page *, html.a11y-still .cmp-tgl button { transition: none; }

/* головна — картка звіту «збирається» один раз: шкала росте, числа рахуються, сканувальна лінія проходить згори вниз, хибну тривогу закреслює */
html.motion .hero .report { position: relative; }
html.motion .hero .rp-meter span { transform-origin: left; animation: meterIn .9s cubic-bezier(.2, .75, .2, 1) both; }
html.motion .hero .rp-meter .s { animation-delay: .5s; } html.motion .hero .rp-meter .m { animation-delay: .65s; } html.motion .hero .rp-meter .c { animation-delay: .35s; }
@keyframes meterIn { from { transform: scaleX(0); } to { transform: none; } }
html.motion .hero .report::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--door) 12%, transparent) 70%, color-mix(in srgb, var(--door) 55%, transparent) 98%, transparent);
  animation: scanDown 1.8s cubic-bezier(.45, 0, .25, 1) .3s both; }
@keyframes scanDown { from { translate: 0 -90px; opacity: 1; } 85% { opacity: 1; } to { translate: 0 var(--rh, 600px); opacity: 0; } }
html.motion .hero .rp-item { animation: heroIn .7s cubic-bezier(.2, .75, .2, 1) both; }
html.motion .hero .rp-item:nth-child(1) { animation-delay: .7s; } html.motion .hero .rp-item:nth-child(2) { animation-delay: .9s; } html.motion .hero .rp-item:nth-child(3) { animation-delay: 1.1s; }
html.motion .hero .rp-removed .rp-t { display: inline; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.5px no-repeat; animation: strike .6s ease-out 1.8s forwards; }
@keyframes strike { to { background-size: 100% 1.5px; } }

/* /about/ */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; }
.about .lead { margin-top: 18px; }
.person { margin: 0; display: grid; gap: 12px; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.person figcaption { display: grid; gap: 2px; font-size: 15px; } .person figcaption span { color: var(--ink-muted); }
.exp { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; border-top: 1px solid var(--line); margin-top: 18px !important; }
.exp li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px !important; }
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 18px; }
.principles .card { gap: 8px; padding: 22px; } .principles .card p { font-size: 16px; line-height: 1.6; }
.about .contact .btn { margin-top: 8px; }
.foot-bottom a { color: inherit; }
@media (max-width: 640px) { .about-head { grid-template-columns: minmax(0, 1fr); } .person { max-width: 200px; } }

/* /agencies/ */
.agencies .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ag-steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px !important; }
.ag-steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ag-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--door); color: var(--on-door); font: 800 15px/1 var(--font-display); }
.agencies .principles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hint-line { margin-top: 12px !important; color: var(--ink-muted); font-size: 16px; }

/* підписка на аудит під пакетами */
.sub-row { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 36px; align-items: start; }
.sub-row h3 { margin-bottom: 8px; } .sub-row ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sub-row > p:last-child { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .sub-row { grid-template-columns: minmax(0, 1fr); } }

/* безкоштовні інструменти: форма з адресою */
.tool-form { margin: clamp(20px, 3vw, 32px) 0; padding: clamp(18px, 2.5vw, 28px); }
.tool-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-row input, .tool-form > input { flex: 1 1 260px; min-height: 48px; padding: 0 14px; font: inherit; border: 1px solid var(--line-strong, #8b8ea0); border-radius: 12px; background: var(--surface, #fff); color: var(--ink, inherit); }
.tool-form > input { display: block; width: 100%; box-sizing: border-box; margin-bottom: 18px; }
.tool-row .btn { min-height: 48px; white-space: nowrap; }
.tool-more { margin-top: 48px; }
.tool-more ul { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }
.h3 { font-size: 1.15rem; }

/* «More by the maker» — інші продукти автора (доручення власника 30.11): назва — підкреслене посилання, опис — звичайним текстом */
.foot-more { display: grid; gap: 10px; margin-top: 36px; }
.foot-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-more li { color: var(--ink-muted); font-size: 14px; }
.foot-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot-more a:hover { color: var(--door); }

/* Enterprise просто на сайті (власник 30.11): форма розгортається в рядку Enterprise, без входу; надсилає в кабінет app.doorwide.org/enterprise */
.ent-req { flex-basis: auto; }
.ent-req[open] { flex-basis: 100%; }
.ent-req > summary { min-height: 44px; }
.ent-form { display: grid; gap: 4px; margin-top: 18px; max-width: 820px; }
.ent-form label { display: block; font-weight: 700; margin: 12px 0 6px; }
.ent-form input[type=text], .ent-form input[type=email], .ent-form select, .ent-form textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; font: inherit; border: 1px solid var(--line-strong, #8b8ea0); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ent-form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.ent-form fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 16px 0 0; padding: 8px 16px 12px; }
.ent-form legend { font-weight: 700; padding: 0 6px; }
.ent-form label.chk { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 8px 0; }
.ent-form label.chk input { width: 20px; height: 20px; }
.ent-form .hint { color: var(--ink-muted); font-size: 14px; margin: 12px 0 4px; }
.ent-form .btn { justify-self: start; margin-top: 4px; }
.ent-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ціна плану: «a month · … a year» — окремим рядком під сумою, не рветься посередині (власник 30.11: «тут біда») */
.plans.four .price small { display: block; margin: 6px 0 0; line-height: 1.3; white-space: normal; }
/* інструменти: кнопка під час перевірки і повідомлення під формою */
.tool-form .btn.is-busy { opacity: .8; cursor: progress; display: inline-flex; align-items: center; gap: 10px; }
.tool-form .btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dw-spin .8s linear infinite; }
@keyframes dw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-form .btn.is-busy::before { animation: none; border-right-color: currentColor; opacity: .5; } }
.tool-wait { margin: 12px 0 0; color: var(--ink-muted); }
/* перевірка контрасту двох кольорів */
.cc { display: grid; gap: 18px; margin: clamp(20px, 3vw, 32px) 0; }
.cc-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.cc-in label { display: block; font-weight: 700; margin-bottom: 8px; }
.cc-row { display: flex; gap: 8px; }
.cc-row input[type=color] { width: 52px; min-height: 48px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; }
.cc-row input[type=text] { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 500 16px/1 ui-monospace, monospace; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); }
.cc-row input[aria-invalid=true] { border-color: var(--sev-c, #c0392b); }
.cc-swap { min-height: 48px; }
.cc-prev { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); }
.cc-prev .cc-s { margin: 0 0 8px; font-size: 16px; }
.cc-prev .cc-l { margin: 0; font-size: 24px; font-weight: 700; }
.cc-ratio { margin: 0; font-size: 18px; } .cc-ratio b { font: 800 34px/1.1 var(--font-display); margin-left: 6px; }
.doc .cc-res, .cc-res { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cc-res li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); }
.cc-res li.ok b { color: var(--ok); } .cc-res li.bad b { color: var(--sev-c, #c0392b); }
.cc-fix .cc-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.cc-chip { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); display: inline-block; }
@media (max-width: 560px) { .cc-in { grid-template-columns: 1fr; } .cc-swap { justify-self: start; } }
