/* ============================================================
   ZAYVORI — Brand Website
   Colors: #E2725B (coral) | #FAF2E9 (cream) | #E7C2A6 (tan) | #4A033B (dark)
   ============================================================ */

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

:root {
  --coral:   #E2725B;
  --cream:   #FAF2E9;
  --tan:     #E7C2A6;
  --dark:    #4A033B;
  --dark-60: rgba(74,3,59,.6);
  --dark-10: rgba(74,3,59,.08);
  --white:   #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(74,3,59,.08);
  --shadow-md: 0 8px 32px rgba(74,3,59,.12);
  --shadow-lg: 0 24px 64px rgba(74,3,59,.18);

  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(226,114,91,.35);
}
.btn--primary:hover { background: #d15f49; box-shadow: 0 8px 28px rgba(226,114,91,.45); }

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark-10);
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); }

.btn--sm { padding: 10px 22px; font-size: 14px; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-header--light h2,
.section-header--light p { color: var(--white); }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--tan); }

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--dark-60);
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,242,233,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,114,91,.1);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--coral); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer__icon {
  border-radius: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 40px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(226,114,91,.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero__headline em {
  font-style: italic;
  color: var(--coral);
}

.hero__sub {
  font-size: 18px;
  color: var(--dark-60);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Phone Mockup */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero__blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(231,194,166,.5) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 240px;
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(74,3,59,.15);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.phone-frame:hover { transform: rotate(0deg) scale(1.02); }

.phone-screen {
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
}

.phone-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

.phone-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.phone-card__img {
  height: 90px;
  background: linear-gradient(135deg, var(--tan) 0%, #d4956e 100%);
}
.phone-card__img--alt {
  height: 70px;
  background: linear-gradient(135deg, #b5d4a8 0%, #7db86e 100%);
}
.phone-card--sm .phone-card__info { padding: 8px 10px; }

.phone-card__info { padding: 10px 12px; }
.phone-card__tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(226,114,91,.12);
  padding: 2px 7px;
  border-radius: 100px;
}
.phone-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin: 4px 0 2px;
}
.phone-card__meta { font-size: 10px; color: var(--dark-60); }

.phone-cta {
  display: block;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: auto;
}

.hero__wave {
  line-height: 0;
}
.hero__wave svg { width: 100%; display: block; }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 0;
  background: var(--white);
}

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

.feature-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(226,114,91,.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--coral);
}
.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 15px; color: var(--dark-60); line-height: 1.65; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--dark);
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step__number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--coral);
  opacity: .9;
  line-height: 1;
  margin-bottom: 16px;
}

.step__content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.step__content p { font-size: 15px; color: rgba(250,242,233,.7); line-height: 1.65; }

.step__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--tan));
  flex-shrink: 0;
  border-radius: 1px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

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

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card__stars { color: var(--coral); font-size: 16px; letter-spacing: 2px; }

.testimonial-card p {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 14px; color: var(--dark); }
.testimonial-card__author span { font-size: 12px; color: var(--dark-60); }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  background: linear-gradient(135deg, var(--coral) 0%, #c45a44 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.download::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.download__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download__leaf-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}
.download__leaf-icon svg { width: 100%; height: 100%; }

.download h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.download p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.download__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 160px;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(74,3,59,.4); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge div { text-align: left; }
.store-badge small { display: block; font-size: 11px; opacity: .7; }
.store-badge strong { display: block; font-size: 16px; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,242,233,.1);
}

.footer__brand .nav__logo { color: var(--cream); margin-bottom: 12px; }

.footer__brand p {
  font-size: 14px;
  color: rgba(250,242,233,.5);
  max-width: 220px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 56px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,242,233,.5);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 14px;
  color: rgba(250,242,233,.75);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--coral); }

.footer__bottom {
  padding: 20px 24px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(250,242,233,.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__phone { order: -1; }
  .hero__blob { display: none; }
  .phone-frame { transform: none; }

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

  .steps { flex-direction: column; gap: 32px; }
  .step__connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--coral), var(--tan)); }

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

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(226,114,91,.12);
    z-index: 99;
    gap: 20px;
  }

  .features__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .download__badges { flex-direction: column; align-items: center; }

  .hero__phone { display: none; }
}

/* ---- Scroll fade-in animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================================ */
.legal-hero {
  background: var(--cream);
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(226,114,91,.12);
}
.legal-hero__inner { max-width: 760px; }
.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 16px;
  line-height: 1.15;
}
.legal-hero__meta { font-size: 14px; color: var(--dark-60); }

.legal-content {
  padding: 64px 0 100px;
  background: var(--white);
}

.legal-container {
  max-width: 760px;
}

.legal-notice {
  background: rgba(226,114,91,.1);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 48px;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-10);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 10px;
}
.legal-section p {
  font-size: 15px;
  color: #3a2030;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-steps {
  margin: 12px 0 14px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-steps {
  list-style: decimal;
}
.legal-section li {
  font-size: 15px;
  color: #3a2030;
  line-height: 1.7;
}
.legal-section a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover { color: #c45a44; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid rgba(74,3,59,.1);
  line-height: 1.55;
  color: #3a2030;
}
.legal-table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal-table tr:nth-child(even) td { background: rgba(250,242,233,.4); }

.legal-contact {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-contact p { margin-bottom: 0; font-size: 15px; }

@media (max-width: 600px) {
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
}
