/* Tokens mirror wbnative/src/theme.ts — the app's light and dark palettes. */
:root {
  --brand: #5b4ee4;
  --brand-soft: #eceafd;
  --brand-grad: #4b40bb;
  --brand-contrast: #ffffff;
  --accent: #c2580c;
  --page: #f7f7fc;
  --surface: #ffffff;
  --ink: #14122b;
  --ink-muted: #615c85;
  --line: #e5e3f1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a78bfa;
    --brand-soft: #262c55;
    --brand-grad: #8f75e0;
    --brand-contrast: #0a0e1f;
    --accent: #fb923c;
    --page: #0a0e1f;
    --surface: #151a33;
    --ink: #e9ecfa;
    --ink-muted: #8f97c2;
    --line: #262e55;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The hero glow's negative inset and the phone's tilt poke past the viewport on
   small screens; clip rather than let the page scroll sideways. */
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, .wordmark, .app-ward, .app-title {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* The thick-thin rule from a printed Sunday program — the section divider of the whole page. */
.rule-double {
  height: 6px;
  border-top: 3px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.rule-section {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--line);
  width: calc(100% - 3rem);
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img { width: 1.5em; height: 1.5em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links > a:not(.btn) {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links > a:not(.btn):hover { color: var(--ink); }

/* Language picker: a native <select>, styled quiet like the text nav links. */
.lang {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  padding: 0.3rem 0.1rem;
  cursor: pointer;
  field-sizing: content; /* as wide as the chosen language, not the longest one */
}

.lang:hover { color: var(--ink); }

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }

.btn-solid {
  background: linear-gradient(135deg, var(--brand), var(--brand-grad));
  color: var(--brand-contrast);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent);
}

.btn-solid:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 45%, transparent); }

.btn-ghost {
  color: var(--brand);
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--brand); }

.btn-paper { background: #fffdf8; color: #4b40bb; }

.btn-outline {
  color: #fffdf8;
  border: 1.5px solid color-mix(in srgb, #fffdf8 45%, transparent);
}

.btn-outline:hover { border-color: #fffdf8; }

/* ---- Hero ---- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 1.25rem 0 2rem;
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---- The app, in hand ---- */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%);
  filter: blur(6px);
}

/* A simulated frame of the app's real feed screen. Colors are the app's own light
   palette (wbnative src/theme.ts), hardcoded on purpose: the phone shows the app,
   not this page's theme. */

.phone {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  border: 10px solid #14122b;
  border-radius: 44px;
  overflow: hidden;
  background: #f7f7fc;
  color: #14122b;
  box-shadow:
    0 12px 32px rgb(20 18 43 / 0.16),
    0 32px 64px rgb(20 18 43 / 0.12);
  transform: rotate(1.6deg);
  animation: settle 0.7s ease both;
}

.phone svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #5b4ee4;
  color: #fff;
  padding: 1.4rem 1rem 0.7rem; /* extra top fakes the status-bar inset */
}

.app-ident {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* The ward's uploaded logo slot (28px, radius 6 in the app) — here a church glyph. */
.app-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  color: #5b4ee4;
}

.app-logo svg { font-size: 18px; stroke-width: 1.6; }

.app-ward { font-size: 1.05rem; }
.app-header > svg { font-size: 18px; }

.app-feed {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem 0.8rem 1rem;
  /* The app's Scenic backdrop: a landscape with the page color washed over it at 60%. */
  background:
    linear-gradient(rgb(247 247 252 / 0.6), rgb(247 247 252 / 0.6)),
    url("/img/scene.jpg") center / cover;
}

.app-tabs {
  display: flex;
  gap: 3px;
  background: #fff;
  border: 1px solid #e5e3f1;
  border-radius: 14px;
  padding: 3px;
}

.app-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 500;
  color: #615c85;
}

