/* Amen Clock — amenclock.com
   Phone first. The look follows the app's home screen: a real sunrise fading into warm paper,
   soft ivory cards, dark ink serif headings, and a deep green button. One column on phones. */

/* Source Serif 4 (SIL Open Font License), self-hosted, for devices without a system serif. */
@font-face {
  font-family: "Amen Serif";
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Amen Serif";
  src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}

:root {
  --paper: #ece6dc;
  --card: #f4efe6;
  --ink: #1f2b30;
  --soft: #5c6161;
  --line: rgba(31, 43, 48, 0.12);
  --pine: #304a45;
  --amber: #b77a29;
  --gold-tint: #f5e3c7;
  --night: #1a2930;
  --serif: ui-serif, "New York", "Amen Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* Small spaced capitals, like "RISE WITH THE WORD" in the app. */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }

.app-icon { flex: none; overflow: hidden; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(31, 43, 48, 0.18); }
.app-icon picture, .app-icon img { display: block; width: 100%; height: 100%; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--pine); color: #fbf7ef; font-family: var(--sans); font-size: 17px; font-weight: 600;
  text-decoration: none; box-shadow: 0 8px 22px rgba(48, 74, 69, 0.25);
}
a.pill:hover { filter: brightness(1.08); color: #fff; }
.fine { color: var(--soft); font-size: 15px; }
/* Apple's official badge: at least 40px tall on screen, with clear space around it. */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; height: 54px; width: auto; }
.store-badge:hover img { opacity: 0.85; }
.store-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: rgba(236, 230, 220, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand .app-icon { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--soft); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-wide { display: none; }

/* Hero: the sky, the promise, one button, then the app itself. */
.hero { position: relative; isolation: isolate; text-align: center; padding: 40px 0 8px; }
.hero-sky { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; overflow: hidden; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(236, 230, 220, 0.15) 0%, rgba(236, 230, 220, 0.25) 55%, var(--paper) 100%); }
.hero h1 { font-size: 46px; line-height: 1.04; letter-spacing: -0.02em; }
.hero .sub { margin: 16px auto 0; max-width: 22em; font-size: 18px; color: #2d3a3e; }
.hero .cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone {
  width: 250px; margin: 0 auto; padding: 8px; border-radius: 40px;
  background: #11181b; box-shadow: 0 30px 60px -20px rgba(31, 43, 48, 0.45), 0 10px 24px -10px rgba(31, 43, 48, 0.3);
}
.phone img { width: 100%; border-radius: 32px; }
.hero .phone { margin-top: 40px; }

/* Sections */
.section { padding: 56px 0 8px; }
.section h2 { font-size: 34px; }
.section .lead { margin-top: 10px; color: var(--soft); font-size: 17px; }
.card { background: var(--card); border-radius: 22px; box-shadow: 0 6px 18px rgba(31, 43, 48, 0.06); border: 1px solid rgba(255, 255, 255, 0.5); }

/* How it works: three numbered steps in one card. */
.steps { list-style: none; margin: 22px 0 0; padding: 6px 20px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--amber); font-family: var(--serif); font-weight: 600; font-size: 20px; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--soft); margin-top: 2px; font-size: 16px; }
.how .phone { margin-top: 32px; }

