/* =========================================================
   CIAO ADMIN — COMPONENTS
   ========================================================= */

/* Buttons ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 200ms var(--ease-standard),
              color 200ms var(--ease-standard),
              border-color 200ms var(--ease-standard),
              transform 150ms var(--ease-standard);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--on-surface); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-variant); color: var(--on-surface); }
.btn-ghost { background: transparent; color: var(--on-surface); }
.btn-ghost:hover { background: var(--surface-variant); color: var(--on-surface); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-container); color: var(--primary); }
.btn-lg { height: 56px; padding: 0 var(--space-8); font-size: 1.05rem; }
.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Navbar ================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
[data-theme="dark"] .navbar { background: rgba(14, 17, 22, 0.85); }
.navbar.is-scrolled { border-bottom-color: var(--border); }
.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 1440px) { .navbar__inner { max-width: var(--container-wide); } }
.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--on-surface);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.navbar__logo:hover { color: var(--on-surface); text-decoration: none; }
.navbar__logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.navbar__nav {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
  align-items: center;
}
.navbar__nav-link {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background 200ms, color 200ms;
  text-decoration: none;
}
.navbar__nav-link:hover { background: var(--surface-variant); color: var(--on-surface); text-decoration: none; }
.navbar__nav-link.is-active { color: var(--primary); background: var(--primary-container); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-4);
}
.navbar__hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  align-items: center;
  justify-content: center;
}
.navbar__hamburger:hover { background: var(--surface-variant); }
.navbar__hamburger svg { width: 24px; height: 24px; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 36px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switcher__trigger:hover { background: var(--surface-variant); }
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-3);
  padding: var(--space-2);
  display: none;
  z-index: 100;
}
.lang-switcher.is-open .lang-switcher__menu { display: block; }
.lang-switcher__menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 0.9rem;
  text-decoration: none;
}
.lang-switcher__menu a:hover { background: var(--surface-variant); }

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  color: var(--on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { background: var(--surface-variant); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Mobile menu */
@media (max-width: 1023px) {
  .navbar__nav, .navbar__actions { display: none; }
  .navbar__hamburger { display: inline-flex; margin-left: auto; }
  .navbar.is-mobile-open { background: var(--surface); }
  .navbar.is-mobile-open + .navbar__mobile { display: flex; }
}
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  z-index: 999;
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.navbar__mobile a {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-weight: 500;
  text-decoration: none;
}
.navbar__mobile a:hover { background: var(--surface-variant); }
.navbar__mobile .btn { margin-top: var(--space-2); }

/* Hero ==================================================== */
.hero {
  background: var(--bg-alt);
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 1023px) { .hero__inner { grid-template-columns: 1fr; text-align: center; } }
.hero__content { max-width: 560px; }
.hero__inner > .hero__content { margin-inline: 0; }
@media (max-width: 1023px) { .hero__inner > .hero__content { margin-inline: auto; } }
.hero__title {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
  font-weight: 800;
}
.hero__sub {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.25rem);
  line-height: 1.5;
  color: var(--on-surface-secondary);
  margin: 0 0 var(--space-8);
  max-width: 580px;
}
@media (max-width: 1023px) { .hero__sub { margin-inline: auto; } }
.hero__cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
@media (max-width: 1023px) { .hero__cta-row { justify-content: center; } }
.hero__trust {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--on-surface-muted);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
@media (max-width: 1023px) { .hero__trust { justify-content: center; } }
.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-brand-700) 100%);
  aspect-ratio: 4/3;
  box-shadow: var(--elev-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
}
.hero__visual svg { max-width: 70%; height: auto; opacity: 0.95; }
.hero--alt { background: var(--surface); }

/* Trust strip ============================================= */
.trust-strip {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}
.trust-strip__label {
  font-size: 0.85rem;
  color: var(--on-surface-muted);
  font-weight: 500;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-secondary);
  background: var(--bg);
}
.trust-badge--brand { background: var(--primary-container); color: var(--primary); border-color: transparent; }

/* Cards =================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--elev-1);
  transition: box-shadow 250ms var(--ease-standard), transform 250ms var(--ease-standard);
  height: 100%;
}
.card:hover { box-shadow: var(--elev-2); transform: translateY(-2px); }
.card--link { display: block; color: inherit; text-decoration: none; }
.card--link:hover { color: inherit; text-decoration: none; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-container);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--on-surface);
}
.card__desc {
  font-size: 0.95rem;
  color: var(--on-surface-secondary);
  margin: 0;
  line-height: 1.55;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Feature card */
.feature-card { text-align: left; }

