@font-face {
  font-family: Inter;
  src: url('./assets/fonts/Inter_400Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('./assets/fonts/Inter_500Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('./assets/fonts/Inter_600SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Lora;
  src: url('./assets/fonts/Lora_400Regular_Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #10142E;
  --sun-blue: #2D46B5;
  --coral: #E2574C;
  --amber: #EE9238;
  --gold: #F4C45E;
  --cream: #F6F1E8;
  --olive: #D4E0A0;
  --night-rgb: 16 20 46;
  --sun-blue-rgb: 45 70 181;
  --coral-rgb: 226 87 76;
  --amber-rgb: 238 146 56;
  --gold-rgb: 244 196 94;
  --cream-rgb: 246 241 232;
  --olive-rgb: 212 224 160;
  --white-rgb: 255 255 255;
  --muted: rgb(var(--cream-rgb) / 88%);
  --glass: rgb(var(--white-rgb) / 7%);
  --glass-strong: rgb(var(--white-rgb) / 10%);
  --line: rgb(var(--white-rgb) / 10%);
  --frame-edge: rgb(var(--white-rgb) / 24%);
  --shadow-ink: rgb(var(--night-rgb) / 48%);
  --nav-height: 68px;
  --page-width: 1240px;
  --gutter: clamp(22px, 5.2vw, 76px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 22px);
  background-color: var(--night);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  background-color: var(--night);
  color: var(--cream);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(ellipse 62% 62% at 0% 0%, rgb(var(--sun-blue-rgb) / 95%) 0%, transparent 100%),
    radial-gradient(ellipse 52% 52% at 105% 72%, rgb(var(--coral-rgb) / 85%) 0%, transparent 100%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgb(var(--amber-rgb) / 90%) 0%, transparent 100%),
    radial-gradient(ellipse 38% 38% at 75% 112%, rgb(var(--gold-rgb) / 75%) 0%, transparent 100%);
  content: '';
  pointer-events: none;
  animation: sunrise-drift 64s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(ellipse 25% 38% at 50% 40%, rgb(var(--night-rgb) / 86%) 0%, rgb(var(--night-rgb) / 48%) 56%, transparent 100%),
    linear-gradient(180deg, rgb(var(--night-rgb) / 30%), rgb(var(--night-rgb) / 36%) 48%, rgb(var(--night-rgb) / 46%) 100%);
  content: '';
  pointer-events: none;
}

@keyframes sunrise-drift {
  from { transform: translate3d(-1%, -0.5%, 0) scale(1); }
  to { transform: translate3d(0.8%, 0.7%, 0) scale(1.015); }
}

main {
  position: relative;
  isolation: isolate;
}

main::before {
  position: absolute;
  z-index: -1;
  inset: 36% 0 0;
  background-image:
    radial-gradient(ellipse 46% 26% at 0% 18%, rgb(var(--amber-rgb) / 24%) 0%, transparent 100%),
    radial-gradient(ellipse 42% 24% at 100% 56%, rgb(var(--coral-rgb) / 18%) 0%, transparent 100%),
    radial-gradient(ellipse 70% 24% at 72% 100%, rgb(var(--gold-rgb) / 26%) 0%, transparent 100%);
  content: '';
  pointer-events: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 999px;
  padding: 12px 18px;
  background-color: var(--cream);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 8px 28px var(--shadow-ink);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: var(--nav-height);
  border-bottom: 1px solid rgb(var(--white-rgb) / 8%);
  background-color: rgb(var(--night-rgb) / 78%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell {
  display: flex;
  width: min(100% - 40px, var(--page-width));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.brand img {
  width: 83px;
  height: auto;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.site-link[aria-current='page'] {
  color: var(--cream);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  background-color: var(--cream);
  box-shadow: 0 10px 30px var(--shadow-ink);
  color: var(--night);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.button--small {
  min-height: 44px;
  gap: 8px;
  padding-inline: 17px;
  font-size: 13px;
  white-space: nowrap;
}

.button--secondary {
  border-color: var(--line);
  background-color: var(--glass-strong);
  box-shadow: none;
  color: var(--cream);
}

.apple-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (hover: hover) {
  .brand:hover,
  .site-link:hover,
  .text-link:hover,
  .button:hover,
  .skip-link:hover,
  .faq-list summary:hover {
    transform: translateY(-2px);
  }

  .site-link:hover,
  .faq-list summary:hover {
    background-color: var(--glass-strong);
    color: var(--cream);
  }

  .text-link:hover,
  .legal-copy a:hover,
  .step-item h3 a:hover {
    color: var(--olive);
  }

  .button--primary:hover {
    background-color: var(--olive);
    box-shadow: 0 12px 34px var(--shadow-ink);
  }

  .button--secondary:hover {
    background-color: rgb(var(--white-rgb) / 16%);
    box-shadow: 0 10px 28px var(--shadow-ink);
  }
}

.button:active,
.site-link:active,
.text-link:active,
.brand:active,
.faq-list summary:active {
  transform: scale(0.97);
}

.hero {
  display: grid;
  width: min(100%, var(--page-width));
  min-height: calc(100svh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  margin-inline: auto;
  padding: 58px var(--gutter) 66px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: 24px;
}

.display-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.16;
  text-wrap: balance;
}

.display-title em {
  font-family: Lora, Georgia, serif;
  font-size: 0.99em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-title {
  max-width: none;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.17;
}

.hero-title span {
  display: block;
}

.hero-lead,
.section-lead {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  min-width: 172px;
}

.hero-phones {
  position: relative;
  min-height: min(85vh, 720px);
  align-self: stretch;
}

.phone {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border: 2px solid var(--frame-edge);
  border-radius: 12% / 5.2%;
  background-color: var(--night);
  box-shadow: 0 26px 64px var(--shadow-ink);
}

.phone picture,
.phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone img {
  object-fit: cover;
}

.phone--hero {
  position: absolute;
  width: clamp(260px, 23.5vw, 338px);
}

.phone--hero-back {
  z-index: 1;
  top: 0;
  left: 0;
  transform: rotate(-1.5deg);
}

.phone--hero-front {
  z-index: 2;
  top: 8%;
  right: 0;
  transform: rotate(1.5deg);
}

.section {
  position: relative;
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(86px, 11vw, 146px) var(--gutter);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(36px, 5.4vw, 70px);
}

.section-title {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.4vw, 3.9rem);
  line-height: 1.18;
}

.section-heading .section-lead {
  margin-top: 18px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: clamp(54px, 9vw, 140px);
}

.steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 20px;
  bottom: 56px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, rgb(var(--gold-rgb) / 74%), rgb(var(--coral-rgb) / 48%), rgb(var(--sun-blue-rgb) / 50%));
  content: '';
}

.step-item {
  position: relative;
  display: grid;
  min-height: 192px;
  grid-template-columns: 1fr;
  padding: 0 0 44px 50px;
}

.step-light,
.timeline-light {
  position: absolute;
  top: 5px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgb(var(--cream-rgb) / 52%);
  border-radius: 50%;
  background-color: rgb(var(--gold-rgb) / 16%);
  box-shadow: 0 0 28px rgb(var(--gold-rgb) / 25%);
}

.step-item h3,
.trial-timeline h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.step-item p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.prayer-sample {
  max-width: 420px;
  margin: 24px 0 0;
}

.prayer-quote {
  margin: 0;
  color: var(--cream);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.55;
  text-wrap: pretty;
}

.prayer-word {
  color: var(--muted);
}

.prayer-sample.is-visible .prayer-word {
  animation: prayer-word-light 260ms var(--ease) both;
  animation-delay: calc(var(--word-index) * 310ms);
}

@keyframes prayer-word-light {
  from { color: var(--muted); }
  to { color: var(--cream); }
}

.prayer-sample figcaption {
  margin-top: 12px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}


.step-item h3 a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: -10px -10px -6px;
  border-radius: 999px;
  padding: 0 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.phone-screen {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.phone-screen--feel {
  opacity: 1;
  visibility: visible;
}

.steps:has(.step-item--pray:target) + .how-phone-sticky .phone-screen,
.steps:has(.step-item--reflect:target) + .how-phone-sticky .phone-screen {
  opacity: 0;
  visibility: hidden;
}

.steps:has(.step-item--pray:target) + .how-phone-sticky .phone-screen--pray,
.steps:has(.step-item--reflect:target) + .how-phone-sticky .journal-screen {
  opacity: 1;
  visibility: visible;
}

.journal-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 28px;
  background-color: var(--night);
  background-image: radial-gradient(ellipse 85% 60% at 100% 0%, rgb(var(--sun-blue-rgb) / 34%), transparent 100%);
  color: var(--cream);
  text-align: left;
}

.journal-screen p:nth-child(2) {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.journal-screen .journal-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.journal-note {
  max-width: 360px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
  background-color: var(--glass);
}

.journal-note p:last-child {
  color: var(--cream);
  font-size: 16px;
}

.how-phone-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 35px);
  width: min(100%, 258px);
  margin: 0 auto;
}

.moments-section {
  padding-top: clamp(72px, 9vw, 116px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  display: flex;
  min-width: 0;
  min-height: 460px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 16px;
  background-color: var(--glass);
  box-shadow: 0 26px 64px var(--shadow-ink);
}

.phone--feature {
  width: min(100%, 184px);
}

.feature-card figcaption {
  min-height: 52px;
  align-content: center;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.feature-card--reminders figcaption {
  align-self: stretch;
  text-align: left;
}

.feature-card--words {
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 38px);
}

.feature-card--words h3 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.25rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.feature-card--words p:last-child {
  max-width: 20ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.reminders-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.reminders-copy .section-title {
  max-width: 18ch;
}

.widget-note {
  max-width: 55ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.reminder-visual {
  width: min(100%, 600px);
  justify-self: end;
}

.example-label {
  margin: 0 0 16px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.notification-stack {
  display: grid;
  gap: 14px;
}

.notification-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 22px;
  background-color: rgb(var(--white-rgb) / 7%);
  box-shadow: 0 26px 64px var(--shadow-ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.notification-app-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.notification-copy {
  min-width: 0;
  flex: 1;
}

.notification-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.notification-meta span:not(:first-child) {
  font-weight: 400;
  letter-spacing: 0;
}

.notification-title,
.notification-body {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.notification-title {
  font-weight: 600;
}

.notification-body {
  color: var(--muted);
}

.privacy-section {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(76px, 10vw, 130px);
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  grid-template-areas: "intro facts";
  align-items: start;
  column-gap: clamp(36px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(30px, 6vw, 76px);
  background-color: rgb(var(--white-rgb) / 6%);
  box-shadow: 0 26px 64px var(--shadow-ink);
}

.privacy-intro {
  grid-area: intro;
}

.privacy-intro .section-title {
  max-width: 16ch;
}

.privacy-intro .section-lead {
  margin-top: 18px;
}

.privacy-intro > .text-link {
  margin-top: 18px;
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(18px, 3vw, 36px);
  grid-area: facts;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-facts li {
  border-top: 1px solid var(--line);
  padding: 17px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.privacy-facts li:last-child {
  grid-column: 1 / -1;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 999px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(var(--cream-rgb) / 52%);
  text-underline-offset: 5px;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.plans-section {
  padding-top: clamp(76px, 10vw, 132px);
}

.plans-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.1fr);
  grid-template-areas: "phone copy";
  align-items: start;
  gap: clamp(44px, 8vw, 116px);
}

.plans-copy {
  grid-area: copy;
  min-width: 0;
}

.trial-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.trial-timeline::before {
  position: absolute;
  top: 17px;
  bottom: 28px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, rgb(var(--gold-rgb) / 78%), rgb(var(--coral-rgb) / 45%), rgb(var(--sun-blue-rgb) / 40%));
  content: '';
}

.trial-timeline li {
  position: relative;
  min-height: 70px;
  padding: 0 0 20px 44px;
}

.trial-timeline .timeline-light {
  top: 0;
  width: 24px;
  height: 24px;
}

.trial-timeline h3 {
  margin-bottom: 1px;
  font-size: 17px;
}

.trial-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.plan-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 22px;
  background-color: var(--glass);
}

.plan-card--selected {
  border-color: rgb(var(--olive-rgb) / 72%);
  background-color: rgb(var(--olive-rgb) / 9%);
}

.plan-card h3 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price strong {
  color: var(--cream);
  font-size: 22px;
  font-weight: 600;
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  border-radius: 999px;
  padding: 4px 12px;
  background-color: var(--olive);
  color: var(--night);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.plan-note {
  max-width: 24ch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-terms,
.billing-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.billing-note {
  margin-top: 12px;
}

.plan-benefits {
  display: grid;
  gap: 9px;
  margin: 22px 0 25px;
  padding-left: 22px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.5;
}

.phone--paywall {
  grid-area: phone;
  position: sticky;
  top: calc(var(--nav-height) + 30px);
  width: min(100%, 282px);
  margin: 0 auto;
}

.faq-section {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(88px, 11vw, 142px);
}

.faq-section .section-heading {
  max-width: 720px;
  margin-inline: auto;
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--cream);
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  list-style-position: inside;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.faq-list details p {
  max-width: 68ch;
  margin: 0;
  padding: 0 14px 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.final-cta {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px var(--gutter) 100px;
  text-align: center;
  isolation: isolate;
}

.final-cta::before {
  position: absolute;
  z-index: -1;
  inset: -16%;
  background-image:
    radial-gradient(ellipse 58% 76% at 20% 110%, rgb(var(--amber-rgb) / 64%) 0%, transparent 100%),
    radial-gradient(ellipse 43% 58% at 93% 88%, rgb(var(--coral-rgb) / 46%) 0%, transparent 100%),
    radial-gradient(ellipse 45% 50% at 68% 116%, rgb(var(--gold-rgb) / 54%) 0%, transparent 100%);
  content: '';
  pointer-events: none;
}

.final-cta .section-title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4.4vw, 3.7rem);
}

.final-cta > p {
  max-width: 54ch;
  margin: 17px 0 25px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.site-footer {
  border-top: 1px solid rgb(var(--white-rgb) / 8%);
  background-color: rgb(var(--night-rgb) / 46%);
}

.footer-shell {
  min-height: 106px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.footer-store {
  flex: 0 0 auto;
}

.footer-brand img {
  width: 78px;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-main {
  min-height: calc(100svh - var(--nav-height));
  padding: clamp(58px, 8vw, 100px) var(--gutter) 96px;
}

.legal-wrap {
  width: min(100%, 900px);
  margin-inline: auto;
}

.legal-wrap--wide {
  width: min(100%, 980px);
}

.legal-title {
  font-size: clamp(2.7rem, 5.6vw, 4rem);
}

.legal-intro {
  max-width: 68ch;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-copy {
  max-width: 68ch;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 58px);
  background-color: rgb(var(--night-rgb) / 42%);
  box-shadow: 0 26px 64px var(--shadow-ink);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.legal-copy section + section {
  margin-top: 38px;
}

.legal-copy h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.legal-copy p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-copy a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgb(var(--cream-rgb) / 50%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  text-underline-offset: 4px;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.legal-copy a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.legal-back {
  margin: 26px 0 0;
}

.support-copy section + section {
  margin-top: 34px;
}

.not-found-main {
  display: grid;
  min-height: calc(100svh - var(--nav-height) - 106px);
  place-items: center;
  padding: 60px var(--gutter);
}

.not-found-card {
  width: min(100%, 720px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(30px, 6vw, 76px);
  background-color: var(--glass);
  box-shadow: 0 26px 64px var(--shadow-ink);
}

.not-found-card .section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.not-found-card > p {
  max-width: 55ch;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 1060px) {
  .nav-shell,
  .footer-shell {
    width: min(100% - 32px, var(--page-width));
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
  }

  .hero-phones {
    min-height: min(80vh, 620px);
  }

  .phone--hero {
    width: clamp(220px, 26vw, 270px);
  }

  .main-nav {
    gap: 0;
  }

  .site-link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 440px;
  }

  .phone--feature {
    width: min(78%, 184px);
  }

  .feature-card--words {
    min-height: 440px;
  }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }

  .nav-shell {
    gap: 10px;
  }

  .hero {
    min-height: calc(100svh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 44px var(--gutter) 52px;
  }

  .hero-copy {
    max-width: 620px;
    padding-block: 0;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.4rem, 7.4vw, 3.8rem);
  }

  .hero-lead {
    max-width: 56ch;
    margin-top: 15px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-phones {
    display: flex;
    min-height: 0;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .phone--hero {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(42vw, 168px);
  }

  .phone--hero-back {
    display: none;
  }

  .phone--hero-front {
    transform: rotate(1deg);
  }

  .how-layout {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.62fr);
    gap: 38px;
  }

  .how-phone-sticky {
    width: min(100%, 228px);
  }

  .reminders-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .reminder-visual {
    justify-self: stretch;
  }

  .privacy-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "facts";
    row-gap: 24px;
  }

  .privacy-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-facts li:last-child {
    grid-column: auto;
  }

  .reminders-copy .section-title {
    max-width: 18ch;
  }

  .footer-shell {
    display: grid;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand store"
      "nav nav"
      "copy copy";
    align-items: center;
    gap: 12px 16px;
    padding-block: 22px;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-store {
    grid-area: store;
    justify-self: end;
  }

  .footer-nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .copyright {
    grid-area: copy;
    margin: 0;
    text-align: right;
  }

  .plans-layout {
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
    gap: 34px;
  }

  .phone--paywall {
    width: min(100%, 220px);
  }
}

@media (max-width: 600px) {
  .nav-shell,
  .footer-shell {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 76px;
  }

  .button--small {
    min-height: 44px;
    gap: 7px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .button--small .apple-mark {
    width: 16px;
    height: 16px;
  }

  .hero {
    gap: 16px;
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(32px, 9.2vw, 36px);
    line-height: 1.17;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .phone--hero {
    width: min(42vw, 162px);
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .section-lead {
    margin-top: 14px;
    font-size: 16px;
  }

  .how-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .step-item {
    min-height: 0;
    padding-bottom: 34px;
  }

  .step-item h3 {
    font-size: 22px;
  }

  .step-item p {
    font-size: 16px;
  }

  .steps::before {
    bottom: 52px;
  }

  .how-phone-sticky {
    position: relative;
    top: auto;
    width: min(48vw, 178px);
    margin: 0 auto;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature-card,
  .feature-card--words {
    min-height: 390px;
    padding: 19px;
  }

  .phone--feature {
    width: min(52vw, 178px);
  }

  .feature-card figcaption {
    min-height: 42px;
    font-size: 15px;
  }

  .feature-card--words {
    min-height: 280px;
  }

  .privacy-panel {
    padding: 28px 22px;
    row-gap: 20px;
  }

  .privacy-facts {
    margin-top: 0;
  }

  .plan-card {
    min-height: 84px;
    padding: 15px 17px;
  }

  .plans-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "phone";
  }

  .phone--paywall {
    position: relative;
    top: auto;
    width: min(58vw, 218px);
    margin: 16px auto 0;
  }

  .faq-list summary {
    min-height: 60px;
    font-size: 17px;
  }

  .final-cta {
    min-height: 385px;
    padding-block: 78px;
  }

  .footer-nav .site-link {
    padding-inline: 12px;
  }

  .legal-main {
    padding-top: 56px;
    padding-bottom: 70px;
  }

  .legal-intro {
    margin-bottom: 25px;
    font-size: 17px;
  }

  .legal-copy {
    padding: 24px 20px;
    font-size: 17px;
  }

  .legal-copy section + section {
    margin-top: 30px;
  }

  .not-found-main {
    min-height: calc(100svh - var(--nav-height) - 150px);
  }
}

@media (max-width: 370px) {
  .nav-shell {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 68px;
  }

  .button--small {
    padding-inline: 9px;
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(29px, 9vw, 33px);
  }
}

@media (max-height: 760px) and (max-width: 780px) {
  .hero {
    padding-top: 22px;
    padding-bottom: 26px;
  }

  .phone--hero {
    width: min(36vw, 148px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }

  .prayer-word {
    color: var(--cream);
  }

  .prayer-sample.is-visible .prayer-word {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .brand,
  .site-link,
  .button,
  .text-link,
  .skip-link,
  .faq-list summary {
    transition-duration: 0.01ms;
  }
}

/* Concept: feelings chips, grid, inside list, quieter plans */
.feeling-chips,
.feelings-grid,
.inside-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feeling-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 58ch;
  margin-top: 22px;
}

.feeling-chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background-color: var(--glass);
  color: var(--cream);
  font-size: 14px;
  line-height: 1.4;
}

.feelings-grid,
.inside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.feelings-grid li,
.inside-grid li {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background-color: var(--glass);
}

.feelings-grid h3,
.inside-grid h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.feelings-grid p,
.inside-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feelings-section,
.inside-section {
  padding-block: clamp(60px, 8vw, 100px);
}

.plans-section--quiet .section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.plans-section--quiet .plans-layout {
  display: block;
  max-width: 640px;
}

@media (min-width: 1000px) {
  .feelings-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .inside-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
