/* Prayerkin — prayerkin.com
   Palette "Lapis & Leaf" (lapis blue, gold leaf, rubric red on vellum).
   Values mirror the app's design tokens. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-500-italic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151A33;
  --lapis: #24389C;
  --lapis-raised: #3A52BE;
  --tint: #E8ECFA;
  --vellum: #F7F6F2;
  --card: #FFFFFF;
  --border: #E2E0D8;
  --border-strong: #D2CFC5;
  --divider: #EEECE6;
  --muted: #575C70;
  --on-lapis-muted: #C9D1F2;
  --gold: #E0A526;
  --gold-text: #8A5A00;
  --gold-light: #FAEFD2;
  --gold-on-lapis: #F2C95C;
  --rubric: #B5341F;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --page: 1120px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--lapis);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--lapis);
  outline-offset: 3px;
  border-radius: 4px;
}
.band :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-on-lapis); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--lapis);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--gold); }

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

.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; flex: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--lapis); font-weight: 600; }

/* ---------- Small shared pieces ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
}

.numeral {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--rubric);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
}
.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }

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

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero .lead {
  margin: 28px 0 32px;
  max-width: 33em;
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.hero .contact-line {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* The app preview: plain HTML, drawn with the app's own card styles. */
.preview {
  position: relative;
  margin: 0;
  padding: 28px 0;
}
.preview::before {            /* the ring from the logo */
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -44px;
  border: 2.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
.preview > * { position: relative; }
.preview figcaption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.circle-head { margin-bottom: 16px; }
.circle-head .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}
.circle-head .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.avatars { display: flex; }
.avatars span {
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid var(--vellum);
  background: var(--tint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.avatars span:first-child { margin-left: 0; background: var(--gold-light); }
.avatars span:nth-child(3) { background: #E4EBDD; }

.req {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
}
.req .who { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.req .who b { color: var(--ink); font-weight: 600; }
.req .text { font-size: 17px; line-height: 1.45; margin: 0 0 14px; }
.req .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--lapis);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.done { background: var(--tint); color: var(--lapis); }
.pill svg { width: 14px; height: 14px; }

.answered-note {
  background: var(--gold-light);
  border-radius: 16px;
  padding: 16px 18px;
}
.answered-note .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 6px;
}
.answered-note p { font-size: 16px; line-height: 1.45; margin: 0; }

/* ---------- Three pillars ---------- */

.pillars { border-top: 1px solid var(--border); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.pillar {
  padding: 28px 32px 8px 0;
}
.pillar + .pillar {
  padding-left: 32px;
  border-left: 1px solid var(--border-strong);
}
.pillar .numeral { font-size: 22px; display: block; margin-bottom: 20px; }
.pillar h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { color: var(--muted); }

/* ---------- Lapis band (verse) ---------- */

.band {
  background: var(--lapis);
  color: #fff;
  padding: 96px 0;
}
.band .eyebrow { color: var(--gold-on-lapis); }
.band blockquote {
  margin: 0;
  max-width: 880px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.band cite {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  color: var(--on-lapis-muted);
}

/* ---------- How circles work ---------- */

.how .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.how .section-head { margin-bottom: 0; position: sticky; top: 32px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-strong);
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 0.95;
  color: var(--lapis);
}
.steps h3 { font-size: 23px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
.code {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--tint);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ---------- Bible ---------- */

.bible { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bible .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.reader {
  margin: 0;
  padding: 8px 0 8px 32px;
  border-left: 2.5px solid var(--gold);
}
.reader .book {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.reader blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.7;
}
.reader blockquote p { margin: 0; }
.reader blockquote p::first-letter {
  float: left;
  font-weight: 600;
  font-size: 3.5em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--lapis);
}
.reader sup {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 600;
  color: var(--rubric);
  margin-right: 0.25em;
  vertical-align: 0.6em;
  line-height: 0;
}
.plain-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}
.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-strong);
}
.plain-list b { font-weight: 600; }
.plain-list span { color: var(--muted); }

/* ---------- Free forever ---------- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
}
.ledger > div { padding: 40px; }
.ledger .free { background: var(--tint); }
.ledger h3 { font-size: 28px; margin-bottom: 6px; }
.ledger .sub { color: var(--muted); margin-bottom: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid var(--lapis);
  border-bottom: 2.5px solid var(--lapis);
  transform: rotate(-45deg);
}
.premium .ticks li { font-weight: 400; }
.premium .ticks li::before { border-color: var(--gold-text); }
.price-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
  font-size: 15px;
  color: var(--muted);
}
.price-note b { color: var(--ink); font-weight: 600; }

/* ---------- Promises ---------- */

.promises { padding-top: 0; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.promise-grid h3 {
  font-size: 22px;
  padding-top: 20px;
  border-top: 2.5px solid var(--gold);
  margin-bottom: 10px;
}
.promise-grid p { color: var(--muted); }

/* ---------- Coming soon ---------- */

.soon { background: var(--tint); text-align: left; }
.soon .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: end;
}
.soon h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.02em; }
.soon p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 34em; }
.mail {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--lapis);
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.soon .small { font-size: 15px; margin-top: 8px; }

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

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 40px;
  font-size: 15px;
}
.site-footer .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.site-footer .brand { color: #fff; }
.site-footer .tagline { color: var(--on-lapis-muted); margin: 8px 0 0; max-width: 26em; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .fine {
  padding-top: 24px;
  color: var(--on-lapis-muted);
  font-size: 14px;
}
.site-footer .fine a { color: #fff; }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}
.doc-head h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.025em; }
.doc-head .dek { margin-top: 18px; max-width: 40em; font-size: 19px; color: var(--muted); }
.doc-head .updated { margin-top: 18px; font-size: 14px; color: var(--muted); }

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 72px;
  padding-top: 48px;
  padding-bottom: 96px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
  font-size: 14px;
}
.toc h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.toc a {
  display: block;
  padding: 9px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.toc a:hover { color: var(--lapis); text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.7; }
.prose h2 {
  font-size: 28px;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
  scroll-margin-top: 24px;
}
.prose > h2:first-child,
.prose > .callout:first-child + h2 { margin-top: 0; }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 28px 0 8px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--rubric); font-weight: 600; }
.prose strong { font-weight: 600; }

