/* ==========================================================================
   Site styles. Family A, "Light & clean" (STYLE-GUIDE.md §3).
   Only the tokens in :root change between sites.
   ========================================================================== */

:root {
  /* Indigo preset (STYLE-GUIDE.md §3) */
  --bg: #ffffff;
  --surface: #f5f5fc;
  --ink: #16163a;
  --muted: #575874;
  --line: #e1e1f0;
  --accent: #4338ca;
  --accent-ink: #3730a3;
  --accent-soft: #e3e2fa;
  --on-accent: #ffffff;
  --ok: #1f7a4d;
  --ok-soft: #dcf2e6;
  --warn: #9a5b00;
  --warn-soft: #fbeccf;

  --font-head: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-pill: 999px;
  --r-input: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-phone: 38px;

  --shadow-1: 0 10px 30px rgb(22 22 58 / 0.06);
  --shadow-2: 0 28px 60px rgb(22 22 58 / 0.14);

  --container: 1200px;
  --gutter: 24px;
  --section: 96px;

  --step-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --step-h3: 1.1875rem;
  --step-lead: 1.15rem;
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--step-h2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-h3); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-input); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: calc(var(--section) * 0.66); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: var(--step-lead); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink);
  margin-bottom: 14px;
}
.lead { font-size: var(--step-lead); color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.note { font-size: 0.8125rem; color: var(--muted); }
.note--center { text-align: center; margin-top: 20px; }

/* ---------- Buttons, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--r-pill);
  font: 600 0.9375rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; box-shadow: 0 0 0 2px var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.375rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a { display: block; padding: 8px 12px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.menu-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu ul { list-style: none; padding-block: 8px 16px; }
.mobile-menu li a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu li a[aria-current="page"] { color: var(--accent-ink); }
.mobile-menu .btn { margin-bottom: 20px; }
@media (max-width: 1023px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding-block: 72px var(--section); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 20px; }
.hero__trust { margin-top: 22px; font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__trust span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Page heads (inner pages) */
.page-head { padding-block: 64px 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 16px; }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; list-style: none; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.section--surface .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }

.step { position: relative; }
.step__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font: 700 0.9375rem/1 var(--font-head); margin-bottom: 18px;
}

/* Split: text + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 + p, .split .lead { margin-top: 16px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
}

.checklist { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233730a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); }

/* ---------- Phone mockup ---------- */
.phone {
  width: 290px; flex: none; border-radius: var(--r-phone); padding: 9px;
  background: var(--ink); box-shadow: var(--shadow-2);
}
.phone__screen {
  border-radius: calc(var(--r-phone) - 8px); background: var(--bg); overflow: hidden;
  height: 590px; display: flex; flex-direction: column; font-size: 0.75rem; line-height: 1.4; color: var(--ink);
}
.phone__status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-weight: 600; font-size: 0.6875rem; }
.phone__body { flex: 1; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone__title { font: 700 1rem/1.25 var(--font-head); }
.phone__sub { color: var(--muted); font-size: 0.6875rem; }
.phone__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 8px 6px 14px; text-align: center; font-size: 0.625rem; color: var(--muted); font-weight: 600; }
.phone__tabs .is-on { color: var(--accent-ink); }
.app-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.app-card--soft { background: var(--surface); border-color: transparent; }
.app-card--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-row + .app-row { margin-top: 8px; }
.app-label { font-weight: 600; }
.app-meta { color: var(--muted); font-size: 0.6875rem; }
.app-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.app-bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.app-btn { display: block; text-align: center; background: var(--accent); color: var(--on-accent); border-radius: var(--r-pill); padding: 9px; font-weight: 600; }
.app-btn--ghost { background: var(--accent-soft); color: var(--accent-ink); }
.app-big { font: 800 2rem/1 var(--font-head); }

