/* Saint Match marketing site
   Cream / sage / terracotta. Kitchen table Catholic, phone first.
   Tokens match constants/colors.ts and landing-page-spec.md. */

:root {
  --sage: #7a8f70;
  --sage-light: #9aaf8c;
  --sage-dark: #5d7054;
  --terracotta: #c96b55;
  --terracotta-light: #d98b73;
  --terracotta-dark: #a85440;
  --cream: #f5f1ea;
  --cream-dark: #e8e2d8;
  --cream-warm: #ede7dc;
  --white: #fffcf8;
  --charcoal: #2d2a26;
  --charcoal-light: #4a4640;
  --charcoal-muted: #6b665e;
  --charcoal-subtle: #9a958a;
  --card-shadow: 0 8px 24px rgba(45, 42, 38, 0.08);
  --radius: 12px;
  --radius-card: 16px;
  --space: 4px;
  --max: 68rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-dark);
}

a:hover {
  color: var(--terracotta-dark);
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 0.75rem 1rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal-light);
  padding: 0.7rem 0.35rem;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sage-dark);
}

.nav-cta {
  display: none;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}

.btn-ghost:hover {
  background: rgba(122, 143, 112, 0.1);
  color: var(--sage-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 2.25rem 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 8vw, 3.6rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.lede,
.hero p {
  margin: 0 0 1rem;
  color: var(--charcoal-muted);
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 38rem;
}

/* ── Phone mock ───────────────────────────────────────── */

.phone-wrap {
  margin: 2rem auto 0;
  width: min(20.5rem, 100%);
}

.phone {
  background: var(--charcoal);
  border-radius: 2rem;
  padding: 0.7rem 0.65rem 0.85rem;
  box-shadow: var(--card-shadow), 0 20px 40px rgba(45, 42, 38, 0.12);
}

.phone-screen {
  background: var(--cream);
  border-radius: 1.45rem;
  overflow: hidden;
  min-height: 26rem;
  padding: 1.15rem 1rem 1.25rem;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--charcoal-subtle);
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.phone-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
}

.phone-title {
  margin: 0.2rem 0 0.9rem;
  font-size: 1.45rem;
}

.moods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.mood {
  margin: 0;
  padding: 0.55rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--charcoal-light);
  text-align: center;
}

.mood.is-active {
  border-color: var(--sage);
  background: rgba(122, 143, 112, 0.12);
  color: var(--sage-dark);
  font-weight: 600;
}

.saint-card {
  background: var(--white);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--card-shadow);
}

.saint-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.saint-initials {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.saint-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.saint-card .feast {
  margin: 0;
  font-size: 0.75rem;
  color: var(--charcoal-subtle);
}

.practice-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta-dark);
  font-weight: 600;
}

.practice {
  margin: 0;
  font-size: 0.92rem;
  color: var(--charcoal-light);
}

/* ── Marble hero still ────────────────────────────────── */

.hero-still {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 24rem;
  overflow: hidden;
  background: var(--cream-warm);
}

.hero-still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-still::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 234, 0.55) 0%,
    rgba(245, 241, 234, 0) 22%,
    rgba(245, 241, 234, 0) 78%,
    rgba(237, 231, 220, 0.85) 100%
  );
}

.hero-still-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--charcoal-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
}

/* ── Novena beat ──────────────────────────────────────── */

.novena-grid {
  display: grid;
  gap: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(122, 143, 112, 0.14);
  color: var(--sage-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sage);
}

.chip-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--charcoal-muted);
}

.novena-dates {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--terracotta-light);
  background: var(--cream-warm);
  border-radius: 0 10px 10px 0;
  color: var(--charcoal-light);
}

.novena-dates strong {
  color: var(--charcoal);
}

/* ── Sections ─────────────────────────────────────────── */

section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--cream-warm);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--charcoal-muted);
}

.steps,
.feature-grid,
.price-grid,
.faq-list {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--card-shadow);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--terracotta);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.not-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--charcoal-light);
}

.not-list li:last-child {
  border-bottom: 0;
}

.not-list strong {
  color: var(--charcoal);
}

/* ── Pricing ──────────────────────────────────────────── */

.price-card .amount {
  margin: 0.15rem 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
}

.price-card .period {
  color: var(--charcoal-muted);
  font-size: 0.95rem;
}

.price-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--charcoal-light);
}

.price-card.is-pro {
  border-color: var(--terracotta-light);
}

.badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(201, 107, 85, 0.12);
  color: var(--terracotta-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fine {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--charcoal-muted);
}

/* ── CTA band ─────────────────────────────────────────── */

.cta-band {
  background: var(--sage-dark);
  color: var(--white);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: var(--terracotta);
}

/* ── Legal / support ──────────────────────────────────── */

.page-hero {
  padding: 2rem 0 0.5rem;
}

.legal {
  padding-bottom: 3rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.legal h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  color: var(--charcoal-light);
}

.toc {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 0.5rem;
}

.toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.toc a {
  text-decoration: none;
}

.support-block + .support-block {
  margin-top: 1.5rem;
}

.plan-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.plan-grid .card h3 {
  margin-top: 0;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-card);
}

.callout.is-warn {
  border-left-color: var(--terracotta);
}

.callout p:last-child {
  margin-bottom: 0;
}

.path-list {
  padding-left: 0;
  list-style: none;
  margin: 0.5rem 0 1rem;
}

.path-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.path-list li:last-child {
  border-bottom: 0;
}

.legal .btn-row {
  margin: 1.25rem 0;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--cream-dark);
  color: var(--charcoal-muted);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--charcoal-light);
}

.footer-links a:hover {
  color: var(--terracotta-dark);
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  max-width: 42rem;
}

/* ── Desktop ──────────────────────────────────────────── */

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }

  .site-nav a {
    padding: 0.25rem 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .nav-cta {
    display: inline-flex;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.92rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0 2.5rem;
  }

  .hero-still {
    aspect-ratio: 21 / 9;
    max-height: 30rem;
    margin-top: 1rem;
  }

  .novena-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-wrap {
    margin: 0;
  }

  .steps,
  .feature-grid,
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .header-inner,
  .wrap {
    width: min(var(--max), calc(100% - 4rem));
  }
}
