/* ============================================
   CartWhiz — Global Styles
   Aesthetic: Editorial minimal meets warm SaaS
   Typography: Satoshi + Cabinet Grotesk
   ============================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&f[]=cabinet-grotesk@400,500,700,800&display=swap');

:root {
  /* Core palette */
  --bg: #FAFAF8;
  --bg-alt: #F2F0ED;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6560;
  --text-muted: #9B958F;
  --border: #E8E4DF;
  --border-light: #F0ECE8;

  /* Brand */
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-light: #EDE9FE;
  --accent-glow: rgba(124, 58, 237, 0.12);

  /* Semantic */
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;

  /* Phone mockup */
  --phone-bg: #0F0E17;
  --phone-text: #FFFFFE;
  --phone-muted: #A7A9BE;
  --phone-accent: #7C3AED;
  --phone-card: #1A1930;
  --phone-border: #2E2B5A;

  /* Typography */
  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1140px;
  --content-wide: 1320px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0F0E17;
  --bg-alt: #1A1930;
  --bg-card: #1E1D2E;
  --text: #FFFFFE;
  --text-secondary: #A7A9BE;
  --text-muted: #72748B;
  --border: #2E2B5A;
  --border-light: #252345;
  --accent-glow: rgba(124, 58, 237, 0.25);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- Utility ---- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--content-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-alt); }

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
p { color: var(--text-secondary); }
.label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}
[data-theme="dark"] .nav {
  background: rgba(15, 14, 23, 0.85);
}
.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.nav__logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  font-size: 1rem;
  transition: all 0.2s;
}
.nav__theme-toggle:hover { background: var(--accent-light); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__hamburger span {
  width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__content { max-width: 540px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}
[data-theme="dark"] .hero__badge {
  background: rgba(124, 58, 237, 0.15);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

/* ---- Phone Mockup (CSS-only) ---- */
.phone-mockup {
  width: 280px;
  background: var(--phone-bg);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out);
}
.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.phone-mockup__notch {
  width: 100px; height: 22px;
  background: var(--phone-bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.phone-mockup__screen {
  background: var(--phone-bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

/* Screen content */
.pscreen {
  padding: 16px;
  min-height: 480px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--phone-text);
}
.pscreen__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pscreen__logo {
  font-weight: 700; font-size: 14px; color: var(--phone-accent);
  display: flex; align-items: center; gap: 6px;
}
.pscreen__pro {
  background: var(--phone-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.pscreen__online {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--phone-muted);
}
.pscreen__online::before {
  content: ''; width: 6px; height: 6px;
  background: #22C55E; border-radius: 50%;
}

/* Tabs */
.pscreen__tabs {
  display: flex; justify-content: space-around;
  border-top: 1px solid var(--phone-border);
  padding-top: 10px;
  margin-top: 16px;
}
.pscreen__tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 8px; color: var(--phone-muted);
}
.pscreen__tab--active { color: var(--phone-accent); }
.pscreen__tab-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--phone-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.pscreen__tab--active .pscreen__tab-icon {
  background: var(--phone-accent);
  color: #fff;
}

/* Recipe card in phone */
.precipe-card {
  background: var(--phone-card);
  border: 1px solid var(--phone-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.precipe-card__img {
  height: 100px;
  background: linear-gradient(135deg, #8B5A3C, #D4A57A);
  position: relative;
  display: flex; align-items: flex-end; padding: 8px;
}
.precipe-card__img--cake {
  background: linear-gradient(135deg, #4A3728, #8B6F5E);
}
.precipe-card__img--pasta {
  background: linear-gradient(135deg, #5A4A3A, #C4A882);
}
.precipe-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
}
.precipe-card__body { padding: 10px; }
.precipe-card__title { font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.precipe-card__meta { font-size: 9px; color: var(--phone-muted); }
.precipe-card__actions {
  display: flex; gap: 6px; margin-top: 8px;
}
.precipe-card__action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid var(--phone-border);
  color: var(--phone-muted);
}
.precipe-card__action--accent {
  background: var(--phone-accent);
  border-color: var(--phone-accent);
  color: #fff;
}

/* Tag pills in phone */
.ptag { 
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 9px;
  border: 1px solid var(--phone-border);
  color: var(--phone-muted);
  margin: 2px;
}
.ptag--active {
  background: var(--phone-accent);
  border-color: var(--phone-accent);
  color: #fff;
}

/* Folder item in phone */
.pfolder {
  background: var(--phone-card);
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.pfolder__name { font-size: 10px; font-weight: 500; }
.pfolder__meta { font-size: 8px; color: var(--phone-muted); margin-top: 2px; }
.pfolder__open { font-size: 9px; color: var(--phone-accent); font-weight: 500; }

/* Budget donut in phone */
.pbudget-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 12px solid var(--phone-border);
  border-top-color: var(--phone-accent);
  border-right-color: var(--phone-accent);
  margin: 16px auto;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pbudget-ring__inner {
  text-align: center;
}
.pbudget-ring__label { font-size: 7px; color: var(--phone-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pbudget-ring__amount { font-size: 13px; font-weight: 700; }
.pbudget-cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
  font-size: 9px;
}
.pbudget-cat__dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}

/* Week grid in phone */
.pweek {
  display: flex; gap: 4px; margin-bottom: 12px;
}
.pweek__day {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 6px;
  border: 1px solid var(--phone-border);
  font-size: 9px;
}
.pweek__day--active {
  background: var(--phone-accent);
  border-color: var(--phone-accent);
  color: #fff;
}
.pweek__day span { display: block; font-size: 7px; color: var(--phone-muted); margin-top: 1px; }
.pweek__day--active span { color: rgba(255,255,255,0.7); }

/* Meal action in phone */
.pmeal-action {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 10px;
}
.pmeal-action__arrow { color: var(--phone-muted); font-size: 12px; }

/* ---- How It Works ---- */
.how { counter-reset: step; }
.how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.how__steps {
  display: flex; flex-direction: column; gap: 48px;
}
.step {
  counter-increment: step;
  display: flex; gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease-out) forwards;
}
.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step__number {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
[data-theme="dark"] .step__number {
  background: rgba(124, 58, 237, 0.15);
}
.step__content h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step__content p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__visual { display: none; }
}

/* ---- Features ---- */
.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.features__header p { margin-top: 12px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
[data-theme="dark"] .feature-card__icon {
  background: rgba(124, 58, 237, 0.15);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }
.feature-card__solves {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ---- Spotlight (Photo Feature) ---- */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.spotlight__content { max-width: 480px; }
.spotlight__content h2 { margin-bottom: 16px; }
.spotlight__content > p { margin-bottom: 24px; font-size: 1.05rem; }
.spotlight__list {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 24px;
}
.spotlight__list-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.spotlight__list-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
[data-theme="dark"] .spotlight__list-icon {
  background: rgba(124, 58, 237, 0.15);
}

.spotlight__visual {
  display: flex; justify-content: center;
}

/* Recipe photo mockup */
.photo-mockup {
  width: 300px;
  background: var(--phone-bg);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}
.photo-mockup__image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C4A882, #8B6F5E);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.photo-mockup__image::after {
  content: '📸';
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 16px;
}
.photo-mockup__btns {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.photo-mockup__btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--phone-border);
  color: var(--phone-text);
  font-size: 9px;
  font-weight: 500;
  text-align: center;
}
.photo-mockup__info { padding: 12px; background: var(--phone-card); border-radius: 12px; border: 1px solid var(--phone-border); }
.photo-mockup__title { font-size: 14px; font-weight: 600; color: var(--phone-text); margin-bottom: 4px; }
.photo-mockup__meta { font-size: 10px; color: var(--phone-muted); }
.photo-mockup__tags { display: flex; gap: 4px; margin-top: 8px; }
.photo-mockup__tag {
  padding: 3px 8px; border-radius: 6px;
  font-size: 8px; border: 1px solid var(--phone-border);
  color: var(--phone-muted);
}

@media (max-width: 900px) {
  .spotlight__grid { grid-template-columns: 1fr; text-align: center; }
  .spotlight__content { max-width: 100%; margin: 0 auto; }
  .spotlight__visual { order: -1; }
}

/* ---- Comparison ---- */
.comparison__header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.comparison__header p { margin-top: 12px; }
.comparison__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.comparison__flow-step {
  padding: 8px 20px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
}
[data-theme="dark"] .comparison__flow-step {
  background: rgba(124, 58, 237, 0.15);
}
.comparison__flow-arrow { color: var(--text-muted); font-size: 1.2rem; }
.comparison__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.comparison__table th, .comparison__table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.comparison__table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.comparison__table th:last-child { color: var(--accent); }
.comparison__table td:nth-child(2) { text-align: center; }
.comparison__table td:nth-child(3) { text-align: center; color: var(--success); font-weight: 500; }
.comparison__table tr:last-child td { border-bottom: none; }
.check { color: var(--success); }
.cross { color: var(--danger); }

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; position: relative; }
.cta-section > .container > p { margin-bottom: 32px; font-size: 1.1rem; position: relative; }
.cta-section .btn { position: relative; }
.cta-section__note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer__brand-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 260px; }
.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---- Help Center ---- */
.help-hero {
  padding: 140px 0 60px;
  text-align: center;
}
.help-hero p { margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.help-hero__search {
  max-width: 480px;
  margin: 32px auto 0;
  position: relative;
}
.help-hero__search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.help-hero__search input:focus { border-color: var(--accent); }
.help-hero__search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem;
}

.help-nav {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}
.help-nav a {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.help-nav a:hover, .help-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.help-section { margin-bottom: 60px; }
.help-section__title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.help-section__number {
  width: 32px; height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
[data-theme="dark"] .help-section__number {
  background: rgba(124, 58, 237, 0.15);
}

.help-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.help-article__header {
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.help-article__header:hover { background: var(--bg-alt); }
.help-article__header h3 { font-size: 1rem; font-weight: 600; }
.help-article__toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.help-article.open .help-article__toggle { transform: rotate(45deg); }
.help-article__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.help-article.open .help-article__body {
  max-height: 600px;
}
.help-article__content {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.help-article__content p { margin-bottom: 10px; }
.help-article__content ol, .help-article__content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.help-article__content li { margin-bottom: 6px; }

/* ---- Legal pages ---- */
.legal {
  padding: 140px 0 80px;
}
.legal__content {
  max-width: 720px;
  margin: 0 auto;
}
.legal__content h1 { margin-bottom: 8px; }
.legal__effective {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal__summary {
  background: var(--accent-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--text);
  border-left: 4px solid var(--accent);
}
[data-theme="dark"] .legal__summary {
  background: rgba(124, 58, 237, 0.1);
}
.legal__content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal__content p { margin-bottom: 12px; font-size: 0.95rem; }
.legal__content ul { padding-left: 20px; margin-bottom: 12px; list-style: disc; }
.legal__content li { margin-bottom: 6px; font-size: 0.95rem; color: var(--text-secondary); }
.legal__sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
}
.legal__sidebar h4 { font-size: 0.85rem; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.legal__sidebar-item {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.legal__sidebar-item:last-child { border-bottom: none; }
.legal__sidebar-item span:first-child { color: var(--text-secondary); }
.legal__sidebar-item span:last-child { font-weight: 600; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 40px;
  color: var(--accent);
  font-weight: 500;
  transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }

/* ---- Animations ---- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
