/* Stella Explains pages — /explains/
   Self-contained on purpose: these pages use the channel's palette (navy, gold, cream), not the
   homepage tokens in styles.css, and the two must not mix. Phone-first: the link is opened from
   a Facebook comment, an Instagram message or a YouTube description. */

:root {
  --navy: #1D2F63;
  --navy-soft: #3C4E82;
  --gold: #B98A22;
  --gold-ink: #7F5C0E;        /* gold dark enough for small text on cream (4.5:1) */
  --cream: #F6F1E7;
  --card: #FFFDF8;
  --hl: #F2DCA0;
  --line: rgba(29,47,99,.16);
  --font: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* Author `display` rules outrank the UA's [hidden]; keep this above everything that toggles it. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.55; color: var(--navy);
  background:
    radial-gradient(900px 700px at 100% 0%, rgba(185,138,34,.16), transparent 60%),
    radial-gradient(circle, rgba(29,47,99,.08) 1.2px, transparent 1.5px) 0 0 / 22px 22px,
    var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, p, ul, ol { margin: 0; }

/* ---------- Header / footer ---------- */
.ex-header {
  width: 100%; max-width: 980px; margin: 0 auto; padding: 20px 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ex-wm {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 800; font-size: 15px; letter-spacing: .17em; line-height: 1; white-space: nowrap;
}
.ex-wm svg { width: 17px; height: 17px; flex: none; fill: var(--gold); }
.ex-wm .n { color: var(--gold-ink); }
.ex-by { font-size: 13px; font-weight: 600; color: var(--navy-soft); white-space: nowrap; }

.ex-footer {
  margin-top: auto; width: 100%; max-width: 980px; margin-inline: auto;
  padding: 20px 20px 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  font-size: 13px; color: var(--navy-soft);
}

/* ---------- Layout ---------- */
.ex-main {
  width: 100%; max-width: 980px; margin: 0 auto; padding: 28px 20px 44px;
  display: grid; gap: 18px;
}
.ex-hero { display: grid; gap: 26px; margin-bottom: 6px; }
.ex-kicker {
  font-weight: 800; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 12px;
}
h1 { font-weight: 800; font-size: clamp(40px, 11vw, 64px); line-height: 1.04; letter-spacing: -.015em; }
h1 .hl { background: var(--hl); border-radius: 12px; padding: 0 10px; margin-left: -10px; white-space: nowrap; }
.ex-lede { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--navy-soft); max-width: 30ch; }

.ex-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 24px; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none;
  color: #fff; background: var(--navy);
  box-shadow: 0 10px 24px rgba(29,47,99,.22);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.ex-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(29,47,99,.26); }
.ex-btn-2 { margin-top: 16px; }
.ex-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.ex-free { margin-top: 12px; font-size: 14px; color: var(--navy-soft); }

.ex-preview {
  display: block; justify-self: center; width: 100%; max-width: 380px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(29,47,99,.16); background: var(--card);
  transform: rotate(1.2deg);
}
.ex-preview img { display: block; width: 100%; height: auto; }

/* ---------- Cards ---------- */
.ex-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px 24px; box-shadow: 0 6px 16px rgba(29,47,99,.05);
}
.ex-card h2, .ex-privacy h2 { font-weight: 800; font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.ex-three { padding-left: 22px; display: grid; gap: 8px; }
.ex-three li::marker { font-weight: 800; color: var(--gold-ink); }

.ex-optin form { margin-top: 16px; }
.ex-field { display: block; font-weight: 700; font-size: 14px; }
.ex-field input {
  display: block; width: 100%; max-width: 420px; margin-top: 6px;
  font: inherit; font-size: 16px;                 /* 16px stops iOS zooming the field */
  color: var(--navy); background: #fff;
  border: 1.5px solid rgba(29,47,99,.3); border-radius: 10px; padding: 12px 14px;
}
.ex-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-weight: 600; cursor: pointer; }
.ex-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.is-invalid { border-color: #B23B3B !important; outline-color: #B23B3B; }
.ex-check.is-invalid span { text-decoration: underline; text-decoration-color: #B23B3B; text-decoration-thickness: 2px; }
.ex-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ex-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; font-weight: 700; color: #9A2B2B; }
.ex-small { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--navy-soft); }
.ex-sent-line { margin-top: 14px; font-weight: 800; font-size: 18px; }

.ex-watch ul { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.ex-watch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid var(--navy); font-weight: 700; text-decoration: none;
}
.ex-watch a:hover { background: var(--hl); }

.ex-privacy { padding: 8px 2px 0; font-size: 14px; color: var(--navy-soft); }
.ex-privacy h2 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.ex-privacy p + p { margin-top: 8px; }

/* ---------- Wider screens ---------- */
@media (min-width: 820px) {
  .ex-header { padding-top: 28px; }
  .ex-main { padding-top: 48px; gap: 22px; grid-template-columns: 1fr 1fr; }
  .ex-hero { grid-column: 1 / -1; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; margin-bottom: 20px; }
  .ex-optin, .ex-privacy { grid-column: 1 / -1; }
  .ex-card { padding: 26px 28px 28px; }
  .ex-preview { max-width: 400px; }
}

@media (prefers-reduced-motion: reduce) { .ex-btn { transition: none; } }
