/* ==========================================================================
   Almeo — feuille de style principale
   ========================================================================== */

:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --sand: #f4efe6;
  --sand-2: #efe9de;
  --sand-3: #e6e0d4;
  --ink: #1e2a2b;
  --muted: #4a5658;
  --muted-2: #6a7577;
  --muted-3: #a4ada9;
  --green: #2f6b5c;
  --green-dark: #234f45;
  --green-light: #e6efe9;
  --green-soft: #d8e6df;
  --mint: #9fd3c0;
  --terra: #c47856;
  --terra-light: #f8e9e1;
  --line: rgba(30, 42, 43, 0.08);
  --line-strong: rgba(30, 42, 43, 0.16);
  --shadow-card: 0 1px 2px rgba(30, 42, 43, 0.04), 0 12px 32px -20px rgba(30, 42, 43, 0.25);
  --shadow-app: 0 2px 4px rgba(30, 42, 43, 0.05), 0 40px 80px -40px rgba(30, 42, 43, 0.45);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --gutter: clamp(20px, 5.5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.eyebrow.on-dark { color: var(--mint); }
.eyebrow.on-green { color: #c7e5d8; }

.container { width: min(1440px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 110px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; text-wrap: pretty; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--green); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--green-dark); }
.btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--sand-2); color: var(--muted); white-space: nowrap; }
.chip-urgent { background: var(--terra-light); color: var(--terra); }
.chip-green { background: var(--green-light); color: var(--green); }
.chip-dark { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 30px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 0 20px; }
.nav-mobile a { padding: 12px 6px; font-size: 18px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav.open .nav-mobile { display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(40px, 6vw, 70px) clamp(70px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; position: relative; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-green { top: -140px; right: -120px; width: 720px; height: 720px; background: radial-gradient(circle at 40% 40%, rgba(47,107,92,0.22), rgba(47,107,92,0) 62%); }
.glow-terra { bottom: -180px; left: -160px; width: 620px; height: 620px; background: radial-gradient(circle at 50% 50%, rgba(196,120,86,0.18), rgba(196,120,86,0) 62%); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; text-wrap: pretty; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted-2); padding-top: 6px; flex-wrap: wrap; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }

.hero-visual { position: relative; z-index: 2; min-height: 560px; }
.app-preview { position: absolute; inset: 20px 0 0 30px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.app-preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e0d6c8; display: block; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--bg); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar.terra { background: var(--terra); }
.avatar.dark { background: var(--ink); }
.avatar.empty { background: #e0d6c8; border: 2px dashed #b8b0a4; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 22px 8px; }
.kpi { background: var(--sand); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.kpi strong { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.kpi.good { background: var(--green-light); }
.kpi.good small, .kpi.good strong { color: var(--green); }
.preview-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 22px 22px; }
.preview-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.terra { background: var(--terra); } .dot.green { background: var(--green); } .dot.grey { background: #b8b0a4; }
.preview-row .txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.preview-row .txt b { font-size: 14px; font-weight: 600; }
.preview-row .txt small { font-size: 12px; color: var(--muted-2); }
.float-chip { position: absolute; left: -30px; bottom: 60px; padding: 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-card); animation: float 7s ease-in-out infinite; }
.float-chip b { display: block; font-size: 13px; font-weight: 600; }
.float-chip small { font-size: 12px; color: #9fb0ac; }

.rise { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation: rise 900ms 150ms cubic-bezier(.2,.7,.2,1) both; }
.rise-3 { animation: rise 1100ms 300ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise, .rise-2, .rise-3, .float-chip { animation: none; }
}

/* ==========================================================================
   Pain points
   ========================================================================== */
.pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.pain { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 200px; }
.pain h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.pain p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Process (dark block)
   ========================================================================== */
.process { background: var(--ink); color: var(--bg); border-radius: 32px; padding: clamp(48px, 6vw, 90px) clamp(28px, 5.5vw, 80px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 5vw, 80px); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; top: -200px; right: -100px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,92,0.45), rgba(47,107,92,0) 65%); pointer-events: none; }
.process-intro { display: flex; flex-direction: column; gap: 18px; position: relative; }
.process-intro h2 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; text-wrap: pretty; }
.process-intro p { font-size: 17px; line-height: 1.6; color: #b9c5c2; text-wrap: pretty; }
.steps { display: flex; flex-direction: column; position: relative; }
.step { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(247,243,236,0.12); }
.step:last-child { border-bottom: 0; }
.step-n { font-family: var(--serif); font-size: 30px; color: var(--mint); width: 48px; flex-shrink: 0; line-height: 1.2; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.55; color: #b9c5c2; margin-top: 6px; }

/* ==========================================================================
   Demos
   ========================================================================== */
.demo-block { display: flex; flex-direction: column; gap: 26px; margin-top: 56px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.demo-title { display: flex; align-items: center; gap: 16px; }
.demo-title .n { font-family: var(--serif); font-size: 30px; color: var(--green); }
.demo-title h3 { font-size: 24px; font-weight: 600; }
.demo-title p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.demo-hint { font-size: 13px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }

.app { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-app); background: var(--surface); border: 1px solid var(--line); }
.app-1 { display: grid; grid-template-columns: 220px 1fr 340px; height: 760px; }

/* sidebar */
.app-side { background: var(--ink); color: var(--bg); padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.app-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.app-side-brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-side-brand b { font-size: 14px; font-weight: 600; display: block; }
.app-side-brand small { font-size: 11px; color: #9fb0ac; }
.side-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #9fb0ac; background: transparent; border: 0; width: 100%; text-align: left; transition: background .15s, color .15s; }
.side-item span { display: inline-flex; align-items: center; gap: 10px; }
.side-item:hover { background: rgba(247,243,236,0.06); color: var(--bg); }
.side-item.active { background: rgba(247,243,236,0.1); color: var(--bg); font-weight: 600; }
.side-item.active svg { stroke: var(--mint); }
.side-badge { font-size: 11px; background: var(--terra); color: #fff; padding: 2px 7px; border-radius: 999px; }
.side-today { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(47,107,92,0.35); display: flex; flex-direction: column; gap: 8px; }
.side-today b { font-size: 12px; color: #c7e5d8; font-weight: 600; }
.side-today p { font-size: 13px; line-height: 1.4; }

/* main */
.app-main { background: var(--sand); display: flex; flex-direction: column; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-top-left { display: flex; align-items: center; gap: 12px; flex-grow: 1; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; width: 200px; max-width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--sand); color: var(--muted-2); font-size: 13px; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.select { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; background: var(--surface); }
.select select { border: 0; background: transparent; outline: none; font-size: 13px; font-weight: 500; -webkit-appearance: none; appearance: none; padding-right: 4px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--sand); border: 0; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn .ping { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); border: 2px solid var(--sand); }
.btn-app { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; border: 0; transition: background .15s; }
.btn-app:hover { background: var(--green); }
.btn-app.green { background: var(--green); }
.btn-app.green:hover { background: var(--green-dark); }
.btn-app.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-app.ghost:hover { background: var(--sand); }

.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px 26px 4px; }
.kpi-card { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.kpi-card small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.kpi-card .v { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi-card .v strong { white-space: nowrap; }
.kpi-card .v strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.kpi-card .v em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.kpi-card .v em.warn { color: var(--terra); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.bars i { flex-grow: 1; background: var(--green-soft); border-radius: 3px; display: block; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.bars i.now { background: var(--green); }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 26px 26px; flex-grow: 1; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; border-radius: 14px; transition: background .15s; }
.col.over { background: rgba(47,107,92,0.08); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.col-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.col-head small { font-size: 12px; color: var(--muted-2); }
.col-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 60px; padding: 2px; margin: -2px; }
.ticket { background: var(--surface); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); cursor: grab; transition: box-shadow .15s, border-color .15s, transform .15s; user-select: none; }
.ticket:hover { box-shadow: 0 8px 20px -12px rgba(30,42,43,0.35); }
.ticket.selected { border: 2px solid var(--green); box-shadow: 0 10px 24px -12px rgba(47,107,92,0.5); padding: 13px; }
.ticket.dragging { opacity: .5; transform: rotate(1.5deg); }
.ticket.done { opacity: .75; }
.ticket.done .t-title { text-decoration: line-through; color: var(--muted-2); }
.ticket.new { animation: pop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.t-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.t-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.t-photo { height: 64px; border-radius: 10px; background: linear-gradient(135deg, #cfc4b3, #a89d8d); display: flex; align-items: center; justify-content: center; }
.t-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-meta small { font-size: 12px; color: var(--muted-2); }
.t-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.t-done { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--green); font-weight: 600; }
.progress { height: 6px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* detail */
.app-detail { background: var(--surface); border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; min-width: 0; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.detail-head h4 { font-size: 18px; font-weight: 600; line-height: 1.25; margin: 6px 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-grid div { background: var(--sand); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.detail-grid small { font-size: 11px; color: var(--muted-2); }
.detail-grid b { font-size: 13px; font-weight: 600; }
.label { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tl-rail i { width: 10px; height: 10px; border-radius: 50%; background: var(--green-soft); margin-top: 4px; display: block; flex-shrink: 0; }
.tl:first-child .tl-rail i { background: var(--green); }
.tl-rail span { width: 2px; flex-grow: 1; background: var(--sand-3); display: block; }
.tl:last-child .tl-rail span { display: none; }
.tl-body { padding-bottom: 12px; }
.tl-body b { font-size: 13px; font-weight: 600; display: block; }
.tl-body small { font-size: 12px; color: var(--muted-2); }
.comment-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 13px; }
.comment-box input { border: 0; outline: none; background: transparent; width: 100%; }
.detail-actions { display: flex; gap: 8px; }
.detail-actions .btn-app { flex-grow: 1; justify-content: center; height: 40px; }
.detail-actions .icon-btn { width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent; }
.detail-empty { color: var(--muted-2); font-size: 14px; text-align: center; padding: 40px 10px; line-height: 1.5; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(30,42,43,0.45); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(520px, 100%); background: var(--surface); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px -30px rgba(30,42,43,0.6); animation: pop .3s cubic-bezier(.2,.7,.2,1); }
.modal h4 { font-size: 20px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.field input, .field select, .field textarea { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); outline: none; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,107,92,0.15); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: var(--sand); color: var(--muted); border: 0; transition: background .15s, color .15s; }
.pill.on { background: var(--ink); color: var(--bg); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--sand); font-size: 13px; font-weight: 500; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--sand-3); position: relative; border: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--terra); }
.switch.on::after { transform: translateX(16px); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200; box-shadow: 0 20px 40px -20px rgba(30,42,43,0.6); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Demo 2 : registre ---- */
.demo2-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: end; }
.app-2 { display: flex; flex-direction: column; height: 660px; }
.app2-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app2-top-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.app2-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.app2-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.tabs { display: flex; gap: 22px; font-size: 13px; font-weight: 500; color: var(--muted-2); }
.tab { background: none; border: 0; padding: 0 0 4px; color: inherit; font-weight: 500; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--green); }
.app2-body { display: grid; grid-template-columns: 1.35fr 1fr; flex-grow: 1; min-height: 0; }
.app2-left { padding: 22px 24px; background: var(--sand); display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.app2-right { padding: 22px 24px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; overflow-y: auto; min-width: 0; }
.occ-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.occ-head b { font-size: 15px; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sector { display: flex; flex-direction: column; gap: 6px; }
.sector-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); font-weight: 500; }
.places { display: grid; gap: 5px; }
.place { height: 34px; border-radius: 7px; border: 0; padding: 0; background: var(--sand-3); transition: transform .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: 2px; cursor: pointer; }
.place:hover { transform: translateY(-2px); }
.place.occ { background: var(--green); }
.place.res { background: var(--terra); }
.place.sel { outline-color: var(--ink); }
.occ-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.occ-kpi { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); }
.occ-kpi.ring { flex-direction: row; align-items: center; gap: 14px; }
.occ-kpi small { font-size: 11px; color: var(--muted-2); }
.occ-kpi strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.occ-kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--green); }
.occ-kpi em.warn { color: var(--terra); }
.ring-svg circle.val { transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1); }

.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .big { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-head b { font-size: 17px; font-weight: 600; display: block; }
.profile-head small { font-size: 12px; color: var(--muted-2); }
.goals { display: flex; flex-direction: column; gap: 6px; }
.goal { display: flex; align-items: center; gap: 10px; font-size: 13px; background: none; border: 0; padding: 0; text-align: left; }
.goal i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #d8d0c2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, border-color .15s; }
.goal.done i { background: var(--green); border-color: var(--green); }
.goal small { font-size: 11px; color: var(--muted-2); }
.presence { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.presence i { height: 14px; border-radius: 3px; background: var(--green); display: block; }
.presence i.abs { background: var(--terra); }
.presence i.off { background: var(--sand-3); }
.doc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--sand); font-size: 13px; }
.doc span { flex-grow: 1; }
.doc small { font-size: 11px; color: var(--muted-2); }
.notice { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--green-light); font-size: 13px; color: var(--green-dark); }

.list-table { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; align-items: center; border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; text-align: left; width: 100%; }
.list-row:hover { border-color: var(--line-strong); }
.list-row.sel { border-color: var(--green); }
.list-row b { font-weight: 500; }
.list-row span { color: var(--muted); }
.list-head { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 4px 14px 0; }
.list-empty { font-size: 13px; color: var(--muted-2); padding: 20px; text-align: center; }
.report { background: var(--surface); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.report h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.report td:last-child { text-align: right; font-weight: 600; }
.report-progress { height: 8px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.report-progress i { display: block; height: 100%; background: var(--green); width: 0; transition: width 1.6s cubic-bezier(.2,.7,.2,1); }

/* phone */
.phone-wrap { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.phone { width: 300px; max-width: 100%; height: 600px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px rgba(30,42,43,0.6); }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--sand); overflow: hidden; display: flex; flex-direction: column; }
.phone-head { padding: 54px 20px 14px; background: var(--surface); }
.phone-head small { font-size: 12px; color: var(--muted-2); display: block; }
.phone-head b { font-size: 20px; font-weight: 600; }
.phone-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.phone-field label { font-size: 11px; font-weight: 600; color: var(--muted-2); display: block; margin-bottom: 6px; }
.phone-select { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; }
.phone-photo { height: 110px; border-radius: 14px; background: linear-gradient(135deg, #cfc4b3, #a89d8d); display: flex; align-items: center; justify-content: center; position: relative; }
.phone-photo small { position: absolute; bottom: 8px; right: 8px; font-size: 10px; font-weight: 600; background: rgba(30,42,43,0.7); color: var(--bg); padding: 3px 8px; border-radius: 999px; }
.phone-send { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; background: var(--green); color: var(--bg); font-size: 15px; font-weight: 600; border: 0; width: 100%; transition: background .15s; }
.phone-send:hover { background: var(--green-dark); }
.phone-caption { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; max-width: 260px; }

/* ==========================================================================
   Capabilities
   ========================================================================== */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.cap { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: transform .2s, box-shadow .2s; }
.cap:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.cap svg { flex-shrink: 0; }

/* ==========================================================================
   Why
   ========================================================================== */
.why { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.why .section-head { position: sticky; top: 100px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-card { padding: 28px; border-radius: 20px; background: var(--sand-2); display: flex; flex-direction: column; gap: 12px; }
.why-card h3 { font-size: 18px; font-weight: 600; }
.why-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Offer
   ========================================================================== */
.offer { padding: clamp(44px, 6vw, 80px); border-radius: 32px; background: var(--green); color: var(--bg); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; bottom: -260px; left: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(247,243,236,0.16), rgba(247,243,236,0) 65%); pointer-events: none; }
.offer-copy { display: flex; flex-direction: column; gap: 20px; position: relative; }
.offer-copy h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; text-wrap: pretty; }
.offer-copy p { font-size: 17px; line-height: 1.6; color: #d6e8e0; max-width: 560px; text-wrap: pretty; }
.offer-box { position: relative; background: rgba(247,243,236,0.1); border: 1px solid rgba(247,243,236,0.18); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.offer-box .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.offer-box .big strong { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 5vw, 72px); line-height: 1; }
.offer-box .big small { font-size: 15px; color: #c7e5d8; }
.slots { display: flex; gap: 8px; }
.slots i { flex-grow: 1; height: 8px; border-radius: 999px; background: rgba(247,243,236,0.3); display: block; }
.slots i.taken { background: var(--bg); }
.offer-box b { font-size: 15px; font-weight: 600; }

/* ==========================================================================
   About / Contact / Footer
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-id { display: flex; align-items: center; gap: 24px; }
.about-id .mono { width: 120px; height: 120px; border-radius: 36px; background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-id b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; display: block; }
.about-id small { font-size: 15px; color: var(--muted); }
.about-quote { display: flex; flex-direction: column; gap: 18px; }
.about-quote p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; text-wrap: pretty; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; text-wrap: pretty; }
.contact-copy p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; font-size: 16px; padding-top: 8px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--green); }
.form { padding: 40px; border-radius: 28px; display: flex; flex-direction: column; gap: 18px; }
.form .field input, .form .field textarea { height: 50px; }
.form .field textarea { height: 130px; }
.form-note { font-size: 13px; color: var(--muted-2); text-align: center; }
.form-success { display: none; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 30px 10px; }
.form-success b { font-size: 20px; font-weight: 600; }
.form.sent form { display: none; }
.form.sent .form-success { display: flex; }
.hp { position: absolute; left: -9999px; }

.footer { border-top: 1px solid var(--line-strong); padding: 34px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted-2); flex-wrap: wrap; }
.footer .brand-name { font-size: 24px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-2); }
.footer-links a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 760px; padding-block: 60px 100px; display: flex; flex-direction: column; gap: 28px; }
.legal h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.06; }
.legal h2 { font-size: 24px; margin-top: 18px; }
.legal p { color: var(--muted); line-height: 1.65; }
.legal .todo { background: var(--terra-light); color: var(--terra); padding: 2px 6px; border-radius: 6px; font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .app-1 { grid-template-columns: 200px 1fr; height: auto; }
  .app-detail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .kanban { min-height: 520px; }
  .pain-grid, .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 520px; }
  .app-preview { inset: 10px 0 0 0; }
  .float-chip { left: 8px; bottom: 30px; }
  .process, .why, .offer, .about, .contact { grid-template-columns: 1fr; }
  .why .section-head { position: static; }
  .demo2-grid { grid-template-columns: 1fr; }
  .app-2 { height: auto; }
  .app2-body { grid-template-columns: 1fr; }
  .app2-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .phone-wrap { padding-top: 10px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-name { font-size: 26px; }
  .hero-visual { min-height: 0; height: auto; }
  .app-preview { position: static; }
  .float-chip { position: static; margin-top: 14px; width: fit-content; }
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 14px 4px; }
  .kpi strong { font-size: 26px; }
  .preview-list { padding: 10px 14px 14px; }
  .app-1 { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 4px; }
  .app-side-brand { width: 100%; padding-bottom: 10px; }
  .side-item { width: auto; padding: 8px 10px; font-size: 13px; }
  .side-item .lbl { display: none; }
  .side-today { display: none; }
  .kanban { display: flex; overflow-x: auto; padding: 14px; gap: 12px; scroll-snap-type: x mandatory; }
  .col { flex: 0 0 82%; scroll-snap-align: start; }
  .kpi-strip { padding: 14px 14px 0; }
  .app-top { padding: 12px 14px; }
  .search { width: 100%; }
  .pain-grid, .caps, .why-grid, .field-row, .detail-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .about-id .mono { width: 90px; height: 90px; font-size: 42px; border-radius: 28px; }
  .occ-kpis { grid-template-columns: 1fr; }
  .list-row, .list-head { grid-template-columns: 1.4fr 1fr; }
  .list-row span:last-child, .list-head span:last-child { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
