/* ==========================================================================
   StilledInk — Components
   Nav, buttons, hero, phone mockup, sections, cards, footer.
   ========================================================================== */

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: fit-content;
  max-width: none;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  isolation: isolate;
  background: rgba(18, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform var(--dur-base) var(--ease-quiet),
    opacity var(--dur-base) var(--ease-quiet),
    background-color var(--dur-base) var(--ease-quiet),
    border-color var(--dur-base) var(--ease-quiet),
    box-shadow var(--dur-base) var(--ease-quiet);
}
.nav::before,
.nav::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}
.nav::before {
  inset: 1px;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -16px 34px rgba(0, 0, 0, 0.18);
}
.nav::after {
  inset: 0;
  z-index: -2;
  background: radial-gradient(80% 120% at 50% -20%, rgba(111, 163, 206, 0.16), transparent 58%);
  opacity: 0.72;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(13, 15, 18, 0.54);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
}
.nav.is-scrolled {
  background: rgba(13, 15, 18, 0.70);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav__inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 2.5rem; /* Gap between logo, links, and buttons */
}
.brand {
  display: inline-flex;
  align-items: center;
}
/* Override base.css's `img { max-width: 100% }`: when the pill nav collapses
   on mobile (no visible nav__links), the brand container has no intrinsic
   width and max-width:100% resolves the icon's width to 0. Letting the icon
   take its natural width keeps the brand visible at every breakpoint. */
.brand img {
  max-width: none;
  flex: none;
}
.brand__mark {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Gap between links */
  margin: 0;
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: #aaaaaa;
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease-quiet);
  text-decoration: none;
}
.nav__link::after {
  display: none; /* No straight line underlines */
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
  color: #ffffff;
}

/* Wavy SVG Underline.
   The path ships with stroke-dasharray="120" stroke-dashoffset="120" so it's
   invisible by default; on hover / focus / active we transition the offset to
   0 to "draw" the wave in. We also fade the SVG via opacity for a soft entry. */
.nav__wave {
  position: absolute;
  bottom: -6px;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__wave path {
  transition: stroke-dashoffset 0.45s ease;
}
.nav__link:hover .nav__wave,
.nav__link:focus-visible .nav__wave,
.nav__link.is-active .nav__wave {
  opacity: 1;
}
.nav__link:hover .nav__wave path,
.nav__link:focus-visible .nav__wave path,
.nav__link.is-active .nav__wave path {
  stroke-dashoffset: 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px; /* Slightly tighter gap for icon buttons, or use standard spacing */
  margin: 0;
}

.nav__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background var(--dur-fast) var(--ease-quiet), border-color var(--dur-fast) var(--ease-quiet), box-shadow var(--dur-fast) var(--ease-quiet);
}
.nav__icon-btn svg {
  width: 18px;
  height: 18px;
}
.nav__icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 20px rgba(111, 163, 206, 0.10);
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  background: transparent;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--paper-50);
  position: relative;
  transition: transform var(--dur-base) var(--ease-quiet),
              opacity var(--dur-fast) var(--ease-quiet);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--ease-quiet),
              border-color var(--dur-base) var(--ease-quiet),
              background-color var(--dur-base) var(--ease-quiet),
              box-shadow var(--dur-base) var(--ease-quiet),
              color var(--dur-base) var(--ease-quiet);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink-700);
  color: var(--paper-50);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hair);
}
.btn--primary:hover {
  border-color: var(--accent-300);
  box-shadow: 0 0 0 1px var(--accent-700), 0 14px 40px var(--accent-glow);
}

.btn--ghost {
  color: var(--paper-200);
  border-color: var(--line);
}
.btn--ghost:hover {
  color: var(--paper-50);
  background: var(--ink-700);
  border-color: var(--line-strong);
}

.btn--lg { padding: 16px 28px; font-size: var(--fs-body); }

/* --- Ambient glow blob (decorative) -------------------------------------- */
.glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 9vh, 110px);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero__glow {
  width: min(70vw, 760px);
  height: min(70vw, 760px);
  top: -22%;
  right: -8%;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 38ch; }
.hero__eyebrow { margin-bottom: var(--sp-5); }
.hero__title { margin-bottom: var(--sp-5); }
.hero__title .tagline {
  display: block;
  color: var(--paper-400);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-style: normal;
  margin-top: var(--sp-3);
  letter-spacing: -0.01em;
}
.hero__body { margin-bottom: var(--sp-7); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-caption);
  color: var(--paper-400);
  letter-spacing: 0.02em;
}
.hero__stage {
  display: flex;
  justify-content: center;
}

