/* ==========================================================================
   Bible Voice – official website
   Mobile first: base = phone (393 design), >=768 tablet, >=1024 desktop (1440 design)
   ========================================================================== */

:root {
  --c-brand: #a55500;
  --c-brand-hover: #8f4a00;
  --c-logo: #bb5931;
  --c-ink: #0d0e10;
  --c-text: #161a18;
  --c-muted: #727370;
  --c-muted-2: #808080;
  --c-dark: #2e2a20;
  --c-cream: #fcf9f3;
  --c-white: #fff;

  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, "Palatino LT STD", Georgia, serif;
  --font-sans: "Google Sans", "Product Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 46px;
  --container: 1200px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.only-desktop {
  display: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--c-white);
  background: var(--c-brand);
}

.btn-primary:hover {
  background: var(--c-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(165, 85, 0, .25);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 50px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--c-white);
  background: var(--c-dark);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.store-btn__icon {
  flex-shrink: 0;
  width: 29px;
  height: 29px;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.store-btn__text small {
  font-size: 9px;
  font-weight: 400;
}

.store-btn__text strong {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  transition: box-shadow .25s;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 15px 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  margin-left: 9px;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.brand-tag {
  display: none;
  margin-left: 10px;
  font-size: 14px;
  color: #000;
  white-space: nowrap;
}

.main-nav {
  display: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-white);
  background: var(--c-logo);
  white-space: nowrap;
  transition: background-color .2s;
}

.btn-download:hover {
  background: #a34a26;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 -8px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 14px;
  width: 180px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  height: 50px;
  font-size: 15px;
  color: #1a1a1a;
}

.mobile-menu a + a {
  border-top: 1px solid #f0f0f0;
}

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

.hero {
  overflow: hidden;
  text-align: center;
  background: #fcf7ed;
}

.hero-content {
  padding-top: 34px;
}

.hero-title {
  font-size: 40px;
  line-height: 50px;
  font-weight: 700;
  color: var(--c-brand);
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 20px;
  line-height: 27px;
  color: var(--c-text);
}

.hero-desc {
  max-width: 320px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.hero-actions .btn {
  width: 186px;
  padding: 0;
}

.store-btn--hero {
  width: 153px;
  padding: 0;
}

.hero-visual {
  height: calc(100vw * 602 / 786);
  margin-top: 25px;
  background: url("../images/hero-bg-mobile.webp") center bottom / 100% auto no-repeat;
}

/* ---------- Features ---------- */

.features {
  padding: 31px 0 33px;
  text-align: center;
}

.section-title {
  max-width: 260px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: var(--c-ink);
}

.section-desc {
  max-width: 312px;
  margin: 2px auto 0;
  font-size: 16px;
  line-height: 23px;
  color: var(--c-muted);
}

.feature-grid {
  display: grid;
  gap: 20px;
  margin-top: 13px;
}

.feature-card {
  padding: 27px 8px 32px;
  border-radius: 20px;
  background: var(--c-white);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .09);
}

.feature-card img {
  width: 66px;
  height: 66px;
  margin: 0 auto;
}

.feature-card h3 {
  margin-top: 11px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #1c1b24;
}

.feature-card p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-muted-2);
}

/* ---------- Story ---------- */

.story {
  overflow: hidden;
  text-align: center;
  background: #faf7f1;
}

.story-content {
  padding-top: 42px;
}

.story-title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--c-ink);
}

.story-content p {
  margin-top: 13px;
  font-size: 15px;
  line-height: 23px;
  color: var(--c-muted);
}

.story-content p:first-of-type {
  margin-top: 10px;
}

.story-content .story-highlight {
  max-width: 320px;
  margin: 11px auto 0;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--c-brand);
}

.story-content .story-quote {
  margin-top: 16px;
  font-size: 17px;
  line-height: 22px;
  font-style: italic;
  font-weight: 700;
  color: var(--c-ink);
}

