/* Homepage-specific styles */

/* ---------------------------------------------------------------------- */
/* Hero */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 72px);
}
.hero::before {
  content: '';
  position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(60% 70% at 15% 20%, hsl(var(--accent) / 0.16), transparent 60%),
    radial-gradient(50% 60% at 90% 10%, hsl(var(--accent-2) / 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy h1 { margin-top: 18px; }
.hero-copy p.lede { margin-top: 18px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof .proof-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: hsl(var(--ink-muted)); font-weight: 550; }
.hero-proof svg { width: 17px; height: 17px; color: hsl(var(--accent)); flex: none; }

/* Hero: real app screenshot in a phone frame */
.hero-shot { position: relative; width: 100%; max-width: 320px; margin-inline: auto; }
.hero-shot-frame {
  border-radius: 34px; overflow: hidden;
  border: 8px solid hsl(220 35% 12%);
  box-shadow: 0 30px 60px -24px hsl(var(--shadow-c) / 0.4);
  background: hsl(220 35% 12%);
}
.hero-shot-frame img { width: 100%; height: auto; display: block; }

/* Phone mockup showing a live-feeling color reading */
.phone-mock {
  position: relative;
  width: 100%; max-width: 340px; margin-inline: auto;
  aspect-ratio: 375 / 648;
  border-radius: 44px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--line));
  box-shadow: 0 30px 60px -24px hsl(var(--shadow-c) / 0.35), 0 2px 4px hsl(var(--shadow-c) / 0.08);
  padding: 12px;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--accent)) 0%, hsl(var(--accent-2)) 42%, hsl(var(--surface-2)) 42%);
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 84px; height: 22px; border-radius: 12px; background: hsl(var(--ink) / 0.85); z-index: 5;
}
.phone-header { padding: 34px 18px 14px; color: #fff; }
.phone-header-top { display: flex; align-items: center; gap: 8px; }
.phone-app-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; padding: 3px; box-shadow: 0 2px 6px -2px rgba(0,0,0,0.3);
}
.phone-header .app-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.phone-header .plan-pill {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.phone-viewport {
  margin: 8px 14px 0; height: 118px; border-radius: 16px;
  background: #0b0b0d;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-viewport .crosshair {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px hsl(var(--accent));
}
.phone-viewport #liveSwatchBg { position: absolute; inset: 0; transition: background-color .6s ease; }

.phone-readout {
  margin: 12px 14px 0; padding: 14px; border-radius: 14px;
  background: hsl(var(--surface)); box-shadow: 0 8px 20px -10px hsl(var(--shadow-c) / 0.25);
}
.phone-readout .rlabel { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--ink-subtle)); font-weight: 700; }
.phone-readout .rname { font-size: 18px; font-weight: 800; margin-top: 3px; letter-spacing: -0.01em; }
.phone-readout .rmeta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.phone-readout .rhex {
  font-size: 11.5px; font-weight: 700; color: hsl(var(--accent-ink));
  background: hsl(var(--accent-soft)); padding: 3px 8px; border-radius: 8px; font-variant-numeric: tabular-nums;
}
.phone-readout .rrgb { font-size: 12px; color: hsl(var(--ink-subtle)); font-variant-numeric: tabular-nums; }