/* Persona card */
.persona-card .card__icon {
  width: 64px; height: 64px;
  font-size: 1.8rem;
}

/* Stat card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.stat-card__value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-card__label {
  color: var(--on-surface-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* Pricing card ============================================ */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  height: 100%;
}
.pricing-card.is-recommended {
  border: 2px solid var(--primary);
  box-shadow: var(--elev-3);
  transform: translateY(-4px);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-secondary);
  margin: 0;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin: var(--space-2) 0;
}
.pricing-card__price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pricing-card__price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface-secondary);
}
.pricing-card__price-period {
  font-size: 0.95rem;
  color: var(--on-surface-muted);
  margin-left: var(--space-1);
}
.pricing-card__tagline {
  color: var(--on-surface-secondary);
  font-size: 0.95rem;
  margin: 0;
  min-height: 2.8em;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--on-surface-secondary);
}
.pricing-card__features .check {
  color: var(--color-success-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card__features .x {
  color: var(--on-surface-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .btn { margin-top: auto; }

/* Compare table =========================================== */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th, .compare-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--on-surface);
  text-align: center;
  position: sticky;
  top: var(--topbar-h);
  z-index: 1;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td:not(:first-child) { text-align: center; }
.compare-table tbody td:first-child { font-weight: 500; color: var(--on-surface); }
.compare-table .col-highlight { background: var(--primary-container); }
.compare-table .check { color: var(--color-success-500); font-weight: 700; }
.compare-table .x { color: var(--on-surface-muted); }

/* FAQ accordion =========================================== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: 1rem;
  color: var(--on-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 200ms;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--on-surface-secondary);
  line-height: 1.6;
}

/* CTA band ================================================ */
.cta-band {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-brand-700) 100%);
  color: var(--on-primary);
  text-align: center;
}
.cta-band h2 {
  color: var(--on-primary);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  margin: 0 0 var(--space-4);
}
.cta-band p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin: 0 0 var(--space-8);
  max-width: 640px;
  margin-inline: auto;
}
.cta-band .btn-primary {
  background: var(--surface);
  color: var(--primary);
}
.cta-band .btn-primary:hover { background: var(--bg-alt); color: var(--primary); }
.cta-band .btn-secondary {
  background: transparent;
  color: var(--on-primary);
  border-color: rgba(255,255,255,0.4);
}
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--on-primary); }

/* Breadcrumb ============================================== */
.breadcrumb {
  padding: var(--space-4) 0;
  font-size: 0.85rem;
  color: var(--on-surface-muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: var(--space-2);
  color: var(--on-surface-muted);
}
.breadcrumb a { color: var(--on-surface-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--on-surface); font-weight: 500; }

/* Footer ================================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-12);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface);
  margin: 0 0 var(--space-4);
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__col a {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer__col a:hover { color: var(--primary); text-decoration: underline; }
.footer__brand .navbar__logo { margin-bottom: var(--space-4); }
.footer__brand p { font-size: 0.9rem; color: var(--on-surface-secondary); margin-bottom: var(--space-4); }
.footer__newsletter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.footer__newsletter input {
  flex: 1;
  height: 44px;
  padding: 0 var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--on-surface);
}
.footer__newsletter input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}
.footer__copyright { font-size: 0.85rem; color: var(--on-surface-muted); }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--on-surface-secondary);
}
.footer__social a:hover { background: var(--surface-variant); color: var(--primary); border-color: var(--primary); }
.footer__social svg { width: 18px; height: 18px; }
.footer__badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Platform badges ========================================= */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--on-surface);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 200ms, transform 200ms;
}
.platform-badge:hover { border-color: var(--primary); color: var(--on-surface); text-decoration: none; transform: translateY(-2px); }
.platform-badge svg { width: 22px; height: 22px; }

/* Testimonial ============================================= */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
.testimonial__quote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--on-surface);
  margin: 0;
  flex-grow: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; color: var(--on-surface); margin: 0; line-height: 1.3; }
.testimonial__role { font-size: 0.85rem; color: var(--on-surface-muted); margin: 0; }

/* Consent banner ========================================== */
.consent-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--elev-4);
  z-index: 9999;
  display: none;
}
.consent-banner.is-visible { display: block; }
.consent-banner h3 { font-size: 1rem; margin: 0 0 var(--space-2); }
.consent-banner p { font-size: 0.85rem; color: var(--on-surface-secondary); margin: 0 0 var(--space-4); }
.consent-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.consent-banner__actions .btn { flex: 1; min-width: 100px; height: 40px; font-size: 0.85rem; padding: 0 var(--space-4); }

