/* Selah Verse — selahverseapp.com
   Single shared stylesheet. Dark only. No accent colour. No external requests. */

/* ---------- Tokens ---------- */

:root {
  --ink-900: #08080A;
  --ink-800: #0E0E11;
  --ink-700: #121216;
  --ink-600: #16161A;
  --ink-500: #1E1E23;
  --ink-400: #2A2A31;
  --ink-300: #3A3A43;

  --paper-100: #F7F5F2;

  --text-primary: #F7F5F2;
  --text-secondary: rgba(247, 245, 242, .62);
  --text-tertiary: rgba(247, 245, 242, .55);
  --text-quaternary: rgba(247, 245, 242, .40);

  --serif: ui-serif, "New York", Literata, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-56: 56px;
  --sp-72: 72px;
  --sp-96: 96px;
  --sp-128: 128px;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --reveal: cubic-bezier(.16, 1, .3, 1);
  --dissolve: cubic-bezier(.32, .72, 0, 1);
  --header-h: 60px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-800);
  background-image: linear-gradient(165deg, #121216 0%, #0E0E11 48%, #08080A 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -.4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure, figcaption, blockquote, table { margin: 0; }
blockquote { padding: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--text-primary); text-decoration-color: rgba(247, 245, 242, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: rgba(247, 245, 242, .7); }

:focus-visible {
  outline: 2px solid rgba(247, 245, 242, .8);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(247, 245, 242, .18); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-16);
  top: -100px;
  z-index: 40;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink-500);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-12); }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--sp-24);
}

.wrap--verse { padding-inline: var(--sp-32); }

.section {
  padding-block: var(--sp-56);
  border-top: 1px solid var(--ink-400);
}

.section:first-of-type { border-top: 0; }

/* Zero-specificity default rhythm inside a section's reading column, so any
   utility or component class declared later still wins. */
:where(.wrap) > * + * { margin-top: var(--sp-20); }
:where(.wrap) > h2 + p,
:where(.wrap) > h3 + p { margin-top: var(--sp-16); }
:where(.wrap) > .section-label + * { margin-top: var(--sp-8); }

.stack-8 > * + * { margin-top: var(--sp-8); }
.stack-12 > * + * { margin-top: var(--sp-12); }
.stack-16 > * + * { margin-top: var(--sp-16); }
.stack-24 > * + * { margin-top: var(--sp-24); }
.stack-32 > * + * { margin-top: var(--sp-32); }
.stack-40 > * + * { margin-top: var(--sp-40); }

.mt-16 { margin-top: var(--sp-16); }
.mt-24 { margin-top: var(--sp-24); }
.mt-32 { margin-top: var(--sp-32); }
.mt-40 { margin-top: var(--sp-40); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 14, 17, .28);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
  box-shadow:
    inset 0 1px 0 rgba(247, 245, 242, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .30);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  min-height: var(--header-h);
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--sp-24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand__mark { width: 28px; height: 28px; flex: none; }

.brand__word {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -.012em;
  color: var(--text-primary);
}

.header-link {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 4px;
}
.header-link:hover { color: var(--text-primary); }

/* ---------- Scripture ---------- */

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  text-wrap: balance;
}

.verse--t1 { font-size: 44px; line-height: 52px; letter-spacing: -.6px; }
.verse--t2 { font-size: 34px; line-height: 44px; letter-spacing: -.4px; }
.verse--t3 { font-size: 26px; line-height: 36px; letter-spacing: -.2px; }

.verse-ref {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.rule {
  width: 24px;
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--paper-100);
  opacity: .3;
}

/* The signature block: verse ↓24 reference ↓10 rule ↓10 mood */
.ref-block { margin-top: var(--sp-24); }
.ref-block .rule { margin-top: 10px; }
.ref-block .mood { margin-top: 10px; }

.mood {
  font-family: var(--sans);
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-quaternary);
}

.section-label {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---------- Titles and body ---------- */

.title-lg {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -.4px;
  color: var(--text-primary);
}

.title-md {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -.3px;
  color: var(--text-primary);
}

.title-sm {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -.2px;
  color: var(--text-primary);
}

.body { font-size: 17px; line-height: 23px; letter-spacing: -.4px; color: var(--text-secondary); }
.callout { font-size: 15px; line-height: 21px; letter-spacing: -.1px; color: var(--text-secondary); }
.caption { font-size: 12px; line-height: 16px; letter-spacing: 0; color: var(--text-tertiary); }
.lead { font-size: 19px; line-height: 27px; letter-spacing: -.4px; color: var(--text-secondary); }

/* ---------- Halo ---------- */

.halo {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 124vw;
  height: 124vw;
  min-width: 620px;
  min-height: 620px;
  max-width: 1500px;
  max-height: 1500px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle closest-side,
    rgba(247, 245, 242, .055) 0%,
    rgba(247, 245, 242, .022) 55%,
    rgba(247, 245, 242, 0) 100%
  );
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
  letter-spacing: -.2px;
  text-decoration: none;
  color: var(--ink-800);
  background: var(--paper-100);
  box-shadow: 0 0 32px rgba(247, 245, 242, .05);
  cursor: pointer;
}
.btn:hover { box-shadow: 0 0 40px rgba(247, 245, 242, .07); }

.btn--secondary {
  font-weight: 500;
  color: var(--text-primary);
  background: var(--ink-500);
  box-shadow:
    inset 0 1px 0 rgba(247, 245, 242, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .30);
}

