/* =========================================================
   TRUE VOICE — STANDALONE PAGES SHELL
   Shared by offer.html, privacy.html, success.html, fail.html.
   One header lockup, one type scale, one footer — so the legal
   and post-payment pages cannot drift from the landing.
   ========================================================= */

html, body { background: #060607; }
body { margin: 0; }

/* ── header: same lockup as the landing nav ─────────────── */
.pg-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 40px);
  background: rgba(6,6,7,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246,244,240,0.08);
}
.pg-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.pg-logo img { display: block; width: 24px; height: 24px; }
.pg-logo .name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg);
}
.pg-logo .sub {
  font-family: var(--font-body);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-faint);
}
@media (max-width: 400px) {
  .pg-logo .sub { letter-spacing: 0.12em; font-size: 8px; }
}
.pg-nav-cta {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  padding: 10px 14px; min-height: 40px;
  display: inline-flex; align-items: center;
  background: var(--tv-accent);
  box-shadow: 0 0 24px var(--tv-accent-glow);
  white-space: nowrap;
}

/* ── page body ──────────────────────────────────────────── */
.pg-wrap {
  max-width: 78ch;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 40px) clamp(72px, 9vw, 110px);
}
.pg-wrap--narrow { max-width: 62ch; }

.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--tv-accent);
}
.pg-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tv-accent);
  box-shadow: 0 0 12px rgba(230,0,18,0.8);
}

h1.pg-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 16px 0 12px;
  overflow-wrap: break-word;
}
.pg-sub {
  font-family: var(--font-body);
  font-size: 15.5px; line-height: 1.62;
  color: var(--fg-muted);
  max-width: 58ch;
  margin: 0 0 10px;
}
.pg-meta {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-faint);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(246,244,240,0.12);
  margin-bottom: 38px;
}

h2.pg-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.22;
  color: var(--fg);
  margin: 44px 0 14px;
  scroll-margin-top: 84px;      /* sticky header clearance for anchors */
  overflow-wrap: break-word;
}
h2.pg-h2 .n { color: var(--tv-accent); margin-right: 10px; font-size: 0.78em; }

.pg-wrap p, .pg-wrap li {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.72;
  color: var(--fg-muted);
}
.pg-wrap p { margin: 0 0 13px; }
.pg-wrap ul { margin: 0 0 13px; padding-left: 20px; }
.pg-wrap li { margin-bottom: 7px; }
.pg-wrap strong { color: var(--fg); font-weight: 600; }
.pg-wrap a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: break-word; }
.pg-wrap a:hover { color: var(--tv-accent); }

/* ── shared blocks ──────────────────────────────────────── */
.pg-callout {
  border: 1px solid rgba(246,244,240,0.15);
  border-left: 2px solid var(--tv-accent);
  background: rgba(12,12,14,0.6);
  padding: 20px 22px;
  margin: 22px 0 26px;
}
.pg-callout p:last-child { margin-bottom: 0; }

.pg-req {
  border: 1px solid rgba(246,244,240,0.15);
  background: rgba(12,12,14,0.6);
  padding: 22px 24px;
  margin-top: 22px;
}
.pg-req dl { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 9px 18px; }
.pg-req dt {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint);
  padding-top: 3px;
}
.pg-req dd { margin: 0; font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--fg); overflow-wrap: break-word; }
@media (max-width: 560px) {
  .pg-req dl { grid-template-columns: 1fr; gap: 3px; }
  .pg-req dd { margin-bottom: 12px; }
}

.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  background: var(--tv-accent);
  border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 0 28px rgba(230,0,18,0.22);
  transition: box-shadow 320ms ease, transform 200ms ease;
}
.pg-btn:hover { box-shadow: inset 0 0 0 1px rgba(230,0,18,0.7), 0 0 30px rgba(230,0,18,0.3); }
.pg-btn:active { transform: translateY(1px); }
.pg-btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(246,244,240,0.22);
  color: var(--fg-muted);
}
.pg-btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(246,244,240,0.45); color: var(--fg); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 560px) {
  .pg-actions { flex-direction: column; }
  .pg-btn { width: 100%; }
}