/* Morning and evening: two cards. */
.duo { display: grid; gap: 14px; margin-top: 22px; }
.duo .card { padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.duo .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--amber); }
.duo .ic.dusk { background: #dfe3e6; color: var(--ink); }
.duo .ic svg { width: 22px; height: 22px; }
.duo h3 { font-size: 21px; }
.duo p { color: var(--soft); margin-top: 4px; font-size: 16px; }

/* What it does: a plain checklist. */
.checks { list-style: none; margin: 22px 0 0; padding: 4px 20px; }
.checks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--soft); }
.checks li:last-child { border-bottom: 0; }
.checks li b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.plan { position: relative; padding: 24px 12px 20px; text-align: center; }
.plan.best { border: 2px solid var(--pine); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--pine); color: #fbf7ef; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .name { font-family: var(--serif); font-size: 19px; }
.plan .amt { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.plan .per { color: var(--soft); font-size: 14px; margin-top: 4px; }
.pricing .fine { margin-top: 18px; text-align: center; }

/* Closing */
.closing { text-align: center; padding: 64px 0 56px; }
.closing .app-icon { width: 76px; height: 76px; margin: 0 auto 18px; }
.closing h2 { font-size: 34px; }
.closing .lead { margin-top: 10px; color: var(--soft); }
.closing .cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer .wrap { display: grid; gap: 14px; justify-items: start; }
.site-footer .brand { font-size: 18px; }
.site-footer .brand .app-icon { width: 28px; height: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { color: var(--soft); font-size: 14px; }

/* Inner pages */
.page-head { padding-top: 40px; padding-bottom: 24px; }
.page-head h1 { font-size: 38px; }
.page-head p:not(.eyebrow) { margin-top: 14px; color: var(--soft); font-size: 17px; }
.prose { padding-bottom: 64px; font-size: 17px; color: #2d3a3e; }
.prose .updated { color: var(--soft); font-size: 15px; margin-bottom: 22px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--ink); }
.prose .callout { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 4px; margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 14px 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--soft); font-size: 16px; padding: 0 0 18px; }
.faq strong { color: var(--ink); }

/* Contact form */
.form-card { margin: 48px 0 64px; scroll-margin-top: 80px; padding: 24px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.form-card h2 { font-size: 28px; margin-bottom: 18px; }
.form-card .lead { color: var(--soft); margin-bottom: 18px; font-size: 16px; }
.row { display: grid; gap: 0 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 15px; font-weight: 600; }
.field .opt { color: var(--soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(31, 43, 48, 0.2); background: #fbf8f2; color: var(--ink);
  font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(48, 74, 69, 0.18); }
.field [aria-invalid="true"] { border-color: #c4553a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 6px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--pine); color: #fbf7ef;
  font: inherit; font-size: 17px; font-weight: 600;
}
.form-card button:disabled { opacity: 0.7; cursor: progress; }
.status { margin-top: 14px; font-size: 16px; }
.status:empty { display: none; }
.status.ok { color: #2f6b3a; }
.status.err { color: #a63d28; }
.form-note { margin-top: 14px; color: var(--soft); font-size: 14px; }

/* 404 */
.lost { padding-top: 64px; padding-bottom: 88px; text-align: center; }
.lost .app-icon { width: 80px; height: 80px; margin: 0 auto 22px; }
.lost h1 { font-size: 36px; }
.lost p.lead { color: var(--soft); margin-top: 16px; }
.lost p.lead em { font-family: var(--serif); color: var(--ink); font-size: 20px; }
.lost .cta { margin-top: 28px; display: flex; justify-content: center; }

/* Wider screens */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .nav .nav-wide { display: inline-flex; }
  .row { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 36px; }
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; }
  .site-footer nav { justify-self: center; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero { text-align: left; padding: 80px 0 40px; }
  .hero-sky { height: 640px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: 72px; }
  .hero .sub { margin-left: 0; font-size: 20px; }
  .hero .cta { align-items: flex-start; }
  .hero .badges { justify-content: flex-start; }
  .hero .phone { margin-top: 0; width: 300px; }
  .section { padding: 96px 0 16px; }
  .section h2 { font-size: 46px; }
  .how-grid { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; }
  .how .phone { margin-top: 0; width: 280px; }
  .checks { columns: 2; column-gap: 40px; }
  .checks li { break-inside: avoid; }
  .plans { max-width: 560px; margin-left: auto; margin-right: auto; }
  .closing { padding: 112px 0 96px; }
  .closing h2 { font-size: 52px; }
  .page-head { padding-top: 72px; }
  .page-head h1 { font-size: 52px; }
}

/* Articles */
.prose blockquote { margin: 18px 0 20px; padding: 14px 18px; background: var(--card); border-left: 3px solid var(--amber); border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-family: inherit; font-style: normal; font-size: 15px; color: var(--soft); }
.prose a { color: var(--amber); }
.prose .byline { color: var(--soft); font-size: 15px; margin-bottom: 22px; }
.prose .more { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-list { list-style: none; margin: 0; padding: 0 0 64px; display: grid; gap: 14px; }
.article-list a { display: block; padding: 20px; text-decoration: none; color: inherit; }
.article-list h2 { font-size: 23px; }
.article-list p { color: var(--soft); font-size: 16px; margin-top: 6px; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; margin-left: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { min-height: 34px; min-width: 40px; padding: 0 10px; justify-content: center; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--soft); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
/* Small phones: the header holds the name, Articles and the language switcher; Support is in the footer. */
@media (max-width: 479px) {
  .nav a { padding: 0 8px; }
  .nav > a[href="/support"] { display: none; }
  .lang-switch a { min-width: 36px; padding: 0 8px; font-size: 14px; }
}

/* Privacy policy: English and Spanish on one page; privacy-lang.js picks one (English without it). */
html:not([data-lang="es"]) [data-lang-block="es"], html[data-lang="es"] [data-lang-block="en"] { display: none; }
.lang-row { padding-top: 28px; }
.lang-row ~ [data-lang-block] .page-head { padding-top: 20px; }
.lang-row .lang-switch { margin-left: 0; }
.lang-row .lang-switch a { display: inline-flex; align-items: center; text-decoration: none; padding: 0 16px; }

/* A note under an articles list. */
.hub-note { margin: 28px 0 56px; color: var(--soft); }
