/**
 * Orchestria Design System — Shared CSS for SSG pages
 * Extracted from landing.html / tarifs — Phase 1 design system
 * DM Sans + DM Serif Display, CSS variables, Lucide SVGs
 */

/* === FONTS === */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/dm-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-serif-regular.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-serif-italic.woff2) format('woff2');
}

/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F4F7FC;
  --white: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #5B7A9A;
  --indigo: #1B6CB8;
  --indigo-light: #EBF4FF;
  --indigo-dark: #0D2E5C;
  --teal: #0EA5C9;
  --teal-light: #E0F5FA;
  --border: #D6E4F0;
  --green: #0D7A5A;
  --green-light: #E6FBF4;
  --red: #C53030;
  --violet: #7C3AED;
}
html { font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lucide icon base */
.lucide { display: inline-block; vertical-align: middle; }

/* === NAV === */
header > nav {
  position: sticky; top: 0; z-index: 100;
  background: #F2EDE3;
  border-bottom: 1px solid #E3DED6;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex; gap: 32px; align-items: center; list-style: none;
}
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--indigo);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--indigo-dark) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.1);
  padding: 8px 0; min-width: 240px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 0.82rem; color: var(--ink);
  transition: background 0.1s;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--indigo); }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.78rem; font-weight: 600;
}
.lang-toggle a, .lang-toggle span {
  padding: 5px 10px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.lang-active {
  background: var(--indigo);
  color: #fff;
}
.lang-inactive {
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-inactive:hover { background: var(--indigo-light); color: var(--indigo); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* === TYPOGRAPHY === */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 3.5vw, 3.3rem);
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--violet); }

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  letter-spacing: -0.03em; color: var(--ink);
  line-height: 1.15; margin-bottom: 20px;
}
h2 em { font-style: italic; color: var(--violet); }

h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}

a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }

.section-eyebrow {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--indigo);
}

.section-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  letter-spacing: -0.03em; color: var(--ink);
  line-height: 1.15; margin-bottom: 44px;
}
.section-h em { font-style: italic; color: var(--violet); }

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #1B6CB8 0%, #7C3AED 100%); color: #fff;
  padding: 15px 28px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27,108,184,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(27,108,184,0.4); }

.btn-secondary {
  background: var(--white); color: var(--ink);
  padding: 13px 20px; border-radius: 8px;
  font-weight: 500; font-size: 0.9rem;
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: #bbb; }

.btn-cta-main {
  display: block; text-align: center;
  background: linear-gradient(135deg, #1B6CB8 0%, #7C3AED 100%); color: #fff;
  padding: 14px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; margin-bottom: 12px;
  transition: background 0.15s;
}
.btn-cta-main:hover { background: #5B4EC8; }

/* === STEPS (How it works) === */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--border); gap: 1px;
}
.step { background: var(--white); padding: 28px 24px; }
.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--border);
  display: block; line-height: 1; margin-bottom: 14px;
}
.step-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.step-desc { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.6; }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.steps-4 { grid-template-columns: repeat(2, 1fr); }

/* === TRUST GRID === */
.section-trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--border); gap: 1px;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.trust-card { background: var(--white); padding: 28px 24px; }
.trust-icon { margin-bottom: 10px; display: block; color: var(--indigo); }
.trust-title { font-weight: 700; font-size: 0.87rem; color: var(--ink); margin-bottom: 5px; }
.trust-desc { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.55; }