.story-visual {
  height: calc(100vw * 529 / 786);
  margin-top: 18px;
  background: url("../images/story-bg-mobile.webp") center bottom / 100% auto no-repeat;
}

/* ---------- Stats ---------- */

.stats {
  padding: 22px 0 36px;
  text-align: center;
  color: #fcf9f3;
  background: var(--c-brand);
}

.stats-title {
  max-width: 300px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
}

.stat-item img {
  width: 36px;
  height: 36px;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-text strong {
  margin-top: 3px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.stat-text > span {
  font-size: 12px;
  line-height: 16px;
  color: #ebd9c3;
  white-space: nowrap;
}

/* ---------- CTA ---------- */

.cta {
  overflow: hidden;
  text-align: center;
  background: #fefaf3;
}

.cta-content {
  padding-top: 42px;
}

.cta-eyebrow {
  font-size: 14px;
  line-height: 16px;
  color: var(--c-brand);
}

.cta-line {
  display: block;
  width: 34px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--c-brand);
}

.cta-title {
  margin-top: 12px;
  font-size: 28px;
  line-height: 37px;
  font-weight: 700;
  color: var(--c-ink);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
}

.store-btn--cta {
  width: 243px;
  height: 56px;
  gap: 8px;
  font-family: var(--font-sans);
}

.store-btn--cta .store-btn__icon--apple {
  width: 39px;
  height: 39px;
}

.store-btn--cta .store-btn__icon--play {
  width: 40px;
  height: 40px;
}

.store-btn--cta .store-btn__text small {
  font-size: 10.5px;
  font-weight: 400;
}

.store-btn--cta .store-btn__text strong {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
}

.cta-visual {
  height: calc(100vw * 530 / 786);
  margin-top: 33px;
  background: url("../images/cta-bg-mobile.webp") center bottom / 100% auto no-repeat;
}

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

.site-footer {
  padding: 33px 0 45px;
  text-align: center;
  color: #d3d0c9;
  background: var(--c-dark);
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  width: 60px;
  height: 60px;
}

.footer-logo span {
  margin-top: 7px;
  font-size: 20px;
  line-height: 28px;
  color: #fcf9f3;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: #f4f1ea;
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #a8a59d;
}

.footer-cta {
  display: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  row-gap: 15px;
  margin-top: 16px;
  padding: 16px 32px;
  border-top: 1px solid #45413a;
  border-bottom: 1px solid #45413a;
}

.footer-links a {
  justify-self: start;
  font-size: 12px;
  line-height: 14px;
  color: #a9a69e;
  transition: color .2s;
}

.footer-links a:nth-child(n + 3) {
  justify-self: end;
}

.mobile-menu a:hover {
  color: var(--c-brand);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 20px;
  color: #a9a69e;
}

.copyright img {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Tablet  >= 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --gutter: 40px;
  }

  .only-desktop {
    display: inline;
  }

  .only-mobile {
    display: none;
  }

  .header-inner {
    padding: 0 var(--gutter);
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-tag {
    display: inline;
  }

  .btn-download {
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    background: var(--c-brand);
  }

  .btn-download:hover {
    background: var(--c-brand-hover);
  }

  .menu-toggle {
    margin-left: 20px;
  }

  .mobile-menu {
    right: var(--gutter);
  }

  /* Hero */
  .hero {
    background-color: var(--c-cream);
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 80px;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 26px;
    line-height: 35px;
  }

  .hero-desc {
    max-width: 462px;
    margin-top: 14px;
    font-size: 18px;
    line-height: 26px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .btn,
  .btn {
    height: 64px;
    font-size: 18px;
    gap: 6px;
  }

  .hero-actions .btn {
    width: 252px;
  }

  .btn img {
    width: 28px;
    height: 28px;
  }

  .store-btn--hero {
    width: 232px;
    height: 64px;
    gap: 8px;
    background: #202020;
  }

  .store-btn--hero .store-btn__icon {
    width: 41px;
    height: 41px;
  }

  .store-btn--hero .store-btn__text small {
    font-size: 11.5px;
  }

  .store-btn--hero .store-btn__text strong {
    margin-top: 3px;
    font-size: 18px;
  }

  /* right part of the desktop artwork: the two phones */
  .hero-visual {
    height: calc(100vw * 567 / 760);
    margin-top: 24px;
    background-image: url("../images/hero-bg.webp");
    background-position: right bottom;
    background-size: calc(100vw * 1440 / 760) auto;
  }

  /* Features */
  .features {
    padding: 80px 0 96px;
  }

  .section-title {
    max-width: none;
    font-size: 48px;
    line-height: 60px;
  }

  .section-desc {
    max-width: 820px;
    margin-top: 15px;
    font-size: 26px;
    line-height: 42px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 30px;
  }

  .feature-card {
    padding: 26px 16px 30px;
  }

  .feature-card img {
    width: 70px;
    height: 70px;
  }

  .feature-card h3 {
    margin-top: 10px;
  }

  .feature-card p {
    margin-top: 8px;
    line-height: 23px;
  }

  /* Story: left part of the desktop artwork */
  .story-content {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 72px;
  }

  .story-title {
    font-size: 32px;
    line-height: 40px;
  }

  .story-content p {
    margin-top: 14px;
    font-size: 18px;
    line-height: 28px;
  }

  .story-content p:first-of-type {
    margin-top: 21px;
  }

  .story-content .story-highlight {
    max-width: none;
    font-size: 18px;
  }

  .story-content .story-quote {
    margin-top: 22px;
    font-size: 18px;
  }

  .story-visual {
    height: calc(100vw * 520 / 780);
    background-image: url("../images/story-bg.webp");
    background-position: left bottom;
    background-size: calc(100vw * 1440 / 780) auto;
  }

  /* Stats */
  .stats {
    padding: 65px 0 79px;
  }

  .stats-title {
    max-width: none;
    font-size: 36px;
    line-height: 44px;
  }

  .stat-list {
    margin-top: 40px;
  }

  .stat-item img {
    width: 63px;
    height: 63px;
  }

  .stat-text strong {
    margin-top: 10px;
    font-size: 28px;
    line-height: 32px;
  }

  .stat-text > span {
    margin-top: 2px;
    font-size: 14px;
    line-height: 18px;
  }

  /* CTA: right part of the desktop artwork */
  .cta {
    background-color: #fefaf2;
  }

  .cta-content {
    padding-top: 80px;
  }

  .cta-eyebrow {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .cta-line {
    margin-top: 30px;
  }

  .cta-title {
    margin-top: 16px;
    font-size: 48px;
    line-height: 62px;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 35px;
    margin-top: 34px;
  }

  .store-btn--cta {
    justify-content: flex-start;
    width: 283px;
    height: 68px;
    gap: 9px;
    padding-left: 36px;
    font-family: var(--font-serif);
    background: #0e0e0e;
  }

  .store-btn--cta .store-btn__icon--apple {
    width: 44px;
    height: 44px;
  }

  .store-btn--cta .store-btn__icon--play {
    width: 52px;
    height: 52px;
  }

  .store-btn--cta .store-btn__text small {
    font-size: 14.5px;
    font-weight: 400;
  }

  .store-btn--cta .store-btn__text strong {
    margin-top: 3px;
    font-size: 21.5px;
    font-weight: 700;
  }

  .cta-visual {
    height: calc(100vw * 540 / 680);
    margin-top: 0;
    background-image: url("../images/cta-bg.webp");
    background-position: right bottom;
    background-size: calc(100vw * 1440 / 680) auto;
  }

  /* Footer */
  .site-footer {
    padding: 55px 0 50px;
    text-align: left;
  }

  .footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 39px;
    border-bottom: 1px solid #504d45;
  }

  .footer-logo {
    flex-direction: row;
  }

  .footer-logo img {
    width: 40px;
    height: 40px;
  }

  .footer-logo span {
    margin: 0 0 0 10px;
    font-size: 20px;
  }

  .footer-tagline {
    margin-top: 14px;
    font-size: 16px;
    color: #d3d0c9;
  }

  .footer-disclaimer {
    max-width: 560px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 28px;
    color: #d3d0c9;
  }

  .footer-cta {
    display: inline-flex;
    flex-shrink: 0;
    width: 252px;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 16px;
    padding-top: 22px;
  }

  .copyright {
    margin: 0;
    color: #d3d0c9;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .footer-links a {
    font-size: 14px;
    color: #d5d4d2;
  }
}

/* ==========================================================================
   Desktop  >= 1024px  (1440 design)
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --header-h: 82px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .main-nav {
    display: flex;
    gap: 50px;
    margin-left: auto;
  }

  .main-nav a {
    position: relative;
    font-size: 17px;
    color: #000;
    transition: color .2s;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--c-brand);
    transform: scaleX(0);
    transition: transform .25s;
  }

  .main-nav a:hover {
    color: var(--c-brand);
  }

  .main-nav a:hover::after {
    transform: scaleX(1);
  }

  .btn-download {
    height: 45px;
    margin-left: 52px;
    padding: 0 21px;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  /* Hero */
  .hero {
    display: flex;
    align-items: center;
    min-height: 567px;
    text-align: left;
    background: var(--c-cream) url("../images/hero-bg.webp") right bottom no-repeat;
    background-size: min(1440px, calc((100vw - 560px) * 1.895)) auto;
  }

  .hero-content {
    padding: 0 0 10px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 80px;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 26px;
    line-height: 35px;
  }

  .hero-desc {
    max-width: 462px;
    margin: 14px 0 0;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-top: 25px;
  }

  .hero-visual {
    display: none;
  }

  /* Features */
  .features {
    padding: 83px 0 118px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  /* Stats */
  .stat-list {
    display: flex;
    justify-content: center;
    margin-top: 48px;
  }

  .stat-item {
    flex-direction: row;
    padding: 0 clamp(40px, 6vw, 88px);
    text-align: left;
  }

  .stat-item:first-child {
    padding-left: 0;
  }

  .stat-item:last-child {
    padding-right: 0;
  }

  .stat-item + .stat-item::before {
    top: -4px;
    bottom: -4px;
  }

  .stat-text {
    margin-left: 17px;
  }

  .stat-text strong {
    margin-top: 0;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  /* Story */
  .story {
    display: flex;
    align-items: center;
    min-height: 520px;
    text-align: left;
    background: #fbf8f2 url("../images/story-bg.webp") left bottom no-repeat;
    background-size: min(1440px, calc((100vw - 600px) * 1.846)) auto;
  }

  .story-content {
    max-width: 515px;
    margin: 0 0 0 auto;
    padding: 70px 0;
  }

  .story-content .story-highlight {
    margin: 19px 0 0;
  }

  .story-visual {
    display: none;
  }

  /* CTA */
  .cta {
    display: flex;
    align-items: center;
    min-height: 540px;
    background: #fefaf2 url("../images/cta-bg.webp") right bottom no-repeat;
    background-size: min(1440px, calc((100vw - 670px) * 2.25)) auto;
  }

  .cta-content {
    width: 610px;
    padding: 70px 0;
  }

  .cta-visual {
    display: none;
  }
}

/* Wider than the design: artwork scales with the viewport */
@media (min-width: 1440px) {
  .hero {
    min-height: calc(100vw * 567 / 1440);
    background-size: cover;
  }

  .story {
    min-height: calc(100vw * 520 / 1440);
    background-size: cover;
  }

  .story-content {
    margin-left: max(calc(100% - 515px), calc(55.9vw - (100vw - 100%) / 2));
  }

  .cta {
    min-height: calc(100vw * 540 / 1440);
    background-size: cover;
  }

  .cta-content {
    margin-left: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
