/* ===== Tokens ===== */
:root {
  --accent: #f47920;
  --accent-hover: #e06810;
  --accent-subtle: rgba(244, 121, 32, 0.10);
  --accent-glow: rgba(244, 121, 32, 0.30);

  --bg: #ffffff;
  --bg-alt: #f8f8fa;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --surface-3: #e8e8ec;

  --text-1: #111117;
  --text-2: #555560;
  --text-3: #888892;

  --border: #e2e2e8;
  --border-accent: var(--accent);

  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f9923e;
    --accent-hover: #ffa85c;
    --accent-subtle: rgba(249, 146, 62, 0.12);
    --accent-glow: rgba(249, 146, 62, 0.25);

    --bg: #0e0e12;
    --bg-alt: #15151a;
    --surface: #1a1a22;
    --surface-2: #24242e;
    --surface-3: #2e2e3a;

    --text-1: #ededf0;
    --text-2: #a0a0aa;
    --text-3: #6a6a75;

    --border: #2a2a35;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes growLine {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Scroll-triggered animation base states */
[data-animate] {
  opacity: 0;
}
[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-right"] { transform: translateX(-28px); }
[data-animate="scale-in"] { transform: scale(0.92); }
[data-animate="grow-line"] { transform: scaleY(0); }

[data-animate="fade-up"].is-visible {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-animate="fade-right"].is-visible {
  animation: fadeRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-animate="scale-in"].is-visible {
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-animate="grow-line"].is-visible {
  animation: growLine 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Layout ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-2);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-scrolled {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:hover { color: var(--text-1); }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.btn:active { transform: scale(0.98) translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover {
  background: #f0f0f3;
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Demo / Slack mockup ===== */
.demo {
  padding: 0 0 100px;
  position: relative;
}
.slack-mock {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.slack-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.slack-channel {
  font-weight: 600;
  font-size: 0.9rem;
}
.slack-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.slack-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.slack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-user {
  background: #6366f1;
  color: #fff;
}
.avatar-bot {
  background: var(--surface);
  border: 1px solid var(--border);
}
.slack-msg-meta {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.slack-msg-meta span {
  color: var(--text-3);
  font-size: 0.75rem;
  margin-left: 4px;
}
.slack-app-badge {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.6rem !important;
  background: var(--surface-2);
  border-radius: 3px;
  font-weight: 700;
  color: var(--text-3) !important;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.slack-msg-text {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 4px 8px;
  background: var(--surface-2);
  border-radius: 4px;
  display: inline-block;
  color: var(--text-2);
}
.slack-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px;
  margin-top: 6px;
}
.slack-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.slack-product-img {
  flex-shrink: 0;
}
.slack-product-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.slack-product-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.slack-product-rating {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}
.slack-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.slack-btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: default;
}
.slack-btn-approve {
  background: #2ea44f;
  color: #fff;
}
.slack-btn-reject {
  background: var(--surface-2);
  color: var(--text-2);
}
.slack-disclosure {
  font-size: 0.7rem;
  color: var(--text-3);
  font-style: italic;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===== How it works ===== */
.how-it-works {
  padding: 100px 0;
}
.steps {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: 50%;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-content p {
  color: var(--text-2);
  font-size: 0.95rem;
}
.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  margin-left: 23px;
  transform-origin: top;
  border-radius: 1px;
}

/* ===== Retailers ===== */
.retailers {
  padding: 100px 0;
  background: var(--bg-alt);
}
.retailer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.retailer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.retailer-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 14px;
}
.retailer-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.retailer-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.retailer-card-soon {
  opacity: 0.6;
}
.badge-soon {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: 12px;
  margin-bottom: 8px;
}
@media (max-width: 520px) {
  .retailer-grid { grid-template-columns: 1fr; }
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  position: relative;
}
.pricing-card-featured:hover {
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg), 0 8px 30px var(--accent-glow);
}
.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-3);
}
.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-2);
  padding-left: 28px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
}
.pricing-features li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #e06010, #f47920, #f9923e);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}
.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta .btn {
  position: relative;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-links a {
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-1); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
}
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Legal pages ===== */
.legal {
  padding: 100px 0 80px;
}
.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 0.9rem;
  color: var(--text-3);
}
.legal-body {
  max-width: 720px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-of-type {
  margin-top: 24px;
  border-top: none;
  padding-top: 0;
}
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
.legal-body p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--accent-hover);
}
.legal-body ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}
.legal-body li {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 6px;
  list-style: disc;
  padding-left: 4px;
}
.legal-body code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 4px;
  color: var(--text-1);
}
.legal-body strong {
  color: var(--text-1);
  font-weight: 600;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.6;
}
.legal-table th {
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ===== Support page ===== */
.support-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.support-nav a {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.support-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.support-body h3 {
  scroll-margin-top: 80px;
}
.support-body h2 {
  scroll-margin-top: 80px;
}
