/* Psalmoo microsite — psalmoo.itdcsystems.com
   The app's papercraft look (Docs/UI_PSALMOO_MOBILE_ADDENDUM.md): a sky-paper page, cream cards, a kraft-paper sheet,
   and under every raised piece a darker paper layer with a hard edge. No blurred shadows anywhere (D-10).
   Type is Nunito (interface) and Literata (scripture only), as in the app.
   Light and dark follow the visitor's device. Colours are roles; the deep-blue band, the yellow seal, the red todo mark
   and the sky behind the village pictures keep the same fill in both modes. No script, no external requests. */

@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Roles (ColorsLight.xaml) */
  --page: #E4F0FB;          /* sky paper */
  --surface: #FFFDF6;       /* cream card */
  --sheet: #F2EBDB;         /* kraft sheet (AppSunken) */
  --under: #DCD2BA;         /* the paper layer under a card */
  --rule: #E6DECB;
  --ink: #1F2A44;
  --ink-2: #4F5B76;
  --link: #1A4E96;
  --primary: #2468C2;
  --primary-under: #1A4E96;
  --tonal: #D5E5F8;
  --accent-tint: #FFF2C6;
  --accent-tint-under: #E9D48C;
  --done: #366F25;
  --done-tint: #DDF0D2;
  --hill-back: #A9D477;
  --hill-mid: #86C150;
  --hill-front: #5FA03A;
  /* Fixed: the same in both modes */
  --on-primary: #FFFFFF;
  --band: #1A4E96;
  --band-under: #123A72;
  --on-band: #FFFFFF;
  --accent: #FBC02D;
  --accent-under: #D99A0B;
  --on-accent: #1F2A44;
  --coral: #EE6352;
  --sky-fixed: #E3F0FC;     /* the flat sky the village pictures were drawn on */
  --todo: #B93A2B;
  --ui: "Nunito", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --read: "Literata", "Sitka Text", Georgia, serif;
  --radius: 20px;
  --radius-sm: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* ColorsDark.xaml */
    --page: #131D33;
    --surface: #1D2A47;
    --sheet: #17223B;
    --under: #0A1122;
    --rule: #2D3C5E;
    --ink: #F3F6FC;
    --ink-2: #BAC5DA;
    --link: #A5CBFA;
    --tonal: #27457A;
    --accent-tint: #453B17;
    --accent-tint-under: #2A240E;
    --done: #8FD27C;
    --done-tint: #1F3F1C;
    --hill-back: #2E5B36;
    --hill-mid: #254C2D;
    --hill-front: #1C3D24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--ui); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 0 var(--under); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap--narrow { max-width: 780px; }
/* Vertical only, so a block that is also a .wrap keeps its side gutter on phones. */
.section { padding-top: 64px; padding-bottom: 64px; }
.section--tight { padding-top: 16px; padding-bottom: 48px; }

.h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); max-width: 22em; }
.h3 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); }
.lead { font-size: 1.125rem; max-width: 36em; }
.intro { font-size: 1.125rem; color: var(--ink-2); max-width: 38em; }

/* Paper layer: a card with a darker card under it */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 0 var(--under); }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 var(--primary-under); }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent-under); }
@media (max-width: 860px) { .nav__more { display: none; } }

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 10px 26px; margin-bottom: 4px;
  font-family: var(--ui); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  border-radius: 999px; transition: transform .08s ease, box-shadow .08s ease;
}
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 0 var(--primary-under); }
.btn--paper { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--under); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-under); }
/* A store button whose listing is not open yet: not a link, no raised layer */
.btn--soon { background: var(--band-under); color: var(--on-band); border: 2px dashed #9DB9E3; margin-bottom: 0; cursor: default; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .95rem; box-shadow: 0 3px 0 var(--primary-under); }
a.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--primary-under); }
a.btn--paper:active { box-shadow: 0 1px 0 var(--under); }
a.btn--accent:active { box-shadow: 0 1px 0 var(--accent-under); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } a.btn:active { transform: none; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 0; }
.text-link { font-weight: 800; padding: 12px 0; }

.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.3; padding: 6px 14px; border-radius: 999px; box-shadow: 0 2px 0 var(--under); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; padding: 28px 0 0; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: .4em; }
.hero__lead { font-size: 1.2rem; max-width: 33em; }
.hero__art { position: relative; height: 624px; }
.hero__art .phone { position: absolute; width: 248px; }
.hero__art .phone--back { right: 0; top: 0; transform: rotate(4deg); }
.hero__art .phone--front { left: 12%; top: 40px; transform: rotate(-3deg); }
.hero__sheep { position: absolute; left: -2%; bottom: 0; width: 168px; z-index: 2; }
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { height: 548px; width: min(430px, 100%); margin: 0 auto; }
  .hero__art .phone { width: 216px; }
  .hero__art .phone--front { left: 8%; }
  .hero__sheep { width: 140px; left: -8px; }
}
@media (max-width: 400px) {
  .hero__art { height: 478px; }
  .hero__art .phone { width: 186px; }
  .hero__sheep { width: 120px; }
}