/* Process / steps ========================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: left;
  position: relative;
  padding-top: var(--space-12);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.step p { color: var(--on-surface-secondary); margin: 0; }

/* Pricing toggle ========================================== */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1);
  background: var(--surface-variant);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-8);
}
.pricing-toggle button {
  background: transparent;
  border: 0;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--on-surface-secondary);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.pricing-toggle button.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--elev-1);
}
.pricing-toggle .toggle-discount {
  font-size: 0.7rem;
  background: var(--color-success-500);
  color: white;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  margin-left: 4px;
}

/* Toc / sidebar =========================================== */
.toc {
  position: sticky;
  top: calc(var(--topbar-h) + var(--space-4));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); color: var(--on-surface-muted); }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.toc a { font-size: 0.9rem; color: var(--on-surface-secondary); text-decoration: none; }
.toc a:hover { color: var(--primary); }

/* Article layout ========================================== */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 1023px) { .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
.article-prose { max-width: 760px; }
.article-prose h2 { margin-top: var(--space-12); }
.article-prose h3 { margin-top: var(--space-8); }
.article-prose p, .article-prose ul, .article-prose ol { font-size: 1.05rem; line-height: 1.7; color: var(--on-surface); }
.article-prose ul, .article-prose ol { margin-bottom: var(--space-4); }
.article-prose blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  color: var(--on-surface-secondary);
  font-style: italic;
}
.article-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  font-size: 0.9rem;
  color: var(--on-surface-muted);
  flex-wrap: wrap;
}

/* 404 ===================================================== */
.error-page {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.error-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--space-4); }
.error-page p { font-size: 1.15rem; max-width: 480px; margin-inline: auto; margin-bottom: var(--space-8); }
.error-page__code { font-size: 8rem; font-weight: 800; color: var(--primary); line-height: 1; opacity: 0.2; margin-bottom: var(--space-4); }

/* ============================================================
   DEVICE FRAMES — Mockups for app screenshots
   ============================================================ */

/* MacBook / desktop frame */
.device-laptop {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.18));
}
.device-laptop__screen {
  position: relative;
  background: #0E1116;
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 18px;
  border: 1px solid #2A323C;
}
.device-laptop__screen::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: #1B2129;
  border-radius: 0 0 6px 6px;
}
.device-laptop__screen img,
.device-laptop__screen video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}
.device-laptop__base {
  height: 14px;
  background: linear-gradient(180deg, #C7CCD3 0%, #9BA3AC 100%);
  border-radius: 0 0 12px 12px;
  margin: 0 -14px;
  position: relative;
}
.device-laptop__base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 6px;
  background: #6E7782;
  border-radius: 0 0 8px 8px;
}

/* Desktop monitor frame (Windows) */
.device-monitor {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.18));
}
.device-monitor__screen {
  background: #0E1116;
  border-radius: 8px;
  padding: 18px 18px 14px;
  border: 1px solid #2A323C;
}
.device-monitor__screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}
.device-monitor__stand {
  width: 26%;
  height: 36px;
  margin: 0 auto;
  background: linear-gradient(180deg, #9BA3AC 0%, #6E7782 100%);
  border-radius: 0 0 6px 6px;
}
.device-monitor__base {
  width: 50%;
  height: 8px;
  margin: 0 auto;
  background: #6E7782;
  border-radius: 4px;
}

/* iPhone frame */
.device-phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.22));
}
.device-phone__body {
  background: #0E1116;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #1B2129;
  box-shadow: inset 0 0 0 1px #2A323C;
}
.device-phone__screen {
  position: relative;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}
.device-phone__screen img,
.device-phone__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.device-phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0E1116;
  border-radius: 999px;
  z-index: 2;
}
.device-phone--sm { max-width: 200px; }
.device-phone--xs { max-width: 160px; }

/* Android phone (slightly different aspect / no notch — pill camera) */
.device-android .device-phone__notch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 12px;
  left: 50%;
  background: #1B2129;
  border: 2px solid #0E1116;
}

