/* =========================================================
   TCFCAD Homepage — Design tokens & global
   ========================================================= */
:root {
  --primary: #E8311A;
  --primary-ink: #B71F0A;
  --ink: #151515;
  --ink-2: #2A2A2A;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #E7E2D8;
  --line-2: #EDE9DF;
  --cream: #FAF8F5;
  --cream-2: #F4F0E8;
  --paper: #FFFFFF;
  --dark: #151515;
  --dark-2: #1E1E1E;
  --green: #0E7A4B;
  --green-bg: #E6F3EC;
  --amber: #B78500;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21,21,21,.04);
  --shadow-md: 0 2px 6px rgba(21,21,21,.05), 0 12px 28px rgba(21,21,21,.06);
  --f-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --f-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.brand-mark-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,49,26,.18);
}
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 17px; color: var(--ink); }
.brand-name span { color: var(--primary); }

.nav-links {
  display: flex; gap: 4px;
  justify-self: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: var(--cream); }

.nav-cta-group { display: inline-flex; align-items: center; gap: 14px; }
.nav-login { font-size: 14px; color: var(--ink); font-weight: 600; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease, background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
.btn-primary:hover { background: var(--primary-ink); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--cream); }

.btn-ghost-light {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232,49,26,.06), transparent 38%),
    radial-gradient(circle at 86% 88%, rgba(232,49,26,.04), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 72px 28px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.hero-left { max-width: 600px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,49,26,.18);
}

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  font-weight: 400;
}
.hero-title em {
  color: var(--primary);
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 34px;
  max-width: 560px;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
}
.hero-reassure {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13.5px; color: var(--muted);
}
.hero-reassure li { display: inline-flex; align-items: center; gap: 6px; }
.hero-reassure svg { width: 14px; height: 14px; color: var(--green); }

