/*
  Shared design tokens + component styles for aiseobooster.aeropic.ru.
  Stripe HDS Light tokens — verbatim from the original ЛЕНДИНГ.html.
  Loaded on every page (catalog home + product pages) via partials/nav.php
  callers; nav/footer markup lives in partials/, styling lives here so it's
  edited once for the whole site.
*/
:root {
  /* Colors — from stripe-DESIGN.md, verbatim */
  --brand-lavender: #7f7dfc;
  --pale-background: #f8fafd;
  --surface-white: #ffffff;
  --dark-slate: #273951;
  --slate-body: #50617a;
  --stripe-indigo: #533afd;
  --stripe-orange: #ff6118;
  --subdued-heading: #64748d;
  --deep-navy: #061b31;
  --quiet-surface: #e5edf5;

  /* Spacing scale */
  --space-1: 2px;  --space-2: 4px;  --space-3: 6px;  --space-4: 8px;
  --space-5: 10px; --space-6: 12px; --space-7: 16px; --space-8: 20px;
  --space-9: 24px; --space-10: 32px; --space-11: 40px; --space-12: 44px;
  --space-13: 64px; --space-14: 96px;

  /* Radius scale */
  --radius-none: 0px; --radius-xs: 1px; --radius-sm: 4px;
  --radius-md: 6px; --radius-lg: 8px; --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0px 2px 5px 0px rgba(0,0,0,0.1);
  --shadow-md-subtle: 0px 3px 6px 0px rgba(23,23,23,0.06);
  --shadow-md: 0px 15px 35px 0px rgba(23,23,23,0.08);
  --shadow-lg: 0px 16px 32px 0px rgba(50,50,93,0.12);

  --font: sohne-var, "SF Pro Display", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--pale-background); color: var(--slate-body); font-family: var(--font); }
h1, h2, h3, p, dl, dd, dt { margin: 0; }

:focus-visible {
  outline: 2px solid var(--stripe-indigo);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.aisb-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--space-7); }

/* Eyebrow label */
.aisb-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-4);
  font-size: 10px; font-weight: 400; line-height: 14.5px; letter-spacing: 0.1px;
  text-transform: uppercase; color: var(--subdued-heading);
}
.aisb-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--stripe-orange); flex-shrink: 0;
}

/* Hero */
.aisb-hero { text-align: center; padding: var(--space-14) 0 var(--space-13); }
.aisb-hero h1 {
  font-size: 44px; font-weight: 400; line-height: 1.03; letter-spacing: -0.02em;
  color: var(--deep-navy); margin: var(--space-8) auto var(--space-8);
  max-width: 720px;
}
.aisb-hero p.lead {
  font-size: 16px; font-weight: 400; line-height: 22.4px;
  color: var(--slate-body); max-width: 560px; margin: 0 auto var(--space-10);
}

.aisb-cta {
  display: inline-block; background: var(--stripe-indigo); color: var(--surface-white) !important;
  text-decoration: none; padding: var(--space-6) var(--space-9);
  border-radius: var(--radius-lg); font-size: 14px; font-weight: 400;
  box-shadow: var(--shadow-sm); transition: background-color .15s ease, transform .15s ease;
}
.aisb-cta:hover { background: #4630d6; transform: translateY(-1px); }

/* Sections */
.aisb-section { padding: var(--space-13) 0; }
.aisb-section-alt { background: var(--surface-white); }
.aisb-section h2 {
  font-size: 26px; font-weight: 400; line-height: 29.12px; letter-spacing: -0.26px;
  color: var(--deep-navy); text-align: center; margin-bottom: var(--space-9);
}
.aisb-section-intro {
  text-align: center; color: var(--slate-body); font-size: 16px; font-weight: 400;
  line-height: 22.4px; max-width: 560px; margin: 0 auto var(--space-11);
}

/* Feature grid */
.aisb-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-9);
}
.aisb-feature {
  background: var(--surface-white); border: 1px solid var(--quiet-surface);
  border-radius: var(--radius-xl); padding: var(--space-9);
  box-shadow: var(--shadow-md-subtle);
}
.aisb-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-7);
}
.aisb-icon svg { width: 22px; height: 22px; }
/* AI-gated features: "charm gradient" — documented use of brand-lavender as
   gradient start / stripe-indigo for icon fills on the paid, AI-powered functions */
.aisb-icon-ai {
  background: linear-gradient(135deg, var(--brand-lavender), var(--stripe-indigo));
  color: var(--surface-white);
}
/* Free features: flat quiet-surface fill + subdued icon color — the calmer,
   "always-on" counterpart to the gradient chip above */
.aisb-icon-free { background: var(--quiet-surface); color: var(--subdued-heading); }

.aisb-feature h3 {
  font-size: 22px; font-weight: 400; line-height: 24.2px; letter-spacing: -0.22px;
  color: var(--dark-slate); margin-bottom: var(--space-4);
}
.aisb-feature p {
  color: var(--slate-body); font-size: 16px; font-weight: 400; line-height: 22.4px;
}