.app-tab svg { font-size: 12px; }
.app-tab-active { background: #5b4ee4; color: #fff; }

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  font-size: 11px;
  color: #615c85;
}

.app-fav { display: flex; align-items: center; gap: 4px; }

.app-card {
  background: #fff;
  border: 1px solid #e5e3f1;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 2px rgb(20 18 43 / 0.05);
  animation: rise 0.6s ease both;
}

.app-card:nth-of-type(1) { animation-delay: 0.25s; }
.app-card:nth-of-type(2) { animation-delay: 0.55s; }

.app-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eceafd;
  color: #4b40bb;
  font-size: 11px;
  font-weight: 700;
}

.app-avatar-2 { background: #fdeadd; color: #9a4507; }

.app-who { display: grid; gap: 1px; }

.app-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.app-chip {
  background: #eceafd;
  color: #4b40bb;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 500;
}

.app-chip-accent { background: #fdeadd; color: #9a4507; }

.app-time { font-size: 10px; color: #615c85; }

.app-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.app-event {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: #f8e7d8;
  color: #c2580c;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
}

.app-body {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.app-questions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e3f1;
  color: #5b4ee4;
  font-size: 11px;
  font-weight: 600;
}

.app-questions svg { font-size: 11px; stroke-width: 2.2; }

.app-tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid #e5e3f1;
  padding: 8px 0 14px;
}

.app-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #615c85;
}

.app-tabbar-item svg { font-size: 18px; }
.app-tabbar-active { color: #5b4ee4; }

/* ---- Features ---- */

.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.features h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 2.25rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 12%, transparent);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* ---- Feature showcases: copy beside a phone, alternating sides down the page ---- */

.showcase {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.showcase h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 2.25rem; }
.showcase-copy { order: 2; }
.showcase-flip .showcase-copy { order: 0; }
.showcase-points { display: grid; gap: 1.25rem; }

/* Tilts the other way from its copy, and fades in with .reveal instead of on load. */
.showcase .phone { transform: rotate(-1.6deg); animation: none; }
.showcase-flip .phone { transform: rotate(1.6deg); }
.showcase .app-card { animation: none; }

/* ---- Missionary walls ---- */

.wall-card {
  background: #fff;
  border: 1px solid #e5e3f1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(20 18 43 / 0.05);
}

.wall-band {
  position: relative;
  height: 64px;
  background: linear-gradient(90deg, rgb(91 78 228 / 0.85), rgb(194 88 12 / 0.85));
}

/* The app's airmail stripe: fixed red/white/blue, not theme colors. */
.airmail {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg, #d2352c 0 6px, #fff 6px 12px, #1f4fa3 12px 18px, #fff 18px 24px);
}

.wall-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px 12px;
  margin-top: -36px;
  text-align: center;
}

.wall-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #eceafd;
  color: #4b40bb;
  font-size: 20px;
  font-weight: 700;
}

.wall-name { font-size: 19px; font-weight: 600; line-height: 1.2; }

