/* ============================================================
   Seven AI Lab — design system port of the OpenAleph (OA)
   foundations sheet (svn-ui-library). Light is the default;
   dark applies via the `.dark` class or the OS preference.
   ============================================================ */

:root {
  /* ----- OA colour tokens — LIGHT ----- */
  --background: #fcfcfc;
  --foreground: #191919;
  --card: #ffffff;
  --muted: #f7f7f7;
  --muted-foreground: #484b50;
  --border: rgba(201, 203, 206, 0.5);
  --outline: #797d85;
  --primary-btn: #0e191e;
  --primary-btn-fg: #ffffff;
  --oa-primary: #3a8d99;
  --oa-secondary: #a8324a;
  --oa-tertiary: #6f5ae8;
  --oa-success: #37947b;
  --oa-warning: #c88719;
  --surface-primary-subtle: #f2f7f8;
  --surface-container: #f7f7f7;
  --surface-container-high: #f3f3f3;

  --shadow-xs: 0 1px 2px 0 rgba(25, 25, 25, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(25, 25, 25, 0.08), 0 1px 2px -1px rgba(25, 25, 25, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(25, 25, 25, 0.1), 0 2px 6px -2px rgba(25, 25, 25, 0.06);
  --shadow-lg: 0 12px 32px -8px rgba(25, 25, 25, 0.16), 0 6px 12px -6px rgba(25, 25, 25, 0.08);

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --content-max: 1140px;
  --gutter: 24px;
}

.dark {
  --background: #191919;
  --foreground: #e5e5e5;
  --card: #262626;
  --muted: #262626;
  --muted-foreground: #c9cbce;
  --border: rgba(72, 75, 80, 0.5);
  --outline: #93979e;
  --primary-btn: #e6eef2;
  --primary-btn-fg: #0e191e;
  --oa-primary: #b5dde2;
  --oa-secondary: #f0c5ce;
  --oa-tertiary: #b0a5f2;
  --oa-success: #b4e3d6;
  --oa-warning: #f4e3ae;
  --surface-primary-subtle: #1f2c2f;
  --surface-container: #262626;
  --surface-container-high: #2e2e2e;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.55), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 6px 12px -6px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.dark) {
    --background: #191919;
    --foreground: #e5e5e5;
    --card: #262626;
    --muted: #262626;
    --muted-foreground: #c9cbce;
    --border: rgba(72, 75, 80, 0.5);
    --outline: #93979e;
    --primary-btn: #e6eef2;
    --primary-btn-fg: #0e191e;
    --oa-primary: #b5dde2;
    --oa-secondary: #f0c5ce;
    --oa-tertiary: #b0a5f2;
    --oa-success: #b4e3d6;
    --oa-warning: #f4e3ae;
    --surface-primary-subtle: #1f2c2f;
    --surface-container: #262626;
    --surface-container-high: #2e2e2e;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.55), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 6px 12px -6px rgba(0, 0, 0, 0.45);
  }
}

/* ----- base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }

.container {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Teal→violet brand gradient used on headline accents. */
.text-gradient {
  background: linear-gradient(130deg, var(--oa-primary) 0%, var(--oa-tertiary) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ header — floating pill bar ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar-wrap {
  max-width: 1380px;
  margin-inline: auto;
  padding: 12px 16px 0;
}
@media (min-width: 640px) { .site-header .bar-wrap { padding-inline: 24px; } }
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding-inline: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .site-header .bar { padding-inline: 28px; } }

.logo {
  display: flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
}
.logo img { height: 100%; width: auto; }
/* Black logo on light theme, white logo on dark — same switch as the theme toggle icons. */
.logo .logo-white { display: none; }
.dark .logo .logo-black { display: none; }
.dark .logo .logo-white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.dark) .logo .logo-black { display: none; }
  :root:not(.light):not(.dark) .logo .logo-white { display: block; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--muted); color: var(--foreground); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--muted); color: var(--foreground); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