/* A real screenshot in a cut-paper frame */
.phone { border: 6px solid var(--surface); border-radius: 30px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 2px var(--rule), 0 7px 0 2px var(--under); }
.phone img { width: 100%; aspect-ratio: 540 / 1200; object-fit: cover; object-position: top; border-radius: 24px; }

/* The horizon: paper hills with village pieces, between the sky and the kraft sheet */
.horizon { position: relative; height: clamp(150px, 17vw, 230px); margin-top: -12px; }
.horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.horizon .hill-back { fill: var(--hill-back); }
.horizon .hill-mid { fill: var(--hill-mid); }
.horizon .hill-front { fill: var(--hill-front); }
.piece { position: absolute; width: auto; height: clamp(54px, 7vw, 100px); transform: translateX(-50%); }
.piece--tall { height: clamp(68px, 9vw, 128px); }
.piece--small { height: clamp(44px, 5.4vw, 78px); }
@media (max-width: 760px) { .piece--wide { display: none; } }

/* ---------- The kraft sheet ---------- */
.sheet { position: relative; z-index: 1; background: var(--sheet); margin-top: -34px; }
.sheet::before, .sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background-size: 36px 36px; background-repeat: repeat-x; }
.sheet::before { top: -17px; background-image: radial-gradient(circle at 18px 18px, var(--sheet) 17.5px, transparent 18px); }
.sheet::after { bottom: -17px; background-image: radial-gradient(circle at 18px 0, var(--sheet) 17.5px, transparent 18px); filter: drop-shadow(0 4px 0 var(--under)); }
.sheet > .section { padding-top: 72px; padding-bottom: 80px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature--flip { grid-template-columns: 1.15fr .85fr; }
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { width: min(270px, 78%); }
.feature--flip .feature__media { order: 2; }
.feature h3 { margin-bottom: .45em; }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature .feature__media { order: 2; }
}

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; max-width: 36em; }
.checks li { position: relative; padding-left: 38px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--done-tint) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23366F25' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD27C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}

/* The daily reveal, as a plain <details>: a covered paper card that opens to a verse */
.reveal-stage { position: relative; width: min(380px, 100%); padding-bottom: 8px; }
.reveal summary { list-style: none; cursor: pointer; display: grid; justify-items: center; gap: 18px; border-radius: var(--radius); }
.reveal summary::-webkit-details-marker { display: none; }
.reveal__cover { width: 200px; margin-right: 60px; filter: drop-shadow(0 6px 0 rgba(31, 42, 68, .14)); }
.reveal__close { display: none; font-weight: 800; color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.reveal[open] .reveal__cover, .reveal[open] .reveal__open { display: none; }
.reveal[open] .reveal__close { display: inline-block; }
.reveal-stage__sheep { pointer-events: none; }
.reveal-stage__sheep--waiting { position: absolute; right: 0; top: 96px; width: 124px; transform: scaleX(-1); }
.reveal-stage__sheep--cheering { display: none; width: 120px; margin: 14px 0 0 auto; }
.reveal[open] ~ .reveal-stage__sheep--waiting { display: none; }
.reveal[open] ~ .reveal-stage__sheep--cheering { display: block; }
.verse { margin: 4px 0 0; padding: 20px 22px 22px; }
.verse figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 800; margin-bottom: 10px; }
.verse blockquote { margin: 0; font-family: var(--read); font-size: 1.5rem; line-height: 1.42; }
.verse blockquote p { margin: 0; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--tonal); color: var(--link); font-size: .82rem; font-weight: 700; letter-spacing: 0; }
.caption { font-size: .95rem; color: var(--ink-2); margin: 14px 0 0; }