/* SCORE CARD */
.hero-right {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.score-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.score-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.score-card-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.score-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(14,122,75,.18);
}
.score-card-date {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.score-card-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
}
.score-card-hero-num {
  display: flex; align-items: baseline; gap: 6px;
}
.sc-num {
  font-family: var(--f-serif);
  font-size: 72px;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.sc-max { font-size: 16px; color: var(--muted); font-weight: 500; }
.score-card-hero-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.nclc-badge {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.nclc-badge.nclc-blue { background: #E4ECFA; color: #1D4ED8; }
.nclc-badge.nclc-purple { background: #EFEAFB; color: #6D28D9; }
.nclc-badge.nclc-amber { background: #FBF0D7; color: #8A5A00; }
.nclc-badge.nclc-teal { background: #DAF1EC; color: #0D7363; }
.nclc-badge.nclc-red { background: #FBE3DE; color: #B71F0A; }
.delta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--green);
  font-size: 12.5px; font-weight: 600;
}
.delta svg { width: 10px; height: 10px; }

.score-bars { display: grid; gap: 12px; margin-bottom: 22px; }
.score-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 55px;
  align-items: center; gap: 12px;
}
.score-bar-label { font-size: 12.5px; color: var(--muted); }
.score-bar {
  height: 6px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #F0503A);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}
.score-bar-val {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  text-align: right;
}

.score-card-foot {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.foot-block { text-align: center; }
.foot-num {
  font-family: var(--f-serif);
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.foot-label { font-size: 11px; color: var(--muted); line-height: 1.3; }
.foot-sep { width: 1px; height: 32px; background: var(--line-2); }

.floating-note {
  position: absolute;
  left: -20px;
  bottom: -26px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-width: 320px;
}
.fn-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fn-text { font-size: 13px; font-weight: 500; line-height: 1.4; }
.fn-meta { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }

.hero-strip {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding: 18px 28px 28px;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hs-item {
  display: flex; align-items: baseline; gap: 10px;
}
.hs-item strong {
  font-family: var(--f-serif);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hs-item span { font-size: 13px; color: var(--muted); }

/* =========================================================
   SECTION
   ========================================================= */
.section { padding: 70px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: #F0EDE6; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section-narrow { max-width: 860px; }
.section-head { max-width: 780px; margin: 0 0 40px; }
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-head-dark .section-eyebrow { color: #F0503A; }
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 400;
}
.section-head-dark .section-title { color: #FBF9F4; }
.section-title em { color: var(--primary); font-style: italic; }
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0;
}
.section-head-dark .section-sub { color: rgba(255,255,255,.65); }

/* =========================================================
   ÉPREUVES
   ========================================================= */
.epreuves-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.epreuve-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.epreuve-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.epreuve-card.highlight { background: var(--cream); border-color: var(--line); }
.epreuve-card.highlight:hover { border-color: var(--primary); }
.epreuve-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.epreuve-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.epreuve-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.epreuve-tag.tag-ai {
  color: var(--primary);
  border-color: rgba(232,49,26,.3);
  background: rgba(232,49,26,.06);
}
.epreuve-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.epreuve-desc {
  font-size: 15px; line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}
.epreuve-list {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 8px;
  font-size: 14px;
}
.epreuve-list li {
  padding-left: 22px; position: relative;
  color: var(--ink-2);
}
.epreuve-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--primary);
  border-radius: 2px;
}
.epreuve-list b { color: var(--ink); }
.epreuve-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(232,49,26,.25);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color .2s;
}
.epreuve-link:hover { border-color: var(--primary); }

/* =========================================================
   DÉMO IA (section-dark)
   ========================================================= */
.demo-root { margin-top: 20px; }
.demo-frame {
  background: #111;
  border: 1px solid #262626;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.demo-pane {
  padding: 26px 28px;
  display: flex; flex-direction: column;
  min-height: 560px;
}
.demo-pane + .demo-pane { border-left: 1px solid #262626; background: #0E0E0E; }
.demo-pane-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #262626;
  margin-bottom: 18px;
}
.demo-pane-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #F0EDE6;
}
.demo-pane-title .tt-tag {
  font-family: var(--f-mono); font-size: 10.5px;
  color: #F0503A; background: rgba(232,49,26,.12);
  padding: 3px 7px; border-radius: 5px; letter-spacing: 0.03em;
}
.demo-timer {
  font-family: var(--f-mono);
  font-size: 12px; color: #A0A0A0;
}
.demo-prompt {
  padding: 14px 16px;
  background: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
  font-size: 13.5px;
  color: #CFCFCF;
  margin-bottom: 14px;
  line-height: 1.55;
}
.demo-prompt b { color: #F0EDE6; }
.demo-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.65;
  color: #F0EDE6;
  resize: none;
  outline: none;
  transition: border-color .15s;
  min-height: 220px;
}
.demo-textarea:focus { border-color: #444; }
.demo-counter {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: #777;
  margin-top: 10px;
  display: flex; justify-content: space-between;
}
.demo-cta-row { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.btn-correct {
  background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s;
}
.btn-correct:hover { background: var(--primary-ink); }
.btn-correct:disabled { opacity: .5; cursor: not-allowed; }
.btn-reset {
  color: #999;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-reset:hover { color: #F0EDE6; }

/* Correction pane */
.correction-empty {
  flex: 1;
  display: grid; place-items: center;
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 40px 20px;
}
.correction-empty-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #1A1A1A; border: 1px solid #262626;
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.correction-empty-icon svg { width: 20px; height: 20px; color: #777; }

.correction-loading {
  flex: 1;
  display: grid; place-items: center;
  color: #CFCFCF;
  font-size: 14px;
  text-align: center;
  padding: 40px 20px;
}
.loader-bars { display: inline-flex; gap: 4px; margin-bottom: 14px; }
.loader-bars span {
  width: 3px; height: 18px; background: #F0503A;
  border-radius: 3px;
  animation: lb 1.2s infinite ease-in-out;
}
.loader-bars span:nth-child(2) { animation-delay: .1s; }
.loader-bars span:nth-child(3) { animation-delay: .2s; }
.loader-bars span:nth-child(4) { animation-delay: .3s; }
.loader-bars span:nth-child(5) { animation-delay: .4s; }
@keyframes lb { 0%,100%{ transform: scaleY(.5);} 50%{ transform: scaleY(1);} }

.correction-result { display: flex; flex-direction: column; gap: 18px; }
.cr-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(14,122,75,.1);
  border: 1px solid rgba(14,122,75,.3);
  border-radius: 12px;
}
.cr-score-num {
  font-family: var(--f-serif);
  font-size: 36px;
  line-height: 1;
  color: #7FD9A8;
  letter-spacing: -0.02em;
}
.cr-score-num span { font-size: 14px; color: rgba(255,255,255,.5); font-weight: 400; }
.cr-score-label { font-size: 13px; color: rgba(255,255,255,.75); }
.cr-score-label b { color: #7FD9A8; display: block; font-size: 14px; margin-top: 2px; }

.cr-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cr-criterion {
  padding: 12px 14px;
  background: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
}
.cr-crit-head {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.cr-crit-label { font-size: 12px; color: #A0A0A0; }
.cr-crit-score {
  font-family: var(--f-mono);
  font-size: 12px; color: #F0EDE6;
}
.cr-crit-bar {
  height: 4px; background: #262626; border-radius: 99px; overflow: hidden;
}
.cr-crit-bar-fill {
  height: 100%; background: linear-gradient(90deg, #F0503A, #FF7A5F);
  border-radius: 99px;
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}

.cr-feedback {
  padding: 14px 16px;
  background: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 10px;
  font-size: 13.5px;
  color: #CFCFCF;
  line-height: 1.55;
}
.cr-feedback-title {
  font-size: 11px; color: #777;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cr-feedback-title svg { width: 12px; height: 12px; }
.cr-feedback-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cr-feedback-list li::marker { color: var(--primary); }
.cr-feedback-list code {
  font-family: var(--f-mono);
  font-size: 12px;
  background: #262626;
  padding: 1px 6px;
  border-radius: 4px;
  color: #FFD9D1;
}

/* =========================================================
   OBJECTIONS
   ========================================================= */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.obj-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color .2s;
}
.obj-card:hover { border-color: var(--ink); }
.obj-head { margin-bottom: 14px; }
.obj-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.obj-answer-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.obj-answer p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   COMPARATIF
   ========================================================= */
.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  border-bottom: 1px solid var(--line-2);
}
.compare-row:last-child { border-bottom: 0; }
.compare-cell {
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex; align-items: center;
  border-right: 1px solid var(--line-2);
}
.compare-cell:last-child { border-right: 0; }
.compare-cell.compare-label { color: var(--ink); font-weight: 600; font-size: 14px; }
.compare-row.compare-head .compare-cell {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 14px 22px;
  background: var(--cream);
}
.compare-col-us {
  background: rgba(232,49,26,0.04);
  color: var(--ink) !important;
  font-weight: 500;
  position: relative;
}
.compare-row.compare-head .compare-col-us {
  background: var(--primary);
  color: #fff !important;
}
.compare-note {
  margin-top: 22px;
  display: flex; justify-content: space-between; gap: 18px;
  padding: 16px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
}
.compare-note b { font-weight: 700; }
.compare-note span { color: rgba(255,255,255,.75); }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.price-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.price-card-featured {
  background: var(--ink);
  color: #F0EDE6;
  border-color: var(--ink);
}
.price-card-featured:hover { border-color: var(--ink); }
.price-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price-card-head { margin-bottom: 16px; }
.price-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.price-delay {
  font-size: 13px; color: var(--muted);
  margin: 0;
}
.price-card-featured .price-delay { color: rgba(255,255,255,.6); }

.price-big {
  display: flex; align-items: baseline; gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.price-card-featured .price-big { border-color: rgba(255,255,255,.1); }
.price-currency { font-size: 20px; color: var(--muted); font-weight: 500; }
.price-card-featured .price-currency { color: rgba(255,255,255,.6); }
.price-num {
  font-family: var(--f-serif);
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.price-card-featured .price-num { color: #F0EDE6; }
.price-unit { font-size: 13px; color: var(--muted); margin-left: 4px; }
.price-card-featured .price-unit { color: rgba(255,255,255,.6); }
.price-for {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  font-style: italic;
}
.price-card-featured .price-for { color: rgba(255,255,255,.7); }

.price-features {
  list-style: none; padding: 0;
  margin: 0 0 26px;
  display: grid; gap: 11px;
  font-size: 14px;
  flex: 1;
}
.price-features li {
  padding-left: 24px;
  position: relative;
  color: var(--ink-2);
}
.price-card-featured .price-features li { color: rgba(255,255,255,.85); }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green-bg);
  background-image: linear-gradient(45deg, transparent 45%, var(--green) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--green) 45% 55%, transparent 55%);
}
.price-card-featured .price-features li::before {
  background: rgba(232,49,26,.15);
  background-image: linear-gradient(45deg, transparent 45%, var(--primary) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--primary) 45% 55%, transparent 55%);
}
.price-features li b { color: var(--ink); }
.price-card-featured .price-features li b { color: #fff; }

.price-card-featured .btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.25);
}
.price-card-featured .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.pricing-foot {
  margin-top: 28px; text-align: center;
  color: var(--muted); font-size: 14px;
}
.pricing-foot a { color: var(--primary); font-weight: 600; border-bottom: 1px solid rgba(232,49,26,.3); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.testi-stars {
  color: #E8BE1E;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 14px;
}
.testi-quote {
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  flex: 1;
}
.testi-quote b { background: linear-gradient(180deg, transparent 65%, rgba(232,49,26,.18) 65%); padding: 0 2px; }
.testi-result {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.testi-result .nclc-badge { font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.testi-who {
  display: flex; align-items: center; gap: 12px;
}
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.testi-who b { font-size: 14px; color: var(--ink); display: block; }
.testi-who span { font-size: 12px; color: var(--muted); }

/* =========================================================
   FAQ (rendered by React)
   ========================================================= */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--ink); }
.faq-item.is-open { border-color: var(--ink); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s; color: var(--muted); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--primary); }
.faq-a {
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-a-inner b { color: var(--ink); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--ink);
  color: #F0EDE6;
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 50%, rgba(232,49,26,.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(232,49,26,.1), transparent 42%);
  pointer-events: none;
}
.final-inner {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 0 28px;
}
.final-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  color: #F0503A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.final-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: #FBF9F4;
}
.final-title em { color: var(--primary); font-style: italic; }
.final-sub {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  max-width: 600px;
  margin: 0 auto 32px;
}
.final-ctas {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.final-reassure {
  display: flex; justify-content: center; gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--line-2);
  padding: 56px 0 24px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  border-bottom: 1px solid var(--line-2);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand-name { font-weight: 800; font-size: 18px; color: var(--ink); }
.footer-brand-name span { color: var(--primary); }
.footer-brand-sub { font-size: 13.5px; color: var(--muted); max-width: 300px; margin-top: 4px; line-height: 1.5; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 28px 0;
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(21,21,21,.18);
  padding: 18px;
  z-index: 100;
  font-family: var(--f-sans);
}
.tw-head { margin-bottom: 14px; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.tw-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.tw-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tw-group { margin-bottom: 14px; }
.tw-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.tw-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-btns-stack { flex-direction: column; }
.tw-btns button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.tw-btns button:hover { border-color: var(--ink); }
.tw-btns button.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.tw-btns-colors { gap: 8px; }
.tw-btns-colors button {
  width: 26px; height: 26px; padding: 0;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
}
.tw-btns-colors button.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 28px 40px; gap: 48px; }
  .hero-right { max-width: 560px; margin: 0 auto; justify-self: stretch; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .epreuves-grid, .obj-grid, .pricing-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .demo-frame { grid-template-columns: 1fr; }
  .demo-pane + .demo-pane { border-left: 0; border-top: 1px solid #262626; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-inner { grid-template-columns: auto auto; gap: 12px; padding: 12px 18px; }
  .nav-cta-group .nav-login { display: none; }
  .hero-inner { padding: 40px 20px 32px; }
  .hero-strip { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 20px 24px; }
  .section-inner { padding: 0 20px; }
  .epreuves-grid, .obj-grid, .pricing-grid, .testi-grid, .footer-cols { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.1fr 1fr; }
  .compare-row .compare-cell:nth-child(2),
  .compare-row .compare-cell:nth-child(3) { display: none; }
  .compare-row.compare-head .compare-cell:nth-child(2),
  .compare-row.compare-head .compare-cell:nth-child(3) { display: none; }
  .score-bar-row { grid-template-columns: 100px 1fr 50px; }
  .sc-num { font-size: 56px; }
  .compare-note { flex-direction: column; gap: 6px; }
  .final-cta { padding: 72px 0; }
  .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .floating-note { left: 10px; right: 10px; max-width: none; bottom: -20px; }
}