.dark .theme-toggle .sun { display: block; }
.dark .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.dark) .theme-toggle .sun { display: block; }
  :root:not(.light):not(.dark) .theme-toggle .moon { display: none; }
}

/* Star-border CTA (OA header button) */
.star-border {
  display: inline-block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px 0;
}
.star-border .grad {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.7;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, var(--oa-primary), transparent 10%);
}
.star-border .grad.bottom {
  bottom: -12px;
  right: -250%;
  animation: star-movement-bottom 5s linear infinite alternate;
}
.star-border .grad.top {
  top: -12px;
  left: -250%;
  animation: star-movement-top 5s linear infinite alternate;
}
.star-border .inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-btn);
  color: var(--primary-btn-fg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9px;
  z-index: 1;
  transition: opacity 0.15s;
}
.star-border:hover .inner { opacity: 0.88; }
@keyframes star-movement-bottom {
  0% { transform: translate(0%, 0%); opacity: 1; }
  100% { transform: translate(-100%, 0%); opacity: 0; }
}
@keyframes star-movement-top {
  0% { transform: translate(0%, 0%); opacity: 1; }
  100% { transform: translate(100%, 0%); opacity: 0; }
}

/* On narrow phones the pill bar can't hold logo + toggle + CTA + menu:
   drop the CTA (it stays in the mobile menu and the hero) and tighten. */
@media (max-width: 479.98px) {
  .site-header .bar { gap: 12px; padding-inline: 16px; }
  .site-header .star-border { display: none; }
}

/* language switcher — globe dropdown (OA pattern: real links, far edge) */
.lang-switch { position: relative; }
.lang-switch > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.lang-switch > button:hover,
.lang-switch.open > button { background: var(--surface-container-high); color: var(--foreground); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: 144px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.lang-switch.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.lang-menu a:hover { background: var(--muted); color: var(--foreground); }
.lang-menu a[aria-current] {
  pointer-events: none;
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}
.lang-menu a[aria-current] svg { color: var(--oa-primary); }

/* inline variant (mobile menu): two equal-width link buttons */
.lang-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px 6px;
  border-top: 1px solid var(--border);
}
.lang-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.lang-inline a:hover { background: var(--muted); }
.lang-inline a[aria-current] {
  pointer-events: none;
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}
.lang-inline a[aria-current] svg { color: var(--oa-primary); }

/* mobile nav */
.mobile-nav-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted-foreground);
}
.mobile-nav-btn:hover { background: var(--muted); color: var(--foreground); }
@media (min-width: 768px) { .mobile-nav-btn { display: none; } }
.mobile-menu {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mobile-menu a:hover { background: var(--muted); color: var(--foreground); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--primary-btn); color: var(--primary-btn-fg); }
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
.btn-outline:hover { background: var(--muted); }
.btn svg { transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }

/* ============ badges / eyebrows ============ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  box-shadow: var(--shadow-xs);
}
.hero-badge .spark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--oa-primary), var(--oa-tertiary));
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-primary-subtle);
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--oa-primary);
}

/* ============ hero ============ */
.hero { overflow: hidden; padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  align-items: center;
  gap: 64px;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; } }
@media (min-width: 1280px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 540px; } }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero .sub {
  margin-top: 18px;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.hero .cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero .trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--outline);
}
.hero .trust i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