/* Finished villages: the app's own layouts on their flat sky */
.diorama { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diorama li { background: var(--sky-fixed); border-radius: var(--radius); box-shadow: 0 4px 0 var(--under); padding: 14px 14px 12px; text-align: center; color: #1F2A44; font-weight: 800; }
.diorama img { width: 100%; margin-bottom: 4px; }
@media (max-width: 760px) { .diorama { grid-template-columns: 1fr 1fr; } .diorama li:last-child { display: none; } }

.card-shot { width: min(400px, 100%); border-radius: 12px; box-shadow: 0 7px 0 var(--under); transform: rotate(-2deg); }

/* Six smaller things, each with a piece of a real screen */
.also { margin: 48px 0 0; }
.tiles { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { overflow: hidden; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--rule); }
.tile__art { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; gap: 4%; background: var(--sky-fixed); border-bottom: 2px solid var(--rule); }
.tile .tile__art img { width: 24%; aspect-ratio: auto; border: 0; }
.tile__text { padding: 16px 20px 20px; }
.tile h4 { font-size: 1.3rem; margin-bottom: .35em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- For families ---------- */
.family { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; margin-top: 28px; }
.family__list { padding: 28px 28px 14px; }
.family__list .checks { gap: 14px; max-width: none; }
.family__art { position: relative; display: flex; justify-content: center; padding: 0 0 12px 84px; }
.family__art .phone { width: min(250px, 100%); }
.family__art .phone img { aspect-ratio: 540 / 1130; object-position: bottom; }
.family__sheep { position: absolute; left: 0; bottom: -10px; width: 124px; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; gap: 36px; } .family__list { padding: 22px 20px 8px; } }

/* ---------- Bands ---------- */
.band { border-radius: 28px; padding: 44px; position: relative; }
.band--tint { background: var(--accent-tint); box-shadow: 0 5px 0 var(--accent-tint-under); }
.band--blue { background: var(--band); color: var(--on-band); box-shadow: 0 5px 0 var(--band-under); }
.band--blue a:not(.btn) { color: var(--on-band); }
.band--blue :focus-visible { outline-color: var(--on-band); }
@media (max-width: 760px) { .band { padding: 30px 22px; } }

.promises { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 22px; }
.promises li { background: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 3px 0 var(--accent-tint-under); padding: 16px 18px; }
.promises h3 { font-size: 1.15rem; margin-bottom: .3em; }
.promises p { margin: 0; font-size: .98rem; color: var(--ink-2); }
@media (max-width: 940px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }
.band--tint > p:last-child { margin: 0; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; margin-top: 24px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 0 var(--under); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 54px 16px 22px; font-weight: 800; font-size: 1.1rem; line-height: 1.35; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-54%); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 6px; color: var(--ink-2); max-width: 44em; }

/* ---------- Get the app ---------- */
.get { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.app-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 5px 0 var(--band-under); }
.get .h2 { margin-bottom: .4em; }
.get p { max-width: 38em; }
.seal { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .95rem; line-height: 1.3; padding: 6px 16px; border-radius: 999px; box-shadow: 0 3px 0 var(--accent-under); margin: 0 0 16px; }
.note { font-size: .98rem; margin: 16px 0 0; }
.stores { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--band-under); }
.stores h3 { font-size: 1.3rem; margin-bottom: .3em; }
.stores p { margin: 0 0 16px; }
.store-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.early { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.early > div { padding: 24px 26px; }
.early h3 { font-size: 1.4rem; }
.early ol, .early ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.hash { margin: 16px 0 0; font-size: .88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hash code { font-size: .84rem; }
@media (max-width: 800px) { .early { grid-template-columns: 1fr; } .early > div { padding: 22px 20px; } }
@media (max-width: 700px) { .get { grid-template-columns: 1fr; gap: 22px; } .app-icon { width: 104px; height: 104px; border-radius: 24px; } }

/* ---------- About ITDC ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 32px; }
.about__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.about__brand img { width: 54px; height: auto; }
.about__brand h2 { font-size: 2rem; margin: 0; }
.about__brand p { margin: 0; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.contact { font-style: normal; display: grid; gap: 14px; align-content: start; }
.contact p { margin: 0; display: grid; }
.contact span { font-weight: 800; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; padding: 24px 20px; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 24px; }
.site-footer > .wrap { padding-bottom: 36px; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 22px; }
.made { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.made img { width: 26px; height: auto; margin-right: 3px; }
.made svg { flex: none; }
.made a { font-weight: 800; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { font-weight: 700; padding: 6px 0; }
.small { font-size: .88rem; color: var(--ink-2); margin: 18px 4px 0; max-width: 78em; }
.closing { position: relative; height: clamp(130px, 15vw, 200px); margin-top: 20px; }
.closing svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing .hill-back { fill: var(--hill-back); }
.closing .hill-front { fill: var(--hill-front); }
.closing img { position: absolute; left: 50%; bottom: 22%; height: 74%; width: auto; transform: translateX(-50%); }

/* ---------- Legal pages ---------- */
.legal { padding-top: 20px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.25rem); letter-spacing: -0.03em; }
.legal h2 { font-size: 1.45rem; margin-top: 1.7em; }
.legal .app-name { font-weight: 800; color: var(--ink-2); margin: 0 0 .2em; }
.legal .intro { max-width: none; font-size: 1.0625rem; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1em; }
.legal code { font-size: .92em; overflow-wrap: anywhere; }
.legal-body { padding: 30px 34px 22px; }
.legal-body > h2:first-child { margin-top: 0; }
@media (max-width: 600px) { .legal-body { padding: 22px 20px 12px; } }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; margin: 24px 0 26px; border-radius: var(--radius); }
.summary h2 { margin-top: 0; font-size: 1.5rem; }
.summary p { margin: 0; }
.summary img { width: 104px; }
.summary--tonal { background: var(--tonal); box-shadow: 0 4px 0 var(--primary-under); }
.summary--tint { background: var(--accent-tint); box-shadow: 0 4px 0 var(--accent-tint-under); }
@media (max-width: 600px) { .summary { grid-template-columns: 1fr; } .summary img { width: 84px; } }
.contact-card { font-style: normal; display: grid; gap: 4px; background: var(--sheet); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 1em; }
mark.todo { background: var(--todo); color: #FFFFFF; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