/* Tablet */
.device-tablet {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  filter: drop-shadow(0 28px 56px rgba(15, 23, 42, 0.18));
}
.device-tablet__body {
  background: #0E1116;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid #2A323C;
}
.device-tablet__screen {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.device-tablet__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Web window frame (browser chrome) */
.device-browser {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--elev-3);
}
[data-theme="dark"] .device-browser { background: var(--surface); }
.device-browser__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.device-browser__dots { display: flex; gap: 6px; }
.device-browser__dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border-strong);
}
.device-browser__dots span:nth-child(1) { background: #FF5F57; }
.device-browser__dots span:nth-child(2) { background: #FEBC2E; }
.device-browser__dots span:nth-child(3) { background: #28C840; }
.device-browser__url {
  flex: 1;
  height: 26px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--on-surface-muted);
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}
.device-browser__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PLATFORM SHOWCASE — multi-device hero & sections
   ============================================================ */
.platform-showcase {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: end;
  position: relative;
}
@media (max-width: 1023px) {
  .platform-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
.platform-showcase__phone {
  align-self: end;
}
@media (max-width: 1023px) {
  .platform-showcase__phone {
    margin-top: -120px;
    z-index: 2;
    align-self: center;
  }
}

/* Hero with screenshot — overrides plain hero__visual */
.hero-screenshot {
  position: relative;
  width: 100%;
}
.hero-screenshot .device-laptop {
  position: relative;
  z-index: 1;
}
.hero-screenshot .device-phone {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 32%;
  max-width: 200px;
  z-index: 2;
}
@media (max-width: 768px) {
  .hero-screenshot .device-phone {
    position: relative;
    bottom: 0;
    right: 0;
    margin: -100px auto 0;
    width: 60%;
  }
}

/* Devices row (3 devices side by side) */
.devices-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.6fr;
  gap: var(--space-6);
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .devices-row {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* Screenshot gallery (thumbnails) */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1023px) { .screenshot-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .screenshot-gallery { grid-template-columns: 1fr; } }
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elev-1);
  transition: box-shadow 250ms var(--ease-standard), transform 250ms var(--ease-standard);
}
.screenshot-card:hover {
  box-shadow: var(--elev-3);
  transform: translateY(-4px);
}
.screenshot-card__img {
  background: var(--bg-alt);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.screenshot-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.screenshot-card--mobile .screenshot-card__img { aspect-ratio: 9 / 16; }
.screenshot-card__body {
  padding: var(--space-4) var(--space-5);
}
.screenshot-card__body h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--on-surface);
}
.screenshot-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--on-surface-secondary);
}

/* Platform-strip with all 5 device frames */
.platform-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .platform-strip { grid-template-columns: repeat(2, 1fr); }
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  transition: border-color 200ms, transform 200ms;
}
.platform-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.platform-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}
.platform-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-surface);
}
.platform-card__os {
  font-size: 0.75rem;
  color: var(--on-surface-muted);
  margin-top: 2px;
}

/* Hero alt — bigger visuals */
.hero--screenshots {
  padding-block: var(--space-16) var(--space-12);
}
.hero--screenshots .hero__inner {
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 1023px) {
  .hero--screenshots .hero__inner { grid-template-columns: 1fr; }
}

/* Continuous scrolling marquee of screenshots */
.screenshot-marquee {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.screenshot-marquee__track {
  display: flex;
  gap: var(--space-5);
  animation: marquee 60s linear infinite;
  width: max-content;
}
.screenshot-marquee__track:hover { animation-play-state: paused; }
.screenshot-marquee__item {
  flex-shrink: 0;
  width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--elev-2);
  background: var(--surface);
}
.screenshot-marquee__item img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .screenshot-marquee__track { animation: none; }
}

/* Big screenshot block (single large) */
.screenshot-feature {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8) 0;
  text-align: center;
  overflow: hidden;
}
.screenshot-feature__visual {
  margin-top: var(--space-8);
  margin-bottom: -80px;
}

/* App-shop badges (App Store / Google Play) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 18px;
  background: #0E1116;
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 200ms, box-shadow 200ms;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--elev-3);
}
.store-badge__icon { font-size: 1.6rem; flex-shrink: 0; }
.store-badge__small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  line-height: 1.1;
}
.store-badge__big {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ============================================================
   ICONS — Material Symbols + brand logos via <svg><use/></svg>
   ============================================================ */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.icon-lg { width: 1.6em; height: 1.6em; vertical-align: -0.3em; }
.icon-xl { width: 2.4em; height: 2.4em; }
.icon-xxl { width: 3rem; height: 3rem; }

/* Card icon variant — uses .icon-xl with brand color */
.card__icon .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.card__icon { font-size: 0; }

/* Persona / solution / step — bigger */
.persona-card .card__icon .icon { width: 36px; height: 36px; }
.solution-card .icon-xxl { color: var(--primary); }
.usecase-card__icon .icon { width: 24px; height: 24px; color: var(--primary); }
.guarantee-card__icon .icon { width: 32px; height: 32px; }
.platform-card__icon .icon { width: 32px; height: 32px; color: var(--on-surface); }
.platform-card:hover .platform-card__icon .icon { color: var(--primary); }
.feature-card .card__icon .icon { color: var(--primary); }

