/* ==========================================================================
   MirusBuy — Marketing site stylesheet
   Loaded together with app.css, reuses its CSS custom properties
   (--primary, --surface, --font-display, --radius, --shadow, etc.)
   ========================================================================== */

.site-body { background: var(--surface); overflow-x: hidden; }

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { height: 34px; width: auto; display: block; }
.site-nav-links { display: flex; align-items: center; gap: 26px; margin-left: 44px; }
.site-nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: color .15s ease; position: relative;
  white-space: nowrap;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--primary); }
.site-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav-actions .btn { white-space: nowrap; }
.site-nav-signin { display: inline-flex; }
.site-nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-primary);
  cursor: pointer;
}
.site-nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 8px 20px 18px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.site-nav-mobile a {
  padding: 12px 4px; font-size: .92rem; font-weight: 600; color: var(--text-primary);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.site-nav-mobile hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.site-nav-mobile .btn { margin-top: 8px; width: 100%; text-align: center; justify-content: center; }
.site-nav.nav-open .site-nav-mobile { display: flex; }

@media (max-width: 900px) {
  .site-nav-links { display: none; }
  .site-nav-signin { display: none; }
  .site-nav-toggle { display: flex; }
}

/* ---------- Buttons (extra sizes not in app.css) ---------- */
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 64px 0 40px; overflow: hidden;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-bg); color: var(--primary);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px; border-radius: var(--radius-full); margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem; line-height: 1.08; letter-spacing: -.02em;
  color: var(--secondary); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead {
  font-size: 1.08rem; color: var(--text-secondary); max-width: 480px; margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--secondary); }
.hero-stat span { font-size: .74rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hero-stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--primary-light), var(--primary) 60%, var(--primary-dark) 100%);
  opacity: .12; filter: blur(0px);
}
.hero-phone-frame {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5;
  background: #1A1A1A; border-radius: 42px; padding: 14px;
  box-shadow: 0 30px 60px rgba(26,26,46,.28), 0 0 0 2px rgba(0,0,0,.06);
}
.hero-phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #1A1A1A; border-radius: 0 0 16px 16px; z-index: 2;
}
.hero-phone-screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--surface-2);
}
.hero-phone-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-badge-float {
  position: absolute; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; color: var(--text-primary);
}
.hero-badge-float svg { flex-shrink: 0; }
.hero-badge-1 { top: 8%; left: -6%; }
.hero-badge-2 { bottom: 12%; right: -8%; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-phone-frame { width: 230px; }
  .hero-badge-float { display: none; }
}

/* ---------- Section shared ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .label-pill {
  display: inline-flex; background: var(--primary-bg); color: var(--primary);
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-full); margin-bottom: 14px;
}
.section-head h2 { font-size: 2.1rem; color: var(--secondary); margin-bottom: 12px; letter-spacing: -.01em; }
.section-head p { font-size: 1rem; color: var(--text-secondary); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary-bg);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; color: var(--secondary); margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; margin: 0 auto 18px; font-size: 1.05rem;
}
.step h3 { font-size: 1rem; color: var(--secondary); margin-bottom: 8px; }
.step p { font-size: .85rem; color: var(--text-secondary); }
.step-connector {
  position: absolute; top: 23px; left: calc(50% + 40px); width: calc(100% - 80px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.step:last-child .step-connector { display: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step-connector { display: none; }
}

/* ---------- Partner / split section ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split-media {
  background: linear-gradient(135deg, var(--secondary), #2c2c4a);
  border-radius: var(--radius-xl); padding: 40px; min-height: 340px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.split-media::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,69,0,.18); top: -60px; right: -60px;
}
.split h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 16px; letter-spacing: -.01em; }
.split p.lead { color: var(--text-secondary); margin-bottom: 26px; }
.split-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.split-list-item { display: flex; gap: 14px; align-items: flex-start; }
.split-list-item .tick {
  width: 26px; height: 26px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.split-list-item strong { display: block; font-size: .92rem; color: var(--secondary); margin-bottom: 2px; }
.split-list-item span { font-size: .84rem; color: var(--text-secondary); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; min-height: 240px; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 14px; color: #FFB800; }
.testimonial-card p { font-size: .9rem; color: var(--text-primary); line-height: 1.6; margin-bottom: 18px; }
.testimonial-person { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: .85rem; color: var(--secondary); }
.testimonial-person span { font-size: .76rem; color: var(--text-muted); }

@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Download / CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl); padding: 56px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.cta-banner::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08); right: -60px; top: -80px;
}
.cta-banner::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.07); left: 10%; bottom: -90px;
}
.cta-banner h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; letter-spacing: -.01em; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: .96rem; max-width: 440px; }
.cta-store-row { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

@media (max-width: 900px) {
  .cta-banner { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-store-row { justify-content: center; }
}

/* ---------- Store badges (used in footer + CTA) ---------- */
.store-badges { display: flex; flex-direction: column; gap: 10px; }
.cta-store-row .store-badge, .store-badges { }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--secondary); color: #fff; border-radius: var(--radius);
  padding: 9px 16px; text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: .92rem; line-height: 1.15; border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.cta-store-row .store-badge { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--secondary);
}
.faq-q svg { flex-shrink: 0; transition: transform .2s ease; color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 20px; }
.faq-a p { font-size: .87rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Simple content pages (contact / privacy / terms) ---------- */
.page-hero {
  padding: 54px 0 40px; text-align: center; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.1rem; color: var(--secondary); margin-bottom: 10px; }
.page-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.legal-content { max-width: 820px; margin: 0 auto; padding: 56px 0 20px; }
.legal-content h2 { font-size: 1.25rem; color: var(--secondary); margin: 34px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: .92rem; color: var(--text-secondary); line-height: 1.75; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 14px; }
.legal-content ul li, .legal-content ol li { margin-bottom: 6px; }
.legal-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; padding: 56px 0; align-items: flex-start; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-info-card h3 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row strong { display: block; font-size: .88rem; color: var(--secondary); margin-bottom: 2px; }
.contact-row span, .contact-row a { font-size: .85rem; color: var(--text-secondary); text-decoration: none; }
.contact-row a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { font-size: .84rem; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.success { display: block; background: var(--success-bg); color: var(--success); }
.form-status.error { display: block; background: var(--danger-bg); color: var(--danger); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; padding: 36px 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Footer (backup — footer now also ships with inline styles) ---------- */
.site-footer { background: var(--secondary); padding: 56px 0 0; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer-logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-footer-brand p { color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.6; margin-bottom: 18px; max-width: 260px; }
.site-footer-social { display: flex; gap: 10px; }
.site-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; }
.site-footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.site-footer-col a { display: block; color: rgba(255,255,255,.62); font-size: .87rem; text-decoration: none; margin-bottom: 12px; }
.site-footer-col a:hover { color: #fff; }
.site-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0; color: rgba(255,255,255,.45); font-size: .78rem; }
@media (max-width: 900px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }