/* Oração em Dia: same tokens as the app (Shared/Core/Palette.swift). */
:root {
  --cream: #f6eee4;
  --card: #fbf6ef;
  --sage: #7e9c84;
  --sage-dark: #4a6552;
  --sage-light: #e3ebe2;
  --peach: #f2a48c;
  --amber: #f5c26b;
  --ink: #2e3a3a;
  --ink-soft: #5d6a67;
  --line: #e7dccd;

  /* SF Pro Rounded on Apple devices, like the app itself; no web fonts to download. */
  --font-ui: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  /* Scripture gets a book face: Iowan Old Style ships with every iPhone and Mac. */
  --font-verse: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 36rem;
  --radius-phone: 2.4rem;
  --radius-panel: 1.5rem;
  --radius-button: 999px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a { color: var(--sage-dark); text-underline-offset: 0.18em; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--card);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand img { width: 2.25rem; border-radius: 0.6rem; }

.site-header nav { display: flex; gap: 1.25rem; font-weight: 600; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--sage-dark); }

/* Hero: the question from the lock screen, and the candle that lights up. */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 2rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--card);
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-button);
  font-weight: 700;
  text-decoration: none;
}
.store-button svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.store-note { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30rem;
}

.candle {
  width: min(26rem, 90%);
  overflow: visible;
}

.candle .glow { transform-origin: 200px 150px; }
.candle .flame { transform-origin: 200px 190px; }

@media (prefers-reduced-motion: no-preference) {
  .candle .glow { animation: glow-in 2.4s ease-out 0.6s both; }
  .candle .flame { animation: flame-in 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.5s both; }
  .candle .eyes-open { animation: wake 0.1s linear 1.2s both; }
  .candle .eyes-closed { animation: sleep 0.1s linear 1.2s both; }
}

@keyframes flame-in {
  from { transform: scale(0.05); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes glow-in {
  from { transform: scale(0.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes wake { from { opacity: 0; } to { opacity: 1; } }
@keyframes sleep { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .candle .eyes-closed { opacity: 0; }
}

/* Sections */
section { padding-block: 4.5rem; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.section-intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 3rem; }

/* How it works: a real sequence, so the steps are numbered. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.steps h3::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--card);
  font-size: 0.95rem;
}
.steps p { margin: 0; color: var(--ink-soft); }

.phone {
  border-radius: var(--radius-phone);
  border: 0.55rem solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  aspect-ratio: 540 / 1173;
  max-width: 17rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(74, 101, 82, 0.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Scripture */
.verse {
  background: var(--sage-dark);
  color: var(--card);
  border-radius: var(--radius-panel);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  margin-block: 2rem;
}
.verse blockquote {
  margin: 0;
  font-family: var(--font-verse);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  max-width: 30ch;
}
.verse cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 700;
  color: var(--sage-light);
}

/* Free and Premium */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 2rem;
}
.plan.premium { border: 2px solid var(--sage); }
.plan h3 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.plan .price { margin: 0 0 1.5rem; color: var(--ink-soft); font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.2rem; }
.plan li { margin-bottom: 0.5rem; }
.plan li::marker { color: var(--sage); }

/* Privacy promise */
.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.promise h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.promise p { margin: 0; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  margin-top: 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.25rem; font-weight: 600; }
.site-footer p { margin: 0.35rem 0; max-width: 60ch; }

/* Legal and support pages */
.document {
  max-width: 42rem;
  padding-block: 2rem 4rem;
}
.document h1 {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.document .updated { color: var(--ink-soft); margin: 0 0 2.5rem; }
.document h2 { font-size: 1.3rem; margin: 2.5rem 0 0.6rem; }
.document p,
.document li { color: var(--ink); }
.document li { margin-bottom: 0.45rem; }

.document details {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.document summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}
.document details p { margin: 0.75rem 0 0; }

.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.contact p { margin: 0; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-block: 1.5rem 3rem; gap: 1rem; }
  .hero-art { min-height: 20rem; order: -1; }
  .candle { width: min(18rem, 80%); }
  .steps, .promise, .plans { grid-template-columns: 1fr; }
  .steps { gap: 3.5rem; }
  .phone { max-width: 15rem; }
  .site-header nav { gap: 0.9rem; font-size: 0.95rem; }
}

@media (max-width: 30rem) {
  .site-header nav .optional { display: none; }
}
