/*
  Daybreak website (daybreak.appquant.co). Plain CSS, no framework, no script, no third-party request of any kind.

  FONTS (self-hosted)
  Scripture and headings use Literata; everything else uses the visitor's system font.
  The three files in fonts/ are Latin subsets of Literata 400, 400 italic and 600, cut from the
  Google Fonts release (SIL Open Font License 1.1, text in fonts/OFL.txt, which must travel with them).
  They are served from this site's own folder. Do not swap them for a link to a font CDN: that would
  send every visitor's address to a third party, which the privacy page says we do not do.
  To add a weight or more characters: take the TTF from https://github.com/googlefonts/literata and run
    pyftsubset Literata-Regular.ttf --flavor=woff2 --unicodes="U+0020-007E,U+00A0-00FF,U+2010-2015,U+2018-201D,U+2022,U+2026"
  If the files are missing the page falls back to the system serif and still reads well.

  COLOUR
  The eight brand tokens, exact. White is used for text on lapis and night, as the design rules say.
  Tints are made by giving a token an opacity, never by inventing a ninth colour.
  Gold (dawn) is the sun and the one gold button per page.
*/

@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-400Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-400Regular_Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F8FB;
  --ink: #101828;
  --lapis: #1F3FA3;
  --night: #0B1430;
  --dawn: #F2B441;
  --sage: #4F7A5B;
  --ember: #E8663D;
  --mist: #E3E8F0;
  --white: #FFFFFF;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: rgba(16, 24, 40, 0.74);
  --line: var(--mist);
  --card: var(--white);
  --link: var(--lapis);
  --focus: var(--lapis);
  --done: var(--sage);
  --arch: var(--lapis);

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

  --measure: 40rem;
  --gap: 1.25rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --text: var(--paper);
    --muted: rgba(246, 248, 251, 0.76);
    --line: rgba(227, 232, 240, 0.22);
    --card: rgba(246, 248, 251, 0.06);
    --link: var(--paper);
    --focus: var(--dawn);
    --done: var(--paper);
    --arch: var(--white);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 5vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }

p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
li > ul, li > ol { margin-top: 0.45em; }
strong { font-weight: 600; }
small, .small { font-size: 0.9375rem; }
.muted { color: var(--muted); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--card);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Scripture is never smaller than 20 px. */
.scripture {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  line-height: 1.5;
  margin: 0;
}
.reference {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--muted);
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.prose { max-width: var(--measure); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: inherit;
  text-decoration: none;
  min-height: 2.75rem;
}
.brand svg { width: 1.9rem; height: 2.2rem; flex: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
}
.site-nav a[aria-current="page"] { text-decoration-thickness: 0.16em; font-weight: 600; }

/* The mark: arch in --arch, sun in dawn. */
.mark-arch { fill: none; stroke: var(--arch); }
.mark-sun { fill: var(--dawn); }

/* ---------- Hero (the gate colour, in both modes) ---------- */

.hero {
  background: var(--night);
  color: var(--white);
  --arch: var(--white);
  --link: var(--white);
  --muted: rgba(255, 255, 255, 0.8);
  --focus: var(--dawn);
}
.hero-inner {
  display: grid;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { font-size: 1.1875rem; max-width: 34rem; }
.hero-art { justify-self: center; width: min(58vw, 15rem); }
.hero-art svg { display: block; width: 100%; height: auto; }

@media (min-width: 52rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 4.5rem;
  }
  .hero-art { width: min(100%, 19rem); }
}

/* ---------- Buttons: full-width pills, 50 px tall ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  min-height: 3.125rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--dawn); color: var(--ink); }
.btn-gold:hover { text-decoration: underline; }
.btn-note { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Sections ---------- */

main > section { padding: 0.5rem 0 1.5rem; }
main > section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: var(--measure); }

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  margin: 0;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-family: var(--serif);
  font-weight: 600;
}
.steps h3 { margin-top: 0; }
.steps p:last-child { margin-bottom: 0; }
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 52rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.4rem; }
.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 0.16rem solid var(--done);
  border-bottom: 0.16rem solid var(--done);
  transform: rotate(-45deg);
}

.four {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0;
}
.four div { border-top: 2px solid var(--line); padding-top: 0.7rem; }
.four dt { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.four dd { margin: 0.2rem 0 0; color: var(--muted); }
@media (min-width: 40rem) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

blockquote.verse {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border-left: 4px solid var(--arch);
  background: var(--card);
  border-radius: 0 1rem 1rem 0;
  max-width: var(--measure);
}

/* Price list and trial timeline */

.prices { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; }
.prices caption { text-align: left; font-weight: 600; padding-bottom: 0.4rem; }
.prices th, .prices td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-top: 1px solid var(--line);
}
.prices th { font-weight: 600; }
.prices td.amount { white-space: nowrap; font-weight: 600; }

.timeline {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0 0 0 0.45rem;
}
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 1.1rem 1.6rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.32em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--bg);
  border: 0.2rem solid var(--arch);
}
.timeline strong { display: block; }

/* ---------- Help and legal pages ---------- */

.page-title { padding-top: 1.5rem; }
.page-title h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }

.contents {
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: var(--measure);
}
.contents h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.contents ol { margin: 0; }
.contents a { display: inline-block; padding: 0.2rem 0; }

.doc h2 { scroll-margin-top: 1rem; }
.doc section { max-width: var(--measure); }
.doc ol > li { padding-left: 0.2rem; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-top: 1px solid var(--line);
}
.table-scroll { overflow-x: auto; }

.note {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--arch);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--card);
}
.note > :last-child { margin-bottom: 0; }

/* Warnings only: the draft banner. Ember is never used for anything else. */
.draft {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--ember);
  border-radius: 0.75rem;
  background: var(--card);
  max-width: var(--measure);
}
.draft > :last-child { margin-bottom: 0; }


kbd, .ui {
  font-family: var(--sans);
  font-weight: 600;
  white-space: nowrap;
}
.path { font-weight: 600; }

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

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
}
.site-footer li { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer p { margin-bottom: 0.4rem; }

@media print {
  .site-nav, .skip, .btn { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; }
}

/* ---------- App Store "coming soon" and the 404 page ---------- */

.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  min-height: 3.125rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--dawn);
  font-weight: 600;
  text-align: center;
}
.lost { padding: 2rem 0 1rem; max-width: var(--measure); }
