/* Laudes website. "Quiet light": the same Dawn sky, glass and DM Sans as the app. */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-italic.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* Dawn, light */
:root {
  --sky-1: #f8e7dc;
  --sky-2: #ede3f1;
  --sky-3: #dfe7f4;
  --glow: #ffd3b0;
  --bg: #ede3f1;
  --card: rgba(255, 255, 255, 0.58);
  --card-edge: rgba(255, 255, 255, 0.85);
  --solid: #f6eef3;
  --text: #1d2033;
  --muted: #676b80;
  --accent: #4a4ea6;
  --accent-soft: rgba(74, 78, 166, 0.1);
  --on-accent: #ffffff;
  --gold: #c0835a;
  --border: rgba(20, 22, 40, 0.08);
  --shadow: 0 30px 80px -30px rgba(60, 50, 110, 0.35);
  color-scheme: light;
}

/* Dawn, dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --sky-1: #121427;
    --sky-2: #1c1a36;
    --sky-3: #291f3e;
    --glow: #6c58d2;
    --bg: #1c1a36;
    --card: rgba(255, 255, 255, 0.07);
    --card-edge: rgba(255, 255, 255, 0.12);
    --solid: #1e1b38;
    --text: #f2f1f8;
    --muted: #a2a3be;
    --accent: #bdbbff;
    --accent-soft: rgba(189, 187, 255, 0.14);
    --on-accent: #121427;
    --gold: #edbb8b;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --sky-1: #121427;
  --sky-2: #1c1a36;
  --sky-3: #291f3e;
  --glow: #6c58d2;
  --bg: #1c1a36;
  --card: rgba(255, 255, 255, 0.07);
  --card-edge: rgba(255, 255, 255, 0.12);
  --solid: #1e1b38;
  --text: #f2f1f8;
  --muted: #a2a3be;
  --accent: #bdbbff;
  --accent-soft: rgba(189, 187, 255, 0.14);
  --on-accent: #121427;
  --gold: #edbb8b;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--solid);
  padding: 8px 14px;
  border-radius: 999px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.2s, box-shadow 0.2s;
}
/* Once the page scrolls, the header turns to frosted glass so text stays readable. */
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border);
}
[id] {
  scroll-margin-top: 90px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand .orb {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a,
.nav button {
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav a:hover,
.nav button:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.nav .lang {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card);
}
.nav .theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
}

@media (max-width: 720px) {
  .nav .hide-sm {
    display: none;
  }
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}
h1 {
  font-size: clamp(42px, 5.6vw, 68px);
}
h1,
h2 {
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 4.2vw, 48px);
}
h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lede {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 34em;
  margin: 24px 0 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  /* Slide under the sticky header so the glow reaches the top of the page. */
  margin-top: -66px;
  padding: 74px 0 24px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.halo {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  opacity: 0.75;
  pointer-events: none;
  filter: blur(10px);
}
.hero .halo {
  width: 760px;
  height: 760px;
  right: -140px;
  top: -160px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  line-height: 1.2;
}
.store.ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}
.store strong {
  font-weight: 500;
  font-size: 16px;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.phones {
  position: relative;
  height: 680px;
}
.phone {
  position: absolute;
  width: 270px;
  border-radius: 46px;
  padding: 9px;
  background: #11121c;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img {
  border-radius: 38px;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 898;
}
.phones .back {
  right: 0;
  top: 56px;
  transform: rotate(3deg);
}
.phones .front {
  left: 0;
  top: 0;
  transform: rotate(-2deg);
  z-index: 1;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .phones {
    height: auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 10px 0 30px;
  }
  .phone {
    position: relative;
    width: min(240px, 47vw);
  }
  .phones .front {
    left: auto;
    top: 0;
    margin-right: -9vw;
  }
  .phones .back {
    right: auto;
    top: 40px;
  }
  .hero .halo {
    width: 520px;
    height: 520px;
    right: -200px;
    top: 260px;
  }
}

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

section {
  position: relative;
}
.section {
  padding: 56px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 30px 28px 32px;
}
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
}
.feature p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}
.tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  position: relative;
  top: -2px;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
}

