:root {
  color-scheme: light;
  --landing-forest: var(--preview-forest);
  --landing-ivory: var(--theme-base-background);
  --landing-ink: var(--theme-text-primary);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--landing-ivory);
  color: var(--landing-ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.landing-header, .landing-main {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 40px;
}
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
}
.landing-brand {
  font: 600 25px/1.2 "Bible Drama Wordmark", Georgia, serif;
  letter-spacing: -.035em;
}
.landing-main {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100svh - 90px);
  padding-top: 24px;
  padding-bottom: 56px;
}
.landing-copy { padding-bottom: 12px; }
.landing-eyebrow {
  margin: 0 0 26px;
  color: var(--landing-forest);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .035em;
}
h1 {
  margin: 0;
  font: 400 clamp(64px, 6.9vw, 94px)/.98 Georgia, serif;
  letter-spacing: -.055em;
}
h1 span { display: block; }
h1 .headline-last { color: var(--landing-forest); font-style: italic; }
.landing-reference {
  margin: 20px 0 30px;
  color: var(--theme-base-accent-soft);
  font-size: 14px;
  letter-spacing: .04em;
}
.landing-description {
  max-width: 47ch;
  margin: 0;
  color: var(--theme-text-secondary);
  font-size: 17px;
  line-height: 1.8;
}
.landing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
  min-height: 56px;
  margin-top: 32px;
  padding: 17px 22px;
  border: 1px solid #344b3c;
  border-radius: 16px;
  background: linear-gradient(120deg, #526d50, #2f4c3a);
  color: #fff9ed;
  box-shadow: 0 4px 12px #344b3c12;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: default;
}
/* Match the quiz tab's primary button and shine timing. */
.landing-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 25%, rgba(255,246,229,.05) 39%, rgba(255,246,229,.2) 50%, rgba(255,246,229,.05) 61%, transparent 75%);
  transform: translateX(-130%);
  animation: quiz-level-shine 4.5s ease-in-out infinite;
}
@keyframes quiz-level-shine {
  0%, 45% { transform: translateX(-130%); opacity: 0; }
  55% { opacity: 1; }
  94%, 100% { transform: translateX(130%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-cta::after { animation: none; display: none; }
}
.landing-cta .cta-arrow { font-size: 22px; font-weight: 400; }
button:focus-visible { outline: 2px solid var(--theme-base-accent-soft); outline-offset: 5px; }
.phone-stage { position: relative; display: grid; place-items: center; min-width: 0; padding: 28px 0; }
.phone-stage::before {
  position: absolute;
  width: 440px;
  max-width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #EDE8DB;
  content: "";
}
.phone {
  position: relative;
  width: 294px;
  padding: 7px;
  border: 1px solid #72776D;
  border-radius: 46px;
  background: #242821;
  box-shadow: 0 32px 48px -26px #344B3C66, inset 0 0 0 2px #A8AA9E;
}
.phone::before, .phone::after { position: absolute; width: 3px; border-radius: 2px; background: #72776D; content: ""; }
.phone::before { left: -3px; top: 114px; height: 54px; }
.phone::after { right: -3px; top: 138px; height: 70px; }
.phone-screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 38px; overflow: hidden; background: #1D201C; }
.phone-camera { position: absolute; z-index: 3; top: 9px; left: 50%; width: 84px; height: 24px; border-radius: 20px; background: #171917; transform: translateX(-50%); }
.phone-status { position: absolute; z-index: 2; inset: 13px 21px auto; display: flex; justify-content: space-between; align-items: center; color: white; font-size: 12px; font-weight: 600; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-signal { width: 13px; height: 9px; background: linear-gradient(90deg,currentColor 20%,transparent 20% 28%,currentColor 28% 48%,transparent 48% 56%,currentColor 56% 76%,transparent 76% 84%,currentColor 84%); clip-path: polygon(0 80%,22% 80%,22% 55%,48% 55%,48% 30%,76% 30%,76% 0,100% 0,100% 100%,0 100%); }
.status-battery { width: 18px; height: 9px; border: 1px solid currentColor; border-radius: 3px; box-shadow: inset 0 0 0 1px #555; background: currentColor; }
.phone-home { position: absolute; z-index: 3; bottom: 7px; left: 50%; width: 95px; height: 4px; border-radius: 3px; background: #FFFDF8; transform: translateX(-50%); }
.story-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#11160F66,transparent 24% 48%,#11160FDD 89%); }
.story-brand { position: absolute; top: 57px; inset-inline: 20px; color: #FFFDF8; font: 600 20px "Bible Drama Wordmark", Georgia, serif; }
.preview-play {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 0;
  transform: translate(-50%,-50%);
  border: 1px solid #FFFFFF88;
  border-radius: 50%;
  background: #FFFDF833;
  backdrop-filter: blur(8px);
  cursor: default;
}
.play-triangle { width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 16px solid white; }
.story-info { position: absolute; bottom: 72px; inset-inline: 20px; color: white; }
.story-info p { margin: 0 0 10px; color: #E8C89F; font-size: 12px; letter-spacing: .04em; }
.story-info h2 { margin: 0; font: 400 31px/1.1 Georgia,serif; letter-spacing: -.025em; }
.story-progress { position: absolute; inset: auto 20px 49px; height: 2px; background: #FFFFFF55; }
.story-progress::before { display: block; width: 20%; height: 100%; background: #E8C89F; content: ""; }
.widget-screen {
  background: #E1DDD3 url("assets/kindness-layered-waves.svg") center / cover no-repeat;
}
.verse-widget-preview {
  position: absolute;
  top: 64px;
  inset-inline: 18px;
  height: 176px;
  border-radius: 24px;
  background: var(--landing-ivory);
  color: var(--landing-ink);
  text-align: center;
  box-shadow: 0 6px 20px #344B3C22;
}
.widget-verse-layer {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}
.widget-verse-layer.is-active { opacity: 1; }
.widget-quote-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.verse-widget-preview p {
  width: 100%;
  margin: 0;
  font: 400 var(--quote-font-size, 24px)/1.25 Georgia, serif;
  letter-spacing: -.025em;
}
.verse-widget-preview cite {
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  color: var(--theme-base-accent-soft);
}
@media (prefers-reduced-motion: reduce) {
  .widget-verse-layer { transition: none; }
}
.widget-dock { position: absolute; inset: auto 16px 25px; display: flex; justify-content: space-around; padding: 12px 10px; border-radius: 23px; background: #F7F5EF33; }

@media (min-width: 701px) {
  .phone { zoom: .82; }
}

@media (min-width: 1500px) {
  .landing-main { min-height: 790px; }
}
@media (max-width: 900px) {
  .landing-main { gap: 28px; }
  .landing-header, .landing-main { padding-inline: 28px; }
  h1 { font-size: 64px; }
  .landing-description { font-size: 16px; }
  .landing-cta { gap: 15px; font-size: 16px; padding-inline: 18px; }
  .phone-stage::before { max-width: 103%; }
}
@media (max-width: 700px) {
  .landing-header { padding: 22px 24px; }
  .landing-brand { font-size: 23px; }
  .landing-main { grid-template-columns: 1fr; gap: 28px; padding: 34px 24px 48px; min-height: 0; }
  .landing-copy { padding: 0; }
  .landing-eyebrow { margin-bottom: 20px; font-size: 13px; }
  h1 { font-size: clamp(56px, 12vw, 80px); }
  .landing-reference { margin: 17px 0 24px; }
  .landing-description { max-width: 50ch; line-height: 1.75; }
  .landing-cta { width: 100%; margin-top: 26px; }
  .phone-stage { padding: 22px 0; }
  .phone-stage::before { width: 360px; max-width: 100%; }
  .phone { width: min(294px, 100%); }
}
@media (max-width: 360px) {
  .landing-header, .landing-main { padding-inline: 20px; }
  .landing-cta { gap: 10px; font-size: 16px; }
}

@media (min-width: 701px) and (max-height: 800px) {
  .landing-header { padding-block: 20px; }
  .landing-main { padding-top: 12px; padding-bottom: 24px; }
  .phone-stage { padding-block: 12px; }
  .phone { zoom: .7052; }
}

.widget-screen .phone-status { justify-content: flex-end; }
.widget-app-grid {
  position: absolute;
  top: 260px;
  inset-inline: 23px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: 14px 12px;
}
.app-placeholder {
  width: 100%;
  max-width: 42px;
  aspect-ratio: 1;
  border-radius: 11px;
  background: rgba(36, 56, 42, .4);
}
.dock-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--landing-forest);
  color: #FFFDF8;
}
.dock-icon svg { width: 31px; height: 31px; }

.kindness-widget-page .phone-stage::before { display: none; }

.landing-copy > .landing-cta { cursor: pointer; }
.waitlist-open { overflow: hidden; }
.waitlist-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 40px 32px 28px;
  overflow-y: auto;
  border: 1px solid var(--preview-border);
  border-radius: 24px;
  background: var(--landing-ivory);
  color: var(--landing-ink);
  box-shadow: 0 24px 80px #18221A33;
}
.waitlist-dialog::backdrop {
  background: rgba(22, 32, 25, .42);
  backdrop-filter: blur(5px);
}
.waitlist-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--landing-forest);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.waitlist-close:hover { background: rgba(var(--preview-forest-rgb), .07); }
.waitlist-dialog h2 {
  margin: 0 0 16px;
  padding-right: 8px;
  font: 400 36px/1.1 Georgia, serif;
  letter-spacing: -.04em;
}
.waitlist-dialog h2:focus { outline: none; }
.waitlist-dialog > p {
  margin: 0;
  color: var(--theme-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.waitlist-form { margin-top: 26px; }
.waitlist-form[hidden] { display: none; }
.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.waitlist-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--preview-border);
  border-radius: 12px;
  background: var(--theme-base-panel);
  color: var(--landing-ink);
  font: inherit;
  font-size: 16px;
}
.waitlist-form input:focus-visible {
  outline: 2px solid var(--landing-forest);
  outline-offset: 2px;
}
.waitlist-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--preview-forest);
  color: var(--theme-on-media);
  font-size: 16px;
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.waitlist-submit:disabled { cursor: wait; opacity: .65; }
.waitlist-form input:disabled { opacity: .65; }
.waitlist-error {
  margin: 14px 0 0;
  color: #A12E24;
  font-size: 14px;
  line-height: 1.5;
}
.waitlist-note {
  margin: 14px 0 0;
  color: var(--theme-text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 360px) {
  .waitlist-dialog { padding-inline: 24px; }
  .waitlist-dialog h2 { font-size: 32px; }
}
