/* ================================================================
   SOLARIA — HOME PAGE STYLES
   ================================================================ */

/* ── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: center;
  padding: 80px 0 100px;
}
.hero-h1 {
  font-size: clamp(58px, 8.5vw, 100px);
  line-height: 0.94;
  letter-spacing: -3.5px;
  margin-bottom: 28px;
}
.hero-h1 .l1 { display: block; }
.hero-h1 .l2 { display: block; color: var(--gold); font-style: italic; }
.hero-h1 .l3 { display: block; color: var(--muted); }
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 300;
  width: 100%;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num .accent { color: var(--gold); }
.hero-stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* Phone Mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.1), transparent 70%);
  pointer-events: none;
}
.phone {
  width: 264px;
  background: var(--card-2);
  border: 1px solid var(--border-md);
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 48px 120px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
  animation: phoneFloat 7s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}
@keyframes phoneFloat {
  0%   { transform: translateY(0)   rotate(-1deg); }
  100% { transform: translateY(-18px) rotate(1deg); }
}
.phone-notch {
  width: 100px; height: 8px;
  background: var(--bg);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px 4px;
  font-size: 10px;
  color: var(--dim);
}
.phone-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.phone-peer-name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.phone-peer-status {
  font-size: 10px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-peer-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  display: block;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.phone-mood-row {
  margin: 10px 14px;
  background: var(--gold-10);
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: 12px;
  padding: 10px 12px;
}
.phone-mood-q { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.mood-emojis { display: flex; gap: 6px; }
.mood-e {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.mood-e:hover { transform: scale(1.15); }
.mood-e.active { border-color: var(--gold); background: var(--gold-10); }
.phone-chat {
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}
.msg {
  max-width: 82%;
  border-radius: 16px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  animation: msgIn 0.35s var(--ease) forwards;
}
.msg-them {
  background: var(--card);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-me {
  background: linear-gradient(135deg, rgba(240,165,0,0.22), rgba(240,165,0,0.12));
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(240,165,0,0.18);
}
.msg-ai {
  background: var(--lav-10);
  border: 1px solid var(--lav-20);
  color: var(--lav);
  align-self: center;
  font-size: 10px;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
}
@keyframes msgIn {
  to { opacity:1; transform:translateY(0); }
}
.phone-input {
  margin: 4px 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 14px;
  gap: 8px;
}
.phone-input-text { font-size: 11px; color: var(--dim); flex: 1; }
.phone-send-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #130e00;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── TRUST BAR ─────────────────────────────────────────────────── */
#trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
  padding-right: 32px;
  border-right: 1px solid var(--border);
  margin-right: 32px;
  flex-shrink: 0;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* ── STATS BAND ────────────────────────────────────────────────── */
#stats-band { padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat-cell {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--t-mid);
}
.stat-cell:hover { background: var(--card-2); }
.stat-cell:last-child { border-right: none; }
.stat-cell-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-cell-num .gold { color: var(--gold); }
.stat-cell-label { font-size: 13px; color: var(--muted); }

/* ── FEATURE PREVIEW ───────────────────────────────────────────── */
#feature-preview .feature-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}
.fp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--t-mid), transform var(--t-mid), background var(--t-mid);
  display: flex;
  flex-direction: column;
}
.fp-card:hover {
  border-color: var(--border-md);
  transform: translateY(-5px);
  background: var(--card-2);
}
.fp-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.fp-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.fp-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
}
.fp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
  margin-top: 20px;
  transition: gap var(--t-fast);
}
.fp-link:hover { gap: 10px; }

/* ── HOW IT WORKS PREVIEW ──────────────────────────────────────── */
#how-preview .steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.step-preview {
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  transition: background var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.step-preview:hover .step-dot {
  background: var(--gold-10);
  border-color: var(--gold-25);
  transform: scale(1.1);
}
.step-num-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}
.step-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.step-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── SAFETY PREVIEW ────────────────────────────────────────────── */
#safety-preview .safety-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}
.safety-layers-stack { display: flex; flex-direction: column; gap: 10px; }
.slayer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-mid), background var(--t-mid), transform var(--t-mid);
  cursor: default;
}
.slayer:hover {
  border-color: rgba(255,107,107,0.25);
  background: rgba(255,107,107,0.03);
  transform: translateX(4px);
}
.slayer-n {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slayer-title { font-size: 13px; font-weight: 500; }
.slayer-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.safety-right-panel {}
.safety-shield-box {
  background: linear-gradient(135deg, rgba(255,107,107,0.06), rgba(251,113,133,0.03));
  border: 1px solid rgba(255,107,107,0.18);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
  margin-bottom: 16px;
}
.shield-emoji { font-size: 60px; display: block; margin-bottom: 16px; }
.shield-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.shield-text { font-size: 14px; color: var(--muted); line-height: 1.7; }
.safety-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sms {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
}
.sms-n {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -1px;
}
.sms-l { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── TESTIMONIALS ──────────────────────────────────────────────── */
#testimonials { background: var(--deep); }
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--t-mid), transform var(--t-mid);
  display: flex;
  flex-direction: column;
}
.testi-card:hover { border-color: var(--border-md); transform: translateY(-4px); }
.testi-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  color: #130e00;
}
.testi-name { font-size: 14px; font-weight: 500; }
.testi-role { font-size: 12px; color: var(--muted); }

