/* Us & God home page. Morning Sky: blue, coral and gold on a day sky; navy at night.
   Gold is only for prayer (the widget turning gold is the one moving thing on the page).
   Text on gold or coral is always navy. Figtree for everything, Cormorant Garamond italic
   only for scripture. No scripts. Motion plays once and stops; Reduce Motion shows the end state.
   Contrast (WCAG): navy on sky 12.6, muted on sky 5.9, muted on cream 6.8, link on cream 5.3;
   dark mode: text 15.9, muted 8.0, link 7.8.
   When this file changes, bump the ?v= number in index.html (it is cached for a year). */

@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Figtree-500.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Figtree-600.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Figtree-700.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/CormorantGaramond-500-italic.ttf") format("truetype"); }

:root {
  color-scheme: light dark;
  --bg: #FFF9F1;
  --sky: #DCE6FF;
  --sky-2: #EEF2FF;
  --text: #14203D;
  --muted: #4A5570;
  --link: #2F5BEA;
  --line: #D9DFF0;
  --navy: #14203D;
  --blue: #2F5BEA;
  --gold: #FFC24B;
  --coral: #FF6B5E;
  --band: #14203D;
  --band-text: #F4F6FF;
  --band-muted: #C3CBE0;
  --chip: rgba(255, 255, 255, 0.55);
  --sans: "Figtree", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1630;
    --sky: #131C3A;
    --sky-2: #101936;
    --text: #F4F6FF;
    --muted: #A9B2C7;
    --link: #8FA8FF;
    --line: #2A3760;
    --band: #17213F;
    --band-text: #F4F6FF;
    --band-muted: #A9B2C7;
    --chip: rgba(255, 255, 255, 0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background-color: var(--bg); color: var(--text); padding: 0.5rem 0.9rem; border-radius: 999px; z-index: 20; }
.skip:focus { top: 0.5rem; }

/* Header sits on the sky */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; padding: 1rem 0; }
.top .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; display: block; }
.nav { display: none; gap: 0.25rem 1.6rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
@media (min-width: 46rem) { .nav { display: flex; } }

/* Hero */
.hero { background-image: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 62%, var(--bg) 100%); padding: 6.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 13em; }
.lede { margin-top: 1.4rem; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 33rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.soon { display: inline-flex; align-items: center; gap: 0.6rem; background-color: var(--navy); color: #F4F6FF; font-weight: 700; padding: 0.8rem 1.35rem; border-radius: 999px; }
.soon::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background-color: #8FA8FF; }
@media (prefers-color-scheme: dark) { .stage::before { background-image: radial-gradient(circle, rgba(255, 194, 75, 0.14), rgba(255, 194, 75, 0) 62%); } .soon { background-color: #F4F6FF; color: #0E1630; } .soon::before { background-color: #2F5BEA; } }
.link-plain { color: var(--text); font-weight: 700; text-decoration-color: var(--link); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
@media (min-width: 56rem) {
  .hero h1 { font-size: 3.4rem; }
  .hero { padding: 8rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

/* The phone: a 20 second loop. The widget shows a verse, then a day of prayer on your own,
   a prayer from a partner and a prayer from a family member, and the matching label under
   the phone lights up each time. Reduce Motion shows one still state instead. */
.stage { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; position: relative; }
.stage::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; top: 45%; left: 50%; transform: translate(-50%, -50%); background-image: radial-gradient(circle, rgba(255, 194, 75, 0.30), rgba(255, 194, 75, 0) 62%); pointer-events: none; }
.phone { position: relative; width: min(19.5rem, 80vw); aspect-ratio: 9 / 18.4; background-color: #0B1228; border-radius: 3.2rem; padding: 0.55rem; box-shadow: 0 2.2rem 4rem -1.2rem rgba(20, 32, 61, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.08) inset; }
.screen { position: relative; height: 100%; border-radius: 2.7rem; overflow: hidden; padding: 0.95rem 1rem; background-image: linear-gradient(176deg, #8FA8FF 0%, #BFCBFF 36%, #FFD9C7 70%, #FFE8B6 100%); color: #14203D; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 0.15rem 0.7rem 0; font-weight: 700; font-size: 0.8rem; }
.island { position: absolute; top: 0.7rem; left: 50%; transform: translateX(-50%); width: 5.4rem; height: 1.55rem; border-radius: 999px; background-color: #05080F; }
.bars { width: 1.3rem; height: 0.62rem; border-radius: 3px; background-color: #14203D; opacity: 0.8; }

.banner { position: absolute; z-index: 3; top: 0.55rem; left: 0.6rem; right: 0.6rem; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 1.2rem; background-color: rgba(255, 255, 255, 0.94); box-shadow: 0 0.6rem 1.4rem -0.6rem rgba(20, 32, 61, 0.5); opacity: 0; transform: translateY(-150%); }
.banner img { border-radius: 8px; display: block; }
.banner strong { display: block; font-size: 0.84rem; line-height: 1.25; font-weight: 700; }
.banner span { display: block; font-size: 0.72rem; color: #4A5570; line-height: 1.3; }
.banner-couple { animation: bn-couple 20s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.banner-family { animation: bn-family 20s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
@keyframes bn-couple { 0%, 33% { opacity: 0; transform: translateY(-150%); } 36%, 46% { opacity: 1; transform: translateY(0); } 49%, 100% { opacity: 0; transform: translateY(-150%); } }
@keyframes bn-family { 0%, 56% { opacity: 0; transform: translateY(-150%); } 59%, 69% { opacity: 1; transform: translateY(0); } 72%, 100% { opacity: 0; transform: translateY(-150%); } }

.widget { position: relative; margin-top: 1.5rem; height: 7.8rem; border-radius: 1.6rem; animation: pop 20s ease infinite; }
.face { position: absolute; inset: 0; border-radius: inherit; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; }
.face-rest { background-color: rgba(255, 255, 255, 0.94); animation: f-rest 20s ease infinite; }
.face-rest .verse { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; line-height: 1.12; }
.face-rest .ref { font-size: 0.74rem; color: #4A5570; font-weight: 600; }
.face-gold { background-color: #FFC24B; }
.face-gold .spark { font-size: 1.3rem; line-height: 1; }
.face-gold .said { font-weight: 700; font-size: 1.28rem; line-height: 1.15; }
.face-gold .when { font-size: 0.76rem; font-weight: 600; }
.face-solo { animation: f-solo 20s ease infinite; }
.face-couple { animation: f-couple 20s ease infinite; }
.face-family { animation: f-family 20s ease infinite; }
.face-family .said { font-size: 1.1rem; }
.faces { display: flex; }
.faces i { width: 1.7rem; height: 1.7rem; margin-left: -0.45rem; border-radius: 50%; border: 2px solid #FFC24B; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.72rem; color: #14203D; }
.faces i:first-child { margin-left: 0; }
.faces i:nth-child(1) { background-color: #FFFFFF; }
.faces i:nth-child(2) { background-color: #FF9F95; }
.faces i:nth-child(3) { background-color: #C9D6FF; }
.faces i:nth-child(4) { background-color: #FFF1D1; }
@keyframes f-rest { 0%, 10% { opacity: 1; } 12%, 80% { opacity: 0; } 84%, 100% { opacity: 1; } }
@keyframes f-solo { 0%, 10% { opacity: 0; } 13%, 29% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes f-couple { 0%, 33% { opacity: 0; } 36%, 52% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes f-family { 0%, 56% { opacity: 0; } 59%, 75% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes pop { 0%, 11% { transform: scale(1); } 14% { transform: scale(1.04); } 17%, 34% { transform: scale(1); } 37% { transform: scale(1.04); } 40%, 57% { transform: scale(1); } 60% { transform: scale(1.04); } 63%, 100% { transform: scale(1); } }

.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem 0.8rem; margin-top: 1.3rem; padding: 0 0.15rem; }
.apps i, .dock i { display: block; aspect-ratio: 1; border-radius: 24%; background-color: rgba(255, 255, 255, 0.42); }
.dock { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; padding: 0.65rem; border-radius: 1.8rem; background-color: rgba(255, 255, 255, 0.34); }

/* The labels under the phone: the one for what the phone shows right now lights up */
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.modes li { padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; background-color: var(--chip); color: var(--text); }
.modes .m-solo { animation: m-solo 20s ease infinite; }
.modes .m-couple { animation: m-couple 20s ease infinite; }
.modes .m-family { animation: m-family 20s ease infinite; }
@keyframes m-solo { 0%, 11% { background-color: var(--chip); color: var(--text); } 13%, 29% { background-color: #FFC24B; color: #14203D; } 32%, 100% { background-color: var(--chip); color: var(--text); } }
@keyframes m-couple { 0%, 34% { background-color: var(--chip); color: var(--text); } 36%, 52% { background-color: #FFC24B; color: #14203D; } 55%, 100% { background-color: var(--chip); color: var(--text); } }
@keyframes m-family { 0%, 57% { background-color: var(--chip); color: var(--text); } 59%, 75% { background-color: #FFC24B; color: #14203D; } 78%, 100% { background-color: var(--chip); color: var(--text); } }

/* Sections */
section h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; max-width: 18em; }
section h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
section p { color: var(--muted); max-width: 34rem; }
section h2 + p { margin-top: 1rem; }
.how, .ways, .inside, .private, .closing { padding: 4.5rem 0; }
@media (min-width: 56rem) { .how, .ways, .inside, .private, .closing { padding: 6rem 0; } }

/* How it works: a real sequence, so numbered */
.steps { display: grid; gap: 3rem; margin-top: 3rem; }
.steps li { position: relative; display: grid; gap: 0.7rem; align-content: start; }
.steps picture, .steps .hold, .steps .mini { height: 11.25rem; display: flex; align-items: center; justify-content: flex-start; }
.steps img { width: 15rem; height: auto; }
.n { position: absolute; top: 0; left: 0; z-index: 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background-color: var(--navy); color: #F4F6FF; font-weight: 700; font-size: 1rem; }
@media (prefers-color-scheme: dark) { .n { background-color: #F4F6FF; color: #0E1630; } }
.hold { position: relative; }
.hold .ring { width: 8.4rem; height: 8.4rem; border-radius: 50%; background-image: conic-gradient(var(--gold) 0 72%, var(--line) 0 100%); -webkit-mask-image: radial-gradient(circle, transparent 56%, #000 57%); mask-image: radial-gradient(circle, transparent 56%, #000 57%); }
.hold .label { position: absolute; left: 4.2rem; top: 50%; transform: translate(-50%, -50%); width: 5.2rem; text-align: center; font-weight: 700; font-size: 1rem; line-height: 1.15; }
.steps .mini { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.4rem; width: 15rem; height: 8.4rem; margin: 1.4rem 0 1.45rem; padding: 1rem 1.1rem; border-radius: 1.6rem; background-color: var(--gold); color: #14203D; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.steps .mini .spark { font-size: 1.2rem; line-height: 1; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Ways to use it: one row, divided by hairlines, no boxes */
.ways { background-color: var(--sky-2); }
.ways-row { display: grid; gap: 2.5rem; margin-top: 3rem; }
.ways article { display: grid; gap: 0.6rem; align-content: start; }
.ways img { width: 15rem; }
@media (min-width: 52rem) {
  .ways-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .ways article { padding: 0 2rem; border-left: 1px solid var(--line); }
  .ways article:first-child { padding-left: 0; border-left: 0; }
  .ways article:last-child { padding-right: 0; }
}

/* Inside the app: rows that alternate sides */
.inside .plain { margin-top: 2.5rem; font-weight: 600; color: var(--text); }
.feature { display: grid; gap: 1.2rem; align-items: center; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.inside h2 + .feature { margin-top: 2.4rem; }
.feature img { width: 15rem; }
.feature h3 { margin-bottom: 0.5rem; }
@media (min-width: 46rem) {
  .feature { grid-template-columns: 16rem 1fr; gap: 3rem; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr 16rem; }
  .feature:nth-of-type(even) picture { order: 2; justify-self: end; }
}

/* Family spotlight */
.family { background-color: var(--sky-2); padding: 4.5rem 0; }
@media (min-width: 56rem) { .family { padding: 6rem 0; } }
.family .inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .family .inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.family ul { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.family li { position: relative; padding-left: 1.6rem; max-width: 34rem; }
.family li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background-color: var(--coral); }
.space { background-color: #FFFFFF; color: #14203D; border-radius: 1.6rem; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 1.6rem 3rem -1.4rem rgba(20, 32, 61, 0.35); max-width: 26rem; }
@media (prefers-color-scheme: dark) { .space { background-color: #17213F; color: #F4F6FF; } .space .meta { color: #A9B2C7; } .space .line { border-color: #2A3760; } .space .badge { background-color: #FFC24B; color: #14203D; } }
.space .who { display: flex; align-items: center; }
.space .who i { width: 2.6rem; height: 2.6rem; margin-left: -0.5rem; border-radius: 50%; border: 3px solid #FFFFFF; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.95rem; color: #14203D; }
@media (prefers-color-scheme: dark) { .space .who i { border-color: #17213F; } }
.space .who i:first-child { margin-left: 0; }
.space .who i:nth-child(1) { background-color: #FFC24B; }
.space .who i:nth-child(2) { background-color: #FF9F95; }
.space .who i:nth-child(3) { background-color: #8FA8FF; }
.space .who i:nth-child(4) { background-color: #FFE3A3; }
.space .who i:nth-child(5) { background-color: #FFE3DF; }
.space .who i:nth-child(6) { background-color: #C9D6FF; }
.space h3 { margin-top: 1rem; font-size: 1.15rem; }
.space .meta { color: #4A5570; font-size: 0.9rem; font-weight: 600; }
.space .line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid #E6EAF5; font-size: 0.97rem; font-weight: 600; }
.space .line:first-of-type { margin-top: 0.9rem; }
.space .line span:last-child { color: #4A5570; font-weight: 500; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .space .line span:last-child { color: #A9B2C7; } }
.space .badge { display: inline-block; margin-top: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px; background-color: #FFC24B; color: #14203D; font-weight: 700; font-size: 0.92rem; }

/* Private by design */
.private { background-color: var(--band); color: var(--band-text); }
.private h2 { color: var(--band-text); }
.private li { position: relative; margin-top: 1rem; padding-left: 1.6rem; font-size: 1.15rem; max-width: 36rem; }
.private li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background-color: #FFC24B; }
.private ul { margin-top: 2rem; }
.private p { margin-top: 2rem; }
.link-light { color: var(--band-text); font-weight: 700; text-decoration-color: #FFC24B; text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.link-light:focus-visible { outline-color: #FFC24B; }

/* Closing */
.closing { background-image: linear-gradient(180deg, var(--bg), var(--sky)); }
.closing p { margin-top: 0.8rem; }
.button { display: inline-block; margin-top: 0.6rem; background-color: var(--navy); color: #F4F6FF; text-decoration: none; font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 999px; }
.button:hover { text-decoration: underline; }
.button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .button { background-color: #F4F6FF; color: #0E1630; } }

/* Footer */
.foot { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.97rem; }
.foot p { margin: 0 0 0.5rem; }
.foot a { color: var(--text); }
.foot .quiet { font-size: 0.9rem; }

/* Reduce Motion: no movement. The phone shows one still moment (a prayer from a partner). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner { display: none; }
  .widget, .face, .modes li { animation: none; }
  .face-rest { opacity: 0; }
  .face-couple { opacity: 1; }
}
