/* ZOVVA homepage sections (index.html only). Shared tokens, header, buttons
   and footer come from zovva.css, which must be loaded first. */

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(201, 154, 91, .16), transparent 55%),
    radial-gradient(60% 50% at 15% 85%, rgba(68, 90, 120, .18), transparent 60%),
    linear-gradient(180deg, #0a0b0e 0%, var(--bg) 100%);
}
/* Planet-horizon arc echoing the approved design and the app's splash glow. */
.hero::before {
  content: "";
  position: absolute;
  width: 1100px; height: 1100px;
  inset-inline-end: -420px; top: -620px;
  border-radius: 50%;
  border-bottom: 2px solid rgba(241, 201, 150, .55);
  box-shadow: 0 40px 120px -40px rgba(227, 160, 90, .45);
  background: radial-gradient(circle at 50% 30%, #050506 60%, transparent 61%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid rgba(227, 199, 159, .3); border-radius: 999px;
  color: var(--gold); font-size: 13px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 .gold {
  background: linear-gradient(120deg, #f6e4c8, #d6a96d 60%, #b98443);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 32px 0 0; padding: 0; list-style: none;
  color: var(--text-dim); font-size: 14px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* Phone mockups — real app screenshots inside a CSS device frame. */
.phones-figure { margin: 0; }
.phones {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 520px;
  direction: ltr; /* fixed visual order in both languages */
}
.phone {
  position: relative;
  width: 210px;
  aspect-ratio: 600 / 1222;
  border-radius: 34px; padding: 8px;
  background: linear-gradient(145deg, #3a3631, #121212 40%, #2a2724);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 27px; background: #0b0c0e;
}
.phone.side { width: 188px; }
.phone.left { transform: translateX(34px) rotate(-6deg); z-index: 1; }
.phone.right { transform: translateX(-34px) rotate(6deg); z-index: 1; }
.phone.center { z-index: 2; width: 236px; margin-bottom: 30px; }
.shot-caption { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 12px; }

/* ── Modules ─────────────────────────────────────────────────────────── */
/* Five modules: two wide cards on top, three below (6-column grid). */
.modules { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.module {
  grid-column: span 2;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.module:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.module.wide { grid-column: span 3; }
/* The media is a real, sharp app-screen crop (4:3, served at 640w/1080w),
   framed like a phone screen on a module-tinted glow. */
.module-media {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 22px 22px 0;
  overflow: hidden;
  background: radial-gradient(90% 90% at 50% 0%, var(--glow, rgba(201, 154, 91, .22)), transparent 70%), #0d0f12;
  border-bottom: 1px solid var(--border);
}
.module-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);
}
.module[data-module="health"] { --glow: rgba(214, 150, 70, .28); }
.module[data-module="finance"] { --glow: rgba(110, 160, 140, .24); }
.module[data-module="tasks"] { --glow: rgba(227, 199, 159, .2); }
.module[data-module="wardrobe"] { --glow: rgba(200, 120, 140, .24); }
.module[data-module="family"] { --glow: rgba(130, 120, 200, .24); }
.module-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.module-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.module-icon {
  width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 13px;
  background: rgba(227, 199, 159, .1); border: 1px solid rgba(227, 199, 159, .25);
  color: var(--gold);
}
.module-icon svg { width: 22px; height: 22px; }
.module h3 { font-size: 20px; }
.module p { color: var(--text-dim); font-size: 14.5px; }
.module ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-dim); }
.module li { padding: 4px 0; padding-inline-start: 18px; position: relative; }
.module li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2);
}

/* ── AI assistant ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.chat-card {
  margin: 0;
  border-radius: 26px; padding: 18px;
  background: linear-gradient(160deg, #1a1c20, #0c0d10);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.chat-card img { border-radius: 16px; width: 100%; height: auto; }
.prompts { display: grid; gap: 12px; margin: 26px 0; padding: 0; list-style: none; }
.prompts li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  font-size: 15px;
}
.prompts .q { color: var(--text); font-weight: 600; }
.prompts .a { color: var(--text-dim); font-size: 13.5px; display: block; margin-top: 2px; }
.prompts svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.honest { border-inline-start: 3px solid var(--gold-2); padding: 4px 16px; color: var(--text-dim); font-size: 14px; }

/* ── Integrations ────────────────────────────────────────────────────── */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.integration { padding: 22px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.integration-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.integration h3 { font-size: 17px; }
.integration p { color: var(--text-dim); font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); }
.badge.limited { color: var(--warn); }

/* ── How it works ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.step { padding: 26px 22px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.step-num {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-grad); color: #1a1209; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ── Privacy ─────────────────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.privacy-item { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.privacy-item svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.privacy-item h3 { font-size: 16px; margin-bottom: 4px; }
.privacy-item p { color: var(--text-dim); font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.faq details[open] { border-color: var(--border-hi); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ── Download + support ──────────────────────────────────────────────── */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.cta-panel {
  padding: 36px; border-radius: 26px; border: 1px solid var(--border-hi);
  background: radial-gradient(80% 90% at 90% 0%, rgba(201, 154, 91, .25), transparent 60%), linear-gradient(160deg, #17191d, #0b0c0f);
}
.cta-panel h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-panel p { color: var(--text-dim); margin-bottom: 22px; }
.cta-panel .pill { margin-bottom: 16px; }
.support-panel { padding: 36px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); }
.support-panel h2 { font-size: 26px; margin-bottom: 10px; }
.support-panel p { color: var(--text-dim); margin-bottom: 18px; font-size: 15px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .phone.side { width: 160px; }
  .phone.center { width: 210px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .phones { min-height: 0; margin-top: 10px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .module, .module.wide { grid-column: span 1; }
  /* The fifth card spans the row as a horizontal card, so its image stays
     half-width (sharp from the 1080w file) instead of stretching edge to edge. */
  .module:last-child { grid-column: 1 / -1; flex-direction: row; }
  .module:last-child .module-media { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-inline-end: 1px solid var(--border); }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .split .chat-card { order: 2; width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 640px) {
  .modules, .integrations, .privacy-grid, .steps { grid-template-columns: 1fr; }
  .module:last-child { grid-column: auto; flex-direction: column; }
  .module:last-child .module-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .phone.side { width: 26vw; }
  .phone.center { width: 38vw; margin-bottom: 18px; }
  .phone.left { transform: translateX(26px) rotate(-6deg); }
  .phone.right { transform: translateX(-26px) rotate(6deg); }
  .phone { border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 19px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-panel, .support-panel { padding: 26px 20px; }
  .hero::before { width: 700px; height: 700px; top: -470px; inset-inline-end: -330px; }
}

/* Assistant section lede (was an inline style attribute; CSP-friendly). */
.lede-dim { color: var(--text-dim); }
