/* CleanQuote — direction artistique « Fiche de chantier »
   Papier chaud, encre vert sapin et lime du logo, Archivo (largeur variable), chiffres alignés. */

@font-face {
  font-family: "Archivo";
  src: url("./assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("./assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #102D24;
  --ink-2: #33493F;
  --ink-3: #56675E;
  --ink-soft: #1D4436;
  --lime: #CFF57F;
  --lime-2: #BCE760;
  --lime-wash: #EDF7D0;
  --paper: #F4F2E9;
  --paper-2: #EBE8DA;
  --sheet: #FFFFFF;
  --line: #D6D2C1;
  --line-soft: #E4E0D1;
  --warn: #A9401D;
  --warn-wash: #FAE7DE;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.5, .64, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1' y='1' width='18' height='18' rx='5' fill='%23CFF57F' stroke='%23102D24' stroke-width='1.6'/%3E%3Cpath d='m5.6 10.3 2.9 2.9 5.9-6.3' fill='none' stroke='%23102D24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }

/* ---------- Typographie ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.3; font-weight: 700; font-stretch: 72%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.tick { display: inline-block; flex: none; width: 18px; height: 18px; background: var(--tick) center / contain no-repeat; }
.display {
  font-size: clamp(40px, 1.5rem + 2.7vw, 62px);
  line-height: 1; font-weight: 800; font-stretch: 108%; letter-spacing: -.035em;
  text-wrap: balance;
}
.title {
  font-size: clamp(32px, 1.3rem + 2.4vw, 54px);
  line-height: 1.02; font-weight: 800; font-stretch: 110%; letter-spacing: -.03em;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1rem + .35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.marker {
  color: inherit; padding: 0 .05em; margin: 0 -.05em;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% .4em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.text-link { display: inline-flex; margin-top: 10px; font-weight: 650; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link::after { content: "→"; margin-left: 6px; transition: transform .2s var(--ease-out); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 650; font-stretch: 100%; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-arrow { transition: transform .2s var(--ease-out); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(16, 45, 36, .7); }
.btn-primary .btn-arrow { color: var(--lime); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(16, 45, 36, .75); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-secondary { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--lime); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(16, 45, 36, .07); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.brand .logo { height: 44px; width: auto; flex: none; }
.brand-name { font-size: 22px; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; line-height: 1; }
.beta-tag { align-self: center; padding: 4px 7px 3px; border-radius: 5px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 750; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.logo-doc, .logo-ring { fill: currentColor; }
.logo-fold, .logo-check { fill: var(--lime); }
.logo-doc { animation: logo-doc .6s var(--ease-out) both; }
.logo-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: logo-ring .85s .08s var(--ease-spring) both; }
.logo-fold { transform-box: fill-box; transform-origin: 0 100%; animation: logo-fold .45s .55s var(--ease-spring) both; }
.logo-wipe { transform-box: fill-box; transform-origin: 0 50%; animation: logo-wipe .55s .8s var(--ease-out) both; }
.brand:hover .logo-wipe { animation: logo-wipe-again .5s var(--ease-out) both; }
@keyframes logo-doc { from { opacity: 0; transform: translateY(10px); } }
@keyframes logo-ring { from { opacity: 0; transform: rotate(-80deg) scale(.6); } }
@keyframes logo-fold { from { transform: scale(0); } }
@keyframes logo-wipe { from { transform: scaleX(0); } }
@keyframes logo-wipe-again { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- En-tête et onglets ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 242, 233, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.header-inner > .brand { justify-self: start; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(16, 45, 36, .055); }
.tabs[hidden] { display: none; }
.tabs button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s;
}
.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs-marker {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: var(--w, 0px);
  transform: translateX(var(--x, 0px)); border-radius: 9px; background: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(16, 45, 36, .18);
  opacity: 0; transition: transform .38s var(--ease-out), width .38s var(--ease-out), opacity .2s;
}
.tabs.is-ready .tabs-marker { opacity: 1; }

/* ---------- Panneaux ---------- */
[data-panel][hidden] { display: none !important; }
[data-panel] { outline: none; }
[data-panel].is-entering { animation: panel-in .45s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel:not(.panel-home) { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.panel-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.panel-head .lead { max-width: 52ch; }
.panel-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Accueil : premier écran ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(32px, 4.5vw, 64px); row-gap: 18px;
  align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px);
}
.hero-copy { display: grid; justify-items: start; }
.hero-copy .display { margin: 20px 0 22px; }
.hero-copy .lead { max-width: 34ch; }
.price-ticket {
  display: inline-flex; align-items: stretch; margin-top: 28px;
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden;
}
.price-ticket strong {
  display: grid; place-items: center; padding: 8px 18px;
  background: var(--lime); border-right: 1.5px dashed var(--ink);
  font-size: 40px; font-weight: 800; font-stretch: 110%; letter-spacing: -.03em; line-height: 1;
}
.price-ticket span { display: grid; align-content: center; padding: 10px 18px 10px 16px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.price-ticket b { display: block; font-size: 17px; color: var(--ink); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { margin-top: 18px; max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.hero-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Aperçu du logiciel */
.hero-visual { position: relative; padding: 14px 0 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: -36px -48px 0 -24px; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.app-window {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 0 30px 60px -32px rgba(16, 45, 36, .55), 0 2px 0 rgba(16, 45, 36, .04);
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }
.app-crumb { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-crumb img { width: 14px; height: auto; flex: none; }
.app-crumb b { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.app-live { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px; background: var(--lime-wash); color: var(--ink); font-weight: 600; }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: #5E9C2E; animation: live 1.6s 1.4s ease-in-out 3; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(94, 156, 46, .2); } }
.app-body { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.app-inputs { display: grid; align-content: start; gap: 9px; padding: 16px; }
.app-step { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 12px; font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.app-step b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 11px; font-stretch: 100%; letter-spacing: 0; }
.app-field { display: grid; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #FBFAF5; }
.app-field > span { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.app-field strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-field small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.app-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-field-chips { border-color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 3px var(--lime-wash); }
.chips { display: flex; gap: 6px; margin-top: 5px; }
.chips button {
  flex: 1; min-width: 44px; height: 40px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--sheet);
  font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .15s;
}
.chips button:hover { border-color: var(--ink); }
.chips button:active { transform: scale(.95); }
.chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.app-result { position: relative; display: grid; align-content: start; padding: 18px 18px 16px; background: var(--ink); color: var(--paper); }
.app-result-label { font-size: 12px; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.app-result-title { margin-top: 10px; font-size: 13px; color: rgba(244, 242, 233, .72); }
.app-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 2px; }
.app-price strong { font-size: clamp(34px, 1.2rem + 1.9vw, 44px); font-weight: 800; font-stretch: 104%; letter-spacing: -.025em; line-height: 1.12; font-variant-numeric: tabular-nums; color: #FFF; }
.app-price span { font-size: 13px; color: rgba(244, 242, 233, .72); }
.cost-bar { display: flex; height: 10px; margin: 14px 0 10px; border-radius: 5px; overflow: hidden; background: rgba(244, 242, 233, .12); animation: bar-in .9s .6s var(--ease-out) both; }
.cost-bar span { height: 100%; transition: width .6s var(--ease-out); }
.cost-bar [data-bar="labor"] { background: rgba(244, 242, 233, .88); }
.cost-bar [data-bar="other"] { background: rgba(244, 242, 233, .42); }
.cost-bar [data-bar="profit"] { background: var(--lime); }
@keyframes bar-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ledger { margin: 0; display: grid; gap: 1px; }
.ledger div { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13.5px; }
.ledger dt { flex: 1; display: flex; align-items: baseline; min-width: 0; color: rgba(244, 242, 233, .8); }
.ledger dt::after { content: ""; flex: 1; min-width: 12px; margin: 0 2px 0 8px; border-bottom: 1.5px dotted rgba(244, 242, 233, .28); transform: translateY(-3px); }
.ledger dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .ledger-total { margin-top: 3px; padding-top: 8px; border-top: 1px solid rgba(244, 242, 233, .16); }
.ledger .ledger-total dt { color: var(--paper); }
.ledger .ledger-profit dt, .ledger .ledger-profit dd { color: var(--lime); }
.app-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }
.app-foot-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 650; border: 1px solid var(--line); }
.app-foot-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-sheet {
  position: relative; z-index: 3; width: min(300px, 60%); margin: -46px auto 0 7%;
  padding: 16px 16px 12px; background: #FFF; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 28px 48px -22px rgba(16, 45, 36, .5), 0 1px 0 rgba(16, 45, 36, .05);
  transform: rotate(-2.5deg); font-size: 12px; color: var(--ink-2);
}
.doc-sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 6px 6px 0 0; background: var(--ink); }
.doc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.doc-head img { width: 15px; height: auto; }
.doc-head span { font-size: 10.5px; font-weight: 750; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.doc-client { margin: 9px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.doc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.doc-line small { display: block; font-size: 11px; color: var(--ink-3); }
.doc-line b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; white-space: nowrap; }
.doc-total { border-bottom: 0; padding-top: 7px; }
.doc-total span, .doc-total b { font-weight: 800; color: var(--ink); font-size: 13px; }
.doc-private { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 8px; border-radius: 6px; background: var(--lime-wash); font-size: 11px; font-weight: 600; color: var(--ink); }
.doc-private .tick { width: 15px; height: 15px; }
.stamp {
  position: absolute; z-index: 4; right: -92px; bottom: -36px; display: grid; place-items: center; gap: 0;
  width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: -8px;
  background: rgba(244, 242, 233, .9); color: var(--ink); transform: rotate(-10deg);
  font-size: 13px; font-weight: 800; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; line-height: 1.05; text-align: center; align-content: center;
}
.visual-caption { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.visual-caption a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

/* Entrée du premier écran */
.hero-copy > * { animation: rise .7s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-copy > :nth-child(6) { animation-delay: .3s; }
.hero-copy .marker { animation: marker .75s .6s var(--ease-out) both; }
.app-window { animation: rise .8s .12s var(--ease-out) both; }
.doc-sheet { animation: doc-out .9s .7s var(--ease-out) both; }
.stamp { animation: stamp .55s 1.3s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes marker { from { background-size: 0% .4em; } }
@keyframes doc-out { from { opacity: 0; transform: translate(-24px, -56px) rotate(-7deg); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7) rotate(-18deg); } 65% { opacity: 1; transform: scale(.94) rotate(-9deg); } 100% { opacity: 1; transform: rotate(-10deg); } }

/* ---------- Accueil : les trois temps ---------- */
.steps { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); border-top: 1.5px solid var(--ink); }
.steps-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.steps-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.steps-list::before { content: ""; position: absolute; top: 21px; left: 44px; right: 0; border-top: 2px dashed var(--line); }
.step { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 10px; }
.step-num {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px;
  border: 1.5px solid var(--ink); border-radius: 12px; background: var(--lime);
  font-size: 20px; font-weight: 800; font-stretch: 110%; box-shadow: 0 0 0 6px var(--paper);
}
.step h3 { font-size: 23px; line-height: 1.15; font-weight: 750; font-stretch: 106%; letter-spacing: -.02em; }
.step > p { color: var(--ink-2); max-width: 34ch; }
.mini { align-self: end; margin-top: 10px; padding: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.mini-label { margin-bottom: 8px; font-size: 11px; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mini-receipt div { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.mini-receipt span { flex: 1; display: flex; align-items: baseline; color: var(--ink-2); }
.mini-receipt span::after { content: ""; flex: 1; min-width: 10px; margin-left: 8px; border-bottom: 1.5px dotted var(--line); transform: translateY(-3px); }
.mini-receipt b { font-weight: 650; font-variant-numeric: tabular-nums; }
.mini-receipt .mini-sum { margin-top: 4px; padding-top: 7px; border-top: 1.5px solid var(--ink); }
.mini-receipt .mini-sum span, .mini-receipt .mini-sum b { color: var(--ink); font-weight: 800; }
.mini-nego .nego-offer { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.mini-nego .nego-offer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge { position: relative; height: 12px; margin: 14px 0 26px; border-radius: 6px; background: var(--paper-2); }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: 16.1%; border-radius: 6px; background: var(--warn); transform-origin: 0 50%; }
.gauge-target { position: absolute; top: -5px; bottom: -5px; left: 25%; width: 2px; background: var(--ink); }
.gauge-target i { position: absolute; top: 100%; left: 50%; margin-top: 3px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 650; white-space: nowrap; color: var(--ink); }
.nego-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.nego-result b { font-variant-numeric: tabular-nums; }
.nego-result span { padding: 3px 8px; border-radius: 6px; background: var(--warn-wash); color: var(--warn); font-size: 12px; font-weight: 700; }
.mini-doc { position: relative; display: grid; place-items: center; padding: 18px 14px 14px; background: var(--paper-2); border-color: transparent; }
.mini-doc-sheet { position: relative; display: grid; gap: 7px; width: min(230px, 88%); padding: 14px 14px 12px; background: #FFF; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 28px -18px rgba(16, 45, 36, .5); transform: rotate(-1.5deg); }
.mini-doc-title { font-size: 9.5px; font-weight: 750; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; }
.mini-doc-sheet i { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); }
.mini-doc-sheet i.short { width: 60%; }
.mini-doc-total { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 7px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-2); }
.mini-doc-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pdf-tag { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800; font-stretch: 90%; letter-spacing: .06em; }
.next-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: clamp(48px, 6vw, 80px); }
.next-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--sheet); text-decoration: none; font-weight: 650;
  transition: border-color .18s, transform .18s var(--ease-out);
}
.next-links a:hover { border-color: var(--ink); transform: translateY(-1px); }
.next-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.next-links a:hover svg { transform: translateX(3px); }

/* ---------- Fonctions : fiche technique ---------- */
.spec { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.spec-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 220px; gap: 24px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color .25s;
}
.spec-num { font-size: 40px; font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.spec-row:hover .spec-num { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 8px; text-underline-offset: -2px; text-decoration-skip-ink: none; }
.spec-body { display: grid; gap: 8px; max-width: 62ch; }
.spec-tag { font-size: 12.5px; font-weight: 700; font-stretch: 72%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec-body h3 { font-size: clamp(22px, 1rem + .9vw, 28px); line-height: 1.12; font-weight: 750; font-stretch: 106%; letter-spacing: -.02em; }
.spec-body > p:not(.spec-tag) { color: var(--ink-2); }
.spec-where { justify-self: end; text-align: right; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; background: var(--paper-2); }
.spec-row-ai .spec-where { background: var(--lime-wash); color: var(--ink); }

/* ---------- Tarifs : tickets ---------- */
.tickets { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.ticket { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: 18px; }
.ticket-now { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 0 30px 60px -36px rgba(16, 45, 36, .5); }
.ticket-later { border: 1.5px dashed rgba(16, 45, 36, .45); color: var(--ink-2); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-top h3 { font-size: 20px; font-weight: 750; font-stretch: 106%; letter-spacing: -.01em; color: var(--ink); }
.pill { padding: 5px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12px; font-weight: 700; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pill-lime { background: var(--lime); color: var(--ink); }
.ticket-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; }
.ticket-price strong { font-size: clamp(64px, 3rem + 3vw, 96px); font-weight: 800; font-stretch: 112%; letter-spacing: -.045em; line-height: .95; color: var(--ink); }
.ticket-later .ticket-price strong { font-size: clamp(48px, 2.2rem + 2vw, 64px); color: var(--ink-2); }
.ticket-price span { font-size: 15px; color: var(--ink-3); }
.ticket-perf { position: relative; height: 0; margin: 24px calc(-1 * clamp(22px, 3vw, 32px)); border-top: 2px dashed var(--line); }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.ticket-perf::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket-perf::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket-later .ticket-perf::before, .ticket-later .ticket-perf::after { border-style: dashed; border-color: rgba(16, 45, 36, .45); }
.ticket-later > p { margin-top: 10px; max-width: 40ch; }
.checklist { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--tick) center / contain no-repeat; }
.ticket-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-3); }
.ticket-foot a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }

/* ---------- Questions ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1rem + .3vw, 19px); font-weight: 650; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--ink);
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23102D24' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='%23102D24' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq summary:hover::after { background-color: var(--lime); }
.faq details > p { max-width: 68ch; padding: 0 0 20px; color: var(--ink-2); }
.faq details[open] > p { animation: rise .35s var(--ease-out) both; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(244, 242, 233, .82); padding: clamp(36px, 5vw, 56px) 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 20px 40px; align-items: start; }
.footer-brand { display: grid; gap: 12px; }
.brand-light { color: var(--paper); }
.brand-light .logo { height: 40px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-links a:hover { background: rgba(244, 242, 233, .1); }
.footer-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(244, 242, 233, .16); font-size: 13px; color: rgba(244, 242, 233, .66); }
.site-footer :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px rgba(207, 245, 127, .5); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal .gauge-fill { transform: scaleX(0); }
.reveal.is-in .gauge-fill { transform: scaleX(1); transition: transform .9s .45s var(--ease-out); }

/* ---------- Tablette ---------- */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; justify-self: center; margin-top: 18px; }
  .visual-caption { grid-column: 1; max-width: 640px; justify-self: center; width: 100%; }
  .spec-row { grid-template-columns: 72px minmax(0, 1fr); }
  .spec-where { grid-column: 2; justify-self: start; text-align: left; }
  .tickets { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body.vitrine { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .brand .logo { height: 36px; }
  .brand-name { font-size: 19px; }
  .header-login, .header-inner .beta-tag { display: none; }
  .header-actions .btn-sm { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 0; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 0;
    background: rgba(244, 242, 233, .94); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabs button { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; height: 56px; padding: 0 2px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
  .tabs button svg { display: block; }
  .tabs-marker { top: 10px; height: 30px; width: 58px; border-radius: 15px; transform: translateX(calc(var(--x, 0px) + var(--w, 0px) / 2 - 29px)); }
  .hero { padding-top: 20px; }
  .hero-copy .display { margin: 16px 0 16px; }
  .eyebrow { font-size: 12px; letter-spacing: .1em; }
  .price-ticket { margin-top: 22px; }
  .price-ticket strong { font-size: 34px; padding: 8px 14px; }
  .price-ticket span { padding: 9px 14px 9px 13px; font-size: 13.5px; }
  .price-ticket b { font-size: 16px; }
  .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-note { font-size: 13.5px; }
  .hero-visual { margin-top: 8px; }
  .hero-visual::before { inset: -24px -16px 0; }
  .app-bar { padding: 10px 12px; font-size: 12px; }
  .app-live { padding: 3px 8px; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-inputs { padding: 12px; gap: 8px; }
  .app-step { display: none; }
  .app-inputs > .app-field:first-of-type { display: none; }
  .chips button { height: 44px; }
  .app-result { padding: 16px 14px 14px; }
  .app-foot { display: none; }
  .doc-sheet { width: min(270px, 74%); margin: -10px 4px 0 auto; }
  .stamp { width: 80px; height: 80px; right: auto; left: -50px; bottom: 4px; font-size: 10.5px; outline-offset: -6px; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps-list::before { top: 44px; bottom: 0; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .step { padding-left: 62px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step h3 { font-size: 21px; padding-top: 8px; }
  .mini { margin-top: 4px; }
  .next-links { display: grid; grid-template-columns: minmax(0, 1fr); }
  .next-links a { justify-content: space-between; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .spec-num { font-size: 30px; }
  .spec-where { grid-column: 1; }
  .panel-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .panel-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; margin-left: -12px; }
}
@media (max-width: 400px) {
  .header-inner .brand { gap: 8px; }
  .header-inner .brand-name { font-size: 17px; }
  .header-inner .brand .logo { height: 32px; }
  .header-actions .btn-sm { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 374px) {
  .header-actions .cta-long { display: none; }
  .display { font-size: 37px; }
  .price-ticket strong { font-size: 30px; }
  .app-price strong { font-size: 31px; }
  .ledger div { font-size: 12.5px; }
  .doc-sheet { width: 82%; }
}

/* ---------- Réduction des mouvements ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal .gauge-fill { transform: none; }
}


.pdf-tag { top: 12px; bottom: auto; }

/* ---------- Démo : fiche de chiffrage (simple.css reste chargé pour la fenêtre du document et l'impression) ---------- */
.demo-body .site-header { display: block; min-height: 0; padding: 0; border: 0; }
.demo-body .header-inner { grid-template-columns: 1fr auto; }
.demo-body .site-header nav { gap: 6px; }
.demo-body a:focus-visible, .demo-body button:focus-visible, .demo-body input:focus-visible, .demo-body summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
.demo-body .site-footer { display: block; margin: 0; border: 0; padding: clamp(36px, 5vw, 56px) 0; font-size: 15px; color: rgba(244, 242, 233, .82); }
.demo-body .site-footer p { margin: 0; }
.demo-body .site-footer > div.footer-grid { display: grid; align-items: start; gap: 20px 40px; }
.demo-body .site-footer .brand img.logo { width: auto; height: 40px; }
.demo-body .site-footer .footer-links { gap: 4px 6px; }
.demo-body .document-dialog { border: 1.5px solid var(--ink); border-radius: 16px; color: var(--ink); }
.demo-body .document-dialog::backdrop { background: rgba(16, 45, 36, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.demo-body .document-dialog > header, .demo-body .document-dialog > footer { background: var(--paper); }
.demo-body .document-dialog h2 { font-size: 21px; font-weight: 750; font-stretch: 106%; }
.demo-body .document-dialog > footer > p { font-size: 13px; color: var(--ink-2); }
.demo-body .close-button { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.demo-body .close-button:hover { background: var(--lime); }
.demo-body .button { min-height: 50px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 16px; font-weight: 650; }
.demo-body .button.primary { background: var(--ink); color: var(--paper); }
.demo-body .button.primary:hover { background: var(--ink-soft); }
.back-link { font-size: 14px; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px; }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-lime:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn-lime .btn-arrow { color: var(--ink); }
.btn-lime:hover .btn-arrow { transform: translateX(3px); }

.dm-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 56px; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
.dm-intro-copy { display: grid; justify-items: start; gap: 14px; }
.dm-intro .title { font-size: clamp(34px, 1.2rem + 2.6vw, 58px); }
.dm-intro .lead { max-width: 44ch; }
.dm-legend { display: grid; gap: 9px; margin: 0; padding: 0 0 6px; list-style: none; font-size: 15px; font-weight: 650; }
.dm-legend li { display: flex; align-items: center; gap: 10px; }
.dm-legend li > span:not(.tick) { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--lime); font-size: 13px; font-weight: 800; }
.dm-legend .tick { width: 28px; height: 28px; }
.dm-legend-end { margin-top: 3px; padding-top: 11px; border-top: 1.5px dashed var(--line); }

.dm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.dm-sheet { position: relative; padding: clamp(18px, 2.6vw, 32px); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(16, 45, 36, .55); }
.dm-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.dm-sheet-label { font-size: 12px; font-weight: 700; font-stretch: 72%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dm-sheet-label span { color: var(--ink); }
.dm-sheet-head h2 { margin-top: 6px; font-size: clamp(22px, 1rem + .9vw, 28px); line-height: 1.12; font-weight: 750; font-stretch: 106%; letter-spacing: -.02em; }
.dm-sheet-sub { margin-top: 3px; font-size: 14px; color: var(--ink-3); }
.dm-reset { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--sheet); font-size: 14px; font-weight: 650; cursor: pointer; transition: border-color .18s, background-color .18s; }
.dm-reset:hover { border-color: var(--ink); background: var(--lime-wash); }
.dm-error { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-size: 14px; font-weight: 600; }
.dm-section { min-inline-size: 0; margin: 0; padding: 24px 0 4px; border: 0; }
.dm-section + .dm-section { border-top: 1.5px dashed var(--line); }
.dm-section > legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0; font-size: 13px; font-weight: 750; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; }
.dm-section > legend + * { clear: both; }
.dm-section > legend span { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--lime); font-size: 13px; font-stretch: 100%; letter-spacing: 0; }
.dm-field { display: grid; gap: 8px; min-width: 0; margin-bottom: 20px; }
.dm-field > label { font-size: 15px; font-weight: 650; }
.dm-field > label span { font-weight: 450; color: var(--ink-3); }
.dm-hint { font-size: 13px; color: var(--ink-3); }
.dm-stepper { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 54px; align-items: center; max-width: 400px; height: 58px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFAF5; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.dm-stepper:focus-within { border-color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 4px var(--lime); }
.dm-stepper button { height: 100%; border: 0; border-radius: 10px; background: transparent; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .15s, transform .12s; }
.dm-stepper button:hover { background: var(--lime-wash); }
.dm-stepper button:active { transform: scale(.92); }
.dm-stepper input { width: 100%; min-width: 0; height: 100%; padding: 0 8px; border: 0; background: transparent; text-align: right; font-size: 26px; font-weight: 800; font-stretch: 104%; font-variant-numeric: tabular-nums; color: var(--ink); outline: none; box-shadow: none; }
.dm-unit { padding-right: 10px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.dm-sheet input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.dm-sheet input[type=number]::-webkit-inner-spin-button, .dm-sheet input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dm-visits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dm-chips { display: flex; flex: 1 1 220px; gap: 6px; }
.dm-chips button { flex: 1; min-width: 48px; height: 52px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--sheet); font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, transform .12s; }
.dm-chips button:hover { border-color: var(--ink); }
.dm-chips button:active { transform: scale(.95); }
.dm-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.dm-or { font-size: 13px; color: var(--ink-3); }
.dm-input-unit { position: relative; min-width: 0; }
.dm-input-unit input { width: 100%; height: 50px; padding: 0 104px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #FBFAF5; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.dm-input-unit input:hover { border-color: var(--ink-3); }
.dm-input-unit input:focus { outline: none; border-color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 4px var(--lime); }
.dm-input-unit > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-size: 13px; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.dm-input-small { flex: 0 0 116px; }
.dm-input-small input { height: 52px; padding-right: 56px; }
.dm-costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.dm-costs .dm-field { margin-bottom: 14px; }
.dm-costs .dm-field > label { font-size: 14px; }
.dm-margin { grid-template-columns: minmax(0, 1fr) auto; align-items: end; row-gap: 10px; }
.dm-margin output { grid-column: 2; grid-row: 1; font-size: 42px; font-weight: 800; font-stretch: 108%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dm-margin input[type=range], .dm-range-scale { grid-column: 1 / -1; }
.dm-margin input[type=range] { width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.dm-margin input[type=range]::-webkit-slider-runnable-track { height: 12px; border: 1.5px solid var(--ink); border-radius: 7px; background: linear-gradient(90deg, var(--lime) var(--fill, 41.7%), var(--sheet) var(--fill, 41.7%)); }
.dm-margin input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -9.5px; border: 3px solid var(--sheet); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 4px 10px rgba(16, 45, 36, .35); -webkit-appearance: none; }
.dm-margin input[type=range]::-moz-range-track { height: 12px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--sheet); }
.dm-margin input[type=range]::-moz-range-progress { height: 12px; border-radius: 7px; background: var(--lime); }
.dm-margin input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--sheet); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.dm-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

.dm-aside { display: grid; gap: 16px; }
.dm-ticket { padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 30px 60px -36px rgba(16, 45, 36, .7); }
.dm-ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dm-ticket-label { font-size: 12px; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.dm-ticket-sub { margin-top: 14px; font-size: 14px; color: rgba(244, 242, 233, .72); }
.dm-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.dm-price strong { font-size: clamp(40px, 1.6rem + 2vw, 54px); font-weight: 800; font-stretch: 104%; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #FFF; }
.dm-price span { font-size: 14px; color: rgba(244, 242, 233, .72); }
.dm-ttc { font-size: 13.5px; color: rgba(244, 242, 233, .72); }
.dm-ttc span { color: var(--paper); font-weight: 650; font-variant-numeric: tabular-nums; }
.dm-ticket .cost-bar { margin: 16px 0 10px; }
.dm-ticket .app-live { font-size: 12.5px; }
.dm-ticket-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(244, 242, 233, .22); }
.dm-ticket-foot span { display: block; font-size: 12.5px; color: rgba(244, 242, 233, .66); }
.dm-ticket-foot b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dm-ticket-foot div:last-child { text-align: right; }
[data-flash] .is-changed { animation: value-flash .7s var(--ease-out); }
@keyframes value-flash { from { color: var(--lime); text-shadow: 0 0 22px rgba(207, 245, 127, .55); } }
.dm-doc { position: relative; display: grid; gap: 14px; width: 100%; padding: 22px 18px 16px; border: 0; border-radius: 16px; background: var(--paper-2); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s; }
.dm-doc:hover { background: #E3DFCF; }
.dm-doc:disabled { cursor: not-allowed; opacity: .55; }
.dm-doc-sheet { position: relative; display: grid; gap: 6px; width: min(330px, 90%); margin: 0 auto; padding: 16px 16px 12px; background: #FFF; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 22px 36px -22px rgba(16, 45, 36, .55); transform: rotate(-1.5deg); transition: transform .35s var(--ease-out); font-size: 12px; color: var(--ink-2); }
.dm-doc:hover .dm-doc-sheet { transform: rotate(0deg) translateY(-3px); }
.dm-doc-sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 5px 5px 0 0; background: var(--ink); }
.dm-doc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; font-weight: 750; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.dm-doc-head img { width: 14px; height: auto; }
.dm-doc-client { font-size: 13px; font-weight: 700; color: var(--ink); }
.dm-doc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.dm-doc-line small { display: block; font-size: 11px; color: var(--ink-3); }
.dm-doc-line b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-doc-total { border-bottom: 0; }
.dm-doc-total span, .dm-doc-total b { font-size: 13px; font-weight: 800; color: var(--ink); }
.dm-doc-private { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; background: var(--lime-wash); font-size: 11px; font-weight: 600; color: var(--ink); }
.dm-doc-private .tick { width: 15px; height: 15px; }
.dm-doc .stamp { top: -24px; right: -30px; bottom: auto; left: auto; width: 84px; height: 84px; font-size: 10.5px; outline-offset: -6px; }
.dm-doc-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); font-size: 16px; font-weight: 650; transition: background-color .18s; }
.dm-doc:hover .dm-doc-cta { background: var(--lime); }
.dm-doc-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.dm-doc:hover .dm-doc-cta svg { transform: translateX(3px); }
.dm-note { font-size: 13px; color: var(--ink-3); text-align: center; }
.dm-cta-wrap { margin-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); }
.dm-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px); border-radius: 22px; background: var(--ink); color: var(--paper); }
.dm-cta .title { font-size: clamp(28px, 1rem + 2vw, 44px); color: var(--paper); }
.dm-cta p { margin-top: 10px; color: rgba(244, 242, 233, .75); }
.dm-cta :focus-visible { outline-color: var(--paper); }
.dm-sticky { display: none; }
@media (min-width: 1024px) and (min-height: 820px) { .dm-aside { position: sticky; top: calc(var(--header-h) + 18px); } }
@media (max-width: 1023px) {
  .dm-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-aside { width: 100%; max-width: 640px; justify-self: center; }
  body.demo-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dm-sticky {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper);
    box-shadow: 0 -12px 30px -14px rgba(16, 45, 36, .55); transition: transform .3s var(--ease-out);
  }
  .dm-sticky.is-hidden { transform: translateY(115%); }
  .dm-sticky p { display: grid; }
  .dm-sticky strong { font-size: 22px; font-weight: 800; font-stretch: 104%; line-height: 1.15; font-variant-numeric: tabular-nums; color: #FFF; }
  .dm-sticky span { font-size: 12.5px; color: rgba(244, 242, 233, .72); }
  .dm-sticky b { color: var(--lime); font-weight: 650; font-variant-numeric: tabular-nums; }
}
@media (max-width: 760px) {
  .demo-body .header-login { display: none; }
  .dm-intro { grid-template-columns: minmax(0, 1fr); }
  .dm-legend { display: none; }
  .dm-chips { flex: 1 1 100%; }
  .dm-cta { grid-template-columns: minmax(0, 1fr); }
  .dm-cta .btn { width: 100%; }
}
@media (max-width: 420px) {
  .dm-costs { grid-template-columns: minmax(0, 1fr); }
  .dm-stepper { grid-template-columns: 50px minmax(0, 1fr) auto 50px; }
  .dm-stepper input { font-size: 23px; }
  .dm-doc .stamp { right: -10px; }
}
@media (max-width: 374px) { .demo-body .header-inner .brand-name { display: none; } }
@media (max-width: 760px) { .demo-body .site-footer > div.footer-grid { grid-template-columns: minmax(0, 1fr); } }
.demo-body .document-dialog > header, .demo-body .document-dialog > footer { position: sticky; z-index: 1; }
.demo-body .document-dialog > header { top: 0; border-bottom: 1px solid var(--line); }
.demo-body .document-dialog > footer { bottom: 0; border-top: 1px solid var(--line); }
