/* Pantheon — Your story, beautifully told. */
/* Brand: cream, navy, burgundy, gold. Mobile-first. */

:root {
  --cream: #f8f6f1;
  --cream-dark: #ebe8e0;
  --navy: #1a2332;
  --navy-muted: #2d3a4f;
  --burgundy: #722f37;
  --burgundy-hover: #8a3a43;
  --gold: #b8860b;
  --gold-light: #c9a227;
  --white: #fff;
  --text: var(--navy);
  --text-muted: var(--navy-muted);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --space: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  z-index: 100;
  padding: var(--space);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space) var(--space-lg);
  min-height: var(--header-h);
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.logo:hover, .logo:focus-visible { color: var(--burgundy); }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle:hover, .nav-toggle:focus-visible {
  background: var(--cream-dark);
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}
.hamburger {
  width: 22px;
  height: 2px;
  background: var(--navy);
  box-shadow: 0 6px 0 var(--navy), 0 12px 0 var(--navy);
}
.nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 45;
  background-color: #f8f6f1;
  background-image: none;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--space-lg) var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav.is-open {
  display: flex;
}
.nav-logo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}
.nav-logo:hover, .nav-logo:focus-visible { color: var(--burgundy); }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  flex-shrink: 0;
}
.nav-list a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 0.5em 0;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--burgundy); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-logo { display: none; }
  .nav {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 0;
    z-index: auto;
    background: transparent;
    background-image: unset;
    padding: 0;
    overflow: visible;
    align-items: center;
    justify-content: flex-end;
  }
  .nav.is-open { display: flex; }
  .nav-list {
    flex-direction: row;
    gap: var(--space-lg);
  }
  .nav-list a {
    font-size: 1rem;
    font-weight: 400;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6em 1.25em;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover { background: var(--burgundy-hover); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 0.85em 1.75em; font-size: 1.1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}
.section-inner { padding: 0 var(--space-lg); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space);
}
.section-subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}
.section-body {
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 var(--space-lg);
}
.section-cta { margin: var(--space-lg) 0 0; }
.section-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: var(--space) 0 var(--space-lg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.hero-bg .hero-video-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .hero-video:not(.hero-video-hidden) {
  z-index: 1;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 35, 50, 0.6) 0%, rgba(26, 35, 50, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-xl) var(--space-lg);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space);
  line-height: 1.2;
}
.hero-subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-xl);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  justify-content: center;
}
.hero-cta.app-badges {
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
@media (min-width: 420px) {
  .hero-cta.app-badges { flex-direction: row; }
}
.app-badge-img {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}
.app-badge-img:hover { opacity: 0.9; }
.app-badge-img:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}
.app-badge-img img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
  object-position: center;
}
/* Google Play badge: scale up so it matches Apple badge visual size */
.hero-cta.app-badges .app-badge-img:first-child img {
  transform: scale(1.3);
  transform-origin: center;
}
@media (min-width: 480px) {
  .app-badge-img img {
    width: 170px;
    height: 56px;
  }
}

/* One-liner */
.section-oneliner { background: var(--white); }
.section-oneliner .section-inner {
  display: grid;
  gap: var(--space-xl);
}
.oneliner-visual img, .how-visual img, .features-visual img, .who-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .section-oneliner .section-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .oneliner-content { order: 1; }
  .oneliner-visual { order: 2; }
}

/* How it works */
.section-how { background: var(--cream); }
.how-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
.how-steps { order: 1; }
.how-visual { order: 2; }
.steps-list {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25em;
  font-size: 1.05rem;
}
.steps-list li { margin-bottom: var(--space); }
@media (min-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Features */
.section-features { background: var(--white); }
.features-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
.feature-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space);
}
.feature-cards li {
  padding: var(--space);
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--burgundy);
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Who it's for */
.section-who { background: var(--cream); }
.who-cards {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  gap: var(--space);
}
.who-cards li {
  padding: var(--space);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.who-visual {
  margin-top: var(--space-xl);
}
.who-visual img { max-width: 400px; margin: 0 auto; display: block; }

/* Pricing */
.section-pricing { background: var(--white); }
.pricing-cards {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}
.plan-card {
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius);
  border: 2px solid var(--cream-dark);
}
.plan-featured {
  border-color: var(--burgundy);
  background: linear-gradient(to bottom, rgba(114, 47, 55, 0.06), var(--cream));
}
.plan-name { margin: 0 0 0.5em; font-size: 1.2rem; color: var(--navy); }
.plan-desc { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 640px) {
  .pricing-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Final CTA */
.section-final-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
}
.final-cta-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 35, 50, 0.65) 0%, rgba(26, 35, 50, 0.8) 100%);
}
.final-cta-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-lg);
}
.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space);
}
.final-cta-subhead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-xl);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}
.footer-tagline {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}
.footer-nav ul {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space) var(--space-lg);
}
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--gold-light); text-decoration: underline; }
.footer-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space);
  margin-bottom: var(--space-lg);
}
.app-badge {
  display: inline-block;
  padding: 0.5em 1em;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.app-badge:hover, .app-badge:focus-visible {
  background: var(--gold-light);
  color: var(--navy);
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.footer-copy {
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.8);
  margin: 0;
}

/* Standalone pages (Privacy, Terms) */
.page-content {
  padding: var(--space-2xl) var(--space-lg);
}
.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: var(--space-lg);
}

/* Mobile nav overlay */
body.nav-open { overflow: hidden; }
@media (min-width: 768px) {
  body.nav-open { overflow: auto; }
}