/* hero config card (OA dashboard-mock treatment) */
.hero-visual { position: relative; }
.config-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.config-card .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-container);
  border-bottom: 1px solid var(--border);
}
.config-card .titlebar .dots { display: flex; gap: 6px; }
.config-card .titlebar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
}
.config-card .titlebar .fname {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}
.config-card .code {
  padding: 28px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.config-card .row { display: flex; gap: 16px; align-items: flex-start; }
.config-card .ln {
  width: 24px;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--oa-primary) 45%, transparent);
  user-select: none;
}
.config-card .k { color: var(--oa-primary); display: block; }
.config-card .v { color: var(--muted-foreground); display: block; margin-left: 16px; }
.config-card .v.hl { color: var(--oa-tertiary); }
.config-card .v.warn { color: var(--oa-secondary); font-style: italic; }
.config-card .status {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-card .status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--oa-success);
  animation: oa-pulse 2.4s ease-in-out infinite;
}
.config-card .status span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oa-success);
}
@keyframes oa-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* floating pills over the hero card */
.float-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  animation: oa-bob 5s ease-in-out infinite;
}
.float-pill .ok { color: var(--oa-success); }
.float-pill.p1 { top: -16px; right: 26px; }
.float-pill.p2 { bottom: -14px; left: -12px; animation-delay: 1.2s; }
.float-pill.p3 { top: 42%; right: -14px; animation-delay: 2.2s; display: none; }
@media (min-width: 1280px) { .float-pill.p3 { display: inline-flex; } }
@keyframes oa-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============ stats band ============ */
.stats { padding: 52px 0 56px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid > div {
  padding: 28px 20px;
  text-align: center;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.stats-grid > div:first-child { border-left: 0; border-top: 0; }
.stats-grid > div:nth-child(2) { border-top: 0; }
@media (max-width: 639.98px) {
  .stats-grid > div:nth-child(odd) { border-left: 0; }
}
@media (min-width: 640px) {
  .stats-grid > div { border-top: 0; }
}
.stats .n {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stats .n em { font-style: normal; color: var(--oa-primary); }
.stats .l {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--outline);
}

/* ============ sections ============ */
.section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--outline);
}

/* ============ card grids ============ */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* numbered step cards (approche) */
.card .step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: color-mix(in srgb, var(--oa-primary) 14%, transparent);
  user-select: none;
}
.card .step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--oa-primary);
  margin-bottom: 10px;
}

/* icon chip on use-case cards */
.card .chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 16px;
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
}
.card:nth-child(3n + 2) .chip {
  background: color-mix(in srgb, var(--oa-tertiary) 10%, transparent);
  color: var(--oa-tertiary);
}
.card:nth-child(3n) .chip {
  background: color-mix(in srgb, var(--oa-secondary) 9%, transparent);
  color: var(--oa-secondary);
}

/* ============ souveraineté ============ */
.sov-grid {
  display: grid;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1024px) { .sov-grid { grid-template-columns: 1fr 1.05fr; } }
.sov-copy h2 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.sov-copy .body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.sov-key {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  max-width: 520px;
}
.sov-key .tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--oa-primary);
}
.sov-key p {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.checklist-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.checklist-card .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-container);
  border-bottom: 1px solid var(--border);
}
.checklist-card .titlebar .dots { display: flex; gap: 6px; }
.checklist-card .titlebar .dots i {
  width: 10px; height: 10px; border-radius: 999px; background: var(--border);
}
.checklist-card .titlebar .fname {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}
.checklist-card li {
  display: grid;
  grid-template-columns: 22px 128px 1fr;
  gap: 14px;
  padding: 18px 22px;
  align-items: start;
}
.checklist-card li + li { border-top: 1px solid var(--border); }
.checklist-card .ck {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--oa-success) 15%, transparent);
  color: var(--oa-success);
}
.checklist-card .t {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: 0.02em;
  padding-top: 2px;
}
.checklist-card .d {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
@media (max-width: 480px) {
  .checklist-card li { grid-template-columns: 22px 1fr; }
  .checklist-card .d { grid-column: 2; }
}

/* ============ dark CTA band ============ */
.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #0d1117;
  padding: 52px 44px;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -64px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(58, 141, 153, 0.25), transparent 65%);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: -100px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(111, 90, 232, 0.16), transparent 65%);
}
.cta-band h2 {
  position: relative;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 480px;
}
.cta-band p {
  position: relative;
  margin-top: 8px;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}