.phone-actions { margin: 10px 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa-btn {
  display: flex; align-items: center; justify-content: center;
  height: 34px; border-radius: 10px; color: #fff;
  font-size: 11.5px; font-weight: 700; text-align: center;
}
.pa-upload { background: #2f7fe0; }
.pa-capture { background: #33a153; }
.pa-record { background: #e5484d; }
.pa-analyze { background: #4a90c4; }

.phone-channels {
  margin: 14px 14px 0; padding: 12px 14px 14px; border-radius: 14px;
  background: hsl(var(--surface)); box-shadow: 0 6px 16px -10px hsl(var(--shadow-c) / 0.2);
}
.pc-label { font-size: 11px; font-weight: 700; color: hsl(var(--accent-ink)); margin-bottom: 8px; }
.pc-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pc-bar:first-of-type { margin-top: 0; }
.pc-k { width: 12px; font-size: 11px; font-weight: 700; flex: none; }
.pc-track { flex: 1; height: 7px; border-radius: 4px; background: hsl(var(--surface-2)); overflow: hidden; }
.pc-fill { display: block; height: 100%; border-radius: 4px; transition: width .6s ease; }
.pc-v { width: 22px; text-align: right; font-size: 11px; font-weight: 700; color: hsl(var(--ink-muted)); font-variant-numeric: tabular-nums; }

.hero-visual {
  position: relative;
  padding-inline: 60px; /* reserves room for the floating chips beside the phone */
}
.floating-chip {
  position: absolute; padding: 8px 12px; border-radius: 12px;
  background: hsl(var(--surface)); box-shadow: 0 12px 30px -12px hsl(var(--shadow-c) / 0.3);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 7px;
  border: 1px solid hsl(var(--line)); white-space: nowrap; z-index: 2;
}
/* Anchored to .hero-shot and pushed outside its edges so they never cover the
   real screenshot's content. */
/* Pulled fully clear of the frame: 100% of their own width plus a gap, so the
   chip body never sits over the screenshot regardless of its text length. */
.floating-chip.fc1 { top: 26%; left: 0; translate: calc(-100% - 14px) 0; animation: float1 6s ease-in-out infinite; }
.floating-chip.fc2 { top: 56%; right: 0; translate: calc(100% + 14px) 0; animation: float2 7s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (max-width: 1080px) { .floating-chip { display: none; } .hero-visual { padding-inline: 0; } }

/* ---------------------------------------------------------------------- */
/* Logo / trust strip */
/* ---------------------------------------------------------------------- */
.trust-strip { padding-block: 28px; border-block: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); }
.trust-row {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap; text-align: center;
}
.trust-row .t-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: hsl(var(--ink-muted)); }
.trust-row svg { width: 18px; height: 18px; color: hsl(var(--accent)); flex: none; }

/* ---------------------------------------------------------------------- */
/* Feature blocks (alternating) */
/* ---------------------------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 104px); }
.feature-row.reverse .f-visual { order: 2; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse .f-visual { grid-template-columns: 1fr; order: initial; }
  .feature-row { grid-template-columns: 1fr; }
}
.f-copy .icon-badge { margin-bottom: 18px; }
.f-copy h3 { margin-top: 14px; }
.f-copy p.lede { margin-top: 12px; max-width: none; }
.f-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.f-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: hsl(var(--ink-muted)); }
.f-list svg { width: 18px; height: 18px; color: hsl(var(--success)); flex: none; margin-top: 1px; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: hsl(var(--accent-soft)); color: hsl(var(--accent-ink));
}
.icon-badge svg { width: 23px; height: 23px; }

/* Visual: data card mockups per-feature */
.data-card {
  border-radius: var(--radius-card); background: hsl(var(--surface));
  border: 1px solid hsl(var(--line)); padding: 22px;
  box-shadow: 0 20px 44px -24px hsl(var(--shadow-c) / 0.3);
}
.data-card .dc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.data-card .dc-title { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: hsl(var(--ink-subtle)); text-transform: uppercase; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.value-tile { background: hsl(var(--surface-2)); border-radius: 12px; padding: 12px; text-align: center; }
.value-tile .vt-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--ink-subtle)); }
.value-tile .vt-v { font-size: 19px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bar-row .br-label { width: 20px; font-size: 12px; font-weight: 700; }
.bar-row .br-track { flex: 1; height: 8px; border-radius: 999px; background: hsl(var(--surface-2)); overflow: hidden; }
.bar-row .br-fill { height: 100%; border-radius: 999px; }
.bar-row .br-val { width: 34px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: hsl(var(--ink-subtle)); }

.export-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: hsl(var(--surface-2)); }
.export-row + .export-row { margin-top: 8px; }
.export-row .er-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; font-size: 11px; font-weight: 800; }
.export-row .er-name { font-size: 13.5px; font-weight: 650; }
.export-row .er-meta { font-size: 11.5px; color: hsl(var(--ink-subtle)); margin-top: 2px; }

.record-chart { height: 130px; position: relative; margin-top: 4px; }
.record-chart svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------------- */
/* Who it's for */
/* ---------------------------------------------------------------------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card { padding: 24px; text-align: left; }
.audience-card .icon-badge { margin-bottom: 14px; }
.audience-card h4 { margin-bottom: 6px; }
.audience-card p { font-size: 13.5px; color: hsl(var(--ink-muted)); }

/* ---------------------------------------------------------------------- */
/* Pricing */
/* ---------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.price-card { padding: 28px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: hsl(var(--accent) / 0.5); box-shadow: 0 0 0 2px hsl(var(--accent) / 0.15), 0 20px 44px -24px hsl(var(--shadow-c) / 0.3); }
.price-badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-2))); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card .p-name { font-size: 14px; font-weight: 700; color: hsl(var(--ink-muted)); text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .p-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.price-card .p-amount .num { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-card .p-amount .per { font-size: 14px; color: hsl(var(--ink-subtle)); }
.price-card .p-desc { font-size: 13.5px; color: hsl(var(--ink-muted)); margin-top: 6px; }
.price-card .p-features { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card .p-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.price-card .p-features svg { width: 16px; height: 16px; color: hsl(var(--success)); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: 24px; width: 100%; }

/* ---------------------------------------------------------------------- */
/* FAQ */
/* ---------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid hsl(var(--line)); border-radius: 14px; background: hsl(var(--surface)); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 15px; font-weight: 650; text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: hsl(var(--ink-subtle)); transition: transform 0.2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 20px 20px; font-size: 14.5px; color: hsl(var(--ink-muted)); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------------------------------------------------------------------- */
/* Final CTA */
/* ---------------------------------------------------------------------- */
.final-cta {
  border-radius: 28px; padding: clamp(40px, 6vw, 64px);
  background: linear-gradient(120deg, hsl(var(--accent)), hsl(var(--accent-2)));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.final-cta h2 { color: #fff; }
.final-cta p.lede { color: rgba(255,255,255,0.9); margin-inline: auto; }
.final-cta .hero-ctas { justify-content: center; }
.final-cta .btn-secondary { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
.final-cta .btn-secondary:hover { background: rgba(255,255,255,0.22); }
.final-cta .btn-primary { background: #fff; color: hsl(var(--accent-ink)); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3); }

/* ---------------------------------------------------------------------- */
/* Real screenshot proof section */
/* ---------------------------------------------------------------------- */
.proof-section { background: hsl(var(--surface-2)); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.proof-grid > div:last-child { padding-top: 12px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; text-align: center; } }
.proof-grid .hero-ctas { justify-content: flex-start; }
@media (max-width: 900px) { .proof-grid .hero-ctas { justify-content: center; } }

.real-shot-frame {
  max-width: 320px; margin-inline: auto;
  border-radius: 32px; overflow: hidden;
  border: 8px solid hsl(220 35% 12%);
  box-shadow: 0 30px 60px -24px hsl(var(--shadow-c) / 0.4);
  position: relative;
}
.real-shot-frame img { width: 100%; display: block; }
.real-shot-frame--feature { max-width: 300px; margin-inline: auto; }
.f-visual { display: flex; justify-content: center; }
.real-shot-badge-wrap { display: flex; justify-content: center; margin-top: 20px; }
.real-shot-badge {
  background: hsl(var(--ink)); color: hsl(var(--bg));
  font-size: 11.5px; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -8px hsl(var(--shadow-c) / 0.5);
}