.screens { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; scrollbar-width: thin; }
.screens figure { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.screens figcaption { text-align: center; max-width: 260px; }
.screens figcaption strong { display: block; font-family: var(--font-head); }
.screens figcaption span { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 1240px) { .screens { justify-content: center; overflow: visible; } .screens .phone { width: 228px; } .screens .phone__screen { height: 470px; } }

/* ---------- Dashboard mockup ---------- */
.dash { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); box-shadow: var(--shadow-2); overflow: hidden; font-size: 0.8125rem; }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash__url { flex: 1; max-width: 340px; margin-inline: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.dash__body { display: grid; grid-template-columns: 170px 1fr; min-height: 420px; }
.dash__side { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.dash__side b { font-family: var(--font-head); padding: 0 8px 12px; }
.dash__side span { padding: 7px 8px; border-radius: 8px; color: var(--muted); }
.dash__side .is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.dash__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash__stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dash__stat b { display: block; font: 800 1.375rem/1.1 var(--font-head); margin-top: 2px; }
.dash__stat span { color: var(--muted); font-size: 0.75rem; }
.dash table { width: 100%; border-collapse: collapse; }
.dash th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.dash td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 860px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__stats { grid-template-columns: repeat(2, 1fr); }
  .dash__cols { grid-template-columns: 1fr; }
  .dash__table { overflow-x: auto; }
}

/* ---------- Responsible table ---------- */
.promise { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.promise th, .promise td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.promise tr:last-child th, .promise tr:last-child td { border-bottom: 0; }
.promise th { font-weight: 500; }
.promise td { text-align: right; font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.promise .is-never { color: #b42318; }
.promise .is-always { color: var(--ok); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 600 1.0625rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 44px 22px 0; color: var(--muted); }
.faq details > div > * + * { margin-top: 0.8em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 64px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.78); margin-top: 8px; }
@media (max-width: 760px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.875rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input);
  font: inherit; color: var(--ink); background: var(--bg);
}
textarea.input { min-height: 132px; resize: vertical; }
select.input { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575874' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: #b42318; }
.field__error { color: #b42318; font-size: 0.8125rem; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.875rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--r-input); font-weight: 500; }
.form-status--ok { background: var(--ok-soft); color: var(--ok); }
.form-status--err { background: #fde8e7; color: #b42318; }
.panel { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 32px; background: var(--bg); }
@media (max-width: 640px) { .panel { padding: 22px; } }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.inbox { padding: 18px 0; border-bottom: 1px solid var(--line); }
.inbox:first-child { padding-top: 0; }
.inbox h2 { font-size: 1rem; }
.inbox p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.inbox a { font-weight: 600; word-break: break-all; }

/* ---------- Guides ---------- */
.guide-list { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.guide-card:hover h3 { color: var(--accent-ink); }
.guide-card .link-arrow { margin-top: auto; color: var(--accent-ink); }
.article { padding-block: 56px var(--section); }
.article__meta { font-size: 0.875rem; color: var(--muted); margin-top: 16px; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 18px 20px; }
.callout--warn { border-color: var(--warn); background: var(--warn-soft); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 0.9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__about p { color: var(--muted); margin-top: 14px; max-width: 36ch; }
.site-footer__emails { display: grid; gap: 4px; }
.site-footer__emails a { font-weight: 600; overflow-wrap: anywhere; }
.footer__title { font: 600 0.8125rem/1.4 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer__disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; max-width: 90ch; }
.site-footer__legal { margin-top: 10px; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Photos (stock photos are max ~960 px wide: use them in splits and cards, not edge-to-edge) ---------- */
.photo { margin: 0; }
.photo__frame { border-radius: var(--r-panel); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide .photo__frame { aspect-ratio: 16 / 10; }
.photo--tall .photo__frame { aspect-ratio: 4 / 5; }
.photo--square .photo__frame { aspect-ratio: 1; }
.photo figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }
.hero-photo { position: relative; max-width: 560px; justify-self: end; width: 100%; }
.hero-photo .photo__frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); }
.hero-photo__card {
  position: absolute; left: -32px; bottom: 32px; width: min(300px, 80%);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 16px;
}
@media (max-width: 960px) { .hero-photo { justify-self: center; } }
@media (max-width: 560px) {
  .hero-photo__card { position: static; width: 100%; margin-top: 12px; }
}
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--photo .card__body { padding: 20px 22px 24px; }
.article__photo { margin-top: 8px; }
.article__photo .photo__frame { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Nidrao only: centred hero on a photo stage, night timeline card,
   phone-screen extras, trend bars and the clinic detail panel
   ========================================================================== */
.n-hero { padding-block: 64px var(--section); text-align: center; overflow: hidden; }
.n-hero .eyebrow { justify-content: center; }
.n-hero h1 { max-width: 17ch; margin-inline: auto; }
.n-hero .lead { margin: 20px auto 0; }
.n-hero .actions { justify-content: center; }
.n-hero .hero__trust { justify-content: center; }

.n-stage { position: relative; max-width: 980px; margin: 56px auto 0; padding-bottom: 150px; }
.n-stage .photo__frame { position: relative; aspect-ratio: 16 / 8; box-shadow: var(--shadow-1); }
.n-stage .photo__frame::after { content: ""; position: absolute; inset: 0; background: rgb(22 22 58 / 0.18); pointer-events: none; }
.n-stage .night { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(780px, calc(100% - 64px)); text-align: left; }
@media (max-width: 760px) {
  .n-stage { padding-bottom: 0; margin-top: 40px; }
  .n-stage .photo__frame { aspect-ratio: 4 / 3; }
  .n-stage .night { position: relative; left: auto; transform: none; width: auto; margin: -56px 10px 0; }
}

/* Night timeline card */
.night { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-2); padding: 20px 22px 18px; }
.night__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.night__head b { display: block; font: 700 1.0625rem/1.3 var(--font-head); }
.night__head small { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.night__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.night__stat { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.night__stat span { display: block; font-size: 0.75rem; color: var(--muted); }
.night__stat b { font: 800 1.25rem/1.25 var(--font-head); }
.night__stat em { font-style: normal; font-size: 0.75rem; color: var(--warn); font-weight: 600; }
.night__plot { position: relative; margin-top: 40px; }
.night__plot svg { width: 100%; height: auto; }
.night__pin {
  position: absolute; top: -30px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 4px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn);
  font-size: 0.6875rem; font-weight: 600; white-space: nowrap;
}
.night__pin b { width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; font-size: 0.625rem; }
.night__hours { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.night__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.night__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.night__note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8125rem; }
.wave-q { stroke: #cfcdf0; }
.wave-m { stroke: #8d87e4; }
.wave-l { stroke: var(--accent); }
.wave-base { stroke: var(--line); }
.wave-band { fill: var(--warn-soft); }
.wave-pause { stroke: var(--warn); stroke-dasharray: 3 4; }
@media (max-width: 560px) {
  .night { padding: 16px 14px 14px; }
  .night__stats { grid-template-columns: 1fr 1fr; }
  .night__stats > :last-child { grid-column: 1 / -1; }
  .night__pin { padding: 2px; }
  .night__pin span { display: none; }
  .night__hours span:nth-child(even) { visibility: hidden; }
}

/* Phone-screen extras */
.mini-wave svg { width: 100%; height: auto; }
.listen { display: grid; place-items: center; gap: 10px; padding: 14px 0 6px; text-align: center; }
.listen__ring {
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--line);
}
.listen__ring svg { width: 52px; height: 52px; }
.taps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 8px; }
.taps span { border: 1px solid var(--line); border-radius: 10px; padding: 7px 0; text-align: center; font-weight: 600; }
.taps .is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.yn { display: flex; gap: 6px; }
.yn span { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 9px; font-size: 0.6875rem; font-weight: 600; }
.yn .is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* Trend bars (diary, features, clinic panel) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: #8d87e4; }
.bars i.is-loud { background: var(--accent); }
.bars i.is-quiet { background: #cfcdf0; }
.bars--lg { height: 150px; gap: 8px; margin-top: 18px; }
.bars--lg i { border-radius: 6px 6px 0 0; }
.bars-axis { display: flex; justify-content: space-between; font-size: 0.6875rem; color: var(--muted); margin-top: 4px; }

/* Dashboard detail panel */
.dash__detail { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dash__detail b { font-family: var(--font-head); }
.dash__detail p { color: var(--muted); font-size: 0.75rem; }

/* Photo captions and guide cards */
.card--photo .tag { align-self: flex-start; }
.guide-card.card--photo { gap: 0; }
.guide-card.card--photo .card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article__photo { margin-bottom: 28px; }
.split .photo--wide { width: 100%; }
.card--photo img { height: auto; }
.yn { flex: none; gap: 4px; }
.yn span { padding: 1px 7px; font-size: 0.625rem; }
.screens .listen__ring { width: 92px; height: 92px; }
.screens .listen__ring svg { width: 42px; height: 42px; }
.guide-card .tag { align-self: flex-start; }
.screens .listen { padding: 6px 0 0; gap: 6px; }