.cta-band .actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn-white {
  background: #fff;
  color: #0d1117;
  font-weight: 600;
}
.cta-band .btn-white:hover { background: #f0f4f6; opacity: 1; }
.cta-band .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

/* ============ rdv / calendly ============ */
/* Copy on top, booking widget full width below — the three-pane
   scheduler needs the whole content column on desktop. */
.rdv-grid {
  display: grid;
  gap: 40px;
}
.rdv-copy h2 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.rdv-copy > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 460px;
}
.rdv-copy ul {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) { .rdv-copy ul { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; } }
.rdv-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted-foreground);
}
.rdv-copy li .ck {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--oa-success) 15%, transparent);
  color: var(--oa-success);
}
.calendly-shell {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 4px;
}

/* ============ booking widget (OA demo-booking-form port) ============ */
.booking-shell {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.booking-grid { display: grid; }
@media (min-width: 1024px) { .booking-grid.step-slot { grid-template-columns: 240px auto 1fr; } }
@media (min-width: 1024px) { .booking-grid.step-details { grid-template-columns: 240px 1fr; } }

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .booking-info { border-bottom: 0; border-right: 1px solid var(--border); } }
.booking-info .head { display: flex; align-items: center; gap: 12px; }
.booking-info .head .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
  flex-shrink: 0;
}
.booking-info .head p { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.booking-info .head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.booking-info .meta { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.booking-info .meta span { display: flex; align-items: center; gap: 10px; }
.booking-info .meta svg { color: var(--outline); flex-shrink: 0; }
.booking-info .expect {
  display: none;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
@media (min-width: 1024px) { .booking-info .expect { display: flex; } }
.booking-info .expect li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.booking-info .expect svg { color: var(--oa-primary); flex-shrink: 0; margin-top: 2px; }
.booking-info .your-slot {
  border: 1px solid color-mix(in srgb, var(--oa-primary) 30%, transparent);
  background: color-mix(in srgb, var(--surface-primary-subtle) 55%, transparent);
  border-radius: 12px;
  padding: 14px 16px;
}
.booking-info .your-slot .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oa-primary);
}
.booking-info .your-slot .date { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.booking-info .your-slot .time { font-size: 14px; color: var(--muted-foreground); }

/* calendar pane */
.booking-cal {
  display: flex;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .booking-cal { border-bottom: 0; border-right: 1px solid var(--border); } }
.cal { width: 292px; user-select: none; }
.cal .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal .cal-head .month { font-size: 14px; font-weight: 600; text-transform: capitalize; }
.cal .cal-head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.cal .cal-head button:hover:not(:disabled) { background: var(--muted); color: var(--foreground); }
.cal .cal-head button:disabled { opacity: 0.35; cursor: default; }
.cal table { width: 100%; border-collapse: collapse; }
.cal th {
  padding: 4px 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--outline);
  text-transform: lowercase;
}
.cal td { padding: 1px; text-align: center; }
.cal td button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  transition: background 0.12s, color 0.12s;
}
.cal td button:hover:not(:disabled):not(.sel) { background: var(--muted); }
.cal td button:disabled { color: color-mix(in srgb, var(--outline) 45%, transparent); cursor: default; }
.cal td button.sel { background: var(--primary-btn); color: var(--primary-btn-fg); font-weight: 600; }

/* slots pane — fills the remaining card width; slots flow as a chip grid */
.booking-slots { display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.booking-slots .day-label { font-size: 14px; font-weight: 600; text-transform: capitalize; }
.booking-slots .list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  align-content: start;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.slot-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.slot-btn:hover {
  border-color: var(--oa-primary);
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
}
.slot-btn.sel {
  border-color: var(--oa-primary);
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--oa-primary) inset;
}

/* Confirm bar — appears under the grid once a slot is picked; the chips
   above never move. */