/* The verse, set large, beside mealtime mode */
.verse-band .wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: center;
}
.verse-band blockquote {
  margin: 0;
}
.verse-band blockquote p {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.verse-band cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 32px 0;
}
.verse-band .after {
  color: var(--muted);
  max-width: 30em;
  margin: 0;
}
.verse-band .phone {
  position: relative;
  width: 100%;
}
@media (max-width: 900px) {
  .verse-band .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .verse-band .phone {
    width: min(260px, 64vw);
    margin: 0 auto;
  }
}

/* Name story */
.name-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
}
.name-card .big-orb {
  width: 200px;
  height: 200px;
}
.name-card .pron {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 18px;
}
.name-card p {
  margin: 0 0 14px;
  max-width: 38em;
}
.name-card p.muted {
  color: var(--muted);
}
@media (max-width: 760px) {
  .name-card {
    grid-template-columns: 1fr;
    padding: 36px 26px;
    gap: 20px;
  }
  .name-card .big-orb {
    width: 120px;
    height: 120px;
  }
}

/* Free and Plus */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plan {
  padding: 36px 34px;
}
.plan.plus {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.plan .price {
  color: var(--muted);
  margin: 8px 0 22px;
  font-size: 16px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 30px 24px;
  }
}

/* Promise strip */
.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.promise div {
  padding: 26px 16px;
}
.promise strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
}
.promise span {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  .promise {
    grid-template-columns: 1fr 1fr;
  }
}

/* Closing call */
.closing {
  text-align: center;
  padding: 64px 0 80px;
  overflow: hidden;
}
.closing .halo {
  width: 600px;
  height: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.closing .wrap {
  position: relative;
}
.closing .orb {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}
.closing .lede {
  margin-left: auto;
  margin-right: auto;
}
.closing .store-row {
  justify-content: center;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer p {
  margin: 0;
}

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

.doc {
  padding: 16px 0 64px;
}
.doc .wrap {
  max-width: 820px;
}
.doc-card {
  padding: 56px 64px 64px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
}
.doc .updated {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 15px;
}
.doc .summary {
  margin: 36px 0 8px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--accent-soft);
}
.doc .summary p {
  margin: 0 0 8px;
}
.doc .summary ul {
  margin: 0;
  padding-left: 20px;
}
.doc h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
}
.doc h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  font-size: 16.5px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.doc details:last-of-type {
  border-bottom: 1px solid var(--border);
}
.doc summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.doc summary::-webkit-details-marker {
  display: none;
}
.doc summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
}
.doc details[open] summary::after {
  content: '–';
}
.doc details p {
  margin: 12px 0 0;
  color: var(--muted);
}
.contact-box {
  margin-top: 40px;
  padding: 28px;
  border-radius: 20px;
  background: var(--accent-soft);
}
.contact-box p {
  margin: 0;
}
.contact-box a {
  font-size: 20px;
}
/* Details Luis still has to supply. Highlighted until filled in. */
.todo {
  background: rgba(255, 196, 0, 0.32);
  border-radius: 4px;
  padding: 0 4px;
}
@media (max-width: 760px) {
  .doc-card {
    padding: 36px 22px 44px;
    border-radius: 22px;
  }
}

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

/* Laudes Plus: comparison and price */
.plus-buy {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.compare {
  padding: 32px 34px;
}
.compare h3 {
  margin-bottom: 14px;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th,
.compare td {
  padding: 11px 6px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-weight: 400;
}
.compare thead td,
.compare thead th {
  border-top: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare thead .plus-col {
  color: var(--accent);
}
.compare tbody th {
  text-align: left;
  padding-left: 0;
}
.compare td {
  width: 22%;
  color: var(--muted);
  font-size: 15px;
}
.compare .yes {
  color: var(--accent);
  font-weight: 600;
}
.compare .no {
  color: var(--muted);
  opacity: 0.6;
}
.price-card {
  padding: 40px 34px;
  text-align: center;
  border-color: var(--accent);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.price-card .orb {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
}
.price-card .big {
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 18px;
}
.price-card .big strong {
  color: var(--text);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}
.price-card .sub {
  margin: 10px 0 0;
  font-weight: 500;
}
.price-card .alt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.price-card .fine {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .plus-buy {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .compare {
    padding: 26px 18px;
  }
  .compare td {
    width: 26%;
    font-size: 14px;
  }
  .compare tbody th {
    font-size: 15px;
  }
}