/* --- Phone mockup -------------------------------------------------------- */
.phone {
  width: clamp(260px, 30vw, 320px);
  aspect-ratio: 9 / 19.3;
  border-radius: var(--r-phone);
  background: linear-gradient(160deg, #2a2f37, #14171b 38%);
  padding: 10px;
  box-shadow: var(--shadow-float),
              inset 0 1px 0 rgba(246, 244, 239, 0.12);
  position: relative;
}
.phone--float { animation: float 7s var(--ease-soft) infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ink-850);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone__screen::before { /* screen light sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% -10%, rgba(111, 163, 206, 0.08), transparent 60%);
  pointer-events: none;
}

/* status bar */
.scr-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-400);
}
.scr-status__dots { display: flex; gap: 4px; align-items: center; }
.scr-status__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper-600);
  display: block;
}
.scr-status__dots i:last-child { width: 16px; border-radius: 3px; background: var(--paper-400); }

/* screen body */
.scr-body {
  flex: 1;
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.scr-greeting { display: flex; flex-direction: column; gap: 2px; }
.scr-greeting h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--paper-50);
  font-weight: 500;
}
.scr-greeting span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-400);
  letter-spacing: 0.02em;
}

.scr-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--ink-800);
  border: 1px solid var(--line);
  color: var(--paper-400);
  font-size: 12.5px;
}
.scr-input .pen {
  width: 14px; height: 14px; flex: none;
  color: var(--accent-300);
}

.scr-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-600);
  font-weight: 600;
  margin-top: 2px;
}

.note-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.note-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.note-card__title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--paper-50);
  font-weight: 500;
}
.note-card__time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--paper-600);
  flex: none;
}
.note-card__preview {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--paper-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--ink-800);
  border: 1px solid var(--line);
  color: var(--paper-400);
  letter-spacing: 0.02em;
}
.chip--scripture {
  background: var(--ember-soft);
  border-color: rgba(185, 138, 94, 0.28);
  color: var(--ember-400);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chip--scripture svg { width: 10px; height: 10px; }

/* bottom tab bar */
.scr-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--ink-800);
}
.scr-tabs i {
  width: 18px; height: 18px;
  color: var(--paper-600);
  display: block;
}
.scr-tabs i.active { color: var(--paper-50); }

/* --- Positioning section ------------------------------------------------- */
.positioning { text-align: center; }
.positioning h2 { max-width: 18ch; margin-inline: auto; }
.positioning .lead { margin: var(--sp-6) auto 0; max-width: 56ch; }
.pillars {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-7);
}
.pillars span {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-400);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
}
.pillars span:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* --- Section heading block ----------------------------------------------- */
.section-head { max-width: 50ch; margin-bottom: var(--sp-8); }
.section-head .eyebrow { display: block; margin-bottom: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); }

/* --- Capabilities (editorial rows) --------------------------------------- */
.cap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 6vh, 80px);
}
.cap-row + .cap-row { border-top: 1px solid var(--line); }
.cap-row:nth-child(even) .cap-row__visual { order: -1; }
.cap-row__index {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent-300);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.cap-row__title { margin-bottom: var(--sp-4); }
.cap-row__body { max-width: 46ch; }