.wall-mission {
  background: #eceafd;
  color: #5b4ee4;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.wall-progress { margin-top: 4px; font-size: 12px; font-weight: 600; }

.wall-track {
  width: 80%;
  height: 5px;
  border-radius: 999px;
  background: #e5e3f1;
  overflow: hidden;
}

.wall-track span { display: block; width: 58%; height: 100%; border-radius: inherit; background: #5b4ee4; }

.wall-home { font-size: 10px; color: #615c85; }

.wall-stats {
  display: flex;
  align-self: stretch;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e5e3f1;
}

.wall-stats > span {
  flex: 1;
  display: grid;
  font-size: 9.5px;
  color: #615c85;
}

.wall-stats > span + span { border-left: 1px solid #e5e3f1; }
.wall-stats b { font-size: 13px; color: #14122b; }

.wall-month {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #615c85;
}

.wall-letter { display: grid; gap: 3px; padding: 12px; }

.wall-subject {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.wall-new {
  flex: none;
  background: #5b4ee4;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
}

.wall-letter .app-body { margin: 0; }

/* ---- Plans ---- */

.plans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.plans h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 2.25rem; }

.plans-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.plans-table th,
.plans-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.plans-table tbody tr:last-child th,
.plans-table tbody tr:last-child td { border-bottom: 0; }

.plans-table thead th {
  font-size: 1rem;
  text-align: center;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.plans-table tbody th {
  text-align: left;
  font-weight: 500;
}

/* The two plan columns stay equal and narrow, so the feature names get the room on a phone. */
.plans-table td {
  width: 26%;
  text-align: center;
  color: var(--ink-muted);
}

.plans-table td:last-child {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.plans-table td [aria-hidden="true"] { font-weight: 700; }
.plans-table td:last-child [aria-hidden="true"] { color: var(--brand); }

.plans-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.plans-badge {
  display: block;
  width: max-content;
  margin: 0.35rem auto 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.plans-note {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* Read aloud, not shown: the ✓ and — marks are hidden from screen readers in favor of these. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .plans-table { font-size: 0.88rem; }
  .plans-table th,
  .plans-table td { padding: 0.7rem 0.6rem; }
  .plans-badge { width: auto; white-space: normal; }
}

/* ---- Early access ---- */

.access {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5.5rem;
}

.access-panel {
  background: linear-gradient(135deg, #5b4ee4, #37307e);
  color: #fffdf8;
  border-radius: 24px;
  padding: 3.25rem 3rem;
}

.access-panel .eyebrow-light { color: #fdc79a; }

.access-panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

.access-panel p {
  max-width: 44rem;
  margin: 1rem 0 2rem;
  color: rgb(255 253 248 / 0.85);
}

.access-panel p a { color: #fffdf8; font-weight: 600; }

.access-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.wordmark-sm { font-size: 1.05rem; }

.footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }

.footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer a:hover { color: var(--ink); }

/* Centered on their own rows under the links: the credit line, then the maker's logo. */
.footer-fine { flex-basis: 100%; text-align: center; color: var(--ink-muted); font-size: 0.85rem; }
.footer-logo { width: 65px; height: 65px; margin: 0 auto; }

/* ---- Legal pages ---- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.6rem; }
.legal-updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ---- Motion ---- */

/* Hidden-until-scrolled only when JS is running (the .js class), so no-JS still shows everything. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes settle {
  from { opacity: 0; transform: rotate(1.6deg) translateY(18px); }
  to { opacity: 1; transform: rotate(1.6deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3rem; }
  .hero-art { min-height: 440px; max-width: 480px; }
  /* Here the art fills the column, so the glow's -12% sides ran past the screen edge and let the
     page scroll sideways. It bleeds only into the side gutter instead. */
  .hero-art::before { inset: -8% -1.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 3.5rem; }
  .showcase-copy { order: 0; }
  .showcase-art { min-height: 440px; max-width: 480px; }
}

@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
  .nav { padding: 0.9rem 1rem; }
  .nav-links { gap: 0.6rem; }
  .nav .wordmark { font-size: 1.15rem; }
  .nav .btn { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
}

/* Below this the name and both buttons cannot share a row: keep the icon, drop the name.
   The link's aria-label carries the name for screen readers. */
@media (max-width: 420px) {
  .nav .wordmark { font-size: 1.35rem; } /* icon is em-sized; keep it from shrinking too */
  .nav .wordmark-name { display: none; }
  .lang { font-size: 0.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .access-panel { padding: 2.25rem 1.5rem; }
}

/* The narrowest phones (320px): the language picker and both buttons ran 8px past the edge. */
@media (max-width: 360px) {
  .nav-links { gap: 0.4rem; }
  .nav .btn { padding: 0.45rem 0.7rem; }
}

/* ---- Cookie banner ---- */

/* Map vanilla-cookieconsent onto the page tokens. Because those tokens already flip
   under prefers-color-scheme, the banner follows light/dark for free. */
#cc-main {
  --cc-font-family: inherit;
  --cc-bg: var(--surface);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink-muted);
  --cc-link-color: var(--brand);
  --cc-separator-border-color: var(--line);

  --cc-btn-primary-bg: var(--brand);
  --cc-btn-primary-color: var(--brand-contrast);
  --cc-btn-primary-border-color: var(--brand);
  --cc-btn-primary-hover-bg: var(--brand-grad);
  --cc-btn-primary-hover-color: var(--brand-contrast);
  --cc-btn-primary-hover-border-color: var(--brand-grad);

  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-hover-bg: var(--brand-soft);
  --cc-btn-secondary-hover-color: var(--ink);
  --cc-btn-secondary-hover-border-color: var(--brand);

  --cc-cookie-category-block-bg: var(--page);
  --cc-cookie-category-block-border: var(--line);
  --cc-cookie-category-block-hover-bg: var(--brand-soft);
  --cc-cookie-category-block-hover-border: var(--brand);
  --cc-cookie-category-expanded-block-bg: var(--page);
  --cc-section-category-border: var(--line);

  --cc-toggle-on-bg: var(--brand);
  --cc-toggle-off-bg: var(--ink-muted);
  --cc-toggle-readonly-bg: var(--line);
  --cc-toggle-readonly-knob-bg: var(--surface);
  --cc-toggle-enabled-icon-color: var(--brand-contrast);
  --cc-toggle-disabled-icon-color: var(--surface);

  --cc-footer-bg: var(--page);
  --cc-footer-color: var(--ink-muted);
  --cc-footer-border-color: var(--line);

  --cc-btn-border-radius: 8px;
  --cc-modal-border-radius: 14px;
  --cc-overlay-bg: rgba(10, 14, 31, 0.65);
}

/* The reopen link sits in the footer nav next to real links; strip the button chrome. */
.footer button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer button:hover { color: var(--ink); }

/* ---- FAQ ---- */

.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-muted); }

/* ---- Showcase phones: the bits of app screens the hero and wall don't already draw ---- */

.app-fav-on .app-star { fill: #e8a20c; stroke: #e8a20c; }

.app-urgent {
  margin-left: auto;
  background: #fde8e8;
  color: #b42318;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 600;
}

.app-rsvp { display: flex; gap: 4px; margin-top: 10px; }

.app-rsvp span,
.app-btn {
  border: 1px solid #e5e3f1;
  border-radius: 9px;
  padding: 5px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #5b4ee4;
}

.app-rsvp span { flex: 1; color: #615c85; font-weight: 500; }
.app-rsvp .on { background: #5b4ee4; border-color: #5b4ee4; color: #fff; }

.app-buttons { display: grid; gap: 6px; margin-top: 8px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
}

.cal-grid b { font-size: 9px; font-weight: 600; color: #615c85; padding-bottom: 2px; }
.cal-grid span { position: relative; padding: 5px 0 7px; border-radius: 8px; }
.cal-grid .cal-today { background: #5b4ee4; color: #fff; font-weight: 700; }

.cal-dot::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #c2580c;
}

.cal-mine::after { background: #5b4ee4; }

.cal-key { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10px; color: #615c85; }
.cal-key .cal-dot { position: relative; width: 4px; height: 8px; }
.cal-key .cal-mine { margin-left: 6px; }

.slots { display: grid; gap: 6px; margin-top: 8px; }
.slot { display: grid; gap: 4px; border: 1px solid #e5e3f1; border-radius: 12px; padding: 9px; }
.slot-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.slot-state { flex: none; font-size: 10.5px; font-weight: 500; color: #5b4ee4; }
.slot-full { color: #615c85; }
.slot-who { font-size: 11px; color: #615c85; }
.slot .app-btn { justify-self: start; padding: 4px 14px; }
