/* ============================================================
   FEB Configurator — Colors & Type Tokens
   Extracted from gedacomp-cyber/config (index.html, inline-quiz-embed.css)
   ============================================================ */

/* -------- Fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Manrope:wght@200..800&display=swap');

:root {
  /* ---------- Type stacks ---------- */
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Noto Sans', sans-serif;
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;

  /* ---------- Brand primaries ---------- */
  --color-cta:        #F97316;   /* orange-500 — primary CTA */
  --color-cta-hover:  #EA580C;   /* orange-600 — CTA hover/press */
  --color-cta-soft:   #FFEDD5;   /* orange-100 — CTA surface */
  --color-cta-softer: #FFF7ED;   /* orange-50 */
  --color-accent:     #FBBF24;   /* amber-400 — gradient partner */

  /* Logo red (ФЕБ) */
  --color-logo-red:   #C62127;

  /* ---------- Neutrals (slate scale from Tailwind) ---------- */
  --slate-50:  #F8FAFC;   /* bg-light */
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;   /* secondary */
  --slate-500: #64748B;   /* primary text-muted */
  --slate-600: #475569;   /* body copy */
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;   /* dark */

  /* ---------- Foreground / Background (semantic) ---------- */
  --fg-1:       var(--slate-900);  /* strong text */
  --fg-2:       var(--slate-600);  /* body */
  --fg-3:       var(--slate-500);  /* muted */
  --fg-4:       var(--slate-400);  /* placeholder / caption */
  --fg-on-dark: rgba(255,255,255,0.92);

  --bg-0:       #FFFFFF;           /* card white */
  --bg-1:       var(--slate-50);   /* page */
  --bg-2:       var(--slate-100);  /* subtle panel */
  --bg-dark:    #0D0D14;           /* app shell frame background */

  /* Glass / frosted */
  --glass-bg:     rgba(255,255,255,0.75);
  --glass-bg-strong: rgba(255,255,255,0.92);
  --glass-border: rgba(255,255,255,0.60);
  --glass-blur:   12px;

  /* ---------- Semantic (rare, but used in popups) ---------- */
  --color-success:      #22C55E;
  --color-success-soft: #DCFCE7;
  --color-info:         #3B82F6;
  --color-danger:       #EF4444;

  /* Legacy purple→cyan gradient (quiz progress bar, range slider) */
  --grad-quiz:    linear-gradient(120deg, rgba(139,92,246,.95), rgba(34,211,238,.85));
  --grad-cta:     linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  --grad-price:   linear-gradient(135deg, #0F172A 0%, #334155 100%);
  --grad-hero-bg: radial-gradient(circle at 50% 50%, #F8FAFC 0%, #E2E8F0 100%);
  --grad-cta-soft:linear-gradient(135deg, #FFF7ED, #FFEDD5);

  /* ---------- Radii ---------- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 14px;   /* hero images, range thumb container */
  --radius-lg: 16px;   /* primary buttons (CTA large), cards */
  --radius-xl: 18px;   /* main CTA btn, configurator frame */
  --radius-2xl: 22px;  /* quiz card mobile */
  --radius-3xl: 24px;  /* price card, popups */
  --radius-4xl: 26px;  /* quiz card desktop */
  --radius-pill: 999px;

  /* ---------- Spacing scale (4pt) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.10);
  --shadow-xl: 0 25px 60px -15px rgba(0,0,0,0.15);
  --shadow-2xl:0 30px 80px rgba(0,0,0,0.28);

  /* Signature CTA glow */
  --shadow-cta:       0 10px 30px -10px rgba(249, 115, 22, 0.5);
  --shadow-cta-hover: 0 20px 40px -12px rgba(249, 115, 22, 0.6);
  --shadow-cta-mobile:0 8px 20px -6px rgba(249, 115, 22, 0.5);

  /* Inner bevel for glass panels */
  --shadow-inner-bevel: inset 0 0 0 1px rgba(255,255,255,0.5);

  /* ---------- Easing / motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);    /* hero fade-ins */
  --ease-emphasized: cubic-bezier(0.4, 0, 0.2, 1);     /* buttons */
  --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);    /* close buttons tap */
  --dur-fast:   180ms;
  --dur-normal: 280ms;
  --dur-slow:   600ms;
}

/* ============================================================
   Semantic typography
   (1rem = 16px; mobile minimums preserved from real product)
   ============================================================ */

body, .body, .p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.h1, h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin: 0 0 12px 0;
}

.h2, h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  margin: 0 0 10px 0;
}

.h3, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 8px 0;
}

.h4, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 6px 0;
}

.display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg-1);
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--fg-2);
}

.label, .overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-1);
}

.caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
}

.price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-cta-hover);
}

.button-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-body);
}

code, .code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--fg-1);
}
