/* One page, no scripts, no web fonts: nothing here calls a third party.
   Every card links to Judith's own address for that function. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #141c24;
  --muted: #4f5d6b;
  --line: #d5dce4;
  --accent: #1d5d8f;
  --accent-soft: #e6eef6;
  --tag: #5b6b7a;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f151b; --surface: #17202a; --ink: #e9eff4; --muted: #a2b0bd; --line: #2b3742;
  --accent: #6fb2e6; --accent-soft: #1e2a36; --tag: #a2b0bd; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f151b; --surface: #17202a; --ink: #e9eff4; --muted: #a2b0bd; --line: #2b3742;
  --accent: #6fb2e6; --accent-soft: #1e2a36; --tag: #a2b0bd; color-scheme: dark }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.5; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header { padding: 20px 0 8px; }
/* His logo is black and red on white and not transparent, so it rides a white badge in both themes. */
.brandmark { display: inline-block; background: #ffffff; border-radius: 12px; padding: 10px 14px; line-height: 0; }
.brandmark img { width: 200px; max-width: 60vw; height: auto; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 40em; }

h2 { font-size: 1.3rem; margin: 40px 0 4px; }
.section-note { color: var(--muted); margin: 0 0 16px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.card .go { font-weight: 600; color: var(--accent); }
.card .tag { display: inline-block; font-size: .8rem; color: var(--tag); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; align-self: flex-start; }

.about { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.about h2 { margin-top: 0; }
.about p { margin: 0 0 10px; color: var(--muted); }
.about p:last-child { margin-bottom: 0; }

footer { padding: 32px 0 40px; color: var(--muted); font-size: .95rem; }
.crisis { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; color: var(--ink); margin: 0 0 16px; }

/* Product pages */
.crumb { display: inline-block; margin: 8px 0 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.product { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.product h2 { margin-top: 0; }
.product ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--muted); }
.price { font-size: 1.4rem; font-weight: 700; margin: 4px 0 4px; }
.price-note { color: var(--muted); margin: 0 0 16px; }
.btn { display: inline-block; background: var(--accent); color: var(--surface); font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 20px; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.terms dt { font-weight: 600; margin-top: 8px; }
.terms dd { margin: 0; color: var(--muted); }
.after { margin-top: 12px; }

/* Full-screen stage: Judith on a muted loop, words over her. The scrim keeps
   the words readable on every frame, light or dark, so its darkest part sits
   under the text whatever the video shows. */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #0f151b url("/media/judith-still.jpg") center 30% / cover no-repeat; color: #ffffff; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.stage-scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(8, 12, 16, .92) 0%, rgba(8, 12, 16, .78) 38%, rgba(8, 12, 16, .25) 70%, rgba(8, 12, 16, .45) 100%); }
.stage-top, .stage-words { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 16px; }
.stage-words { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.stage .kicker { margin: 0 0 8px; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #d6e4f0; }
.stage h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.stage .lede { margin: 0 0 16px; font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 34em; color: #eef3f7; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.rotator { position: relative; height: 2.6em; margin: 0 0 20px; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; color: #9fd0f5; }
.rotator span { position: absolute; left: 0; top: 0; right: 0; opacity: 0; animation: rotate-words 16s infinite; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.rotator span:nth-child(2) { animation-delay: 4s; }
.rotator span:nth-child(3) { animation-delay: 8s; }
.rotator span:nth-child(4) { animation-delay: 12s; }
@keyframes rotate-words { 0% { opacity: 0; transform: translateY(8px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-8px); } }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stage .btn { background: #ffffff; color: #0f151b; }
.stage .btn-ghost { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 2px #ffffff; }
.stage .btn:focus-visible { outline: 3px solid #9fd0f5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#modules { padding-top: 8px; }
/* Still picture, no movement, for anyone who asks their device for less motion. */
@media (prefers-reduced-motion: reduce) {
  .stage-video { display: none; }
  .rotator { height: auto; }
  .rotator span { position: static; display: block; opacity: 1; animation: none; transform: none; font-size: .85em; }
  .card { transition: none; }
}
