/* Quiet Amen: the brand's look, 2026-11-01 (v2, from the category: material/design/industries/faith.md; Hallow's
   dark app screens with one accent and a big listen button). Deep warm night ground (early morning, late evening),
   warm ivory text, ONE lamp-gold accent (the primary button, selection, progress). Young Serif for headings and
   scripture lines (warm, bookish), Hanken Grotesk 400/700 for everything you read and tap. Real soft-light photos.
   One radius family: pill buttons and options, 16px fields, 24px cards. Colours as sRGB hex (lib/visual.ts reads rgb()). */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 98%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --night: #17120f;        /* page: warm near-black */
  --night-2: #221b17;      /* sunk panels, hover */
  --surface: #2b221d;      /* cards, fields, sheets: a lifted warm brown */
  --surface-2: #362b25;    /* selected, raised */
  --hair: rgb(255 236 214 / .12);
  --ring: rgb(255 236 214 / .26);
  --ink: #f5eee5;          /* text: warm ivory */
  --ink-2: #cfc2b4;        /* secondary text */
  --gold: #e2ad4d;         /* the one accent: buttons, selection, progress */
  --gold-deep: #c8912f;    /* hover, pressed */
  --gold-soft: rgb(226 173 77 / .16);
  --on-gold: #1c140d;      /* text on gold */
  --ok: #8fc79d;
  --bad: #f08a76;
  --r-chip: 12px; --r-field: 16px; --r-card: 24px; --r-sheet: 28px; --r-btn: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-2: 0 2px 6px rgb(0 0 0 / .25), 0 18px 40px rgb(0 0 0 / .3);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --font: "Hanken Grotesk", "Hanken Fallback", system-ui, Arial, sans-serif;
  --gut: clamp(20px, 5vw, 32px);
  /* ad pictures (lib/adcreative.ts reads these names): warm paper, dark ink, a deep gold the white price sticker reads on */
  --oat: #f6efe4; --oat-2: #ece1cf; --kale: #1c140d; --green: #94600f;
  --accent: var(--gold); --accent-dark: var(--gold-deep); --soft: var(--gold-soft); --paper: var(--night);
  --kit-accent: var(--gold); --kit-ink: var(--ink); --kit-bg: var(--surface); --kit-line: var(--ring);
  --kit-soft: var(--night-2); --kit-err: var(--bad); --kit-ok: var(--ok); --kit-radius: var(--r-field);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { touch-action: manipulation; background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--font); color: var(--ink); background: var(--night); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (hover: hover) { a:hover { color: #f0c573; } }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(36px, 3vw + 24px, 60px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 1vw + 24px, 38px); line-height: 1.14; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.page { padding-top: 40px; padding-bottom: 64px; }
.page > h1, .page > h2, .page > p, .page > ul, .page > ol, .page > table { max-width: 720px; }
.scripture { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 2px; }

/* Buttons: one gold pill per screen (dark text), a quiet outline secondary, a text ghost. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: var(--r-btn);
  font: 700 18px/1.1 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  color: var(--on-gold); background: var(--gold); box-shadow: none;
  transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-out);
  touch-action: manipulation; user-select: none;
}
.btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .btn:hover { background: #ecbd66; color: var(--on-gold); } }
.btn:active { transform: scale(.97); background: var(--gold-deep); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface); color: var(--ink-2); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.alt, .btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ring); }
@media (hover: hover) { .btn.alt:hover, .btn--secondary:hover { background: var(--night-2); color: var(--ink); } }
.btn--ghost { background: transparent; color: var(--gold); box-shadow: none; padding: 0 12px; }
@media (hover: hover) { .btn--ghost:hover { background: var(--gold-soft); color: var(--gold); } }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

label { display: block; font-weight: 700; margin: 0 0 8px; }
input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=hidden]), select, textarea {
  width: 100%; min-height: 56px; padding: 0 18px; margin: 0; font: 400 18px/1.3 var(--font); color: var(--ink); background: var(--surface);
  border: 0; border-radius: var(--r-field); box-shadow: inset 0 0 0 1.5px var(--ring); -webkit-appearance: none; appearance: none;
}
textarea { padding: 14px 18px; min-height: 120px; }
::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px var(--gold-soft); }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--hair); padding: 12px 8px; text-align: left; vertical-align: top; }

/* Header: the logo, one button that is the page's goal. */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--night) 92%, transparent); -webkit-backdrop-filter: saturate(1.2); box-shadow: 0 1px 0 var(--hair); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 48px; flex: none; text-decoration: none; margin-right: auto; }
.logo img { height: 28px; width: auto; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--r-chip); font-size: 16px; font-weight: 700; }
@media (hover: hover) { .top-nav a:hover { background: var(--night-2); color: var(--ink); } }
.top-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; }
@media (hover: hover) { .top-cta:hover { background: #ecbd66; color: var(--on-gold); } }
.top-cta:active { transform: scale(.97); }
@media (max-width: 760px) { .top-nav { display: none; } .logo img { height: 24px; } }
body.landing .top-nav { display: none; }
.top-cta[hidden], body[data-cta="none"] .top-nav, body[data-cta="none"] .top-cta { display: none !important; }

/* Footer: who we are in one line, the links, the legal line. */
.foot { margin-top: 72px; padding: 36px 0 30px; border-top: 1px solid var(--hair); background: var(--night-2); }
.foot-grid { display: grid; gap: 16px; }
.foot-line { margin: 0; max-width: 62ch; color: var(--ink-2); }
.foot-line b { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
@media (hover: hover) { .foot-links a:hover { color: var(--gold); text-decoration: underline; } }
.legal { margin: 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 16px; color: var(--ink-2); }
body[data-cta="none"] .foot-links a:not([href$="refunds.html"]):not([href$="terms.html"]):not([href$="privacy.html"]):not([href$="trust.html"]) { display: none; }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 24px; }
.acc { border-bottom: 1px solid var(--hair); }
.acc:first-of-type { border-top: 1px solid var(--hair); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--ink-2); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px; transition: rotate 200ms var(--ease-out); }
.acc[open] summary::after { rotate: 225deg; translate: 0 2px; }

.kit-back { min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-btn); font: 700 18px var(--font); color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ring); cursor: pointer; }
.kit-progress { color: var(--ink-2); }
.kit-list { margin-top: 6px; padding: 6px; border: 0; border-radius: var(--r-field); background: var(--surface); box-shadow: 0 0 0 1px var(--hair), var(--shadow-2); }
.kit-toast { bottom: calc(18px + env(safe-area-inset-bottom)); max-width: min(calc(100vw - 32px), 400px); padding: 14px 20px; border-radius: 16px; background: var(--ink); color: var(--night); font: 700 16px/1.35 var(--font); box-shadow: var(--shadow-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* The brand home: one soft-light photo, the words over its dark side, one button. */
.lp-home { position: relative; overflow: hidden; min-height: clamp(560px, 92svh, 820px); display: flex; align-items: flex-end; background: var(--night); }
.lp-home img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.lp-home::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 8%, rgb(23 18 15 / .72) 38%, rgb(23 18 15 / .1) 70%); }
.lp-home .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vw, 88px); }
.lp-home h1 { max-width: 14ch; }
.lp-home p { font-size: 20px; max-width: 36ch; color: var(--ink); }
body:has(.lp-home) .foot { margin-top: 0; }

/* The kit's own pages (offer, account, cancel, review: kit v12) wear this file: dark text on the gold buttons. */
body[data-kit-page] .kp .btn:not(.ghost) { color: var(--on-gold); }
body[data-kit-page] .kp-top img { filter: brightness(0) invert(.95); }
