:root {
  --ink: #142626;
  --muted: #62706b;
  --paper: #fbf7f0;
  --paper-deep: #efe1ce;
  --teal: #183d3d;
  --teal-soft: #dcebea;
  --copper: #c46a4a;
  --amber: #f1b05d;
  --sky: #d8ebf5;
  --white: #fffdf8;
  --line: rgba(20, 38, 38, 0.14);
  --shadow: 0 28px 90px rgba(30, 48, 44, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 61, 61, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(24, 61, 61, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: var(--sans);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(20, 38, 38, 0.08);
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(24, 61, 61, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(20, 38, 38, 0.72);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(24, 61, 61, 0.09);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(42px, 6vw, 74px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 72px);
  overflow: hidden;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-highlight {
  color: var(--teal);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.store-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  font-weight: 800;
}

.store-button {
  gap: 12px;
  min-width: 188px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 35px rgba(20, 38, 38, 0.18);
}

.store-button.dark {
  background: var(--white);
  color: var(--teal);
}

.store-button small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.72;
}

.store-icon {
  position: relative;
  width: 26px;
  height: 30px;
  border-radius: 50% 50% 46% 46%;
  background: currentColor;
}

.store-icon::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -7px;
  width: 10px;
  height: 14px;
  border-radius: 10px 10px 0 10px;
  background: currentColor;
  transform: rotate(34deg);
}

.store-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 12px;
  width: 11px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
}

.store-button.dark .store-icon::after {
  background: var(--white);
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid rgba(20, 38, 38, 0.18);
  color: var(--teal);
  background: rgba(255, 253, 248, 0.64);
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 54px -40px 48px 32px;
  border: 1px solid rgba(24, 61, 61, 0.16);
  background: repeating-linear-gradient(135deg, rgba(24, 61, 61, 0.1) 0 1px, transparent 1px 18px);
  transform: rotate(-5deg);
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 12px solid #162929;
  border-radius: 42px;
  background: #162929;
  box-shadow: var(--shadow);
}

.phone-main {
  right: 10%;
  top: 0;
  width: min(330px, 56vw);
  aspect-ratio: 9 / 18.6;
  transform: rotate(3deg);
}

.phone-side {
  left: 2%;
  bottom: 8px;
  width: min(238px, 42vw);
  aspect-ratio: 9 / 18.6;
  transform: rotate(-8deg);
  opacity: 0.95;
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #162929;
  transform: translateX(-50%);
}

.app-screen {
  width: 100%;
  height: 100%;
  padding: 62px 24px 24px;
  border-radius: 30px;
}

.app-screen.morning {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0)),
    linear-gradient(145deg, #f8dfb8, #eaf3ef 46%, #bfd9dc);
}

.app-screen.evening {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(255, 253, 248, 0)),
    linear-gradient(145deg, #d8ebf5, #f5d7c2 55%, #dbe6c4);
}

.screen-kicker {
  margin: 0 0 16px;
  color: rgba(20, 38, 38, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-screen h2 {
  color: var(--teal);
  font-size: clamp(26px, 4vw, 38px);
}

.screen-ref {
  margin: 16px 0 0;
  color: var(--copper);
  font-weight: 900;
}

.prayer-card,
.mini-list,
.screen-actions {
  margin-top: 28px;
}

.prayer-card {
  padding: 18px;
  border: 1px solid rgba(20, 38, 38, 0.12);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.78);
}

.prayer-card span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prayer-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}

.screen-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-actions span {
  height: 46px;
  border-radius: 16px;
  background: rgba(24, 61, 61, 0.16);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list span {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
  color: rgba(20, 38, 38, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.mini-list span:first-child {
  background: rgba(24, 61, 61, 0.88);
  color: var(--white);
}

.feature-band,
.legal-page {
  padding-inline: clamp(20px, 5vw, 72px);
}

.feature-band {
  padding-top: clamp(58px, 8vw, 100px);
  padding-bottom: clamp(58px, 8vw, 104px);
  background: var(--white);
}

.section-heading {
  max-width: 800px;
}

.section-heading h2,
.legal-hero h1 {
  font-size: clamp(36px, 5.5vw, 70px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-card {
  min-height: 280px;
  padding: 28px;
  background: var(--white);
}

.feature-number {
  display: inline-flex;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-top: 42px;
  color: var(--teal);
  font-size: 30px;
}

.feature-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 38px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #132525;
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.footer-brand .brand-mark {
  background: var(--paper);
  color: var(--teal);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
  justify-content: flex-end;
  font-weight: 800;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.72);
}

.legal-page {
  padding-top: clamp(56px, 8vw, 94px);
  padding-bottom: clamp(68px, 8vw, 110px);
}

.legal-hero {
  max-width: 920px;
}

.legal-hero p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.legal-document {
  max-width: 920px;
  margin-top: 42px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 70px rgba(30, 48, 44, 0.1);
}

.legal-document h2 {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: clamp(28px, 3vw, 42px);
}

.legal-document h2:first-of-type {
  margin-top: 22px;
}

.legal-document h3 {
  margin: 26px 0 0;
  color: var(--copper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: rgba(20, 38, 38, 0.78);
}

.raw-legal {
  white-space: pre-line;
  color: rgba(20, 38, 38, 0.78);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

.text-link {
  color: var(--copper);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.legal-document ul {
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-main {
    right: 15%;
  }

  .phone-side {
    left: 12%;
  }

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

}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
    padding: 14px 20px;
  }

  .brand {
    max-width: calc(100vw - 94px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 22px 50px rgba(20, 38, 38, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 12px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-visual::before {
    inset: 40px 0 36px 0;
  }

  .phone-main {
    right: 4%;
    width: min(286px, 70vw);
  }

  .phone-side {
    left: 0;
    width: min(208px, 48vw);
  }

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

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

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .phone {
    border-width: 9px;
    border-radius: 34px;
  }

  .app-screen {
    padding: 52px 18px 18px;
    border-radius: 24px;
  }

  .app-screen h2 {
    font-size: 25px;
  }

  .prayer-card p {
    font-size: 18px;
  }

  .phone-side {
    opacity: 0.74;
  }

  .feature-card {
    padding: 24px;
  }

  .legal-document {
    padding: 24px 20px;
  }
}