.aisb-badge {
  display: inline-block; font-size: 11px; font-weight: 400; line-height: 15.95px;
  padding: var(--space-1) var(--space-5); border-radius: var(--radius-sm);
  margin-left: var(--space-4); vertical-align: middle;
}
.aisb-badge-free { background: var(--quiet-surface); color: var(--dark-slate); }
.aisb-badge-ai { background: rgba(83,58,253,0.08); color: var(--stripe-indigo); }

/* Pricing */
.aisb-pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-9); margin-top: var(--space-10);
}
.aisb-plan {
  background: var(--surface-white); border: 1px solid var(--quiet-surface);
  border-radius: var(--radius-xl); padding: var(--space-10) var(--space-9);
  text-align: center; position: relative;
}
.aisb-plan-best { border-color: var(--stripe-indigo); box-shadow: var(--shadow-lg); }
.aisb-plan-best .aisb-ribbon {
  position: absolute; top: calc(var(--space-4) * -1); left: 50%; transform: translateX(-50%);
  background: var(--stripe-indigo); color: var(--surface-white);
  font-size: 11px; font-weight: 400; line-height: 15.95px;
  padding: var(--space-2) var(--space-6); border-radius: var(--radius-sm);
}
.aisb-plan h3 {
  font-size: 14px; font-weight: 400; line-height: 14px;
  color: var(--subdued-heading); margin: var(--space-4) 0 var(--space-6);
}
.aisb-plan .price {
  font-size: 44px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.03;
  color: var(--deep-navy); margin-bottom: var(--space-4);
}
.aisb-plan .price small { font-size: 14px; font-weight: 400; color: var(--subdued-heading); }
.aisb-plan .per-month {
  color: var(--subdued-heading); font-size: 11px; font-weight: 400;
  line-height: 15.95px; margin-bottom: var(--space-9);
}
.aisb-plan a.aisb-buy {
  display: block; background: var(--surface-white); color: var(--deep-navy) !important;
  text-decoration: none; padding: var(--space-6); border: 1px solid var(--deep-navy);
  border-radius: var(--radius-lg); font-size: 14px; font-weight: 400;
  transition: background-color .15s ease, color .15s ease;
}
.aisb-plan a.aisb-buy:hover { background: var(--deep-navy); color: var(--surface-white) !important; }
.aisb-plan-best a.aisb-buy {
  background: var(--stripe-indigo); color: var(--surface-white) !important; border-color: var(--stripe-indigo);
}
.aisb-plan-best a.aisb-buy:hover { background: #4630d6; }

/* FAQ */
.aisb-faq { max-width: 720px; margin: 0 auto; }
.aisb-faq-item { padding: var(--space-9) 0; border-bottom: 1px solid var(--quiet-surface); }
.aisb-faq-item:last-child { border-bottom: none; }
.aisb-faq dt {
  font-size: 16px; font-weight: 400; line-height: 22.4px; color: var(--dark-slate);
}
.aisb-faq dd {
  margin-top: var(--space-3); color: var(--slate-body); font-size: 16px;
  font-weight: 400; line-height: 22.4px;
}

.aisb-footer-note {
  text-align: center; color: var(--subdued-heading); font-size: 11px;
  font-weight: 400; line-height: 15.95px; padding: var(--space-11) 0 var(--space-4);
}
.aisb-footer-links {
  text-align: center; padding: 0 0 var(--space-13);
}
.aisb-footer-links a {
  color: var(--subdued-heading); font-size: 11px; font-weight: 400;
  line-height: 15.95px; text-decoration: none; margin: 0 var(--space-4);
}
.aisb-footer-links a:hover { color: var(--stripe-indigo); }

/* Nav */
.aisb-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--quiet-surface);
}
.aisb-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.aisb-nav-logo { font-size: 14px; font-weight: 400; color: var(--deep-navy); text-decoration: none; }
.aisb-nav-links { display: flex; gap: var(--space-9); }
.aisb-nav-links a { font-size: 14px; font-weight: 400; color: var(--slate-body); text-decoration: none; }
.aisb-nav-links a:hover { color: var(--stripe-indigo); }
.aisb-nav-cta {
  background: var(--stripe-indigo); color: var(--surface-white) !important; text-decoration: none;
  padding: var(--space-4) var(--space-7); border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 400; transition: background-color .15s ease;
}
.aisb-nav-cta:hover { background: #4630d6; }
@media (max-width: 640px) { .aisb-nav-links { display: none; } }
#features, #pricing, #faq { scroll-margin-top: 80px; }

/* Callout — used to disclose the AI-provider-key requirement, or to cross-sell
   between the free and paid product pages */
.aisb-callout {
  background: var(--pale-background); border: 1px solid var(--quiet-surface);
  border-left: 3px solid var(--stripe-indigo); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-9); font-size: 14px; font-weight: 400;
  line-height: 1.6; color: var(--slate-body); max-width: 720px;
  margin: 0 auto var(--space-11);
}
.aisb-callout strong { color: var(--dark-slate); font-weight: 400; }
