/* One Prayer One Moment — website. Navy / ivory / gold, matching the app (lib/theme/tokens.dart).
   Mobile-first. Self-hosted fonts (OFL), no external requests, no trackers. */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0a2540; --navy-deep: #061a30; --navy-soft: #16365a;
  --ivory: #f8f4ed; --ivory-deep: #f1eadf;
  --gold: #c9a961; --gold-light: #e2c98f; --gold-deep: #ae8d46; --gold-tint: #f3e9d2;
  --ink-muted: #5b6472;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.lede { font-size: 1.12rem; color: var(--navy-soft); max-width: 40em; }
.muted { color: var(--ink-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(6, 26, 48, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid rgba(201, 169, 97, .45); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 600 1.15rem/1.1 var(--serif); letter-spacing: .04em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ivory); text-decoration: none; font-size: .9rem; padding: 7px 11px; border-radius: 999px; }
.nav a:hover { background: var(--navy-soft); color: var(--ivory); }
.nav a[aria-current="page"] { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
@media (max-width: 400px) { .brand { font-size: 1rem; } }
/* Mobile: disclosure menu (enabled by site.js adding .has-menu; without JS the links simply wrap) */
.menu-btn { display: none; }
@media (max-width: 640px) {
  .site-header { position: sticky; }
  .site-header.has-menu .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(201, 169, 97, .7); background: transparent; color: var(--ivory); font: 600 .9rem/1 var(--sans); letter-spacing: .04em; cursor: pointer; }
  .site-header.has-menu .menu-btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .site-header.open .menu-icon { background: transparent; }
  .site-header.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .site-header.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header.has-menu .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 6px; padding: 12px 20px 18px; background: rgba(6, 26, 48, .98); border-bottom: 1px solid rgba(201, 169, 97, .45); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  .site-header.has-menu.open .nav { display: flex; }
  .site-header.has-menu .nav a { font-size: 1rem; padding: 13px 16px; min-height: 44px; box-sizing: border-box; }
  .site-header:not(.has-menu) .nav a { padding: 7px 9px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }

/* hero */
.hero { position: relative; color: var(--ivory); background: var(--navy-deep); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 48, .15) 0%, rgba(6, 26, 48, .55) 55%, rgba(6, 26, 48, .92) 100%); }
.hero .wrap { position: relative; z-index: 1; min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { color: var(--ivory); text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero .tagline { font: italic 400 clamp(1.3rem, 3.6vw, 1.8rem)/1.3 var(--serif); color: var(--gold-light); margin-bottom: 18px; }
.hero .lede { color: rgba(248, 244, 237, .92); }
.hero.small .wrap { min-height: 340px; padding-top: 90px; padding-bottom: 40px; }

/* buttons */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 16px 24px; border-radius: 14px; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: var(--navy-deep); }
.btn-gold:hover { color: var(--navy-deep); filter: brightness(1.05); }
.btn-ghost { border-color: rgba(226, 201, 143, .7); color: var(--ivory); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--ivory); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--ivory-deep); }
section.block.navy { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: var(--ivory); }
section.block.navy h2, section.block.navy h3 { color: var(--ivory); }
.card { background: #fff; border: 1px solid var(--ivory-deep); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 10px 30px rgba(10, 37, 64, .06); }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; margin-bottom: 26px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--navy); border: 1px solid var(--gold); font: 600 1.3rem/1 var(--serif); }
.steps h3 { margin-bottom: .2em; }
.promise { list-style: none; padding: 0; margin: 0; }
.promise li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--ivory-deep); position: relative; }
.promise li::before { content: "✦"; position: absolute; left: 4px; top: 14px; color: var(--gold); }
.quote { font: italic 400 clamp(1.4rem, 3.5vw, 2rem)/1.35 var(--serif); color: var(--navy); max-width: 30em; }

/* next prayer */
.next { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: var(--ivory); border: 1px solid rgba(201, 169, 97, .5); border-radius: 24px; padding: 28px; text-align: center; margin-top: -40px; position: relative; z-index: 2; box-shadow: 0 18px 40px rgba(6, 26, 48, .25); }
.next .eyebrow { color: var(--gold-light); }
.next h2 { color: var(--ivory); text-transform: uppercase; margin-bottom: .2em; }
.next .when { font-size: 1.1rem; color: var(--gold-light); }
.next .intention { color: rgba(248, 244, 237, .85); max-width: 34em; margin: 10px auto 0; }

/* languages */
.langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.langs li { background: #fff; border: 1px solid var(--gold-tint); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.langs li.voice { border-color: var(--gold); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; box-shadow: 0 10px 30px rgba(10, 37, 64, .18); }
.shots figcaption { text-align: center; font-size: .85rem; color: var(--ink-muted); margin-top: 8px; }

/* counter */
.counter { text-align: center; }
.counter .num { font: 600 clamp(3rem, 12vw, 5.5rem)/1.2 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; margin-bottom: 6px; }
.counter .label { font-size: 1.1rem; color: var(--navy-soft); }

/* placeholders: clearly marked until Griz supplies the real content */
.placeholder { border: 2px dashed var(--gold); background: repeating-linear-gradient(45deg, #fffaf0, #fffaf0 12px, var(--gold-tint) 12px, var(--gold-tint) 24px); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--navy); }
.placeholder strong { display: block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.qr-slot { aspect-ratio: 1; max-width: 260px; margin: 0 auto 14px; display: grid; place-items: center; }

/* prose (privacy) */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--ivory-deep); }
.prose th { font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy-soft); }
.draft-note { background: var(--gold-tint); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; font-size: .95rem; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(248, 244, 237, .8); padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: var(--gold-light); }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .tag { font: italic 400 1.3rem/1.3 var(--serif); color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(201, 169, 97, .25); padding-top: 16px; color: rgba(248, 244, 237, .6); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* utilities (no inline styles: keeps CSP strict) */
.on-dark{color:var(--gold-light)}
.v-center{align-items:center}
.mt{margin-top:28px}.mt-s{margin-top:10px}
.center{text-align:center}
.centered{margin:0 auto 22px}
.navy .lede{color:rgba(248,244,237,.88)}
.narrow{max-width:520px;margin-left:auto;margin-right:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.contact-card{max-width:560px}
.contact-email{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(1.4rem,4.5vw,2rem);word-break:break-all;margin:.2em 0}
[data-placeholder]{background:var(--gold-tint);padding:0 .3em;border-radius:4px}
.next [hidden]{display:none}

.feature-img { display: block; margin-bottom: 1.5rem; }
.feature-img img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(11, 27, 51, .18); }
.contact-form .field { display: block; margin: 0 0 16px; }
.contact-form .field span { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid var(--ivory-deep); border-radius: 12px; background: #fff; color: var(--navy); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form .cf-turnstile-slot { margin: 4px 0 16px; min-height: 65px; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-form .form-status { min-height: 1.5em; margin-top: 12px; }
.contact-form .form-status.ok { color: #1e6b3a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.brand-name span { white-space: nowrap; }
@media (max-width: 640px) { .brand-name span { display: block; } .brand-name { line-height: 1.05; } }