/* ── footer ─────────────────────────────────────────────── */
.pg-foot {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(246,244,240,0.12);
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  font-family: var(--font-body); font-size: 11.5px;
  color: var(--fg-faint);
}
.pg-foot a { color: var(--fg-muted); text-decoration: none; }
.pg-foot a:hover { color: var(--fg); }

:focus-visible { outline: 1px solid var(--tv-accent); outline-offset: 3px; }

/* ══════════════════════════════════════════════════════════════════════════
   Admin and cabinet — spec 002.
   Same ground, same signal, same typographic manner as the rest of the site;
   these are the only pages a person sees after they have paid, so they must
   not feel like a different product.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── signing in ───────────────────────────────────────────────────────── */
.pg-auth {
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
}
.pg-auth form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

.pg-input, .pg-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(246, 244, 240, 0.04);
  border: 1px solid rgba(246, 244, 240, 0.14);
  border-radius: 2px;
  padding: 14px 15px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease;
}
.pg-input:focus, .pg-textarea:focus {
  outline: none;
  border-color: rgba(230, 0, 18, 0.65);
  background: rgba(246, 244, 240, 0.06);
}
.pg-textarea { resize: vertical; min-height: 92px; }
.pg-input[type="number"] { max-width: 180px; }

/* ── messages ─────────────────────────────────────────────────────────── */
.pg-note {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.pg-note--bad { color: #FF6B6B; }
.pg-note--good { color: var(--tv-gold); }

/* ── the editor ───────────────────────────────────────────────────────── */
.pg-group { margin-top: 42px; }
.pg-group:first-of-type { margin-top: 28px; }
.pg-group > h2 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tv-accent);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 244, 240, 0.1);
}

.pg-field { padding: 20px 0; border-bottom: 1px solid rgba(246, 244, 240, 0.06); }
.pg-field > label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.pg-field .hint {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.pg-field.is-changed > label::after {
  content: '• змінено';
  margin-left: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--tv-gold);
}
.pg-field.is-locked .pg-input { opacity: 0.55; cursor: not-allowed; }
.pg-field .locked-why {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tv-gold);
}

/* stays in reach on a phone, where the save button would otherwise be a
   scroll away from whatever was just typed */
.pg-savebar {
  position: sticky;
  bottom: 0;
  margin-top: 34px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(6, 6, 7, 0) 0%, #060607 38%);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pg-savebar .pg-note { margin-top: 0; }

/* ── the cabinet ──────────────────────────────────────────────────────── */
.pg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tv-gold);
}

.pg-days { list-style: none; margin: 26px 0 0; padding: 0; }
.pg-day {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid rgba(246, 244, 240, 0.08);
}
.pg-day:last-child { border-bottom: 1px solid rgba(246, 244, 240, 0.08); }
.pg-day .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tv-accent);
  padding-top: 2px;
}
.pg-day h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}
.pg-day p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.pg-day.is-done .num { color: var(--tv-gold); }
.pg-day.is-done h3 { color: var(--fg-muted); }