/* ---------- App Store badge slot ---------- */

.badge-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 52px;
  padding-inline: 14px;
  border-radius: var(--radius-sm);
  background: var(--ink-500);
  box-shadow:
    inset 0 1px 0 rgba(247, 245, 242, .10),
    inset 0 -1px 0 rgba(0, 0, 0, .30);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--text-quaternary);
  text-align: center;
  text-decoration: none;
}

a.badge-slot { color: var(--text-primary); }
a.badge-slot:hover { background: var(--ink-400); }

/* ---------- Mechanic pairs (typed line → verse) ---------- */

.pair { padding-block: var(--sp-8); }

.pair__typed {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -.4px;
  color: var(--text-secondary);
}

.typed-text { color: var(--text-primary); }

.pair__found { margin-top: var(--sp-16); }

/* ---------- Category type block ---------- */

.cats { }
.cats__group + .cats__group { margin-top: var(--sp-24); }
.cats__list {
  margin-top: var(--sp-8);
  font-family: var(--serif);
  font-style: normal;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -.2px;
  color: var(--text-primary);
}
.cats__list li { display: inline; }
.cats__list li::after {
  content: " · ";
  color: var(--text-quaternary);
}
.cats__list li:last-child::after { content: ""; }

/* ---------- Plan table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.plans {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 21px;
  letter-spacing: -.1px;
  text-align: left;
}

.plans caption {
  text-align: left;
  padding-bottom: var(--sp-12);
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 16px;
}

.plans th,
.plans td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--ink-400);
  vertical-align: top;
  color: var(--text-secondary);
}

.plans thead th {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.plans tbody th {
  font-weight: 400;
  color: var(--text-primary);
}

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

/* ---------- Surfaces list ---------- */

.surface + .surface { margin-top: var(--sp-32); }
.surface h3 { margin-bottom: var(--sp-8); }

/* ---------- FAQ (support page) ---------- */

.faq { }
.faq > * + * { margin-top: var(--sp-32); }

.faq h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -.2px;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

.faq p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -.4px;
  color: var(--text-secondary);
}

.faq p + p { margin-top: var(--sp-12); }

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

.footer {
  border-top: 1px solid var(--ink-400);
  padding-block: var(--sp-40) var(--sp-56);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__mark { width: 24px; height: 24px; flex: none; }

.footer__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -.012em;
  color: var(--text-primary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  line-height: 20px;
}

.footer__links a { color: var(--text-secondary); text-decoration: none; }
.footer__links a:hover { color: var(--text-primary); text-decoration: underline; }

.footer__meta { color: var(--text-quaternary); }
.footer__meta a { color: var(--text-tertiary); }

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-72) var(--sp-56);
}

.hero__inner { position: relative; z-index: 1; }

.hero__product {
  margin-top: var(--sp-40);
  font-weight: 400;
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -.4px;
  color: var(--text-secondary);
  max-width: 34rem;
}

.hero__badge { margin-top: var(--sp-32); }

/* ---------- Motion: the Selah Pause ---------- */

.reveal-verse,
.reveal-ref {
  opacity: 0;
  transform: translateY(14px);
  animation: selah-reveal 420ms var(--reveal) forwards;
}

.reveal-ref { animation-delay: 120ms; }

.halo--reveal {
  opacity: 0;
  animation: selah-halo 560ms var(--dissolve) forwards;
}

@keyframes selah-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes selah-halo {
  to { opacity: 1; }
}

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

@media (min-width: 1024px) {
  .verse--t1 { font-size: 56px; line-height: 66px; letter-spacing: -.76px; }
  .verse--t2 { font-size: 43px; line-height: 56px; letter-spacing: -.51px; }
  .verse--t3 { font-size: 33px; line-height: 46px; letter-spacing: -.25px; }
  .hero { padding-block: var(--sp-96) var(--sp-72); }
  .section { padding-block: var(--sp-72); }
}

@media (max-width: 420px) {
  .verse--t1 { font-size: 34px; line-height: 42px; letter-spacing: -.5px; }
  .verse--t2 { font-size: 27px; line-height: 36px; letter-spacing: -.35px; }
  .verse--t3 { font-size: 22px; line-height: 31px; letter-spacing: -.2px; }
  .title-lg { font-size: 27px; line-height: 33px; }
  .hero { padding-block: var(--sp-56) var(--sp-40); }
}

/* ---------- Preference guards ---------- */

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--ink-500);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-verse,
  .reveal-ref,
  .halo--reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Integration: secondary-page header/footer structure ---------- */

.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  min-height: var(--header-h);
}

.site-header > .wrap > a:last-child {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--text-secondary);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header > .wrap > a:last-child:hover { color: var(--text-primary); }

.footer > .wrap { display: flex; flex-direction: column; gap: var(--sp-16); }

.footer .brand span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -.012em;
  color: var(--text-primary);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  line-height: 20px;
}

.footer nav a { color: var(--text-secondary); text-decoration: none; }
.footer nav a:hover { color: var(--text-primary); text-decoration: underline; }

.footer > .wrap > a[href^="mailto:"] { color: var(--text-tertiary); font-size: 15px; text-decoration: none; }
.footer > .wrap > a[href^="mailto:"]:hover { color: var(--text-primary); text-decoration: underline; }

.footer > .wrap > p { color: var(--text-quaternary); font-size: 12px; line-height: 16px; margin: 0; }

.site-header > .wrap > * + *,
.footer > .wrap > * + * { margin-top: 0; }
