/* ═══════════════════════════════════════════════════════════════════════
   Studio Manager - Marketing Site CSS (overrides on Bootstrap 5)
   Container: container-xxl (max-width 1320px)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #5b7fa6;
  --primary-dark: #4a6585;
  --primary-darker: #3b5470;
  --primary-light: #f0f6ff;
  --primary-soft: #e8f0fb;
  --accent: #c9a878;
  --accent-light: #f9f1e6;
  --accent-soft: #fdf8f0;
  
  --black: #1a1d29;
  --gray-900: #2d3142;
  --gray-700: #4a4f5b;
  --gray-500: #6c7585;
  --gray-400: #8b94a3;
  --gray-300: #c5cad3;
  --gray-200: #e8eef5;
  --gray-100: #f4f7fa;
  --gray-50: #fafbfc;
  --white: #ffffff;
  
  --success: #5a9b7e;
  --success-light: #e8f4ed;
  --error: #c0675a;
  
  --font-he: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --t-fast: 0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ────────────────────────────────────────────
   Base + Bootstrap overrides
   ──────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-he) !important;
  font-weight: 400;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.nobr {white-space: nowrap;}
/* Bootstrap container override - we use container-xxl with our own max */
.container-xxl {
  max-width: 1320px !important;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 575.98px) {
  .container-xxl { padding-left: 16px; padding-right: 16px; }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button { font-family: inherit; }

/* ────────────────────────────────────────────
   Accessibility utilities
   ──────────────────────────────────────────── */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  right: 0;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-xs) 0;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Focus styles */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  :root {
    --primary: #2a5784;
    --gray-500: #4a4f5b;
    --gray-400: #6c7585;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ────────────────────────────────────────────
   Typography
   ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-he);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--black);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.lead {
  font-size: 18px !important;
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.7;
}

/* ────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--t-normal);
  box-shadow: 0 4px 14px rgba(91,127,166,0.25);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,127,166,0.35);
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-large {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-cta-light {
  background: var(--white) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-cta-light:hover {
  background: var(--accent-soft) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-cta .cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--t-normal);
}
[dir="rtl"] .btn-cta .cta-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-cta:hover .cta-arrow { transform: scaleX(-1) translateX(2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--t-normal);
  text-decoration: none;
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ────────────────────────────────────────────
   Header
   ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-normal);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
}
.logo-img { height: 36px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-normal);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--t-normal);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-link::after { display: none; }
  .nav-menu .btn-cta, .nav-menu .btn-outline { margin-top: 12px; justify-content: center; }
}

/* ────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────── */
.hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(91,127,166,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 40%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(201,168,120,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Hero is now using Bootstrap row/col, so we just style the columns */
.hero .row {
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 { margin-bottom: 24px; }
.hero-highlight {
  color: var(--primary);
}
.hero-text .lead {
  font-size: 19px !important;
}
.hero-text .lead.first { margin-bottom: 8px; }
.hero-text .lead.second { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-image { position: relative; }
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  aspect-ratio: 4 / 3;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-image-wrapper {
  animation: heroFloat 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrapper { animation: none; }
}

.hero-decor-1, .hero-decor-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-decor-1 {
  top: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  opacity: 0.6;
}
.hero-decor-2 {
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--primary-soft);
  opacity: 0.7;
}

@media (max-width: 991.98px) {
  .hero { padding: 40px 0 60px; }
}

/* ────────────────────────────────────────────
   Trust Bar (4 stats)
   ──────────────────────────────────────────── */
.trust-bar {
  padding: 50px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.trust-stat {
  text-align: center;
  padding: 16px 12px;
}
.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.trust-icon img,
.trust-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.trust-icon img {
  /*filter: brightness(0) saturate(100%) invert(45%) sepia(13%) saturate(2018%) hue-rotate(176deg) brightness(91%) contrast(85%);*/
}

.trust-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-he);
}
.trust-label {
  color: var(--gray-700);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* ────────────────────────────────────────────
   Section base
   ──────────────────────────────────────────── */
section.section {
  padding: 100px 0;
  position: relative;
}
@media (max-width: 768px) {
  section.section { padding: 60px 0; }
}

.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header h2 { margin-bottom: 16px; }
.section-header .lead { font-size: 18px !important; }

/* ────────────────────────────────────────────
   Features
   ──────────────────────────────────────────── */
.features-section { background: var(--white); }

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-slow);
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--t-normal);
}
.feature-card.color-2 .feature-icon { background: var(--accent-light); }
.feature-card.color-3 .feature-icon { background: var(--success-light); }

.feature-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(13%) saturate(2018%) hue-rotate(176deg) brightness(91%) contrast(85%);
}
.feature-card.color-2 .feature-icon img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(35%) saturate(485%) hue-rotate(360deg) brightness(91%) contrast(86%);
}
.feature-card.color-3 .feature-icon img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(17%) saturate(845%) hue-rotate(95deg) brightness(91%) contrast(86%);
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ────────────────────────────────────────────
   How It Works
   ──────────────────────────────────────────── */