/* small UI fragment used inside capability rows */
.fragment {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--dur-base) var(--ease-quiet),
              border-color var(--dur-base) var(--ease-quiet);
}
.cap-row:hover .fragment { transform: translateY(-3px); border-color: var(--line-strong); }
.fragment__bar {
  height: 9px;
  border-radius: var(--r-full);
  background: var(--ink-600);
}
.fragment__bar.w-90 { width: 90%; }
.fragment__bar.w-70 { width: 70%; }
.fragment__bar.w-50 { width: 50%; }
.fragment__bar.accent { background: linear-gradient(90deg, var(--accent-500), var(--accent-700)); }
.fragment__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--ink-800);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--paper-200);
}
.fragment__row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); flex: none; }
.fragment__row time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--paper-400); }
.fragment__caret { color: var(--accent-300); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fragment__chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Faith-aware --------------------------------------------------------- */
.faith {
  position: relative;
  overflow: hidden;
}
.faith__glow { width: min(60vw, 520px); height: min(60vw, 520px); left: -14%; bottom: -30%; }
.faith__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.faith__note {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}
.faith__note h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--paper-50);
  margin-bottom: 4px;
}
.faith__note .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-600);
  margin-bottom: var(--sp-4);
}
.faith__note p { font-size: var(--fs-small); margin-bottom: var(--sp-4); }
.faith__note .callout {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  color: var(--paper-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.faith__note .callout::before {
  content: "";
  width: 22px; height: 1px; background: var(--ember-400); flex: none;
}

/* --- Trust + account cards ----------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hair);
  transition: transform var(--dur-base) var(--ease-quiet),
              border-color var(--dur-base) var(--ease-quiet),
              background-color var(--dur-base) var(--ease-quiet);
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  background: var(--ink-600);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.card__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--ink-800);
  border: 1px solid var(--line);
  color: var(--accent-300);
}
.card__icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 1.25rem; }
.card p { font-size: var(--fs-small); color: var(--paper-400); }
.card__link {
  margin-top: auto;
  font-size: var(--fs-small);
  color: var(--accent-300);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-base) var(--ease-quiet);
}
a.card:hover .card__link { gap: 11px; }

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.trust-point h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.trust-point p { font-size: var(--fs-small); color: var(--paper-400); }

.trust-point__rule {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--ink-800);
  margin-bottom: var(--sp-4);
  border-radius: 2px;
  overflow: hidden;
}
.trust-point__rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ember-400), transparent);
  animation: slide-line 3s linear infinite;
}
.trust-point:nth-child(2) .trust-point__rule::after { animation-delay: -1s; }
.trust-point:nth-child(3) .trust-point__rule::after { animation-delay: -2s; }
@keyframes slide-line {
  to { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-point__rule::after { animation: none; left: 0; width: 28px; background: var(--ember-400); }
}

/* --- Final CTA ----------------------------------------------------------- */
.final {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.final__glow {
  width: min(80vw, 720px); height: min(60vw, 520px);
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
}
.final__inner { position: relative; z-index: 2; }
.final h2 { max-width: 16ch; margin-inline: auto; font-size: var(--fs-h1); }
.final p { margin: var(--sp-5) auto var(--sp-7); max-width: 44ch; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: var(--sp-8) var(--sp-6);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-5);
}
.footer__brand .lead { font-size: var(--fs-small); color: var(--paper-400); margin-top: var(--sp-4); max-width: 30ch; }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-400);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.footer__col a {
  display: block;
  font-size: var(--fs-small);
  color: var(--paper-200);
  padding-block: 6px;
  transition: color var(--dur-fast) var(--ease-quiet);
}
.footer__col a:hover { color: var(--paper-50); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  color: var(--paper-600);
}

/* --- Legal / content pages ----------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(64px, 8vh, 96px));
  padding-bottom: var(--sp-7);
}
.page-hero .eyebrow { display: block; margin-bottom: var(--sp-4); }
.page-hero p { margin-top: var(--sp-4); max-width: 52ch; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose h3 { font-size: 1.2rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose p { margin-bottom: var(--sp-4); color: var(--paper-200); }
.prose ul { margin: 0 0 var(--sp-4); padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
  color: var(--paper-200);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}
.prose ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); color: var(--paper-200); }
.prose ol li { margin-bottom: var(--sp-3); padding-left: var(--sp-2); }
.prose a { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--paper-50); }

.callout-box {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-block: var(--sp-6);
}
.callout-box p:last-child { margin-bottom: 0; }

.prose ol.steps { counter-reset: step; padding-left: 0; list-style: none; }
.prose ol.steps li {
  position: relative;
  padding-left: 52px;
  margin-bottom: var(--sp-5);
  min-height: 36px;
}
.prose ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  color: var(--accent-300);
  font-family: var(--font-mono);
  font-size: 14px;
  display: grid; place-items: center;
}
.prose ol.steps li strong { display: block; color: var(--paper-50); margin-bottom: 2px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: calc(100% + var(--sp-2));
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: var(--sp-5);
    background: rgba(13, 15, 18, 0.92);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      var(--shadow-soft),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .nav.is-open .nav__cta { width: 100%; margin-top: var(--sp-2); }
  .nav.is-open .nav__cta .btn { width: 100%; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero__copy, .hero__body { max-width: 100%; }
  .hero__stage { order: 2; }

  .cap-row { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7); }
  .cap-row:nth-child(even) .cap-row__visual { order: 0; }

  .faith__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .faith__note { max-width: 100%; }

  .cards { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; gap: var(--sp-7); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   LEGAL / FORM PAGES (privacy · delete-account · contact)
   Shared dark-premium styling for the table-of-contents card, glass form
   fields, status messages, meta pills, and inline note boxes. Loaded on
   every page via components.css.
   ========================================================================== */

/* Meta pills under a page-hero (e.g. "Last updated", URL). */
.meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.pill {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--ink-700);
  color: var(--paper-300, var(--paper-400));
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
}

