/* Elite Class Marriage — public site theme
   Original layout, built with the app's own color palette (see
   webapp/src/screens/Login.jsx, PrivacyPolicy.jsx, TermsAndConditions.jsx)
   rather than reproducing the app's screens. */

:root {
  --cream: #FCFBF7;
  --page-bg: #F4ECDA;
  --ink: #1E1E1E;
  --gray: #777777;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --gold-dark: #9C721A;
  --gold-link: #B8912E;
  --navy: #1F2F4A;
  --btn-grad-top: #E7D5A5;
  --btn-grad-bottom: #D4B06A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-link); }

img { max-width: 100%; display: block; }

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

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--gold-soft);
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.site-nav a:hover { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { display: block; }

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

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #FCF4DD 0%, var(--page-bg) 55%, #E9D8AC 100%);
  padding: 88px 24px 96px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.22), transparent 55%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 22px;
  box-shadow: 0 14px 34px rgba(154, 110, 20, 0.3);
  border: 3px solid #FFFFFF;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 1px;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #3A2E1A 0%, #9C721A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 16px;
}

.hero .pitch {
  font-size: 14.5px;
  color: var(--ink);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #E9E4D8;
  color: #9A9184;
  border: 1px solid #DCD5C4;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.store-badge svg { flex-shrink: 0; }

.store-badge .store-text {
  text-align: left;
  line-height: 1.25;
}

.store-badge .store-text .small {
  font-size: 10px;
  letter-spacing: 0.3px;
  display: block;
}

.store-badge .store-text .big {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.store-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 14px;
}

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

section { padding: 68px 0; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-dark);
  text-align: center;
  margin: 0 0 44px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  margin: 0 0 10px;
}

.about-block { text-align: center; }

.about-block .section-title { margin-bottom: 0; }

.about-block .rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 30px;
}

.about-block p {
  text-align: left;
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-block p strong { color: var(--ink); }

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

.feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(30, 30, 30, 0.06);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 30px 24px 26px;
  box-shadow: 0 8px 22px rgba(30, 30, 30, 0.05);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF4DD 100%);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

.download-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1F2F4A 0%, #2C4568 100%);
  padding: 76px 24px;
}

.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.18), transparent 50%),
              radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.14), transparent 50%);
  pointer-events: none;
}

.download-cta > * { position: relative; }

.download-cta .section-title { color: #F5EAD0; margin-bottom: 10px; }

.download-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #D4AF37;
  margin-bottom: 32px;
}

.download-cta .store-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(245, 234, 208, 0.55);
}

.download-cta .store-badge svg { opacity: 0.65; }

.download-cta .store-note { color: rgba(245, 234, 208, 0.55); }

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

.site-footer {
  background: #2A2014;
  color: #D8CBAE;
  padding: 46px 24px 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #F3EAD3;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #D8CBAE;
  text-decoration: none;
  font-size: 13px;
}

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

.footer-contact {
  font-size: 13px;
}

.footer-contact a { color: var(--gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 11.5px;
  color: #9C8F73;
  text-align: center;
}

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

.legal-header {
  background: radial-gradient(ellipse at top, #FCF4DD 0%, var(--page-bg) 55%, #E9D8AC 100%);
  padding: 54px 24px 40px;
  text-align: center;
}

.legal-header .back-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  margin-bottom: 18px;
}

.legal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
}

.legal-body { padding: 40px 24px 80px; }

.legal-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 34px 36px;
}

.legal-updated {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.legal-intro {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 600;
  margin: 26px 0 7px;
}

.legal-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  margin: 0 0 4px;
}

.legal-card p.emphasis {
  color: var(--ink);
  font-weight: 600;
  margin-top: 10px;
}

.legal-card ul {
  margin: 8px 0 4px;
  padding-left: 20px;
}

.legal-card li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-card strong { color: var(--ink); }

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

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

@media (max-width: 600px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gold-soft);
  }
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px 20px; }
  .legal-header h1 { font-size: 26px; }
  .footer-grid { flex-direction: column; gap: 20px; }
}