.callout {
  background: var(--tint);
  border-left: 2.5px solid var(--lapis);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 32px;
  font-size: 16px;
}
.callout.gold { background: var(--gold-light); border-left-color: var(--gold); }

.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 520px; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border-strong); }
thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
tbody th { font-weight: 600; }

/* ---------- 404 ---------- */

.lost { padding-top: 112px; padding-bottom: 128px; }
.lost .numeral { font-size: 22px; display: block; margin-bottom: 16px; }
.lost h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.025em; max-width: 14em; }
.lost p { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 34em; }
.lost .links { margin-top: 28px; display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 600; }
.lost .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap,
  .how .wrap,
  .bible .wrap,
  .soon .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .how .section-head { position: static; }
  .preview { max-width: 460px; }
  .preview::before { width: 300px; height: 300px; right: -110px; top: -36px; }
  .soon .wrap { align-items: start; gap: 28px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .toc { position: static; }
  .band { padding: 72px 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .pillar-grid,
  .promise-grid,
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .pillar,
  .pillar + .pillar {
    padding: 24px 0 28px;
    border-left: 0;
  }
  .pillar + .pillar { border-top: 1px solid var(--border-strong); }
  .pillar .numeral { margin-bottom: 12px; }
  .promise-grid { gap: 32px; }
  .ledger > div { padding: 28px 22px; }
  .preview::before { width: 150px; height: 150px; right: -75px; top: -40px; }
  .site-footer ul { margin-left: -10px; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .steps li::before { font-size: 38px; }
  .reader { padding-left: 20px; }
  .site-header .wrap { min-height: 64px; }
  .site-nav a { padding: 0 8px; }
  .brand { font-size: 20px; }
  .brand svg { width: 28px; height: 28px; }
  .section-head { margin-bottom: 36px; }
  .doc-head { padding: 44px 0 32px; }
  .lost { padding-top: 72px; padding-bottom: 88px; }
  .prose h2 { font-size: 24px; margin-top: 44px; }
}

@media (max-width: 400px) {
  .site-nav .optional { display: none; }
  .req .foot { flex-wrap: wrap; }
}

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

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; }
  .doc { display: block; }
}

.sc { font-variant-caps: small-caps; }
.section-head.flush { margin-bottom: 0; }
