/* Focara Kitchen — marketing site styles.
   Palette shared with the app: linen #F2EAD9, card #FBF6EC, header zone #EBDFC8,
   terracotta #E8633A, wheat #D4B896, sage #7A9E7E, cast iron #2A1F1A.
   Headings: Fraunces (warm editorial serif). Body: Nunito Sans. */

:root {
  --terracotta: #E8633A;
  --terracotta-deep: #C94F2B;
  --linen: #F2EAD9;
  --card: #FBF6EC;
  --header-zone: #EBDFC8;
  --wheat: #D4B896;
  --wheat-soft: #E5D8C2;
  --sage: #7A9E7E;
  --ink: #2A1F1A;
  --ink-soft: #574a3f;
  --ink-muted: #6b5c50;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(242, 234, 217, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 184, 150, 0.35);
  transition: box-shadow 0.25s;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(42, 31, 26, 0.10);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(42, 31, 26, 0.18);
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--terracotta);
  background: rgba(232, 99, 58, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--terracotta);
}

.nav-link.nav-download {
  color: #fff;
  background: var(--ink);
}

.nav-link.nav-download:hover {
  background: var(--terracotta);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

.hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(232, 99, 58, 0.12), transparent 60%),
    radial-gradient(800px 420px at -10% 20%, rgba(122, 158, 126, 0.12), transparent 55%),
    var(--linen);
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 14px 44px rgba(42, 31, 26, 0.25);
  margin-bottom: 26px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 auto 18px;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--terracotta);
}

.hero .tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

/* Official Apple/Google badge art, shown but not yet linked (the Native Past pattern).
   Both assets are exact-cropped to the visible pill, so equal CSS height = equal badges. */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  height: 54px;
  width: auto;
  display: block;
  border: 0;
}

.store-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-note a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: none;
}

.hero-note a:hover {
  text-decoration: underline;
}

/* ---------- Section scaffolding ---------- */

.section {
  padding: 84px 0;
}

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

.section-kicker {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 52px;
}

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--card);
  border: 1px solid rgba(212, 184, 150, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.section.alt .feature-card {
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(42, 31, 26, 0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--header-zone);
  border-radius: 14px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ---------- Tutorial promo ---------- */

.tutorial-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.tutorial-band h2 {
  font-family: 'Fraunces', serif;
  color: var(--linen);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  margin-bottom: 10px;
}

.tutorial-band p {
  color: rgba(242, 234, 217, 0.75);
  max-width: 520px;
  font-size: 16px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 99, 58, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

/* ---------- Pricing ---------- */

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

.price-card {
  background: #fff;
  border: 1px solid rgba(212, 184, 150, 0.45);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--terracotta);
  box-shadow: 0 16px 40px rgba(232, 99, 58, 0.16);
  position: relative;
}

.price-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.price {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 2px;
}

.price .per {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
}

.price-desc {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  text-align: start;
  margin: 0 auto 26px;
  flex: 1;
}

.price-card li {
  padding: 7px 0 7px 30px;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--sage);
  font-weight: 800;
}

.price-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-top: 26px;
}

/* ---------- Download CTA ---------- */

.cta {
  text-align: center;
}

.cta .store-badges {
  margin-top: 30px;
}

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

.footer {
  background: var(--ink);
  color: rgba(242, 234, 217, 0.8);
  padding: 44px 0 36px;
  text-align: center;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer .brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer .brand span {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--linen);
}

.footer p {
  font-size: 14px;
}

.footer-links {
  margin-top: 14px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(242, 234, 217, 0.85);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .dot {
  opacity: 0.45;
  margin: 0 10px;
}

/* ---------- Auth confirmation overlay (Supabase email links land on /) ---------- */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(42, 31, 26, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 24px;
}

/* display:grid above would defeat the `hidden` attribute — keep it authoritative. */
.confirm-overlay[hidden] {
  display: none;
}

.confirm-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(42, 31, 26, 0.35);
  max-width: 460px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
}

.confirm-card .badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.confirm-card .badge.ok { background: var(--terracotta); }
.confirm-card .badge.warn { background: var(--wheat); }

.confirm-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirm-card p {
  color: var(--ink-muted);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.confirm-card .btn {
  padding: 12px 26px;
}

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

@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--linen);
    border-bottom: 1px solid rgba(212, 184, 150, 0.4);
    padding: 12px 20px 18px;
    gap: 4px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    text-align: center;
    padding: 13px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .tutorial-band {
    padding: 40px 30px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
  }

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

  .section {
    padding: 64px 0;
  }

  /* Keep both badges on one row on phones (the KaraokeSync v2.3.0 lesson). */
  .store-badge img {
    height: 46px;
  }
}