/* Table of contents card. */
.toc {
  margin: 0 0 var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(39,44,52,0.45), rgba(20,23,27,0.5));
  box-shadow: var(--shadow-hair);
}
.toc__title {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-300);
  font-weight: 600;
  margin: 0 0 var(--sp-3);
}
.toc ol {
  columns: 2;
  column-gap: var(--sp-7);
  margin: 0;
  padding-left: 1.2rem;
}
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a {
  color: var(--paper-200);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color var(--dur-fast) var(--ease-quiet);
}
.toc a:hover { color: var(--accent-300); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Inline note / caution box (reuses callout-box feel, accent-led). */
.note-box {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-500);
  border-radius: var(--r-md);
  background: var(--ink-700);
}
.note-box p:last-child { margin-bottom: 0; }
.note-box code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Glass form card + fields. */
.form-card {
  margin: var(--sp-5) 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(39,44,52,0.5), rgba(20,23,27,0.55));
  box-shadow: var(--shadow-soft);
}
.form-field { display: grid; gap: 8px; margin-bottom: var(--sp-5); }
.form-field > label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--paper-200);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  font: inherit;
  color: var(--paper-50);
  background: rgba(8, 9, 11, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color var(--dur-base) var(--ease-quiet),
              box-shadow var(--dur-base) var(--ease-quiet);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--paper-600); }
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9C9F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  outline: none;
  border-color: var(--accent-300);
  box-shadow: 0 0 0 3px rgba(62, 110, 158, 0.28);
}
.form-help { margin: 0; font-size: var(--fs-caption); color: var(--paper-400); }
.form-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-5);
}
.form-actions .btn[disabled] { opacity: 0.6; cursor: wait; }

/* Status messages (success / error). Hidden until JS reveals. */
.form-status {
  display: none;
  margin-top: var(--sp-5);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  font-weight: 500;
}
.form-status.is-visible { display: block; }
.form-status.success {
  border: 1px solid rgba(126, 155, 134, 0.35);
  background: rgba(126, 155, 134, 0.12);
  color: #a9c7b1;
}
.form-status.error {
  border: 1px solid rgba(192, 86, 86, 0.35);
  background: rgba(192, 86, 86, 0.12);
  color: #e2a3a3;
}

/* Email fallback chip. */
.email-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: var(--sp-3) 0 var(--sp-5);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ink-700);
  font-size: var(--fs-small);
}

/* Prose section anchoring under a fixed nav. */
.prose section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose section + section { margin-top: var(--sp-8); }
.prose section > h2:first-child { margin-top: 0; }

/* Centered legal pages and clean accordion cards. */
.legal-shell {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}
.legal-shell--wide { width: min(100% - 32px, 1040px); }
.legal-shell--delete { width: min(100% - 32px, 1180px); }
.legal-hero {
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vh, 96px));
  padding-bottom: clamp(32px, 5vh, 56px);
}
.legal-hero p {
  margin: var(--sp-4) auto 0;
  max-width: 62ch;
}
.legal-hero .meta-row { justify-content: center; }
.legal-panel {
  margin-bottom: var(--sp-9);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 80% at 92% 0%, rgba(62, 110, 158, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(39, 44, 52, 0.44), rgba(20, 23, 27, 0.54));
  box-shadow: var(--shadow-soft);
}
.legal-panel.prose,
.legal-panel .prose {
  max-width: none;
}
.legal-section-title {
  margin: 0 0 var(--sp-5);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}
.legal-accordion {
  display: grid;
  gap: var(--sp-3);
}
.legal-accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(8, 9, 11, 0.32);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-quiet),
              background-color var(--dur-base) var(--ease-quiet);
}
.legal-accordion__item[open],
.legal-accordion__item:hover {
  border-color: var(--line-strong);
  background: rgba(28, 32, 38, 0.64);
}
.legal-accordion__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 62px;
  padding: 16px clamp(16px, 2.8vw, 24px);
  color: var(--paper-50);
  font-weight: 600;
}
.legal-accordion__item summary::-webkit-details-marker { display: none; }
.legal-accordion__item summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--accent-300);
  background: rgba(111, 163, 206, 0.08);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}
.legal-accordion__item[open] summary::after { content: "-"; }
.legal-accordion__body {
  padding: 0 clamp(16px, 2.8vw, 24px) clamp(18px, 3vw, 26px);
}
.legal-accordion__body > :last-child { margin-bottom: 0; }
.legal-accordion__body .note-box { margin-bottom: 0; }

