/* NoteBible — marketing site. Mirrors the app's design system
   (src/design/tokens.ts): warm paper background, white cards with hairline
   borders, deep green primary buttons, flame gold accent, serif display
   type. Light is the default; dark follows the system like the app. */

:root {
  color-scheme: light dark;

  /* lightColors from the app */
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f2efea;
  --border: #e3ded7;
  --border-strong: #cfc8bd;

  --primary: #123d32;
  --primary-pressed: #0c2922;
  --on-primary: #faf8f5;

  --flame: #d3a35c;
  --flame-text: #b47a2c; /* readable gold for small text on paper */
  --flame-soft: rgba(211, 163, 92, 0.14);

  --text: #17211e;
  --text-soft: #68736f;
  --text-muted: #929b97;

  --icon-bg: rgba(18, 61, 50, 0.08);
  --icon-fg: #123d32;

  --nav-bg: rgba(250, 248, 245, 0.88);
  --shadow: rgba(23, 33, 30, 0.1);

  /* app radius tokens */
  --radius: 16px;       /* radius.card */
  --radius-btn: 14px;   /* radius.button */

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* darkColors from the app */
    --bg: #0b0b0c;
    --surface: #171719;
    --surface-2: #212124;
    --border: #2c2c30;
    --border-strong: #3a3a40;

    --primary: #f2f2f2;
    --primary-pressed: #d9d9d9;
    --on-primary: #0b0b0c;

    --flame: #d3a35c;
    --flame-text: #d3a35c;
    --flame-soft: rgba(211, 163, 92, 0.14);

    --text: #f7f7f7;
    --text-soft: #b5b5b8;
    --text-muted: #7d7d82;

    --icon-bg: rgba(211, 163, 92, 0.12);
    --icon-fg: #d3a35c;

    --nav-bg: rgba(23, 23, 25, 0.88);
    --shadow: rgba(0, 0, 0, 0.55);
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 22px; height: 22px; }
.logo img { width: 26px; height: 26px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.lang {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
}
.nav-links a.lang:hover { border-color: var(--primary); color: var(--text); }

/* App Button: green primary, paper text, radius.button = 14 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: var(--primary-pressed);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow);
}
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; border-color: var(--border-strong); }

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(211, 163, 92, 0.14), transparent);
  pointer-events: none;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame-text);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 56px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero p.lead {
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--text-soft);
  max-width: 46ch;
}

.hero-ctas { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- Phone mockup ---------- */

.phone {
  width: 300px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 42px;
  padding: 18px 16px 26px;
  box-shadow:
    0 40px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 110px;
  height: 22px;
  background: var(--surface-2);
  border-radius: 999px;
  margin: 0 auto 18px;
}

.note-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.note-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame-text);
  margin-bottom: 6px;
}

.note-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
}

.note-date { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

.note-section { margin-top: 14px; }
.note-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.note-body { font-size: 13px; color: var(--text-soft); line-height: 1.55; }

.note-point { display: flex; gap: 8px; font-size: 13px; color: var(--text-soft); margin-top: 5px; }
.note-point span:first-child { color: var(--flame-text); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--flame-text);
  background: var(--flame-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.remembrance {
  margin-top: 14px;
  background: var(--flame-soft);
  border: 1px solid rgba(211, 163, 92, 0.35);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.remembrance .note-label { color: var(--flame-text); }
.remembrance .note-body { font-style: italic; }

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

section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 52px; }

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 600;
}

.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 17px; }

/* Steps */

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
section.alt .step { background: var(--surface-2); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* Features */

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); box-shadow: 0 8px 26px var(--shadow); }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; stroke: var(--icon-fg); }

.feature h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-soft); }

/* Testimonials */

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.testimonial {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.testimonial-meta .name { font-size: 13.5px; color: var(--text-muted); }
.stars { color: var(--flame); font-size: 13px; letter-spacing: 2px; }

/* CTA final */

.cta-final { text-align: center; padding: 100px 0; }
.cta-final .flame-big { margin-bottom: 24px; }
.cta-final .flame-big svg { width: 52px; height: 52px; }
.cta-final .flame-big img { width: 64px; height: 64px; object-fit: contain; }
.cta-final p { margin: 16px auto 34px; color: var(--text-soft); font-size: 17.5px; max-width: 48ch; }

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

footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 24px; }
footer a { color: var(--text-muted); font-size: 13.5px; }
footer a:hover { color: var(--text-soft); }
.copyright { font-size: 13.5px; color: var(--text-muted); }

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

.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal h3 { font-family: var(--serif); font-size: 17.5px; font-weight: 600; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }

/* ---------- Support page ---------- */

.support-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0 20px;
}
.support-card .support-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
}
.support-card .support-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--icon-fg);
}
.support-card h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 2px; }
.support-card p { margin: 0; font-size: 14.5px; }
.support-card a { color: var(--flame-text); font-weight: 500; }

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

@media (max-width: 900px) {
  .hero { padding: 64px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .phone { width: 280px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-mobile { display: none; }
}