.how-section { background: var(--gray-100); }

.step {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--gray-200);
  height: 100%;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(91,127,166,0.3);
}
.step h3 { font-size: 19px; margin-bottom: 12px; }
.step p {
  color: var(--gray-500);
  font-size: 15px;
  margin: 0;
}

/* ────────────────────────────────────────────
   Privacy Block (split)
   ──────────────────────────────────────────── */
.privacy-section { background: var(--white); }

.split-text h2 { margin-bottom: 24px; }
.split-text > p {
  color: var(--gray-500);
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--gray-700);
}
.privacy-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.split-visual {
  background-color: #181818;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.split-visual::before {
  content: '';
  position: absolute;
  top: 8%;
  left: -5%;
  width: 500px;
  height: 500px;
  pointer-events: none;
  background-image: url("/assets/images/logo-w.svg");
  background-size: auto 60%;
  background-repeat:no-repeat;
  opacity:0.1;
}
.split-visual .icon-big {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}
.split-visual .icon-big img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}
.split-visual h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
}
.split-visual p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  margin: 0;
}

/* ────────────────────────────────────────────
   CTA Block
   ──────────────────────────────────────────── */
.cta-block {
  padding: 80px 0;
  text-align: center;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block p {
  color: var(--gray-500);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ────────────────────────────────────────────
   Footer CTA Banner
   ──────────────────────────────────────────── */
.footer-cta-banner {
  padding: 60px 0;
}
.footer-cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  border-radius: var(--radius-xl);
  padding: 70px 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.footer-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.footer-cta-card h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 14px;
  position: relative;
}
.footer-cta-card p {
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  margin-bottom: 28px;
  position: relative;
}
.footer-cta-card .btn-cta { position: relative; }

@media (max-width: 768px) {
  .footer-cta-card { padding: 50px 28px; }
  .footer-cta-card h2 { font-size: 26px; }
}

/* ────────────────────────────────────────────
   Footer Main
   ──────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 60px 0 40px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    padding: 40px 0 30px;
  }
}

.footer-brand .footer-logo {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  color: var(--gray-400);
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--gray-400);
  font-size: 14.5px;
  text-decoration: none;
}
.footer-col a:hover, .footer-col a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0;
}

/* ════════════════════════════════════════════════════
   TUTORIALS PAGE - with mobile responsive sidebar
   ════════════════════════════════════════════════════ */
.tutorials-wrapper { padding: 60px 0; }

.tutorials-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* Mobile: stack vertically with VIDEO ON TOP, list below */
@media (max-width: 991.98px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Reorder: main (video) first, sidebar (list) second */
  .tutorials-main { order: 1; }
  .tutorials-sidebar { order: 2; position: static !important; }
}

.tutorials-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tutorials-sidebar-header {
  padding: 18px 22px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.tutorials-sidebar-header h3 { font-size: 17px; font-weight: 600; margin: 0; }
.tutorials-sidebar-header p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 4px 0 0;
}

.tutorials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 600px;
  overflow-y: auto;
}
@media (max-width: 991.98px) {
  .tutorials-list { max-height: none; }
}
.tutorials-list li {
  border-bottom: 1px solid var(--gray-100);
  list-style: none;
}
.tutorial-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  cursor: pointer;
  transition: background var(--t-fast);
  background: transparent;
  width: 100%;
  text-align: right;
  border: none;
  font-family: inherit;
}
.tutorial-item:hover, .tutorial-item:focus-visible {
  background: var(--gray-50);
  outline: none;
}
.tutorial-item:focus-visible {
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}
.tutorial-item.active {
  background: var(--primary-soft);
  border-right: 3px solid var(--primary);
}
.tutorial-item.active .tutorial-num {
  background: var(--primary);
  color: var(--white);
}

.tutorial-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.tutorial-info { flex: 1; min-width: 0; }
.tutorial-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  display: block;
  margin-bottom: 4px;
}
.tutorial-meta {
  font-size: 12.5px;
  color: var(--gray-500);
}

.tutorials-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-info { padding: 28px; }
.video-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.video-info p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ────────────────────────────────────────────
   Reveal animations
   ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 0.08s; }
