/* ==========================================================
   SIGNE DIGITAL — "Le Cachet"
   A signed business document: paper, ink green, one red stamp.
   Mobile first (390px), then tablet (720px) and desktop (960px).
   ========================================================== */

/* ---------- 1. Design tokens: change colours & fonts here ---------- */
:root {
  --paper:   #F4F1EA;   /* page background */
  --sheet:   #FBF9F4;   /* cards */
  --ink:     #0F2A1F;   /* main text, dark green-black */
  --ink-2:   #45574D;   /* secondary text */
  --line:    #D8D1C2;   /* thin rules */
  --red:     #B3302A;   /* the stamp: use sparingly */
  --gold:    #A07A2C;   /* fine accents */
  --wa:      #157A43;   /* WhatsApp buttons (white text passes contrast) */
  --wa-dark: #0F5E33;
  --night:   #0F2A1F;   /* contact band */
  --on-night:#F4F1EA;
  --device:  #16191A;

  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Web fonts, hosted in /fonts (Latin characters only, weights 500–600 / 400–600) */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

/* Fallback fonts sized close to the web fonts, so text does not jump when they load */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("Roboto"); size-adjust: 97%; ascent-override: 98%; descent-override: 25%; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: italic; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.25em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-line .ico { transition: transform .2s var(--ease); }
.btn-line:hover .ico { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: .9em 1.5em; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: .45em .95em; font-size: .9rem; }

/* ---------- 4. Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 1.15rem/1 var(--serif); margin-right: auto; padding: 8px 0; }
.brand-mark { width: 34px; height: 34px; color: var(--red); transform: rotate(-10deg); }
.nav { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font: 600 .85rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-2); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.head-wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head-wa { padding: 0; width: 44px; min-height: 44px; }

/* ---------- 5. Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 36px; position: relative; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--red); flex: none; }
/* Headline + stamp: the hero moment. The stamp slams down next to "Signé." */
.hero-title {
  font-size: clamp(2.4rem, 10.4vw, 5.6rem);
  font-weight: 560; line-height: 1.03; letter-spacing: -.012em;
  margin-bottom: 54px; max-width: 11em;
}
.hero-title em { color: var(--red); font-weight: 500; }
.signed { position: relative; display: inline-block; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; margin-bottom: 28px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }

/* Signature under the buttons: drawn when it scrolls into view */
.signoff { position: relative; }
.signature-wrap { max-width: 300px; }
.signature { width: 100%; max-width: 280px; height: auto; color: var(--ink); overflow: visible; }
.signature path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sig-line { display: block; height: 1px; background: var(--ink); opacity: .35; margin: -6px 0 10px; }
.sig-name { font: 600 .95rem/1.3 var(--sans); margin: 0 0 2px; }
.sig-role { font-size: .88rem; color: var(--ink-2); margin: 0; max-width: 26em; }

.stamp { color: var(--red); }
.hero-stamp {
  position: absolute; left: calc(100% + 10px); top: -4px;
  width: 98px; height: 98px; max-width: none;
  transform: rotate(-14deg); opacity: .92;
  pointer-events: none;
}

/* Animation (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-stamp { opacity: 0; animation: stamp .55s .6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
  .js .signature path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .sig-line { transform-origin: left; transform: scaleX(0); }
  .js .signoff.is-in .signature path { animation: draw 1.4s .25s var(--ease) forwards; }
  .js .signoff.is-in .signature path:nth-child(2) { animation-duration: .5s; animation-delay: 1.5s; }
  .js .signoff.is-in .signature path:nth-child(3) { animation-duration: .15s; animation-delay: 1.35s; }
  .js .signoff.is-in .sig-line { animation: grow .8s .1s var(--ease) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes stamp {
  0%   { opacity: 0; transform: rotate(-24deg) scale(1.9); }
  55%  { opacity: .95; transform: rotate(-12deg) scale(.94); }
  100% { opacity: .92; transform: rotate(-14deg) scale(1); }
}

/* ---------- 6. Facts (document header table) ---------- */
.facts {
  display: grid; grid-template-columns: 1fr 1fr; margin: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 14px; }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .95rem; line-height: 1.4; }

