:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #f0f0f0;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-subtle: rgba(247, 243, 241, 0.88);
  --border: #E0E0E0;
  --border-strong: #d0d0d0;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #6E6E6E;
  --accent: #FF6B6B;
  --accent-soft: rgba(255, 107, 107, 0.1);
  --selection-surface: #F7F3F1;
  --selection-border: #FF6B6B;
  --shadow-soft: 0 10px 28px rgba(26, 26, 26, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --content-width: 740px;
  --font-brand: 'Adamina', Georgia, serif;
  --font-ui: 'Afacad', 'Trebuchet MS', sans-serif;
  --device-frame-bg: #171717;
  --device-screen-start: #FFFFFF;
  --device-screen-end: #F7F3F1;
  --device-screen-text: #1A1A1A;
  --device-screen-muted: #6E6E6E;
  --device-card-bg: rgba(255, 255, 255, 0.9);
  --device-card-border: #E0E0E0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-secondary: #181818;
    --bg-tertiary: #2C2C2C;
    --surface: rgba(24, 24, 24, 0.96);
    --surface-subtle: rgba(40, 35, 34, 0.82);
    --border: #2C2C2C;
    --border-strong: #4A4A4A;
    --text: #F5F5F5;
    --text-secondary: #E0E0E0;
    --text-tertiary: #C0C0C0;
    --accent: #FF6B6B;
    --accent-soft: rgba(255, 107, 107, 0.12);
    --selection-surface: #282322;
    --selection-border: #FF8A80;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);
    --device-frame-bg: #121212;
    --device-screen-start: #181818;
    --device-screen-end: #121212;
    --device-screen-text: #F5F5F5;
    --device-screen-muted: #C0C0C0;
    --device-card-bg: rgba(40, 35, 34, 0.82);
    --device-card-border: #2C2C2C;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 68%, white 32%);
  outline-offset: 3px;
}

.site-shell {
  overflow: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > main {
  flex: 1 0 auto;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding-top: 0.75rem;
}

.site-header--document {
  padding-top: 0.9rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-lockup__text {
  display: grid;
  gap: 0.12rem;
}

.brand-lockup__name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.hero {
  padding: 2rem 0 1.5rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  max-width: 33rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.85rem, 6.5vw, 4.45rem);
  max-width: 9.4ch;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero__copy {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.app-store-badge img {
  display: block;
  width: 168px;
  height: 56px;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-1px);
}

.app-store-badge.is-disabled,
.app-store-badge[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-store-badge.is-disabled:hover,
.app-store-badge[aria-disabled='true']:hover {
  transform: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.4rem 0;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 8% 6%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 214, 153, 0.28), transparent 34%),
    radial-gradient(circle at 38% 34%, rgba(255, 171, 145, 0.2), transparent 38%),
    radial-gradient(circle at 62% 40%, rgba(255, 107, 107, 0.12), transparent 44%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: min(72%, 280px);
  height: 22px;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.26);
  filter: blur(18px);
  pointer-events: none;
}

.device-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  padding: 0.85rem;
  border-radius: 34px;
  background: var(--device-frame-bg);
  box-shadow:
    0 24px 44px rgba(7, 6, 6, 0.2),
    0 6px 12px rgba(7, 6, 6, 0.12);
}

.device-screen {
  border-radius: 28px;
  min-height: 560px;
  padding: 1.2rem;
  background: linear-gradient(180deg, var(--device-screen-start) 0%, var(--device-screen-end) 100%);
  color: var(--device-screen-text);
}

.device-screen__brand {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.device-screen__brand img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.device-screen__brand-name {
  font-family: var(--font-brand);
  font-size: 1.7rem;
}

.verse-card {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 24px;
  background: var(--device-card-bg);
  border: 1px solid var(--device-card-border);
}

.verse-card__label,
.verse-card__reference,
.device-screen__note {
  color: var(--device-screen-muted);
}

.verse-card__verse {
  margin: 0.7rem 0;
  font-family: var(--font-brand);
  font-size: 1.45rem;
  line-height: 1.32;
}

.device-screen__note {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.section {
  padding: 1.25rem 0 4.25rem;
}

.section__header {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.section--proof {
  padding-top: 3rem;
}

.proof-list {
  display: grid;
  gap: 1rem;
}

.proof-item {
  padding-top: 1rem;
  min-width: 0;
}

.proof-item + .proof-item {
  border-top: 1px solid var(--border);
}

.proof-item__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.proof-item__copy {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.site-footer {
  margin-top: auto;
  padding: 1rem 0 1.2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  color: var(--text-secondary);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__copy {
  color: var(--text-tertiary);
  font-size: 0.98rem;
}

.legal-shell {
  padding: 1rem 0 4rem;
}

.legal-shell__inner {
  max-width: 980px;
}

.legal-hero {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.legal-hero__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.legal-hero__copy,
.legal-hero__updated {
  color: var(--text-secondary);
}

.legal-layout {
  display: grid;
  gap: 1.25rem;
}

.legal-nav {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  padding: 1rem 1rem 0.85rem;
}

.legal-nav__title {
  margin: 0 0 0.8rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-nav__list {
  display: grid;
  gap: 0.35rem;
}

.legal-nav__list a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
}

.legal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.3rem, 2vw, 2rem);
}

.legal-content section + section {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 1.03rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

@media (min-width: 760px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 3rem;
  }

  .proof-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .proof-item,
  .proof-item + .proof-item {
    border-top: 0;
    padding-top: 1rem;
  }

  .legal-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }

  .legal-nav {
    position: sticky;
    top: 1rem;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .hero {
    padding-top: 1.4rem;
  }

  .device-screen {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .hero-visual,
  .proof-list {
    animation: rise-in 520ms ease both;
  }

  .hero-visual {
    animation-delay: 90ms;
  }

  .proof-list {
    animation-delay: 120ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .site-footer,
  .legal-nav,
  .hero-visual,
  .hero__actions {
    display: none !important;
  }

  .legal-content {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .legal-content section + section {
    border-top: 0;
    padding-top: 1rem;
    margin-top: 1rem;
  }
}
