/* ============================================================
   OnlineSurveyPlatform — AhaSlides Brand Theme
   Font: Plus Jakarta Sans · No gradients anywhere
   ============================================================ */

/* ── Tokens ── */
:root {
  /* Brand palette */
  --pink:       #FF4081;
  --purple:     #6A1EBB;
  --deep-blue:  #1A1A2E;
  --white:      #FFFFFF;
  --sky:        #F0F4FF;
  --rose:       #FAF0F6;
  --teal:       #20E8B5;
  --lavender:   #D3B4FF;
  --indigo:     #3E3E5A;

  /* Semantic */
  --text:       #1A1A2E;
  --muted:      rgba(26,26,46,.55);
  --muted-dk:   rgba(255,255,255,.6);

  /* Font */
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* 4pt spacing scale */
  --sp1:  4px;
  --sp2:  8px;
  --sp3:  12px;
  --sp4:  16px;
  --sp6:  24px;
  --sp8:  32px;
  --sp10: 40px;
  --sp12: 48px;
  --sp16: 64px;
  --sp24: 96px;

  --radius: 12px;
  --container: 1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--sp4), 5vw, var(--sp16));
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp2);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity .18s ease, background .18s ease, color .18s ease;
}
.btn--purple {
  background: var(--purple);
  color: var(--white);
  padding: var(--sp3) var(--sp6);
}
.btn--purple:hover { opacity: .88; }

.btn--lg {
  padding: var(--sp4) var(--sp8);
  font-size: 1rem;
}

.btn--ghost-white {
  color: rgba(255,255,255,.85);
  padding: var(--sp4) var(--sp6);
}
.btn--ghost-white:hover { color: var(--white); }

.btn--outline-white {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
  padding: calc(var(--sp4) - 2px) calc(var(--sp8) - 2px);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--white);
}

/* ── Section intro ── */
.sec-intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp12);
}
.sec-intro h2 {
  font-size: clamp(1.75rem, 3vw + .75rem, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--deep-blue);
  margin-bottom: var(--sp4);
}
.sec-intro p {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}
.sec-intro--light h2 { color: var(--white); }
.sec-intro--light p  { color: var(--muted-dk); }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(26,26,46,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp4);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.logo-mark {
  color: var(--pink);
  font-size: 1.2rem;
  line-height: 1;
}
.logo-name {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--deep-blue);
  letter-spacing: -.015em;
}
.logo-by {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: var(--sp2);
}
.logo--light .logo-name { color: var(--white); }
.logo--light .logo-by   { color: rgba(255,255,255,.45); }

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp2);
}
.nav-login {
  padding: var(--sp3) var(--sp4);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--deep-blue);
  border-radius: var(--radius);
  transition: color .15s;
}
.nav-login:hover { color: var(--purple); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  background: var(--deep-blue);
  padding-block: clamp(var(--sp16), 10vw, 120px);
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp6);
}
.hero-pill {
  display: inline-block;
  padding: var(--sp2) var(--sp4);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.06);
}
.hero-h1 {
  font-size: clamp(2.25rem, 5vw + .75rem, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  max-width: 860px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--pink);
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw + .4rem, 1.25rem);
  color: rgba(255,255,255,.65);
  max-width: 600px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════ */
.social-proof {
  padding-block: var(--sp12);
  background: var(--white);
}
.sp-label {
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp6);
}
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(var(--sp6), 4vw, var(--sp12));
}
.brand-strip li {
  font-weight: 800;
  font-size: 1.125rem;
  color: rgba(26,26,46,.18);
  letter-spacing: -.01em;
  transition: color .2s;
}
.brand-strip li:hover { color: rgba(26,26,46,.4); }

/* ═══════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════ */
.use-cases {
  padding-block: var(--sp24);
  background: var(--sky);
}
.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp8) var(--sp10);
}
.uc-grid li {
  padding-top: var(--sp4);
  border-top: 2px solid var(--pink);
}
.uc-grid strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: var(--sp3);
}
.uc-grid p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   PILLARS
   ═══════════════════════════════════════════ */
.pillars {
  padding-block: var(--sp24);
  background: var(--white);
}

/* Tab row */
.ptabs {
  display: flex;
  gap: var(--sp1);
  width: fit-content;
  margin-inline: auto;
  margin-bottom: var(--sp10);
  padding: var(--sp2);
  background: var(--sky);
  border-radius: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.ptab {
  padding: var(--sp3) var(--sp6);
  border-radius: 11px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.ptab:hover:not(.ptab--on) { color: var(--deep-blue); }
.ptab--on {
  background: var(--white);
  color: var(--pink);
  box-shadow: 0 1px 6px rgba(26,26,46,.1);
}

/* Panels */
.ppanel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp8), 6vw, var(--sp16));
  align-items: center;
}
.ppanel--on { display: grid; }