/* ---------- 7. Sections ---------- */
.block { padding-top: 72px; padding-bottom: 8px; }
.sec-head { margin-bottom: 32px; }
.sec-num {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: italic 500 1rem/1 var(--serif); color: var(--red);
}
.sec-num::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.sec-num--light { color: #E8857C; }
.sec-head h2 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); letter-spacing: -.02em; }
.sec-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 1.05rem; }

.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 8. Work: the dossier ---------- */
.dossier {
  position: relative; background: var(--sheet);
  border: 1px solid var(--line); border-radius: 2px var(--radius) var(--radius) var(--radius);
  padding: 28px 16px 24px; margin-top: 20px;
  box-shadow: 0 1px 0 rgba(15, 42, 31, .04), 0 18px 40px -28px rgba(15, 42, 31, .35);
}
.dossier-tab {
  position: absolute; left: -1px; top: -31px; margin: 0;
  background: var(--sheet); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 7px 16px 6px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}

.stage {
  --p: 1; /* 0 = tilted, 1 = straight (set by JS while scrolling) */
  position: relative; padding: 8px 4px 46px 0; margin-bottom: 30px;
}
.clip { position: absolute; z-index: 3; width: 18px; left: 28px; top: -22px; color: #8D9196; }

/* Device frames */
.browser {
  position: relative; background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #CFC8B8;
  box-shadow: 0 24px 50px -26px rgba(15, 42, 31, .55);
}
.browser-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; background: #ECE8DF; border-bottom: 1px solid #DCD5C6; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #C9C2B3; }
.browser-bar span {
  margin-left: 8px; flex: 1; max-width: 220px; height: 15px; border-radius: 8px; background: #fff;
  font: 500 9px/15px var(--sans); color: #6D7470; padding-left: 8px; overflow: hidden; white-space: nowrap;
}
.browser img { width: 100%; aspect-ratio: 1200 / 549; object-fit: cover; object-position: top; background: #0B1121; }

.phone {
  position: relative; background: var(--device); border-radius: 26px; padding: 6px;
  box-shadow: 0 0 0 1px #2C3134 inset, 0 28px 50px -24px rgba(15, 42, 31, .7);
}
.phone::before { /* camera pill */
  content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 26%; height: 9px;
  transform: translateX(-50%); background: var(--device); border-radius: 9px;
}
.phone-screen { border-radius: 20px; overflow: hidden; background: #fff; aspect-ratio: 480 / 984; }
.phone-screen--dark { background: #0B1121; }
.phone-screen img { width: 100%; }

.stage .browser {
  width: 94%;
  transform: rotate(calc((1 - var(--p)) * -3.5deg)) translateY(calc((1 - var(--p)) * 14px));
  transform-origin: 20% 80%;
}
.stage .phone {
  position: absolute; right: 0; bottom: 0; width: 34%; max-width: 230px;
  transform: rotate(calc(2deg + (1 - var(--p)) * 7deg)) translateY(calc((1 - var(--p)) * 40px));
}

.case .kicker { font: 600 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.case h3 { font-size: 2.2rem; margin-bottom: 12px; }
.case-desc { color: var(--ink-2); }
.built-title { font: 600 .9rem/1.3 var(--sans); margin: 20px 0 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 10px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--red);
}
.text-link:hover .ico { transform: translateX(3px); }
.text-link .ico { transition: transform .2s var(--ease); }

/* Attachments: swipe on phones, grid on desktop */
.attachments { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.att-title { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.att-list {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.att-list li { flex: 0 0 46%; scroll-snap-align: start; }
.att-list li.att-wide { flex-basis: 82%; }
.att-list figure { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.att-list figcaption { font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.att-list figcaption b { font: 600 1rem/1 var(--serif); color: var(--red); margin-right: 4px; }
.phone--sm { border-radius: 20px; padding: 5px; }
.phone--sm::before { top: 9px; height: 7px; }
.phone--sm .phone-screen { border-radius: 15px; }
.browser--sm .browser-bar { height: 18px; }
.browser--sm img { aspect-ratio: 800 / 366; }
.att-wide figure { justify-content: flex-start; }

/* Empty slot: "your business, here" */
.slot {
  position: relative; margin-top: 64px; padding: 30px 20px 26px;
  border: 1.5px dashed #BDB4A2; border-radius: 2px var(--radius) var(--radius) var(--radius);
}
.dossier-tab--empty { background: var(--paper); border: 1.5px dashed #BDB4A2; border-bottom: 0; top: -33px; left: -1.5px; }
.slot h3 { font-size: 1.9rem; margin-bottom: 10px; }
.slot p { color: var(--ink-2); }

/* ---------- 9. Prices ---------- */
.plans { display: grid; gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px 22px;
}
.plan-letter { font: 500 .95rem/1 var(--serif); color: var(--ink-2); margin-bottom: 8px; }
.plan h3 { font-size: 1.85rem; margin-bottom: 10px; }
.pitch { color: var(--ink-2); font-size: .98rem; min-height: 3.1em; }
.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 2px; padding-top: 16px; border-top: 1.5px solid var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.price .amount { font: 600 2.6rem/1 var(--serif); letter-spacing: -.02em; }
.price .cur { font: 600 .9rem/1 var(--sans); letter-spacing: .08em; }
.price .from { font: italic 500 1rem/1 var(--serif); color: var(--ink-2); }
.was { font-size: .88rem; color: var(--ink-2); margin-bottom: 18px; }
.was s { text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.plan .ticks { margin-bottom: 22px; flex: 1; }
.plan .btn { width: 100%; }

.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 26px 50px -30px rgba(15, 42, 31, .8); }
.plan--featured .plan-letter, .plan--featured .pitch, .plan--featured .was { color: #B9C6BE; }
.plan--featured .price { border-top-color: var(--paper); }
.plan--featured .ticks li::before { border-color: #F08A80; }
.plan--featured .was s { text-decoration-color: #F08A80; }
.plan--featured .btn-wa { background: #1E9A56; }
.plan--featured .btn-wa:hover { background: #22AD61; }
.plan-stamp { position: absolute; right: 14px; top: -16px; width: 132px; height: 48px; color: #E0574D; transform: rotate(6deg); }
.plan-stamp-label {
  position: absolute; right: 14px; top: -16px; width: 132px; height: 48px; transform: rotate(6deg);
  display: flex; align-items: center; justify-content: center;
  font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #F07A70;
  background: var(--ink); border-radius: 4px; z-index: -0;
}
.plan-stamp { z-index: 2; }
.plan-stamp-label { z-index: 1; }

.terms { display: grid; gap: 0; margin-top: 28px; border-top: 1.5px solid var(--ink); }
.terms > div { padding: 22px 0; }
.terms > div + div { border-top: 1px solid var(--line); }
.terms-label { font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.terms h3 { font-size: 1.4rem; margin-bottom: 10px; }
.maint-price { font: 600 1.6rem/1.1 var(--serif); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.maint-price span[data-en] { font: 500 1rem/1 var(--sans); color: var(--ink-2); }
.terms p { color: var(--ink-2); }

/* ---------- 10. Steps ---------- */
.steps { --fill: 1; position: relative; counter-reset: s; }
.steps::before, .steps::after { /* the vertical line, and its filled part */
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 60px; width: 2px; background: var(--line);
}
.steps::after { background: var(--red); transform-origin: top; transform: scaleY(var(--fill)); }
.step { position: relative; padding: 0 0 34px 66px; min-height: 64px; }
.step-num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--ink);
  font: 600 1.25rem/1 var(--serif); font-variant-numeric: lining-nums;
}
.step h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.step p { color: var(--ink-2); margin: 0; max-width: 34em; }
.step--last .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step-stamp {
  display: inline-block; margin-top: 16px; padding: 6px 12px 5px;
  border: 2px solid var(--red); border-radius: 4px; color: var(--red);
  font: 700 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transform: rotate(-5deg);
}

/* ---------- 11. About ---------- */
.about { display: grid; gap: 34px; }
.portrait {
  position: relative; width: min(78%, 320px); margin: 10px auto 0 6px;
  background: #fff; padding: 10px 10px 14px; border: 1px solid var(--line);
  box-shadow: 0 22px 44px -28px rgba(15, 42, 31, .55);
  transform: rotate(-2.5deg);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font: italic 500 .95rem/1.2 var(--serif); color: var(--ink-2); margin-top: 10px; text-align: center; }
.clip--photo { left: auto; right: 34px; top: -24px; }
.about-lead { font: 500 1.35rem/1.4 var(--serif); color: var(--ink); }
.about-text p:not(.about-lead) { color: var(--ink-2); }
.idcard { display: grid; margin: 22px 0 0; border-top: 1.5px solid var(--ink); }
.idcard > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.idcard dt { font: 600 .72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.idcard dd { margin: 0; text-align: right; }

/* ---------- 12. FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font: 600 1.15rem/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 44px 20px 0; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: fade .4s var(--ease); }
}
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 13. Contact ---------- */
.contact { margin-top: 88px; background: var(--night); color: var(--on-night); padding: 64px 0 72px; position: relative; overflow: hidden; }
.contact::before { /* faint giant stamp ring */
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border: 2px solid rgba(232, 133, 124, .18); border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(15, 42, 31, 1), 0 0 0 28px rgba(232, 133, 124, .12);
}
.contact-inner { position: relative; display: grid; gap: 36px; }
.contact h2 { font-size: clamp(2.4rem, 10vw, 4.4rem); letter-spacing: -.025em; margin-bottom: 18px; }
.contact h2 em { color: #F08A80; }
.contact-text p:not(.sec-num) { color: #C3CFC8; font-size: 1.1rem; max-width: 30em; margin-bottom: 26px; }
.contact .btn-wa { background: #1E9A56; }
.contact .btn-wa:hover { background: #22AD61; }
.contacts { border-top: 1px solid rgba(244, 241, 234, .3); }
.contact-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding: 16px 0; border-bottom: 1px solid rgba(244, 241, 234, .18);
}
.contact-label { grid-column: 1 / -1; font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #E8857C; }
.contact-value { font: 500 1.2rem/1.3 var(--serif); text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
a.contact-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy {
  min-height: 44px; min-width: 76px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, .4); background: transparent; color: var(--on-night);
  font: 600 .85rem/1 var(--sans); cursor: pointer;
}
.copy:hover { border-color: var(--on-night); }
.copy.is-done { background: var(--on-night); color: var(--night); }
.copy-status { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: #C3CFC8; }
.contact :focus-visible { outline-color: #F08A80; }

/* ---------- 14. Footer & floating button ---------- */
.foot { background: var(--night); color: #A9B8AF; border-top: 1px solid rgba(244, 241, 234, .12); font-size: .85rem; padding: 22px 0 96px; }
.foot-row { display: flex; flex-direction: column; gap: 6px; }

.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--wa);
  box-shadow: 0 10px 24px -8px rgba(15, 42, 31, .6);
  transition: transform .35s var(--ease), opacity .35s, background-color .2s;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dark); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; visibility: hidden; transition: transform .35s var(--ease), opacity .35s, visibility 0s .35s; }

/* ==========================================================
   TABLET ≥ 600px
   ========================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .head-wa { width: auto; padding: .45em .95em; }
  .head-wa-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-bottom: 0 !important; border-right: 1px solid var(--line); padding: 18px 14px; }
  .facts > div:first-child { padding-left: 0; }
  .facts > div:last-child { border-right: 0; }
  .hero-stamp { width: 130px; height: 130px; top: -10px; left: calc(100% + 18px); }
  .hero-title { margin-bottom: 64px; }
  .dossier { padding: 36px 32px 30px; }
  .att-list { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
  .att-list li { flex-basis: 30%; }
  .att-list li.att-wide { flex-basis: 56%; }
  .terms { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .terms > div + div { border-top: 0; }
  .foot-row { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================
   DESKTOP ≥ 960px: margin column for section numbers
   ========================================================== */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  body { font-size: 1.0625rem; }
  .nav { display: flex; gap: 4px; margin-right: 8px; }
  .nav a {
    padding: 10px 12px; font: 500 .95rem/1 var(--sans); text-decoration: none; color: var(--ink-2); border-radius: 999px;
  }
  .nav a:hover { color: var(--ink); background: rgba(15, 42, 31, .06); }
  .brand { margin-right: auto; }

  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px;
    padding-top: 84px; padding-bottom: 64px;
  }
  .hero > * { grid-column: 1; }
  .hero .eyebrow, .hero-title { grid-column: 1 / -1; }
  .hero-title { font-size: clamp(4rem, 6.6vw, 6rem); margin-bottom: 72px; }
  /* sized in em so it scales with the headline and stays clear of the "j" above and the paragraph below */
  .hero-stamp { width: 1.68em; height: 1.68em; left: calc(100% + .1em); top: .04em; }
  .signoff { grid-column: 2; grid-row: 3 / span 2; align-self: end; padding-bottom: 6px; }
  .signature-wrap { max-width: 320px; width: 100%; }

  .block { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 48px; padding-top: 120px; }
  .sec-head { position: sticky; top: 100px; align-self: start; margin: 0; padding-top: 6px; }
  .sec-head h2 { font-size: 2.4rem; }
  .sec-sub { font-size: .98rem; }
  .sec-body { min-width: 0; }

  .dossier { margin-top: 31px; padding: 44px 44px 36px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 44px; }
  .stage { grid-column: 1; grid-row: 1; margin: 0; padding-bottom: 60px; align-self: start; }
  .case { grid-column: 2; grid-row: 1; padding-top: 4px; }
  .attachments { grid-column: 1 / -1; }
  .att-list { display: grid; grid-template-columns: 1fr 1fr 2fr 2fr; gap: 22px; overflow: visible; margin: 0; padding: 4px 0 0; }
  .att-list li, .att-list li.att-wide { flex: none; }

  .slot { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; padding: 36px 36px 32px; }
  .slot h3, .slot p { grid-column: 1; }
  .slot p { margin: 0; max-width: 40em; }
  .slot .btn { grid-column: 2; grid-row: 1 / span 2; }

  .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
  .plan { padding: 30px 24px 24px; }
  .plan--featured { transform: translateY(-14px); }
  .price .amount { font-size: 2.4rem; }

  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before, .steps::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--fill)); }
  .step { padding: 66px 0 0; }

  .about { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
  .portrait { width: 100%; margin: 14px 0 0; }

  .faq summary { font-size: 1.25rem; min-height: 72px; }

  .contact { margin-top: 140px; padding: 100px 0; }
  .contact-inner { grid-template-columns: 230px minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .contact-text { grid-column: 1 / span 2; display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 48px; }
  .contact-text > * { grid-column: 2; justify-self: start; }
  .contact-text .sec-num { grid-column: 1; grid-row: 1; align-self: start; margin-top: 14px; }
  .contact-text .sec-num + h2 { grid-row: 1; }
  .contact::before { width: 560px; height: 560px; right: -160px; top: -200px; }
  .foot { padding-bottom: 24px; }
}

@media (min-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Performance: sections below the screen are not laid out until they come close ---------- */
.block, .contact { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