/* Blog page. */
.blog-shell {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}
.blog-hero {
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(64px, 10vh, 112px));
  padding-bottom: clamp(34px, 6vh, 68px);
}
.blog-hero p {
  max-width: 66ch;
  margin: var(--sp-4) auto 0;
}
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.blog-index-list {
  padding-bottom: clamp(76px, 10vw, 136px);
}
.blog-card {
  display: grid;
  align-content: start;
  min-height: 290px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(111, 163, 206, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(39, 44, 52, 0.50), rgba(16, 18, 22, 0.58));
  box-shadow: var(--shadow-soft);
  color: var(--paper-200);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-quiet),
              border-color var(--dur-base) var(--ease-quiet),
              background-color var(--dur-base) var(--ease-quiet);
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.blog-card:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 4px;
}
.blog-card__meta {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.blog-card h2 {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}
.blog-card p {
  margin: 0;
  color: var(--paper-400);
}
.blog-card__link {
  align-self: end;
  width: fit-content;
  margin-top: var(--sp-5);
  color: var(--accent-300);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.blog-card:hover .blog-card__link,
.blog-card:focus-visible .blog-card__link {
  color: var(--paper-50);
}
.blog-articles {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  max-width: 960px;
  padding-block: clamp(34px, 6vw, 76px) var(--sp-9);
}
.blog-article {
  scroll-margin-top: calc(var(--nav-h) + 48px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(88% 72% at 100% 0%, rgba(111, 163, 206, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(39, 44, 52, 0.38), rgba(20, 23, 27, 0.50));
  box-shadow: var(--shadow-soft);
}
.blog-article--single {
  max-width: 960px;
  margin-block: calc(var(--nav-h) + clamp(64px, 10vh, 112px)) var(--sp-9);
}
.blog-article__header {
  margin-bottom: var(--sp-6);
}
.blog-article__header h2 {
  margin-top: var(--sp-2);
}
.blog-article__header .lead {
  margin-top: var(--sp-4);
}
.blog-article__media {
  margin: clamp(32px, 6vw, 64px) auto;
  display: flex;
  justify-content: center;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.blog-article__media img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: none;
}
.blog-article__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

/* Delete account split layout. */
.delete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.delete-form-panel,
.delete-info-panel {
  min-width: 0;
}
.delete-form-panel .form-card {
  margin-top: var(--sp-5);
}
.delete-info-panel {
  padding-top: var(--sp-1);
}
.delete-info-panel .legal-section-title {
  margin-top: var(--sp-3);
}
.delete-info-panel > p {
  margin: 0 0 var(--sp-5);
  color: var(--paper-400);
}

/* Contact page split layout. */
.contact-shell {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vh, 96px));
  padding-bottom: var(--sp-9);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-copy {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding-top: var(--sp-2);
}
.contact-copy h1 {
  margin-top: var(--sp-4);
}
.contact-copy .lead {
  margin-top: var(--sp-4);
}
.support-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.support-item {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(28, 32, 38, 0.54);
}
.support-item span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-400);
}
.support-item strong,
.support-item a {
  color: var(--paper-50);
  font-weight: 600;
}
.contact-note {
  margin-top: var(--sp-5);
  color: var(--paper-400);
  font-size: var(--fs-small);
}
.contact-note a {
  color: var(--accent-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form-wrap .form-card {
  margin-top: 0;
}

@media (max-width: 860px) {
  .delete-layout,
  .blog-card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {
    min-height: auto;
  }
  .blog-index-list {
    padding-bottom: clamp(56px, 14vw, 92px);
  }
  .contact-copy {
    position: relative;
    top: auto;
    order: -1;
  }
}

@media (max-width: 520px) {
  .legal-shell,
  .legal-shell--wide,
  .legal-shell--delete,
  .blog-shell,
  .contact-shell {
    width: min(100% - 32px, 100%);
  }
  .legal-panel {
    padding: var(--sp-3);
    border-radius: var(--r-lg);
  }
  .legal-hero,
  .blog-hero,
  .contact-shell {
    padding-top: calc(var(--nav-h) + var(--sp-7));
  }
  .blog-article,
  .blog-card {
    border-radius: var(--r-lg);
    padding: var(--sp-4);
  }
  .blog-article--single {
    margin-block: calc(var(--nav-h) + var(--sp-7)) var(--sp-8);
  }
  .blog-article__media {
    margin: clamp(28px, 10vw, 44px) auto;
  }
  .blog-article__media img {
    width: min(100%, 320px);
    max-height: none;
    border-radius: 22px;
  }
  .legal-accordion__item summary {
    min-height: 56px;
  }
  .form-actions .btn,
  .form-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