.booking-slots .confirm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  animation: oa-rise 0.25s ease-out;
}
.booking-slots .confirm-bar .summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.booking-slots .confirm-bar .summary svg { color: var(--oa-primary); flex-shrink: 0; }
.booking-slots .confirm-bar .summary b {
  color: var(--foreground);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.booking-slots .confirm-bar .btn { padding: 9px 18px; font-size: 13.5px; font-weight: 600; }
@keyframes oa-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .booking-slots .confirm-bar { animation: none; }
}
.booking-slots .placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}
.booking-slots .placeholder svg { margin-inline: auto; color: var(--outline); }
.booking-slots .placeholder p {
  margin: 12px auto 0;
  max-width: 200px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* details step */
.booking-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
@media (min-width: 640px) { .booking-form { padding: 32px; } }
.booking-form .form-head { display: flex; align-items: center; gap: 12px; }
.booking-form .back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  transition: border-color 0.15s, color 0.15s;
}
.booking-form .back:hover { border-color: var(--oa-primary); color: var(--foreground); }
.booking-form h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.booking-form .row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .booking-form .row2 { grid-template-columns: 1fr 1fr; } }
.booking-form label { display: flex; flex-direction: column; gap: 6px; }
.booking-form label > span { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field::placeholder { color: var(--outline); }
.field:focus {
  border-color: var(--oa-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oa-primary) 25%, transparent);
}
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--outline) 50%), linear-gradient(135deg, var(--outline) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.field { resize: vertical; min-height: 74px; }
.booking-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-form .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.booking-form .form-foot .hint { font-size: 12px; line-height: 1.5; color: var(--outline); }
.booking-form .error { font-size: 13px; color: var(--muted-foreground); }
.booking-form .error a { color: var(--oa-primary); font-weight: 500; }
.booking-form .error a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* confirmation step */
.booking-sent { max-width: 560px; margin-inline: auto; padding: 48px 24px 56px; text-align: center; }
.booking-sent .big-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
}
.booking-sent h3 { margin-top: 20px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.booking-sent > p { margin: 8px auto 0; max-width: 420px; font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }
.booking-sent > p strong { color: var(--foreground); font-weight: 600; }
.booking-sent .cal-links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.booking-sent .steps {
  margin: 40px auto 0;
  display: grid;
  gap: 16px;
  max-width: 500px;
  text-align: left;
}
@media (min-width: 640px) { .booking-sent .steps { grid-template-columns: 1fr 1fr 1fr; } }
.booking-sent .steps li { display: flex; gap: 12px; }
@media (min-width: 640px) { .booking-sent .steps li { flex-direction: column; gap: 8px; } }
.booking-sent .steps .icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface-primary-subtle);
  color: var(--oa-primary);
}
.booking-sent .steps span { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.booking-sent .steps b { color: var(--foreground); }

/* ============ footer ============ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  color: var(--muted-foreground);
}
.footer-grid {
  display: grid;
  gap: 36px 40px;
  margin-bottom: 36px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr auto auto auto; gap-x: 80px; } }
.footer-grid .blurb {
  margin-top: 12px;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.65;
}
.footer-grid h5 {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--outline);
}
.footer-grid .col a {
  display: block;
  padding: 3px 0;
  font-size: 12.5px;
  transition: color 0.15s;
}
.footer-grid .col a:hover { color: var(--foreground); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 11px;
  color: var(--outline);
}
.footer-bottom .links { display: flex; gap: 14px; }
.footer-bottom a:hover { color: var(--foreground); }
.footer-bottom .fr { color: var(--oa-primary); font-weight: 600; }

/* ============ legal pages ============ */
.legal { max-width: 720px; margin-inline: auto; padding: 72px var(--gutter) 96px; }
.legal h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.legal .prose { margin-top: 36px; display: flex; flex-direction: column; gap: 30px; }
.legal .prose section > h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.legal .prose p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.legal .prose p + p { margin-top: 10px; }
.legal .prose strong { color: var(--foreground); font-weight: 600; }
.legal .prose a { color: var(--oa-primary); font-weight: 500; }
.legal .prose a:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal .prose ul {
  margin-top: 10px;
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.legal .updated { font-size: 13px; color: var(--outline); }

/* ============ reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-pill,
  .config-card .status i,
  .star-border .grad { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; }
}