.ppanel-text h3 {
  font-size: clamp(1.5rem, 2vw + .5rem, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--deep-blue);
  margin-bottom: var(--sp4);
}
.ppanel-text > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--sp6);
  max-width: 52ch;
}

/* Feature checklist */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp3);
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--deep-blue);
}
.feat-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Panel visual area */
.ppanel-vis {
  background: var(--sky);
  border-radius: 20px;
  padding: var(--sp10);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

/* Build mockup */
.vis-card {
  background: var(--white);
  border-radius: 14px;
  padding: var(--sp8);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 2px 20px rgba(26,26,46,.08);
}
.vis-q {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: var(--sp4);
  line-height: 1.4;
}
.star-row {
  display: flex;
  gap: var(--sp2);
}
.star {
  font-size: 2rem;
  color: rgba(26,26,46,.12);
  line-height: 1;
}
.star--on { color: var(--pink); }

/* Distribute channels */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp3);
  width: 100%;
  max-width: 280px;
}
.channel {
  background: var(--white);
  border-radius: 10px;
  padding: var(--sp4);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--deep-blue);
  text-align: center;
  box-shadow: 0 1px 4px rgba(26,26,46,.06);
}

/* Analyze chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--sp3);
  height: 130px;
  width: 100%;
}
.bar {
  flex: 1;
  height: var(--h);
  background: var(--purple);
  border-radius: 4px 4px 0 0;
  opacity: .7;
}
.bar--accent {
  background: var(--pink);
  opacity: 1;
}

/* Integrations */
.integrations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp3);
  width: 100%;
  max-width: 300px;
}
.int-chip {
  background: var(--white);
  border-radius: 10px;
  padding: var(--sp3) var(--sp4);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--deep-blue);
  text-align: center;
  box-shadow: 0 1px 4px rgba(26,26,46,.06);
}
.int-more {
  background: rgba(106,30,187,.08);
  color: var(--purple);
}


/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works {
  padding-block: var(--sp24);
  background: var(--white);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp6);
  margin-bottom: var(--sp12);
}
.step {
  flex: 1;
  min-width: 200px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp4);
  flex-shrink: 0;
}
.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.3;
  margin-bottom: var(--sp3);
}
.step p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 38ch;
}
.step-arrow {
  font-size: 1.75rem;
  color: var(--lavender);
  flex-shrink: 0;
  margin-top: var(--sp4);
  align-self: flex-start;
  padding-top: 8px;
}
.steps-cta-wrap {
  text-align: center;
}


/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq {
  padding-block: var(--sp24);
  background: var(--white);
}
.faq-wrap {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp2);
}
.faq-item {
  border: 1px solid rgba(26,26,46,.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] {
  border-color: rgba(255,64,129,.25);
  background: var(--rose);
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp4);
  padding: var(--sp6);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--pink);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 var(--sp6) var(--sp6);
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.final-cta {
  padding-block: var(--sp24);
  background: var(--deep-blue);
  text-align: center;
}
.final-cta-inner {
  max-width: 700px;
}
.final-cta h2 {
  font-size: clamp(2rem, 4vw + .5rem, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--sp4);
}
.final-cta > .wrap > p,
.final-cta-inner > p:not(.trust-micro) {
  font-size: 1.125rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: var(--sp8);
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp4);
  flex-wrap: wrap;
  margin-bottom: var(--sp6);
}
.trust-micro {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--deep-blue);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: var(--sp12);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp8);
}
.footer-brand .logo--light .logo-mark { color: var(--pink); }
.footer-brand p {
  margin-top: var(--sp3);
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  flex-wrap: wrap;
  padding-top: var(--sp6);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-base p {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}
.footer-base nav {
  display: flex;
  gap: var(--sp6);
  flex-wrap: wrap;
}
.footer-base a {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  transition: color .18s;
}
.footer-base a:hover { color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .ppanel--on { grid-template-columns: 1fr; }
  .ppanel-vis { order: -1; min-height: 200px; }
  .stats-row  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps-row {
    flex-direction: column;
    gap: var(--sp8);
  }
  .step-arrow {
    align-self: flex-start;
    margin-top: 0;
    padding-top: 0;
    transform: rotate(90deg);
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .ptabs { gap: var(--sp2); }
  .logo-by { display: none; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--sp6); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
