/* Remember — Bible Journal · shared site styles
   Tokens mirror the app's design system (Color+Sacred.swift / Typography.swift):
   content in Newsreader serif, chrome in system sans, warm paper + bronze accent. */

:root {
  --background: #F4F1EA;
  --surface: #FFFFFF;
  --surface-alt: #F1ECE3;
  --ink: #2A2724;
  --ink-secondary: #6B6459;
  --ink-muted: #9E988C;
  --accent: #B5772A;
  --accent-tint: #EBD9B8;
  --band: #F0E6D3;
  --divider: #E9E5DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
  background: var(--background);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--divider);
  display: block;
}

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

.hero {
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--accent); font-style: italic; }

.hero .lede {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-secondary);
  max-width: 26rem;
  margin-bottom: 32px;
}

/* Store badges */

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--background);
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  min-width: 180px;
  transition: opacity 0.15s ease;
}
.badge:hover { text-decoration: none; opacity: 0.85; }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.badge .badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge .badge-small { font-size: 0.68rem; opacity: 0.8; }
.badge .badge-big { font-size: 1.05rem; font-weight: 600; }

.badge.disabled {
  background: var(--ink-muted);
  cursor: default;
  pointer-events: none;
}

/* Phone frame — realistic iPhone chrome: dynamic island, status bar, app screen */

.phone-col { display: flex; justify-content: center; }

.phone {
  width: 300px;
  height: 610px;
  border-radius: 54px;
  background: #1A1A1A;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(42, 39, 36, 0.28), 0 12px 28px rgba(42, 39, 36, 0.16);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: var(--surface-alt);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
}

.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #1A1A1A;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 26px 0;
}

.status-time { font-size: 0.8rem; font-weight: 600; color: var(--ink); }

.status-glyphs { color: var(--ink); opacity: 0.75; }
.status-glyphs svg { display: block; fill: currentColor; }

.phone-content { flex: 1; padding: 28px 24px 24px; }

.entry-divider { border: none; border-top: 1px solid var(--divider); margin: 26px 0 22px; }

.phone-content .entry-date {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.phone-content .entry-title {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.phone-content .entry-body {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}

.verse-chip {
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85em;
  white-space: nowrap;
}

.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
}

.wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.wave span:nth-child(1) { height: 8px; }
.wave span:nth-child(2) { height: 16px; }
.wave span:nth-child(3) { height: 11px; }
.wave span:nth-child(4) { height: 14px; }

.voice-chip-label {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* ---------- Feature rows ---------- */

.features {
  background: var(--surface);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 64px 0;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feat-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-row h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.feature-row p {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  max-width: 28rem;
}

.feat-visual {
  background: var(--surface-alt);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(42, 39, 36, 0.10);
  padding: 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-mic-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feat-mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-mic svg { width: 20px; height: 20px; }

.feat-arrow {
  color: var(--ink-muted);
  font-size: 1.4rem;
  margin: 12px 0;
}

.feat-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 16px;
}

.feat-card p {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: none;
}

.feat-verse-line {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: none;
  margin-bottom: 18px;
}

.feat-popover {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 39, 36, 0.10);
  padding: 16px 18px;
}

.feat-popover-verse {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  max-width: none;
}

.feat-popover-ref {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  max-width: none;
}

.feat-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.feat-search svg { width: 16px; height: 16px; flex-shrink: 0; }

.feat-search span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.feat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-feed-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
}

.feat-feed-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.feat-feed-title {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
}

.feat-cal-stack { max-width: 320px; margin: 0 auto; width: 100%; }

.feat-calendar {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.cal-month {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.cal-chevron { color: var(--ink-secondary); font-size: 1.2rem; line-height: 1; }
.cal-chevron.disabled { color: var(--ink-muted); opacity: 0.5; }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 6px;
}
.cal-weekdays { margin-bottom: 6px; }
.cal-weekdays span {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 38px;
}
.cal-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.cal-day.selected .cal-num {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(181, 119, 42, 0.25);
}
.cal-dots {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  height: 5px;
}
.cal-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.cal-date-label {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  margin: 14px 4px 8px;
}

.cal-entry {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 12px 14px;
}
.cal-entry-title {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.cal-entry-preview {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ---------- Trust strip ---------- */

.trust-band {
  background: var(--band);
  padding: 72px 0;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.trust-item {
  text-align: center;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 12px 0 6px;
}

.trust-item p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* ---------- Closing verse ---------- */

.closing {
  background: var(--band);
  padding: 72px 24px;
}

.closing .inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.closing .feat-kicker { color: var(--ink-secondary); margin-bottom: 0; }

.closing-verse {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  line-height: 1.4;
  margin: 20px 0 12px;
}

.closing-ref {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.closing-tagline {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 24px;
}

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

.site-footer {
  padding: 48px 0 56px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

.footer-fine { font-size: 0.8rem; line-height: 1.6; max-width: 46rem; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 { font-size: 2.2rem; font-weight: 500; margin-bottom: 8px; }

.legal .effective {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 44px 0 14px;
  padding-top: 8px;
}

.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }

.legal p, .legal li { color: var(--ink-secondary); margin-bottom: 14px; }
.legal strong { color: var(--ink); }

.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 16px 0 24px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  vertical-align: top;
  color: var(--ink-secondary);
}
.legal th { background: var(--surface-alt); color: var(--ink); font-weight: 600; }

.legal .note {
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin: 20px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .phone-col { order: 2; }
  .phone { width: 240px; height: 500px; border-radius: 44px; padding: 10px; }
  .phone-screen { border-radius: 34px; }
  .phone-content { padding: 24px 20px 20px; }
  .entry-2 { display: none; }

  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.reverse { direction: ltr; }
  .feature-row .feat-visual { order: -1; }
  .feat-visual { padding: 24px; }
  .feat-cal-stack { max-width: 280px; }

  .trust { grid-template-columns: 1fr; gap: 32px; }
  .closing { padding: 56px 24px; }
}