/* ── COMMUNITY PREVIEW ─────────────────────────────────────────── */
#community-preview .groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t-mid), transform var(--t-mid), background var(--t-mid);
  position: relative;
  overflow: hidden;
}
.group-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--group-color, var(--gold));
}
.group-card:hover { border-color: var(--border-md); transform: translateY(-4px); background: var(--card-2); }
.group-emoji { font-size: 28px; margin-bottom: 14px; }
.group-name { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.group-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.group-meta { display: flex; align-items: center; justify-content: space-between; }
.group-avatars { display: flex; }
.ga {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -5px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #130e00;
  font-weight: 600;
}
.ga:first-child { margin-left: 0; }

/* ── PRICING PREVIEW ───────────────────────────────────────────── */
#pricing-preview .pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 56px auto 0;
}
.pc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: border-color var(--t-mid), transform var(--t-mid);
}
.pc:hover { transform: translateY(-4px); border-color: var(--border-md); }
.pc-pro {
  background: linear-gradient(160deg, rgba(240,165,0,0.08), rgba(196,181,253,0.05));
  border-color: rgba(240,165,0,0.25);
  position: relative;
}
.pc-popular {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #130e00;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.pc-tier { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.pc-price {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.pc-price sub { font-size: 16px; color: var(--muted); vertical-align: baseline; }
.pc-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.pc-hr { height: 1px; background: var(--border); margin-bottom: 20px; }
.pc-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pf { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.pf-check { flex-shrink: 0; font-size: 15px; margin-top: 1px; }

/* ── FINAL CTA ─────────────────────────────────────────────────── */
#final-cta { padding: 160px 0; }
.cta-box {
  background: linear-gradient(135deg,
    rgba(240,165,0,0.07),
    rgba(196,181,253,0.05),
    rgba(110,231,183,0.04));
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: var(--r-2xl);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.07), transparent 70%);
  pointer-events: none;
}
.cta-h2 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 60px; }
  .phone-wrap { order: -1; transform: none !important; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  #feature-preview .feature-preview-grid { grid-template-columns: 1fr 1fr; }
  #how-preview .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row::before { display: none; }
  #safety-preview .safety-preview-inner { grid-template-columns: 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; }
  #community-preview .groups-grid { grid-template-columns: 1fr 1fr; }
  #pricing-preview .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .cta-box { padding: 60px 28px; }
}

@media (max-width: 600px) {
  /* Hero */
  .hero-inner { gap: 28px; padding: 40px 0 48px; }
  .hero-h1 { font-size: clamp(32px, 10vw, 48px); letter-spacing: -1.5px; margin-bottom: 14px; line-height: 1.05; }
  .hero-h1 .l1, .hero-h1 .l2, .hero-h1 .l3 { display: inline; }
  .hero-h1 .l2::before { content: ' '; }
  .hero-h1 .l3::before { content: ' '; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; line-height: 1.65; max-width: 100%; }
  .hero-content { width: 100%; }
  .hero-ctas { gap: 10px; margin-bottom: 36px; }
  .hero-ctas .btn-lg { padding: 13px 22px; font-size: 14px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }

  /* Phone mockup hidden on small screens */
  .phone-wrap { display: none; }

  /* Sections */
  .section-eyebrow { font-size: 11px; }
  .section-title { font-size: clamp(26px, 7vw, 36px); letter-spacing: -0.8px; }
  .section-sub { font-size: 14px; }

  /* Grids → single column */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  #feature-preview .feature-preview-grid { grid-template-columns: 1fr; }
  #how-preview .steps-row { grid-template-columns: 1fr; }
  #community-preview .groups-grid { grid-template-columns: 1fr; }
  #pricing-preview .pricing-cards { grid-template-columns: 1fr; }

  /* Pricing cards */
  .pricing-card { padding: 24px 20px; }
  .pricing-card.featured { transform: none; }

  /* CTA box */
  .cta-box { padding: 40px 20px; border-radius: 20px; }
  .cta-box h2 { font-size: 26px; }

  /* Testimonials */
  .testi-card { padding: 20px; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Section padding */
  section { padding: 60px 0 !important; }
}

@media (max-width: 390px) {
  .hero-h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stat-num { font-size: 20px; }
}

/* ── Homepage design improvements ───────────────────────────────── */

/* Stats band numbers — ensure high visibility */
.stat-band-n,
.sb-stat-n {
  color: var(--text) !important;
  font-weight: 300;
}

/* Trust items — more visible text */
.trust-item {
  color: rgba(240,236,255,0.65);
  font-size: 13px;
}

/* Testimonial cards — improved readability */
.testi-text {
  color: rgba(240,236,255,0.75);
  line-height: 1.75;
  font-size: 14px;
}

/* Group cards on homepage */
.group-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Feature card icons */
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

/* Pricing section improvements */
.plan-price {
  color: var(--text);
}
.plan-desc {
  color: rgba(240,236,255,0.65);
}
.plan-features li {
  color: rgba(240,236,255,0.68);
  font-size: 14px;
}

/* Section labels better contrast */
.section-label {
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* CTA section */
.cta-sub {
  color: rgba(240,236,255,0.65);
}
