/* Palma website — design tokens shared with the iOS app
   (src/theme/colors.ts in Kiddeke/Palma). Keep in sync. */

:root {
  --palm: #1C4634;
  --palm-deep: #12291F;
  --sand: #F3EDDF;
  --card: #FBF8F0;
  --card2: #E9E2CF;
  --gold: #C29A45;
  --gold-soft: #D9BC7A;
  --gold-text: #7A5E1F;
  --crimson: #7A2424;
  --ink: #1B1F1C;
  --muted: #616755;
  --border: #E7DFCB;

  --bg: var(--sand);
  --surface: var(--card);
  --surface2: var(--card2);
  --text: var(--ink);
  --text-muted: var(--muted);
  --brand: var(--palm);
  --accent-text: var(--gold-text);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--palm-deep);
    --surface: #183826;
    --surface2: var(--palm);
    --text: var(--sand);
    --text-muted: rgba(243, 237, 223, 0.62);
    --border: #27503C;
    --brand: var(--gold-soft);
    --accent-text: var(--gold);
    --crimson: #8E2C2C;
  }

  .hero-phone {
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

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

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--brand); }

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

header.site {
  padding: 20px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}

.logo span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.main a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.main a:hover { color: var(--text); }

@media (max-width: 640px) {
  nav.main a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--brand); }

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--bg) !important;
  font-size: 0.78rem !important;
}

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

.hero {
  padding: 64px 0 40px;
}

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

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { justify-self: center; }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 1.13rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.hero-phone {
  width: 300px;
  border-radius: 44px;
  padding: 12px;
  background: var(--palm-deep);
  box-shadow: 0 30px 70px rgba(18, 41, 31, 0.35);
}

.phone-screen {
  border-radius: 34px;
  background: var(--sand);
  color: var(--ink);
  overflow: hidden;
  padding: 22px 16px 18px;
}

.phone-screen .ps-date {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.phone-screen .ps-greeting {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2px 0 14px;
}

.ps-card {
  background: var(--card);
  border: 1px solid #E7DFCB;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ps-card .ps-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 3px;
}

.ps-card .ps-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
}

.ps-card .ps-sub {
  font-size: 0.75rem;
  color: #616755;
  margin-top: 2px;
}

.ps-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.ps-stat {
  background: var(--card);
  border: 1px solid #E7DFCB;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.ps-stat .n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
}

.ps-stat .l {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #616755;
}

.ps-sebastian {
  background: #1E1512;
  border: 1px solid rgba(142, 44, 44, 0.55);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--sand);
}

.ps-sebastian .ps-label { color: #C96F6F; }

.ps-sebastian .ps-msg {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(243, 237, 223, 0.88);
}

.ps-start {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

section { padding: 56px 0; }

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  margin: 10px 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature grid */

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

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Sebastian spotlight */

.sebastian {
  background: #1E1512;
  color: var(--sand);
  border-radius: 26px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  border: 1px solid rgba(142, 44, 44, 0.5);
}

@media (max-width: 820px) {
  .sebastian { grid-template-columns: 1fr; padding: 36px 28px; }
}

.sebastian .eyebrow { color: #C96F6F; }

.sebastian h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.sebastian p {
  color: rgba(243, 237, 223, 0.78);
  margin-bottom: 12px;
}

.seb-quote {
  background: rgba(243, 237, 223, 0.06);
  border: 1px solid rgba(142, 44, 44, 0.55);
  border-left: 3px solid #8E2C2C;
  border-radius: 16px;
  padding: 22px 24px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.seb-quote .who {
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #C96F6F;
}

/* Faith strip */

.faith-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) { .faith-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .faith-strip { grid-template-columns: 1fr; } }

.faith-strip .card { text-align: left; }

/* Integrations */

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

.pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA band */

.cta-band {
  background: var(--palm);
  color: var(--sand);
  border-radius: 26px;
  padding: 56px 48px;
  text-align: center;
}

@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(243, 237, 223, 0.75);
  max-width: 34em;
  margin: 0 auto 28px;
}

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

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 36px 0 48px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

footer.site nav { display: flex; gap: 22px; }

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
}

footer.site a:hover { color: var(--text); }

/* ---------- Inner pages (privacy, support) ---------- */

main.page {
  padding: 40px 0 72px;
  max-width: 720px;
  margin: 0 auto;
}

main.page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 8px;
}

main.page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

main.page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 36px 0 12px;
}

main.page p, main.page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

main.page ul { padding-left: 22px; margin-bottom: 12px; }

main.page strong { color: var(--text); font-weight: 600; }
