/* =========================================================
   BrightBatch landing site — styles
   Theme tokens mirror the app's Ubuntu + Dawn palette
   (see ../instacart-shopper-helper/specs/02-THEME.md).
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
  /* Dark surfaces */
  --surface:        #2C2C2C;
  --surface-elev:   #3C3C3C;
  --surface-variant:#4A4A4A;
  --on-surface:     #F0F0F0;
  --on-surface-var: #B0B0B0;

  /* Ubuntu core */
  --orange:       #E95420;
  --orange-light: #FF6E3A;
  --orange-dark:  #C43D0F;
  --purple:       #77216F;
  --purple-light: #9B4DCA;
  --purple-dark:  #5E1A58;

  /* Semantic */
  --gold:  #F99B11;
  --amber: #F28C28;
  --error: #E53935;

  /* Shapes */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Spacing */
  --pad: 16px;
  --pad-lg: 24px;

  /* Layout */
  --container: 1080px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--purple-light); text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-light);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--surface-variant);
}
.btn-ghost:hover { border-color: var(--purple-light); text-decoration: none; }

.btn-lg { padding: 16px 36px; font-size: 18px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple-dark);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-variant);
  transition: box-shadow 0.2s ease;
}

.site-nav.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
}
.brand:hover { text-decoration: none; color: var(--on-surface); }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.brand-mark img {
  width: 36px;
  height: 41px;
  display: block;
}

.brand-name { font-weight: 700; font-size: 18px; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--on-surface-var);
  font-weight: 500;
}
.nav-links a:hover { color: var(--orange-light); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(119, 33, 111, 0.35), transparent 60%),
    radial-gradient(900px 400px at 10% 10%, rgba(233, 84, 32, 0.25), transparent 55%),
    var(--surface);
}

.hero-inner { text-align: center; max-width: 780px; }

.hero-badge { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--orange-light), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--on-surface-var);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-notes {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--on-surface-var);
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-alt {
  background: var(--surface-elev);
  border-top: 1px solid var(--surface-variant);
  border-bottom: 1px solid var(--surface-variant);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--on-surface-var);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* ---------- Feature visual ---------- */
.card-visual {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface-elev);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ---------- Credits panel ---------- */
.credits-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.credits-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.credits-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.credits-point h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.credits-point p { color: var(--on-surface-var); font-size: 15px; }

/* ---------- Vouchers ---------- */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 20px;
}

.voucher {
  position: relative;
  background: var(--surface-elev);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.voucher-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 24px rgba(233, 84, 32, 0.15);
}

.voucher .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

.voucher-amount {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.voucher-desc { color: var(--on-surface-var); margin-bottom: 24px; }

.voucher-note { text-align: center; color: var(--on-surface-var); font-size: 14px; }

/* ---------- Download ---------- */
.download-cta { text-align: center; }

.download-note {
  margin-top: 16px;
  color: var(--on-surface-var);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq {
  background: var(--surface-elev);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 500;
  color: var(--orange-light);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }

.faq p { color: var(--on-surface-var); margin-top: 12px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-elev);
  border-top: 1px solid var(--surface-variant);
  padding: 40px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand p { color: var(--on-surface-var); margin-top: 6px; font-size: 14px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 14px;
}

.footer-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--on-surface-var);
  font-size: 13px;
  border-top: 1px solid var(--surface-variant);
  padding-top: 20px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-elev);
    border-bottom: 1px solid var(--surface-variant);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }

  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}