/* Site de VibeScreener : mêmes couleurs et même police que l'app (apps/desktop/src/renderer/theme.css). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #d63a0c; /* pastilles, actions principales */
  --accent-text: #b8300a; /* liens et texte accent (contraste AA) */
  --accent-hover: #8f2507;
  --term: #1d1d1f; /* encadrés façon Terminal et bulle de dictée, sombres dans les deux thèmes */
  --term-line: transparent;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 50px -18px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --bg-soft: #1f1f22;
    --ink: #f2f2f4;
    --ink-2: #d1d1d6;
    --muted: #98989f;
    --line: #2e2e33;
    --accent-text: #ff7a50;
    --accent-hover: #ff9b7a;
    --term: #0e0e10;
    --term-line: #2e2e33;
    --shadow: 0 0 0 1px #2e2e33, 0 18px 50px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; }
strong { font-weight: 600; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent-text); }

/* Pastille numérotée : goutte dont la pointe (coin bas-gauche) touche l'élément visé,
   comme drawAnnotations (packages/shared/src/render.ts). */
.pin {
  --s: 28px;
  width: var(--s); height: var(--s); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: max(2px, calc(var(--s) / 13)) solid #fff; border-radius: 50% 50% 50% 12.5%;
  background: var(--accent); color: #fff;
  font: 700 calc(var(--s) * 0.46) / 1 var(--font); font-variant-numeric: tabular-nums;
}

/* Accroche */
.hero { padding-top: 56px; }
.hero-head { display: grid; grid-template-columns: max-content minmax(240px, 300px); column-gap: 36px; align-items: end; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em;
}
.target { position: relative; }
.target .pin {
  --s: 0.54em;
  position: absolute; left: calc(100% - 0.02em); bottom: 52%;
  font-size: inherit; letter-spacing: 0; transform-origin: 0 100%;
  animation: pin-drop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.35s both;
}
.target .pin span { font-size: 0.23em; }

/* Bulle de dictée, comme dans l'éditeur */
.bubble {
  padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--term-line);
  background: var(--term); color: #f2f2f4; box-shadow: var(--shadow); margin-bottom: 6px;
  animation: bubble-in 0.4s ease-out 0.75s both;
}
.bubble-top { display: flex; align-items: center; gap: 9px; font: 600 13px/1 var(--mono); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: blink 1.2s ease-in-out infinite; }
.wave { display: flex; align-items: center; gap: 2px; height: 18px; flex: 1; }
.wave i { width: 2px; height: calc(var(--h) * 18px); border-radius: 1px; background: #f2f2f4; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--h) * -1.7s); }
.time { color: #a1a1a6; font-weight: 500; }
.bubble p { margin-top: 10px; padding: 9px 11px; border: 1px solid var(--accent); border-radius: 8px; font-size: 15px; line-height: 1.4; }

.lead { max-width: 34em; margin-top: 28px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }

/* Installation */
.install { margin-top: 36px; max-width: 640px; }
.label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cmd {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 10px; border: 1px solid var(--term-line); background: var(--term); color: #f2f2f4;
}
.cmd code { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cmd code::before { content: '$ '; color: #8e8e93; }
.nowrap { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.meta { margin-top: 18px; font-size: 15px; color: var(--muted); }
.meta strong { color: var(--ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn.primary { border-color: transparent; background: var(--accent); color: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); }
.btn.primary:hover { background: #c2340a; color: #fff; }
.copy { min-height: 34px; padding: 0 14px; }

/* Visuel */
.shot { margin-top: 64px; }
.shot img { border-radius: 12px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Sections */
.block { padding: 96px 0; }
.block + .block, .hero + .block { border-top: 1px solid var(--line); }
.hero + .block { margin-top: 96px; }
.block h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.intro { max-width: 36em; margin-top: 16px; font-size: 19px; color: var(--ink-2); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }

/* Les trois gestes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.steps li { padding: 0 32px; border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps .pin { --s: 32px; margin-right: 12px; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.keys { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
kbd {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; background: var(--bg-soft);
  font: 500 17px/1 var(--font); color: var(--ink);
}
.formats { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.formats li { padding: 7px 0; border-top: 1px solid var(--line); }
.formats b { font-weight: 600; color: var(--ink); }
.after { max-width: 40em; margin-top: 48px; color: var(--muted); }

/* Tablette et Claude Code */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.duo h2 { font-size: clamp(28px, 3.4vw, 36px); }
.duo .intro { font-size: 18px; }
.facts { margin-top: 24px; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.term { margin-top: 24px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--term-line); background: var(--term); color: #f2f2f4; font: 15px/1.45 var(--mono); }
.term::before { content: '> '; color: var(--accent); font-weight: 700; }
.tools { margin-top: 16px; font-size: 15px; }
.tools div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.tools dt { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.tools dd { color: var(--ink-2); }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Confidentialité */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.trio p { margin-top: 8px; color: var(--ink-2); }
.more { margin-top: 40px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; max-width: 760px; margin-top: 48px; }
.plan { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan p:not(.price) { margin-bottom: 24px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.terms { max-width: 760px; margin-top: 28px; }
.terms li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
.terms li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50% 50% 50% 12.5%; background: var(--accent); }

/* FAQ */
.faq { max-width: 760px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; max-width: 40em; color: var(--ink-2); }

/* Pied de page */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--accent-text); }

/* Pages légales */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 44px; font-size: 22px; letter-spacing: -0.015em; }
.doc p, .doc ul, .doc table { margin-top: 12px; color: var(--ink-2); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc .scroll { overflow-x: auto; }
.doc .scroll table { min-width: 560px; }
.doc pre { margin-top: 12px; padding: 16px; border-radius: 10px; background: var(--bg-soft); font: 13px/1.5 var(--mono); white-space: pre-wrap; color: var(--ink-2); }

/* Animations */
@keyframes pin-drop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bubble-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Écrans étroits */
@media (max-width: 900px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); }
  .bubble { max-width: 340px; margin: 28px 0 0; }
  .steps, .trio, .duo { grid-template-columns: 1fr; }
  .steps { gap: 28px; margin-top: 36px; }
  .steps li, .steps li:first-child, .steps li:last-child { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .duo { gap: 72px; }
  .trio { gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav { gap: 16px; }
  .nav .wide { display: none; }
  .hero { padding-top: 32px; }
  .lead { font-size: 18px; }
  .block { padding: 64px 0; }
  .hero + .block { margin-top: 64px; }
  .shot { margin-top: 44px; }
  .shot img { border-radius: 8px; }
  .intro { font-size: 17px; }
  .cmd { flex-wrap: wrap; padding: 12px 12px 12px 14px; }
  .cmd code { flex-basis: 100%; font-size: 14px; }
  .copy { margin-left: auto; }
  .tools div { grid-template-columns: 1fr; gap: 2px; }
  .plan { padding: 22px; }
}