/* a tick, not a trophy: this marks where you stopped, nothing more */
.pg-tick {
  appearance: none;
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin: 0;
  border: 1px solid rgba(246, 244, 240, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.pg-tick:hover { border-color: rgba(201, 162, 39, 0.6); }
.pg-tick:checked { border-color: var(--tv-gold); background: rgba(201, 162, 39, 0.16); }
.pg-tick:checked::after {
  content: '';
  position: absolute;
  left: 8px; top: 4px;
  width: 6px; height: 11px;
  border: solid var(--tv-gold);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.pg-bonuses { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pg-bonus {
  padding: 16px 18px;
  border: 1px solid rgba(246, 244, 240, 0.1);
  border-radius: 3px;
  background: rgba(246, 244, 240, 0.02);
}
.pg-bonus h3 {
  margin: 0 0 5px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.pg-bonus p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); }

.pg-empty {
  padding: 30px 22px;
  border: 1px dashed rgba(246, 244, 240, 0.16);
  border-radius: 3px;
  text-align: center;
}

@media (max-width: 560px) {
  .pg-day { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .pg-day h3 { font-size: 16.5px; }
  .pg-input, .pg-textarea { font-size: 16px; } /* 16px stops iOS zooming on focus */
}

/* The hidden attribute loses to any rule that sets display — and .pg-nav-cta
   sets inline-flex, so a signed-out visitor was shown a "sign out" button.
   This makes the attribute mean what it says, everywhere on these pages. */
[hidden] { display: none !important; }

/* A disabled button that looks exactly like an enabled one is a lie: you press
   it, nothing happens, and you cannot tell whether the page is broken. */
.pg-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.pg-btn[disabled]:hover { box-shadow: none; }

/* ══════════════════════════════════════════════════════════════════════════
   THE LANDING'S DEPTH (spec 003, FR-5)
   tv-ambient.js puts the landing's stars, drift and string behind the
   cabinet, the admin and the payment pages. Content floats above it on
   translucent, blurred panels — dark enough that text keeps 4.5:1 over
   the brightest star or blob (NFR-1).
   ══════════════════════════════════════════════════════════════════════════ */
.tv-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.tv-ambient-stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
}
.tv-ambient .tv-drift-blob { opacity: 0.32; }
.tv-ambient--still .tv-drift-blob { animation: none; }

/* the red horizon the landing's hero sits on */
body.has-ambient::before {
  content: '';
  position: fixed; left: 50%; top: -30vh;
  width: 140vmax; height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 16, 46, 0.18), transparent 72%);
  pointer-events: none; z-index: 0;
}

body.has-ambient .pg-nav,
body.has-ambient .pg-wrap,
body.has-ambient .pg-foot { position: relative; z-index: 2; }
body.has-ambient .pg-nav { position: sticky; z-index: 20; }

/* panels: the cards the content sits on */
body.has-ambient .pg-auth,
body.has-ambient .pg-days,
body.has-ambient .pg-bonus,
body.has-ambient .pg-callout,
body.has-ambient .pg-empty,
body.has-ambient .upsell-card {
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(246, 244, 240, 0.10);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(246, 244, 240, 0.05);
}
body.has-ambient .pg-auth { padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 36px); }
body.has-ambient .pg-days { padding: 0 clamp(16px, 3vw, 24px); }
body.has-ambient .pg-days .pg-day:first-child { border-top: 0; }
body.has-ambient .pg-days .pg-day:last-child { border-bottom: 0; }
body.has-ambient .pg-callout { border-left: 2px solid var(--tv-accent); }

/* the admin keeps its layout (FR-6): one panel around the form, nothing moved */
body.has-ambient #editor,
body.has-ambient .pg-savebar {
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* keyboard users see where they are (NFR-4) */
body.has-ambient a:focus-visible,
body.has-ambient button:focus-visible,
body.has-ambient input:focus-visible,
body.has-ambient textarea:focus-visible {
  outline: 2px solid var(--tv-accent);
  outline-offset: 3px;
}

/* the landing's headline manner: condensed, uppercase, heavy */
.pg-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 14px 0 14px;
  overflow-wrap: break-word;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85);
}

/* the string wall: a band at the top of the page, scrolling away with it */
.tv-ambient-wall {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: 78vh;
  z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  opacity: 0.55;
}
body.has-ambient { position: relative; }

/* a dark halo around every glyph that may sit over a string (NFR-1) */
body.has-ambient .pg-wrap p,
body.has-ambient .pg-wrap li,
body.has-ambient .pg-wrap h2,
body.has-ambient .pg-wrap .pg-eyebrow {
  text-shadow: 0 0 4px #060607, 0 0 10px #060607, 0 0 18px rgba(6, 6, 7, 0.9);
}