[data-reveal="delay-2"] { transition-delay: 0.16s; }
[data-reveal="delay-3"] { transition-delay: 0.24s; }
[data-reveal="delay-4"] { transition-delay: 0.32s; }
[data-reveal="delay-5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ────────────────────────────────────────────
   Cookie Banner
   ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--gray-200);
  z-index: 200;
  display: none;
  font-size: 14px;
}
.cookie-banner.show { display: block; animation: slideUp 0.4s var(--t-slow); }
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.6;
}
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 10px; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--t-fast);
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover { background: var(--primary-dark); }
.cookie-btn.decline {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.cookie-btn.decline:hover { background: var(--gray-50); }

/* ────────────────────────────────────────────
   Forms (signup page)
   ──────────────────────────────────────────── */
.form-page { padding: 60px 0 80px; }

.form-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
@media (max-width: 600px) {
  .form-card { padding: 32px 24px; }
}

.form-card-header {
  text-align: center;
  margin-bottom: 36px;
}
.form-card-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.form-card-header p { color: var(--gray-500); margin: 0; }

.form-info-box {
  background: var(--primary-soft);
  border-right: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}
.form-info-box strong { color: var(--primary-dark); }

.form-error-banner {
  background: #fef0e8;
  border: 1px solid #f5c4b4;
  border-right: 4px solid var(--error);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  margin-bottom: 24px;
  font-size: 14.5px;
  color: #8a3d2f;
  line-height: 1.6;
  animation: errorSlide 0.4s ease-out;
}
.form-error-banner strong { color: var(--error); display: block; margin-bottom: 4px; font-size: 15px; }
@keyframes errorSlide {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.form-group label .req {
  color: var(--error);
  font-weight: 700;
  margin-right: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--t-fast);
  background: var(--white);
  color: var(--gray-900);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,127,166,0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
}
.form-group small {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.checkbox-group label {
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-group a {
  color: var(--primary);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t-normal);
  box-shadow: 0 4px 14px rgba(91,127,166,0.3);
  margin-top: 10px;
}
.form-submit:hover, .form-submit:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
}
.form-success.active { display: block; }
.form-success .icon-success {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 36px;
}
.form-success h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--success);
}
.form-success p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ────────────────────────────────────────────
   Documentation Page
   ──────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 60px 0;
}
@media (max-width: 991.98px) {
  .docs-layout { grid-template-columns: 1fr; }
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--white);
  padding: 22px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
@media (max-width: 991.98px) {
  .docs-sidebar { position: static; }
}
.docs-sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 12px;
  padding-right: 8px;
}
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  color: var(--gray-700);
  font-size: 14px;
  transition: all var(--t-fast);
  margin-bottom: 2px;
  text-decoration: none;
}
.docs-sidebar a:hover, .docs-sidebar a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}

.docs-content {
  background: var(--white);
  padding: 50px 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
@media (max-width: 991.98px) {
  .docs-content { padding: 36px 28px; }
}
.docs-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
}
.docs-content h2 {
  font-size: 26px;
  margin-top: 50px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 2px solid var(--gray-200);
}
.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 30px;
}
.docs-content h3 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}
.docs-content p, .docs-content li {
  font-size: 15.5px;
  margin-bottom: 12px;
  line-height: 1.8;
}
.docs-content ul, .docs-content ol {
  padding-right: 28px;
  margin-bottom: 16px;
}
.docs-content code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary-dark);
  font-family: 'Courier New', monospace;
}
.docs-content .meta {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
}
.docs-content .tip,
.docs-content .warning,
.docs-content .step-box {
  padding: 16px 20px;
  border-radius: var(--radius-xs);
  margin: 18px 0;
}
.docs-content .tip {
  background: var(--primary-soft);
  border-right: 4px solid var(--primary);
}
.docs-content .warning {
  background: #fef0e8;
  border-right: 4px solid var(--error);
}
.docs-content .step-box {
  background: var(--accent-soft);
  border-right: 4px solid var(--accent);
}

/* ────────────────────────────────────────────
   Legal Pages
   ──────────────────────────────────────────── */
.legal-page { padding: 60px 0 80px; }

.legal-card {
  margin: 0 auto;
  background: var(--white);
  padding: 56px 60px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
@media (max-width: 700px) {
  .legal-card { padding: 32px 24px; }
}
.legal-card h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  border-bottom: 3px solid var(--gray-200);
  padding-bottom: 16px;
}
.legal-card .meta {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-card h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-top: 36px;
  margin-bottom: 14px;
}
.legal-card h3 {
  font-size: 17px;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 10px;
}
.legal-card p, .legal-card li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.legal-card ul, .legal-card ol {
  padding-right: 28px;
  margin-bottom: 16px;
}
.legal-card .info-box,
.legal-card .warning-box,
.legal-card .highlight-box,
.legal-card .contact-box {
  padding: 16px 20px;
  border-radius: var(--radius-xs);
  margin: 20px 0;
}
.legal-card .info-box {
  background: var(--primary-soft);
  border-right: 4px solid var(--primary);
}
.legal-card .warning-box {
  background: #fef0e8;
  border-right: 4px solid var(--error);
}
.legal-card .highlight-box {
  background: #fff8e7;
  border-right: 4px solid #e8a000;
}
.legal-card .contact-box {
  background: var(--primary-soft);
  border-right: 4px solid var(--primary);
  margin-top: 28px;
}
