/* Landing B2C — même champ mat, même accent, plus d’air.
   Pas de second hue. Rayon 4 px. Une seule lueur, derrière le hero. */

.page-home,
.page-marketing {
  cursor: auto;
  --ink-dim: rgba(236, 234, 228, 0.78);
}

.page-home .lede,
.page-marketing .lede {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.page-home a,
.page-home button,
.page-marketing a,
.page-marketing button { cursor: pointer; }

.page-home .nav__mark,
.page-marketing .nav__mark { animation: none; }

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.skip:focus,
.skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border-radius: var(--radius-sm);
}

body.is-nav-open { overflow: hidden; }

.page-home main { padding-top: var(--nav-h); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.home-section {
  padding: 88px 0;
}

.home-section__head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.home-section h2,
.home-hero h1,
.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.home-section h2,
.closing h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 22ch;
}

.lede {
  margin-top: 16px;
  max-width: 38rem;
  color: rgba(236, 234, 228, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  padding: 48px 0 32px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 520px;
  background: radial-gradient(ellipse 55% 70% at 70% 20%, rgba(255, 107, 26, 0.14), transparent 68%);
  pointer-events: none;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  max-width: 16ch;
}

.home-hero__sub {
  margin-top: 18px;
  max-width: 36rem;
  color: rgba(236, 234, 228, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero__cta .btn { min-height: 48px; }

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  color: rgba(236, 234, 228, 0.72);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.reassure li { display: flex; align-items: center; gap: 8px; }
.reassure li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
}

.home-term .term__body {
  min-height: 280px;
  max-height: 360px;
  padding: 18px 18px 20px;
  line-height: 1.28;
  white-space: pre-wrap;
}

.home-term .t-line {
  margin: 0;
  line-height: 1.28;
}

.home-line {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-line span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.home-line--muted { color: rgba(236, 234, 228, 0.72); }
.home-line--result { border-left: 1px solid var(--accent); padding-left: 12px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  min-height: 100%;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.steps li:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.steps__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.steps h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.steps p { color: rgba(236, 234, 228, 0.78); }

/* ---------- Uses ---------- */
.uses {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.uses article {
  grid-column: span 2;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.25s var(--ease-out), background 0.25s;
}

.uses article:nth-child(4),
.uses article:nth-child(5) { grid-column: span 3; }

.uses article:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.uses h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.uses p { color: rgba(236, 234, 228, 0.78); }

/* ---------- Demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.demo-quote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.demo-quote p {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.demo-quote footer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.flow li span {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.flow strong { letter-spacing: -0.02em; }
.flow p { color: rgba(236, 234, 228, 0.72); font-size: 0.95rem; }

html.js .flow.is-play li {
  animation: flowStep 0.55s var(--ease-out) both;
}
html.js .flow.is-play li:nth-child(1) { animation-delay: 0.05s; }
html.js .flow.is-play li:nth-child(2) { animation-delay: 0.2s; }
html.js .flow.is-play li:nth-child(3) { animation-delay: 0.35s; }
html.js .flow.is-play li:nth-child(4) { animation-delay: 0.5s; }

@keyframes flowStep {
  from { border-color: var(--line); }
  to { border-color: rgba(255, 107, 26, 0.45); }
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-panel);
}

.compare article:last-child { border-color: rgba(255, 107, 26, 0.45); }

.compare h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.compare article:last-child h3 { color: var(--accent); }

.compare ol, .compare ul { margin: 0; padding-left: 1.1rem; color: rgba(236, 234, 228, 0.78); }
.compare li + li { margin-top: 8px; }
.compare p { margin-top: 18px; font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1.35; }

/* ---------- Plans ---------- */
.page-home .plan-grid,
.page-marketing .plan-grid {
  max-width: none;
  width: 100%;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.plan-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.plan-card.is-featured {
  border-color: rgba(255, 107, 26, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 107, 26, 0.1), transparent 38%),
    var(--bg-panel);
}

.plan-card__credits {
  color: rgba(236, 234, 228, 0.86);
  margin: 0 0 12px;
  min-height: 2.6em;
}

.plan-card__credits strong { color: var(--ink); font-weight: 650; }

.plan-card ul { flex: 1; }

.plan-card__cta {
  display: flex;
  margin-top: 16px;
}

.plan-card__cta .btn { width: 100%; min-height: 48px; }

.credit-note {
  margin-top: 28px;
  max-width: 42rem;
  color: rgba(236, 234, 228, 0.78);
}

.credit-note h2,
.credit-note h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  max-width: none;
}

.notice {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  border-radius: var(--radius);
  color: rgba(236, 234, 228, 0.86);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }

.faq article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.faq h3 { font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.faq p { color: rgba(236, 234, 228, 0.78); }

/* ---------- Close / install ---------- */
.closing {
  border-top: 1px solid var(--line);
  padding: 88px 0 72px;
}

.closing__panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(255, 107, 26, 0.12), transparent 55%),
    var(--bg-panel);
}

.closing .lede { margin-bottom: 28px; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.downloads .btn { min-height: 48px; }

.install-meta {
  margin-top: 14px;
  color: rgba(236, 234, 228, 0.62);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}

.install-steps li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.install-steps span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.install-code {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.install-code code { overflow-wrap: anywhere; }

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(236, 234, 228, 0.62);
  margin-bottom: 18px;
}

.crumbs a:hover { color: var(--ink); }

.page-marketing .page-wrap { padding-top: calc(var(--nav-h) + 36px); }
.page-marketing .nav { position: fixed; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer h2,
.site-footer__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 234, 228, 0.72);
  margin-bottom: 12px;
  max-width: none;
}

.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(236, 234, 228, 0.82); }
.site-footer a:hover { color: var(--ink); }

.site-footer__legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(236, 234, 228, 0.72);
  font-size: 0.85rem;
  max-width: 46rem;
}

.dash-note {
  margin-top: 10px;
  color: rgba(236, 234, 228, 0.72);
  font-size: 0.88rem;
}

.nav__burger { min-width: 44px; min-height: 44px; }
.nav__actions .btn,
.nav-mobile .btn { min-height: 44px; }

@media (max-width: 1024px) {
  .home-hero__grid,
  .demo-grid,
  .compare,
  .steps,
  .steps--4,
  .install-steps,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero__grid,
  .demo-grid,
  .site-footer__grid { grid-template-columns: 1fr; }

  .uses { grid-template-columns: 1fr 1fr; }
  .uses article,
  .uses article:nth-child(4),
  .uses article:nth-child(5) { grid-column: auto; }

  .plan-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
  .home-section { padding: 64px 0; }
  .home-hero { padding-top: 28px; }
  .home-hero h1 { max-width: none; }
  .steps,
  .compare,
  .install-steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .page-marketing .nav__who,
  .page-marketing .nav__actions [data-guest].btn--ghost {
    display: none;
  }
  .page-account .nav__actions .btn--primary { display: none; }
  .page-marketing .nav { gap: 8px; padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .home-hero__cta,
  .downloads { flex-direction: column; align-items: stretch; }
  .uses,
  .plan-grid,
  .site-footer__grid { grid-template-columns: 1fr !important; }
  .home-term .term__body { min-height: 0; }
  .steps li:hover,
  .plan-card:hover { transform: none; }
}

/* ---------- Legal / trust pages ---------- */
.page-legal .legal {
  max-width: 44rem;
  padding-bottom: 64px;
}

.legal-block {
  margin-top: 36px;
  padding-top: 8px;
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  max-width: none;
}

.legal-block h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}

.legal-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: rgba(236, 234, 228, 0.82);
}

