/* Christian Up — shared stylesheet, matched to the app theme.
   Light (default) mirrors the app's lavender→peach light mode;
   dark mode (prefers-color-scheme) mirrors the deep-indigo app mode. */

/* Self-hosted Newsreader (OFL) — no third-party font request.
   Variable weight files; latin subset covers the site's glyphs. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-italic.woff2") format("woff2");
}

:root {
  /* Light mode — mirrors the app's soft light theme */
  --bg-top: #e7e4f5;      /* lavender, top of page gradient */
  --bg-mid: #efe8f1;      /* soft mauve, middle */
  --bg-bot: #f6ede8;      /* warm blush, bottom */

  --surface: #ffffff;         /* cards */
  --surface-2: #f4f1fb;       /* inputs / insets */
  --surface-tint: rgba(124, 103, 214, 0.08); /* violet pill wash */

  --ink: #2b2550;         /* headings — deep indigo */
  --body: #423c63;        /* primary body text */
  --muted: #7c7799;       /* secondary text */

  --violet: #7c67d6;      /* brand + labels + links */
  --violet-strong: #6a54c8;
  --action: #ef5f3c;      /* coral — CTAs, active state */
  --action-strong: #e04e2c;

  --border: 1px solid rgba(43, 37, 80, 0.10);
  --shadow: 0 10px 30px rgba(43, 37, 80, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 37, 80, 0.12);
  --radius: 22px;
  --radius-sm: 16px;

  --serif: "Newsreader", Georgia, "Iowan Old Style", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #16132e;
    --bg-mid: #1a1638;
    --bg-bot: #211b45;

    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-tint: rgba(167, 139, 250, 0.14);

    --ink: #eceaf7;
    --body: #cbc6e2;
    --muted: #938db4;

    --violet: #a78bfa;
    --violet-strong: #b8a3ff;
    --action: #a78bfa;       /* dark app uses violet for actions, no coral */
    --action-strong: #b8a3ff;

    --border: 1px solid rgba(167, 139, 250, 0.16);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--body);
  line-height: 1.65;
  background-color: var(--bg-mid);
  background-image: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bot) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--violet);
  text-decoration: none;
}

a:hover {
  color: var(--action);
}

/* Small tracked uppercase label — the app's signature eyebrow */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet);
  margin: 0 0 14px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

main {
  padding: 8px 0 64px;
}

section {
  margin: 48px 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: var(--border);
  background-color: color-mix(in srgb, var(--bg-top) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand .brand-up {
  color: var(--violet);
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--action);
}

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

.site-footer {
  border-top: var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  padding-top: 24px;
  padding-bottom: 32px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--action);
}

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

.hero {
  text-align: center;
  padding: 44px 0 24px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  margin: 0 0 6px;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--violet);
  margin: 0;
  font-weight: 500;
}

.hero .lede {
  font-size: 1.14rem;
  color: var(--body);
  max-width: 32em;
  margin: 26px auto 0;
}

.hero-cta {
  margin-top: 26px;
}

.task-intro {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin: 6px 0 0;
}

.task-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.16;
  color: var(--ink);
  margin: 0;
}

.task-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 15em;
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.scroll-cue:hover {
  color: var(--action);
}

.scroll-cue .chev {
  width: 15px;
  height: 15px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: cueBounce 1.9s ease-in-out infinite;
}

@keyframes cueBounce {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: 0.45; }
  50%      { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
}

/* ---------- Interactive prayer ring (hero) ---------- */

.prayer {
  position: relative;
  width: min(82vw, 440px);
  aspect-ratio: 1;
  margin: 34px auto 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-logo {
  position: absolute;
  top: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

.ring-logo .brand-up {
  color: var(--violet);
}

.ring-track {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 40%, transparent);
  stroke-width: 1.6;
}

.ring-progress {
  fill: none;
  stroke: var(--action);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--action) 55%, transparent));
  transition: stroke 0.25s ease;
}

.prayer:focus-visible {
  outline: none;
}

.prayer:focus-visible .ring-track {
  stroke: color-mix(in srgb, var(--violet) 70%, transparent);
}

.prayer.is-done {
  cursor: default;
}

.prayer-inner {
  position: relative;
  display: grid;
  width: 72%;
}

.face {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.face.is-active {
  opacity: 1;
  transform: none;
}

.face h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 3.1rem);
}

.face .kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--violet);
  margin: 0 0 14px;
}

.face .done-text {
  color: var(--body);
  font-size: 1.06rem;
  margin: 4px auto 0;
  max-width: 15em;
}

.hold-hint {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin: 4px 0 8px;
  transition: opacity 0.35s ease;
}

.prayer.is-done + .hold-hint {
  opacity: 0;
  visibility: hidden;
}

.spark {
  position: absolute;
  border-radius: 50%;
  background: var(--action);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes sparkFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .face { transition: opacity 0.2s ease; transform: none; }
  .scroll-cue .chev { animation: none; }
}

/* ---------- Cards ---------- */

.card {
  background-color: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.3rem;
}

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

.feature-list {
  margin: 28px 0;
  display: grid;
  gap: 16px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 6px;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  margin-top: 0;
  font-size: 1.05rem;
}

/* ---------- App Store badge ---------- */

.appstore {
  text-align: center;
}

.appstore-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background-color: var(--action);
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.appstore-badge:hover {
  background-color: var(--action-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.appstore-badge small {
  display: block;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Phone screenshots ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
}

.phone {
  width: 210px;
  margin: 0;
  border-radius: 34px;
  padding: 8px;
  background-color: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow-lg);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 26px;
}

.phone figcaption {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 12px 0 4px;
}

/* Legacy placeholder styling (kept for any empty .phone slots) */
.phone:empty {
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 16px;
}

/* ---------- FAQ (details/summary) ---------- */

.faq details {
  background-color: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}

.faq summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  cursor: pointer;
  padding: 14px 0;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--violet);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--action);
}

.faq details[open] summary {
  color: var(--ink);
}

.faq details > p {
  margin-top: 0;
  padding-bottom: 16px;
  color: var(--body);
}

/* ---------- Forms ---------- */

.field {
  margin: 18px 0;
}

label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--surface-2);
  border: 1px solid rgba(124, 103, 214, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--surface-tint);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background-color: var(--action);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background-color: var(--action-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---------- Banners ---------- */

.banner {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  background-color: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
}

.banner-success {
  border-left: 4px solid var(--violet);
}

.banner-draft {
  border: 1px solid var(--action);
  color: var(--action);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Stories ---------- */

.story {
  background-color: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.story-text {
  white-space: pre-line;
  margin: 0 0 12px;
  color: var(--body);
}

.story-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 48px 0;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0;
}

.policy-note {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: var(--border);
  padding-top: 20px;
  margin-top: 40px;
}

/* ---------- Misc ---------- */

.contact-line {
  font-size: 1.08rem;
}

ul {
  padding-left: 1.2em;
}

li {
  margin: 6px 0;
}

h2 {
  font-size: 1.6rem;
  margin-top: 36px;
}

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .hero .tagline {
    font-size: 2rem;
  }
  .phone {
    width: 232px;
  }
}
