/* ==========================================================================
   Sober Sidekick — EWS Client Landing Pages
   Shared styles · Light mode · Mobile-first

   Brand tokens extracted from style-guide/style.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand */
  --brand-300: #A2AAFF;
  --brand-600: #4050FF;
  --brand-700: #3644D9;

  /* Light mode surfaces (brand neutrals) */
  --white: #FFFFFF;
  --gray-50: #F8F8FB;
  --gray-100: #F3F4F9;
  --gray-200: #E7E9F3;
  --gray-400: #D1D4E1;
  --gray-600: #A6AABD;
  --gray-700: #404560;
  --gray-800: #21253A;
  --gray-900: #1A1E31;

  /* Semantic */
  --green-600: #36A736;
  --teal-600: #14B8C4;

  /* Accent — overridden per-client */
  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);

  /* Typography */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Header (sticky) --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo {
  height: 32px;
  width: auto;
}

.header__wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: var(--gray-50);
}

.hero__partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero__partner-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.hero__partner-logo {
  height: 36px;
  width: auto;
}

/* Accenture SVG is wider/shorter — bump height to match visual weight of other logos */
.hero__partner-logo[alt="Accenture"] {
  height: 44px;
  align-self: flex-start;
  margin-top: -12px;
}

.hero__tagline {
  font-size: 28px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 40px;
}

.hero__tagline span {
  color: var(--accent);
}

.hero__value-prop {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero__cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.store-badge {
  height: 44px;
  width: auto;
  border-radius: 8px;
  transition: opacity 0.15s;
}

/* Google Play badge has built-in padding — crop it to match App Store badge */
.store-badge[alt*="Google Play"] {
  height: 64px;
  margin: -10px 0;
}

.store-badge:hover {
  opacity: 0.85;
}

.hero__qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__qr canvas {
  width: 140px;
  height: 140px;
  border-radius: 12px;
}

.hero__qr-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.hero__phone {
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* --- Features --- */
.features {
  padding: 56px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.features__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 36px;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.feature-card:last-child {
  border-bottom: none;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.feature-card__content {
  flex: 1;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --- Client-Specific Section (e.g., TN videos) --- */
.extra-section {
  padding: 40px 20px;
  background: var(--gray-50);
  max-width: 720px;
  margin: 0 auto 0;
}

.extra-section--full {
  max-width: 100%;
}

.extra-section__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 24px;
}

.extra-section__desc {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.video-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.video-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(64, 80, 255, 0.08);
}

.video-link__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-link__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.video-link__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

/* --- Multilingual Badge (Accenture) --- */
.multilingual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 24px;
}

.multilingual-badge__icon {
  font-size: 18px;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}

.footer__brand {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--brand-300);
  font-style: italic;
  margin-bottom: 24px;
}

.footer__stores {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  margin: 0 auto;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Proof Points Bar --- */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 20px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.proof-bar__item {
  text-align: center;
}

.proof-bar__stat {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 24px;
}

.proof-bar__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- FAQ --- */
.faq {
  padding: 56px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.faq__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 32px;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item.open .faq__question::after {
  content: '−';
}

.faq__answer {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

.faq__item.open .faq__answer {
  display: block;
}

/* --- Responsive (tablet+) --- */
@media (min-width: 640px) {
  .hero {
    padding: 64px 32px 48px;
  }

  .hero__tagline {
    font-size: 36px;
    line-height: 48px;
  }

  .hero__phone {
    max-width: 320px;
  }

  .features {
    padding: 64px 32px;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}