.legal-list li + li { margin-top: 8px; }

.legal-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(236, 234, 228, 0.72);
}

code.todo {
  display: inline;
  padding: 0.1em 0.35em;
  border: 1px dashed rgba(255, 107, 26, 0.55);
  border-radius: 3px;
  background: rgba(255, 107, 26, 0.08);
  color: var(--accent);
  font-size: 0.86em;
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.callout--warn {
  border-left-color: #e6b84d;
}

.callout p { margin: 0; color: rgba(236, 234, 228, 0.86); line-height: 1.5; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 24px 0 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.toc a { color: rgba(236, 234, 228, 0.78); }
.toc a:hover { color: var(--accent); }

.faq-item + .faq-item { margin-top: 20px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }

.code-block {
  margin: 12px 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.site-footer__grid--legal {
  grid-template-columns: 1fr 1fr;
}

.site-footer__grid--5 {
  grid-template-columns: 1.3fr repeat(4, 1fr);
}

/* ---------- Compare tables ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 234, 228, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:not(:first-child) { color: rgba(236, 234, 228, 0.86); }

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cap-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--surface);
}

.cap-grid h3 { margin-bottom: 10px; letter-spacing: -0.02em; }
.cap-grid ul { list-style: disc; padding-left: 1.15rem; color: rgba(236, 234, 228, 0.82); }
.cap-grid li + li { margin-top: 6px; }

.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mode-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--bg-panel);
}

.mode-cards h3 { margin-bottom: 8px; }
.mode-cards p { color: rgba(236, 234, 228, 0.78); }

.agent-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.agent-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.agent-flow span {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.agent-flow strong { font-size: 0.95rem; }
.agent-flow p { margin: 0; font-size: 0.9rem; color: rgba(236, 234, 228, 0.72); }

.cost-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cost-examples article {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: transparent;
}

.cost-examples h3 { font-size: 1rem; margin-bottom: 8px; }
.cost-examples p { font-size: 0.9rem; color: rgba(236, 234, 228, 0.72); }

.plan-card__hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: rgba(236, 234, 228, 0.72);
  line-height: 1.45;
}

.limits-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.limits-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: rgba(236, 234, 228, 0.82);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0));
  background: rgba(12, 12, 12, 0.96);
  border-top: 1px solid var(--line);
}

.cookie-banner__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: rgba(236, 234, 228, 0.86);
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1024px) {
  .cap-grid,
  .mode-cards,
  .cost-examples,
  .site-footer__grid--5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cap-grid,
  .mode-cards,
  .cost-examples,
  .site-footer__grid--5,
  .site-footer__grid--legal {
    grid-template-columns: 1fr !important;
  }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .flow li,
  html.js .flow.is-play li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .steps li,
  .plan-card { transition: none; }
}