/* Store badge image variants (proper SVG badges) */
.store-badge--svg {
  background: transparent;
  padding: 0;
  min-width: auto;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--elev-2);
}
.store-badge--svg img {
  height: 100%;
  width: auto;
  display: block;
}
.store-badge--svg:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-3);
}

/* Brand-specific colors (for inline icons) */
.icon-brand-apple   { color: #A2AAAD; }
.icon-brand-windows { color: #00A4EF; }
.icon-brand-android { color: #34A853; }
.icon-brand-linux   { color: #FCC624; }
.icon-brand-google  { color: #4285F4; }
.icon-brand-swiss   { color: #FF0000; }

/* Trust badge with inline SVG flag */
.trust-badge .icon { width: 16px; height: 16px; vertical-align: -3px; }

/* Solution emoji slot replaced by SVG bigger */
.solution-card .solution-card__emoji .icon {
  width: 56px; height: 56px;
  color: var(--primary);
}
.solution-card .solution-card__emoji {
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Platform-badge inline icons (right-size, vertical-align) */
.platform-badge .icon { width: 18px; height: 18px; vertical-align: -3px; }

/* Hero overline + trust strip flag-ch wrapper */
.hero__trust .icon { width: 14px; height: 14px; vertical-align: -2px; }
.overline .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Lang-switcher trigger icon */
.lang-switcher__trigger .icon { width: 14px; height: 14px; }

/* ============================================================
   BRAND LOGO MARK — Replaces the "C" placeholder with the official picto
   ============================================================ */
.navbar__logo-mark {
  background: transparent;     /* picto is colored on its own */
  color: var(--primary);
  width: 32px; height: 32px;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navbar__logo-mark .icon {
  width: 32px; height: 32px;
  vertical-align: middle;
}
/* Ensure logo color stays brand even on dark mode (use brand-500 base) */
[data-theme="dark"] .navbar__logo-mark { color: var(--color-brand-400); }

/* Footer brand variant uses same logo mark (already inherits from navbar__logo) */
.footer__brand .navbar__logo-mark { color: var(--primary); }

/* ============================================================
   STICKY CTA MOBILE — brief §8.1 (thumb zone)
   Visible only ≤ 768 px ; out of the way for desktop.
   ============================================================ */
.cta-sticky-mobile { display: none; }
@media (max-width: 768px) {
  .cta-sticky-mobile {
    display: block;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3) var(--space-4) calc(env(safe-area-inset-bottom, 0px) + var(--space-3));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
    z-index: 50;
    margin-top: var(--space-8);
  }
  .cta-sticky-mobile .btn { height: 52px; font-size: 1rem; }
  /* Reserve room above bottom-positioned consent banner */
  .consent-banner.is-visible ~ * .cta-sticky-mobile,
  body.has-consent-visible .cta-sticky-mobile { bottom: 110px; }
}

/* ============================================================
   TOUCH TARGETS — WCAG 2.5.8 + Apple HIG (brief §8.2)
   Ensure interactive controls reach ≥ 44 × 44 CSS px on touch.
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .btn-sm,
  .navbar__nav-link,
  .lang-switcher__menu a,
  .footer ul a,
  .breadcrumb a,
  .faq-item summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .navbar__hamburger,
  .theme-toggle,
  .lang-switcher__trigger { min-width: 44px; min-height: 44px; }
}

/* ============================================================
   PERF — content-visibility for below-the-fold sections (brief §3.2)
   Skip layout/paint cost until close to viewport. Each Section
   is ~800 px tall so reserve that space to keep CLS at 0.
   ============================================================ */
@media (min-width: 1024px) {
  main > section + section + section + section { content-visibility: auto; contain-intrinsic-size: 800px; }
}

/* ============================================================
   FONT FALLBACK METRICS — minimize FOUT for Inter (brief §3.1)
   When Inter loads, the layout barely shifts thanks to size-adjust.
   ============================================================ */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ============================================================
   ANSWER SNIPPET — GEO bloc « Réponse en 1 phrase » (brief §10.3)
   ============================================================ */
.answer-snippet {
  background: var(--primary-container);
  border-left: 4px solid var(--primary);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin: 0 0 var(--space-8);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-surface);
}
.answer-snippet strong { color: var(--primary); font-weight: 700; }
[data-theme="dark"] .answer-snippet { background: var(--primary-container); }

/* ============================================================
   CTA-band paddings adjustment so sticky CTA does not overlap
   ============================================================ */
@media (max-width: 768px) {
  main { padding-bottom: 0; }
}

