/* Love Ritual — Modern Minimal */
:root {
  --primary: #C25B03;
  --primary-soft: rgba(194, 91, 3, .08);
  --sage: #768057;
  --sage-soft: rgba(118, 128, 87, .08);
  --tan: #DBA77B;
  --cream: #F9EFE5;
  --warm-white: #FDFBF8;
  --surface: #FFFFFF;
  --text: #4A5240;
  --text-secondary: #6B6B6B;
  --text-tertiary: #999;
  --border: rgba(0, 0, 0, .06);
  --dark-green: #1C1F15;
  --mid-green: #798558;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

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

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Layout ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 251, 248, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; letter-spacing: .01em; transition: color .2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); margin: 5px 0; border-radius: 1px; transition: .3s;
}

@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(253, 251, 248, .98);
    backdrop-filter: blur(20px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 140px 24px 80px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.store-badge { height: 48px; width: auto; }
.store-badge-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.hero-phone {
  flex-shrink: 0;
}

/* iPhone frame — reused in hero and preview */
.hero-iphone,
.iphone-frame {
  position: relative;
  width: 300px; height: 612px;
  background: #000;
  border-radius: 40px;
  padding: 8px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.12),
    0 4px 16px rgba(0,0,0,.06),
    inset 0 0 0 2px rgba(255,255,255,.08);
}
.hero-iphone img,
.iphone-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 32px;
  transition: opacity .25s ease;
}
/* Hero video inside phone */
.hero-poster {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  object-fit: cover;
  border-radius: 32px;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero-video.playing { opacity: 1; }
.iphone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 130px 24px 60px;
    gap: 48px;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-iphone { width: 260px; height: 530px; border-radius: 38px; }
  .hero-iphone img { border-radius: 30px; }
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--surface);
  padding: 14px 28px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  color: var(--surface); opacity: 1;
}
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,.12);
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover {
  border-color: rgba(0,0,0,.25);
  background: rgba(0,0,0,.02);
  opacity: 1;
}
.btn-outline svg { width: 18px; height: 18px; fill: currentColor; }

.btn-outline.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Sections ---- */
section { padding: 100px 0; }

.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.section-subtitle {
  text-align: center; max-width: 520px; margin: 0 auto 64px;
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.feature-item { display: flex; gap: 20px; }
.feature-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
.feature-content h3 {
  font-size: 1.1rem; margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}
.feature-content p {
  font-size: .925rem; color: var(--text-secondary); line-height: 1.7;
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- App Preview (interactive) ---- */
.app-preview-section {
  background: var(--cream);
}
.app-preview {
  display: flex;
  align-items: center;
  gap: 64px;
}
.app-preview-phone { flex-shrink: 0; }

.preview-screenshot {
  width: 400px;
  height: auto;
  transition: opacity .25s ease;
}

.iphone-frame {
  width: 340px; height: 694px;
}

.app-preview-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-tab {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all .25s ease;
  text-align: left;
}
.preview-tab:hover {
  background: rgba(0,0,0,.02);
}
.preview-tab.active {
  border-left-color: var(--primary);
  background: var(--primary-soft);
}
.tab-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.tab-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  transition: all .25s;
}
.preview-tab.active .tab-icon {
  background: var(--primary);
  color: var(--surface);
}
.tab-text { flex: 1; min-width: 0; }
.tab-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 60px;
  transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.preview-tab.active .tab-detail {
  max-height: 100px;
  opacity: 1;
  margin-top: 12px;
}
.tab-title {
  display: block;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 3px;
}
.tab-desc {
  display: block;
  font-size: .875rem; color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .app-preview {
    flex-direction: column;
    gap: 40px;
  }
  .preview-screenshot { width: 260px; border-radius: 28px; }
  .iphone-frame { width: 280px; height: 572px; border-radius: 38px; }
  .iphone-frame img { border-radius: 30px; }
  .app-preview-menu { width: 100%; }
  .preview-tab { padding: 16px 20px; }
  .tab-detail { padding-left: 0; }
}

/* ---- Benefits ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.benefit-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--sage-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.benefit-item h3 {
  font-size: .95rem; margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}
.benefit-item p { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 24px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem; font-weight: 600; color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  line-height: 1.5;
}
.faq-question::after {
  content: '+'; flex-shrink: 0;
  font-size: 1.2rem; font-weight: 400; color: var(--text-tertiary);
  transition: transform .3s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p {
  padding: 0 0 24px;
  font-size: .925rem; color: var(--text-secondary); line-height: 1.75;
}

/* ---- CTA ---- */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--mid-green) 0%, var(--dark-green) 100%);
  color: var(--surface);
  display: flex; flex-direction: column; align-items: center;
}
.cta-section h2 {
  color: var(--surface);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.cta-section p {
  max-width: 440px; margin: 0 auto 36px;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
}
.cta-section .btn-primary {
  background: var(--primary); color: var(--surface);
}
.cta-section .btn-primary:hover {
  box-shadow: 0 4px 24px rgba(194, 91, 3, .3);
}
.cta-section .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: var(--surface);
}
.cta-section .btn-outline.disabled {
  opacity: 0.6;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-links {
  display: flex; gap: 32px; justify-content: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.footer-links a {
  font-size: .825rem; color: var(--text-tertiary);
  text-decoration: none; font-weight: 500;
}
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-copy { font-size: .8rem; color: var(--text-tertiary); }

/* ---- Legal pages ---- */
.legal-header {
  padding: 140px 24px 60px;
  text-align: center;
}
.legal-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}
.legal-header .effective-date {
  font-size: .875rem; color: var(--text-tertiary);
}
.legal-body { padding: 0 0 100px; }
.legal-body h2 {
  font-size: 1.15rem; margin: 40px 0 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--text);
}
.legal-body h3 {
  font-size: 1rem; margin: 28px 0 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  color: var(--text-secondary);
}
.legal-body p { margin-bottom: 16px; font-size: .925rem; color: var(--text-secondary); line-height: 1.8; }
.legal-body ul { margin: 0 0 16px 20px; font-size: .925rem; color: var(--text-secondary); line-height: 1.8; }
.legal-body li { margin-bottom: 8px; }

/* ---- Support page ---- */
.support-hero {
  text-align: center;
  padding: 160px 24px 80px;
}
.support-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.support-hero p {
  max-width: 440px; margin: 0 auto;
  font-size: 1.05rem; color: var(--text-secondary);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.support-card:hover {
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.support-card .icon { font-size: 1.6rem; margin-bottom: 16px; }
.support-card h3 {
  font-size: 1rem; margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}
.support-card p {
  font-size: .875rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7;
}
.support-card .btn {
  display: inline-block;
  background: var(--text); color: var(--surface);
  padding: 10px 22px; border-radius: 100px;
  font-weight: 600; font-size: .825rem;
  transition: transform .2s;
  text-decoration: none;
}
.support-card .btn:hover {
  transform: translateY(-1px);
  color: var(--surface); opacity: 1;
}

@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .section-subtitle { margin-bottom: 40px; }
}
