/* kcaltrack.com — design « Volt » de l'app (charbon chaud, os, volt). */
:root {
  --bg: #12110F;
  --surface: #1C1B18;
  --surface-2: #2A2823;
  --text: #F3EFE7;
  --text-2: #A39E93;
  --text-3: #8A857A;
  --accent: #D7F34A;
  --on-accent: #12110F;
  --accent-bg: #2B3113;
  --notch-empty: #34322C;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }

.d { font-family: 'Archivo', 'Arial Black', sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; }
.label { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.08em; color: var(--text-2); }
.volt { color: var(--accent); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 18px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #E6FA86; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,17,15,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--surface-2); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 22px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Héros */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; margin: 16px 0 22px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

/* Motif signature : les crans (barres de 3 px espacées de 4 px). */
.notches { margin-top: 44px; max-width: 420px; height: 22px; position: relative;
  background: repeating-linear-gradient(90deg, var(--notch-empty) 0 3px, transparent 3px 7px); }
.notches span { position: absolute; inset: 0 auto 0 0; width: var(--fill);
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 7px); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.mascot { position: absolute; width: 170px; height: auto; left: -30px; bottom: -20px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }

/* Téléphones : captures 390×844 des maquettes de l'app (img/), dans un cadre.
   La largeur fixe le cadre ; l'image le remplit exactement (ratio 390/844). */
.phone {
  --w: 300px;
  width: var(--w); max-width: 100%;
  aspect-ratio: 390 / 844;
  padding: 7px;
  border-radius: calc(var(--w) * .14);
  background: #2A2823;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px #3A372F;
  flex: none; position: relative;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * .12);
  display: block;
}
.phone.small { --w: 240px; }
.phone.tiny { --w: 170px; }

/* Sections */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; margin: 14px 0 36px; max-width: 760px; }
.card { background: var(--surface); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--text-2); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card.tall { flex-direction: row; align-items: center; gap: 24px; }

.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: 20px; }
.split-text > p { color: var(--text-2); font-size: 18px; }
.phones-duo { display: flex; justify-content: center; gap: 18px; }
.phones-duo .offset { margin-top: 70px; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7F34A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Tarifs */
.pricing { margin-bottom: 18px; }
.price { padding: 30px; position: relative; }
.price.pro { border: 1.5px solid var(--accent); }
.amount { font-size: 44px; line-height: 1; color: var(--text) !important; }
.amount span { font-family: 'Geist', sans-serif; font-stretch: 100%; font-size: 18px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.badge { position: absolute; top: 22px; right: 22px; background: var(--accent); color: var(--on-accent);
  font: 500 11px 'Geist Mono', monospace; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }

/* FAQ */
details { background: var(--surface); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); padding-bottom: 20px; }

/* Fin */
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.final h2 { margin: 0; }

.footer { border-top: 1px solid var(--surface-2); padding: 34px 0 48px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.footer .brand { font-size: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }

/* Pages de texte (confidentialité, mentions) */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; font-family: 'Geist', sans-serif; font-weight: 700; letter-spacing: 0; }
.doc p, .doc li { color: #D9D4CA; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }

/* Communauté */
.section-lead { color: var(--text-2); font-size: 18px; max-width: 680px; margin: -16px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border-radius: 26px; padding: 28px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.step .phone { align-self: center; margin-bottom: 14px; }
.step-n { font: 500 12px 'Geist Mono', monospace; color: var(--on-accent); background: var(--accent); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { color: var(--text-2); }
.checks.inline { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-in, .split-in { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 0; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .mascot { width: 120px; left: 0; }
  .phone { --w: 260px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .phones-duo .offset { margin-top: 40px; }
  .phones-duo .phone.small { --w: 40vw; }
  .card.tall { flex-direction: column; align-items: flex-start; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