/* === CTA CARD === */
.section-cta { max-width: 1120px; margin: 0 auto; padding: 96px 48px; }
.cta-card {
  background: var(--indigo-dark); border-radius: 16px; padding: 36px;
}
.cta-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em;
}
.cta-card-sub { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 24px; line-height: 1.5; }
.cta-note { text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.cta-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 20px 0; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: color 0.15s;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.faq-q:hover { color: var(--indigo); }
.faq-q .faq-icon {
  flex-shrink: 0; margin-left: 16px;
  font-size: 1.2rem; color: var(--ink-soft);
  transition: transform 0.2s;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto;
  font-size: 0.75rem; color: var(--ink-soft);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-logo { display: flex; align-items: center; }
.foot-logo img { height: 24px; }

/* === PROBLEM SECTION === */
.section-problem { background: var(--indigo-dark); padding: 96px 48px; }
.problem-inner {
  max-width: 1120px; margin: 0 auto;
}
.problem-inner .section-eyebrow { color: #7EC8E3; }
.problem-h {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  color: #fff; line-height: 1.15; letter-spacing: -0.03em;
}
.problem-h em { font-style: italic; color: #C4B5FD; }

/* === SSG SPECIFIC === */

/* Container */
.ssg-container {
  max-width: 1120px; margin: 0 auto; padding: 0 48px;
}

/* Section */
.ssg-section {
  padding: 64px 0;
}

/* Prose (rich content) */
.ssg-prose {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.ssg-prose p { margin-bottom: 16px; }
.ssg-prose p:last-child { margin-bottom: 0; }
.ssg-prose ul, .ssg-prose ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ssg-prose li {
  padding-left: 16px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ssg-prose li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--indigo);
}
.ssg-prose li strong {
  color: var(--ink);
  font-weight: 600;
}
.ssg-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.ssg-prose code {
  background: var(--indigo-light);
  color: var(--indigo-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}
.ssg-prose a {
  color: var(--indigo);
  text-decoration: underline;
}
.ssg-prose a:hover { color: var(--indigo-dark); }

/* Card */
.ssg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.ssg-card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,0.08);
  transform: translateY(-2px);
}
.ssg-card h3 {
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink); margin-bottom: 6px;
  transition: color 0.15s;
}
.ssg-card:hover h3 { color: var(--indigo); }
.ssg-card p {
  font-size: 0.8rem; color: var(--ink-soft);
  line-height: 1.55;
}

/* Grids */
.ssg-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ssg-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Breadcrumb */
.ssg-breadcrumb {
  padding: 12px 0 4px;
}
.ssg-breadcrumb ol {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.ssg-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.ssg-breadcrumb a:hover { color: var(--indigo); }
.ssg-breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}
.ssg-breadcrumb .sep {
  color: var(--border);
}

/* Badge / Tag */
.ssg-badge {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Code block */
.ssg-code {
  background: #0F172A;
  color: #86EFAC;
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* Hero sub (reusable) */
.hero-sub {
  font-size: 1.05rem; color: var(--ink-soft);
  line-height: 1.65; font-weight: 300;
  margin-bottom: 36px; max-width: 560px;
}

/* Section alternating backgrounds */
.ssg-section-alt { background: var(--white); }

/* Solution box (light) */
.ssg-solution-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

/* Comparison grid (excel equivalent) */
.ssg-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ssg-compare-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.ssg-compare-col p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.ssg-compare-col.highlight h4 { color: var(--indigo); }
.ssg-compare-col.highlight p { color: var(--ink); }

/* Tools / badges wrapper */
.ssg-badges-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* Related links (simple list) */
.ssg-related-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.ssg-related-list a {
  color: var(--indigo);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
.ssg-related-list a:hover { color: var(--indigo-dark); text-decoration: underline; }

/* Pricing highlight */
.ssg-pricing-box {
  background: var(--indigo-dark);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #fff;
}
.ssg-pricing-box .price {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.ssg-pricing-box .price-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* === WHY / ADVANTAGES (inline layout) === */
.why-items-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.why-item svg {
  flex-shrink: 0; color: var(--indigo); margin-top: 2px;
}
.why-item strong {
  display: block; font-weight: 700; font-size: 0.88rem;
  color: var(--ink); margin-bottom: 2px;
}
.why-item span {
  font-size: 0.8rem; color: var(--ink-soft); line-height: 1.55;
}

/* Dark variant (section-why) */
.section-why {
  background: var(--indigo-dark); padding: 80px 48px;
}
.section-why h2 {
  font-family: 'DM Serif Display', serif;
  color: #fff;
}
.section-why .why-item strong { color: #fff; }
.section-why .why-item span { color: rgba(255,255,255,0.6); }
.section-why .why-item svg { stroke: #fff; color: #fff; }
.section-why .ssg-prose,
.section-why .ssg-prose p,
.section-why .ssg-prose li { color: rgba(255,255,255,0.7); }
.section-why .ssg-prose li::before { color: rgba(255,255,255,0.4); }
.section-why .ssg-prose strong,
.section-why .ssg-prose li strong { color: #fff; }
.section-why .ssg-prose a { color: var(--teal-light); }
.section-why .ssg-prose code { background: rgba(255,255,255,0.1); color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  header > nav { padding: 0 20px; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 16px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .nav-dropdown:hover .dropdown-menu { display: block; }

  .ssg-container { padding: 0 20px; }
  .ssg-section { padding: 48px 0; }
  .ssg-grid-2, .ssg-grid-3 { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }

  .section-problem { padding: 48px 20px; }
  .section-why { padding: 48px 20px; }
  .section-cta { padding: 48px 20px; }

  .ssg-compare { grid-template-columns: 1fr; }
  .why-items-grid { grid-template-columns: 1fr; }

  footer {
    flex-direction: column; gap: 12px; text-align: center;
    padding: 24px 20px;
  }

  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }

  .hero-sub { font-size: 0.95rem; }
}

/* === LEGAL PAGES === */
.legal-date { color: var(--ink-soft); font-size: 0.9rem; margin-top: -0.5rem; margin-bottom: 1rem; }
.legal-intro { background: #EBF5FF; border-left: 4px solid var(--indigo); padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0 2rem; line-height: 1.7; font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* === GUIDE PAGE === */

.guide-page {
  background: var(--bg);
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  font-size: 16px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.guide-sidebar {
  background: var(--indigo-dark);
  padding: 32px 20px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.guide-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
  min-width: 0;
}

.sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  padding-left: 12px;
}

.sidebar-link {
  display: block;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
  line-height: 1.4;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-link.active { color: #fff; font-weight: 500; background: rgba(255,255,255,0.12); }

.guide-mobile-nav {
  display: none;
  width: 100%;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  cursor: pointer;
}
.guide-mobile-nav:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(27,108,184,0.1); }

.guide-hero { text-align: center; margin-bottom: 16px; }
.guide-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.25;
}
.guide-hero h1 em { font-style: italic; color: var(--violet); }

.guide-intro {
  background: var(--indigo-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.guide-intro p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

.guide-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 28px;
  scroll-margin-top: 80px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.guide-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--indigo-light);
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.section-number.round {
  width: 28px; height: 28px;
  font-size: 0.75rem;
  border-radius: 50%;
  margin-right: 8px;
}

.guide-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  margin-top: 24px;
}

.guide-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 16px;
}

.guide-section p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-section ul,
.guide-section ol {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 20px;
}
.guide-section li { margin-bottom: 4px; }

/* Alerts */
.alert-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.alert-warning p, .alert-warning h3, .alert-warning h4 { color: #92400E; margin-top: 0; }
.alert-warning p { font-size: 0.85rem; }

.alert-info {
  background: var(--indigo-light);
  border-left: 3px solid var(--indigo);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.alert-info p, .alert-info h3, .alert-info h4 { color: var(--indigo-dark); margin-top: 0; }
.alert-info p { font-size: 0.85rem; }
.alert-info ul { color: var(--indigo-dark); font-size: 0.85rem; }

.alert-success {
  background: #ECFDF5;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.alert-success p, .alert-success h3, .alert-success h4, .alert-success ul, .alert-success li { color: #065F46; margin-top: 0; }
.alert-success p { font-size: 0.85rem; }

/* Provider cards */
.alert-provider-openai {
  background: #ECFDF5; border: 1px solid #A7F3D0;
  border-radius: 8px; padding: 14px 18px; margin: 12px 0;
}
.alert-provider-openai h4 { color: #065F46; margin-top: 0; }
.alert-provider-openai p { color: #047857; font-size: 0.85rem; }

.alert-provider-mistral {
  background: #FFF7ED; border: 1px solid #FED7AA;
  border-radius: 8px; padding: 14px 18px; margin: 12px 0;
}
.alert-provider-mistral h4 { color: #9A3412; margin-top: 0; }
.alert-provider-mistral p { color: #C2410C; font-size: 0.85rem; }

/* Screenshots */
.app-screenshot {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.app-screenshot img { width: 100%; height: auto; display: block; }
.screenshot-caption {
  font-size: 0.8rem; color: var(--ink-soft);
  text-align: center; margin-top: 8px; font-style: italic;
}

/* Screenshot zoom overlay */
.screenshot-zoom-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15,23,42,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.screenshot-zoom-overlay img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.screenshot-zoom-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--white); border: none;
  padding: 8px 16px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: background 0.15s;
}
.screenshot-zoom-close:hover { background: var(--bg); }

/* Code blocks */
.code-block-wrapper { margin: 16px 0; border-radius: 10px; overflow: hidden; }
.code-block-header {
  background: #1E293B; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #334155;
}
.code-block-header .cb-title { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; color: #CBD5E1; }
.code-block-header .cb-lang { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; background: #334155; color: #94A3B8; }
.code-block-header .cb-copy {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: #CBD5E1;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  transition: background 0.15s;
}
.code-block-header .cb-copy:hover { background: #334155; color: #fff; }
.code-block { background: #0F172A; padding: 16px; overflow-x: auto; }
.code-block pre {
  margin: 0; font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.8rem; line-height: 1.6; color: #E2E8F0;
}

/* Step indicator */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin: 24px 0;
}
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
}
.step-circle--default { background: var(--bg); color: var(--ink-soft); border: 2px solid var(--border); }
.step-circle--active { background: var(--indigo); color: #fff; box-shadow: 0 0 0 4px rgba(27,108,184,0.15); }
.step-circle--completed { background: var(--green); color: #fff; }
.guide-page .step-label { font-size: 0.75rem; font-weight: 600; color: var(--ink); text-align: center; max-width: 100px; }
.guide-page .step-label--active { color: var(--indigo); }
.guide-page .step-desc { font-size: 0.7rem; color: var(--ink-soft); text-align: center; margin-top: 2px; }
.step-arrow { color: var(--border); }
.step-arrow--active { color: var(--indigo); }

/* Chat bubbles */
.chat-bubble { padding: 8px 16px; border-radius: 10px; font-size: 0.85rem; max-width: 80%; }
.chat-bubble--user { background: var(--indigo-light); color: var(--indigo-dark); }
.chat-bubble--bot { background: #ECFDF5; color: #065F46; margin-left: auto; }

/* Guide grid */
.guide-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.guide-grid-2 .grid-cell { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.guide-grid-2 .grid-cell-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }

.guide-sub-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 24px; margin: 20px 0;
}

.guide-back-top {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 20px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.guide-back-top:hover { border-color: var(--indigo); color: var(--indigo); }

@media (max-width: 767px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { display: none; }
  .guide-content { padding: 24px 20px; max-width: 100%; }
  .guide-mobile-nav { display: block; }
  .guide-hero h1 { font-size: 1.5rem; }
  .guide-grid-2 { grid-template-columns: 1fr; }
  .guide-section { padding: 24px 20px; border-radius: 10px; }
}
