/* ==========================================================================
   DZcans — feuille de style
   Palette chaude unique : papier, encre, un seul accent vert profond.
   ========================================================================== */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #fffdf9;
  --ink: #1d1e1b;
  --ink-2: #3a3c37;
  --muted: #676960;
  --line: #e1ddd2;
  --line-2: #d2cdbf;
  --accent: #1f6b47;
  --accent-ink: #164f34;
  --accent-soft: #e2ede5;
  --neg: #9a4a32;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 28px 50px -30px rgba(60, 50, 30, 0.32);
  --shadow-sm: 0 10px 24px -16px rgba(60, 50, 30, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.icon { flex: none; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 54ch; margin-top: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--card); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; text-decoration: none; margin-top: 18px; font-size: 15px; }
.link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; background: var(--card); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.tag--excel::before, .tag--google-sheets::before { background: var(--accent); }
.tag--notion::before { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.035em; max-width: 17ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-inline { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.trust-inline li { display: flex; align-items: center; gap: 8px; }
.trust-inline .icon { width: 18px; height: 18px; color: var(--accent); }

.hero__stack { position: relative; min-height: 470px; }
.hero__mock { position: absolute; width: 74%; animation: float 7s ease-in-out infinite; }
.hero__mock--a { top: 0; right: 0; animation-delay: -1s; }
.hero__mock--b { top: 168px; left: 0; width: 70%; animation-delay: -3.5s; z-index: 2; }
.hero__mock--c { bottom: 0; right: 6%; width: 58%; animation-delay: -5s; z-index: 1; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Mock template previews ---------- */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 12px; color: var(--ink-2); }
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__body { padding: 16px 16px 18px; }
.mock__title { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.mock--lg { font-size: 13.5px; }
.mock--lg .mock__body { padding: 22px 22px 24px; }
.mock--lg .mock__title { font-size: 18px; margin-bottom: 16px; }

.m-check { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.m-check li { display: flex; align-items: center; gap: 9px; }
.m-check b { width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 4px; flex: none; position: relative; }
.m-check .is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.m-check .is-done b { background: var(--accent); border-color: var(--accent); }
.m-check .is-done b::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid var(--card); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.m-heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.m-heat span { aspect-ratio: 1; border-radius: 3px; background: var(--paper-2); }
.m-heat [data-l="1"] { background: #c9dfd1; }
.m-heat [data-l="2"] { background: #7fae93; }
.m-heat [data-l="3"] { background: var(--accent); }

.m-grid { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.92em; }
.m-grid th { text-align: right; font-weight: 500; color: var(--muted); padding: 6px 6px; background: var(--paper-2); border: 1px solid var(--line); }
.m-grid td { text-align: right; padding: 6px 6px; border: 1px solid var(--line); white-space: nowrap; }
.m-grid th:first-child, .m-grid td:first-child { text-align: left; font-family: var(--font); color: var(--ink); }
.m-grid .is-neg { color: var(--neg); }
.m-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.m-total strong { font-family: var(--mono); color: var(--accent); font-weight: 500; font-size: 1.1em; }

.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.m-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.m-kpis span { display: block; font-size: 0.85em; color: var(--muted); }
.m-kpis strong { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 1.05em; white-space: nowrap; }
.m-bars { height: 92px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid var(--line); }
.mock--lg .m-bars { height: 150px; }
.m-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--accent), #5f9a7b); transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
.m-bars span:nth-child(odd) { opacity: 0.82; }
@keyframes grow { from { transform: scaleY(0.15); opacity: 0; } }

.m-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-col { background: var(--paper-2); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.m-col em { font-style: normal; font-size: 0.88em; color: var(--muted); display: flex; justify-content: space-between; }
.m-col small { font-family: var(--mono); }
.m-col span { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 6px 7px; color: var(--ink); line-height: 1.3; font-size: 0.92em; }
.m-col:last-child span { border-left: 2px solid var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head p { color: var(--muted); max-width: 46ch; justify-self: end; text-align: right; }

/* ---------- Catalogue ledger ---------- */
.ledger { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.ledger__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ledger__list li { border-bottom: 1px solid var(--line); }
.ledger__row {
  display: grid; grid-template-columns: 34px 1fr auto 92px 22px; align-items: center; gap: 18px;
  padding: 20px 8px; text-decoration: none; border-radius: 12px;
  transition: background .3s var(--ease), padding .4s var(--ease);
}
.ledger__row:hover, .ledger__row.is-active { background: var(--card); padding-left: 16px; padding-right: 16px; }
.ledger__num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ledger__main { display: grid; gap: 3px; min-width: 0; }
.ledger__name { font-weight: 550; font-size: 16.5px; letter-spacing: -0.015em; }
.ledger__tagline { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__price { font-family: var(--mono); font-size: 15px; text-align: right; }
.ledger__go { color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.ledger__row:hover .ledger__go { transform: translateX(3px); color: var(--accent); }
.ledger__preview { position: sticky; top: 100px; }
.ledger__sticky { position: relative; min-height: 380px; }
.ledger__pane { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none; }
.ledger__pane.is-active { opacity: 1; transform: none; }
.ledger__caption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.ledger__caption span { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-right: 6px; }

/* ---------- Split + steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.split__aside { position: sticky; top: 108px; }
.split__aside h2, .split__aside h1 { font-size: clamp(28px, 3.2vw, 40px); max-width: 18ch; }
.split__aside .muted { margin-top: 18px; max-width: 42ch; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.steps__n { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 52ch; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
.bento__tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bento__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.bento__tile--wide { grid-row: span 2; display: flex; flex-direction: column; }
.bento__tile--note { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bento__tile--note p { color: #c9c6bc; }
.bento__tile--note .bento__icon { background: #2c2e2a; color: #9fd0b3; }
.bento__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.bento__tile h3 { font-size: 19px; margin-bottom: 10px; }
.bento__tile p { color: var(--muted); max-width: 60ch; }
.bento__tile--wide .ticks { margin-top: auto; padding-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.ticks--lg li { font-size: 16.5px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 550; font-size: 17px; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line-2); border-radius: 28px; padding: 48px; background: var(--card); }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); max-width: 26ch; margin-bottom: 10px; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 28px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { padding: 32px 0 104px; }
.product__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px; row-gap: 40px;
  grid-template-areas: "intro buy" "visual buy" "details buy";
  align-items: start;
}
.product__intro { grid-area: intro; }
.product__intro h1 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 18px; max-width: 20ch; letter-spacing: -0.03em; }
.product__visual { grid-area: visual; }
.product__details { grid-area: details; display: grid; gap: 48px; }
.product__details h2 { font-size: 22px; margin-bottom: 16px; }
.product__details p + p { margin-top: 14px; }
.product__details p { color: var(--ink-2); max-width: 66ch; }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.plain li { padding-left: 16px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1.5px; background: var(--accent); }
.notice { background: var(--paper-2); border-radius: var(--radius); padding: 28px; }
.notice a { color: var(--accent); }

.buy {
  grid-area: buy; position: sticky; top: 92px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.buy__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.buy__head h2 { font-size: 18px; }
.buy__price { font-family: var(--mono); font-size: 30px; letter-spacing: -0.02em; }
.buy__note { font-size: 13px; color: var(--muted); margin-top: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pay { position: relative; margin-top: 20px; min-height: 260px; }
.pay .powr-form-builder { width: 100%; }
.pay .powr-form-builder iframe { width: 100% !important; display: block; }
.buy__legal { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.buy__legal a { color: var(--accent); }
.pay__skeleton { display: grid; gap: 12px; padding: 4px 0; }
.pay__skeleton span { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--paper-2) 0%, #f8f6f1 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.pay__skeleton .is-btn { height: 48px; width: 60%; border-radius: 999px; }
.pay.is-ready .pay__skeleton { display: none; }
.pay__error { font-size: 14px; color: var(--neg); background: #f7ebe5; border-radius: 12px; padding: 14px; }
.pay__error a { color: inherit; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.buy__trust { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.buy__trust li { display: flex; align-items: center; gap: 6px; }
.buy__trust .icon { width: 16px; height: 16px; color: var(--accent); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 28px; margin: 0 -4px; scrollbar-width: thin; }
.rail__item { scroll-snap-align: start; text-decoration: none; }
.rail__item .mock { box-shadow: var(--shadow-sm); transition: transform .5s var(--ease); }
.rail__item:hover .mock { transform: translateY(-4px); }
.rail__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.rail__meta strong { font-family: var(--mono); font-weight: 400; white-space: nowrap; }

.empty { min-height: 50vh; display: grid; align-content: center; justify-items: start; gap: 18px; }
.empty h1 { font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 104px; }
.legal__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.legal__head { position: sticky; top: 108px; }
.legal__head h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.summary { margin-top: 28px; padding: 22px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.toc { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; border-left: 1px solid var(--line-2); }
.toc a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 5px 0 5px 16px; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 21px; margin: 44px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.kv { display: grid; grid-template-columns: 190px 1fr; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 15px; text-decoration: none; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .25s var(--ease); word-break: break-all; }
.contact-mail:hover { background: var(--accent-ink); }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.contact-list > div { padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.contact-list h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 10px; }
.contact-list h2 .icon { color: var(--accent); }
.contact-list p { color: var(--muted); max-width: 60ch; }
.contact-list a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.footer-pay { display: flex; align-items: center; gap: 8px; }
.footer-pay .icon { width: 16px; height: 16px; color: var(--accent); }
.site-footer h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger__preview { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__tile--wide { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "buy" "visual" "details"; }
  .buy { position: static; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-radius: 8px; }
  .hero { padding: 40px 0 64px; }
  .hero__grid, .split, .legal__grid, .section-head, .cta-band, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero__stack { min-height: 0; }
  .hero__mock { position: relative; width: 100%; inset: auto; }
  .hero__mock--b, .hero__mock--c { display: none; }
  .section { padding: 72px 0; }
  .section-head p { justify-self: start; text-align: left; }
  .split__aside, .legal__head { position: static; }
  .ledger__row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px 4px; }
  .ledger__row:hover { padding-left: 10px; padding-right: 10px; }
  .ledger__num, .ledger__go { display: none; }
  .ledger__main { grid-column: 1 / -1; }
  .ledger__tagline { white-space: normal; }
  .ledger__price { text-align: right; }
  .bento { grid-template-columns: 1fr; }
  .bento__tile--wide, .bento__tile--note { grid-column: auto; }
  .bento__tile { padding: 26px; }
  .cta-band { padding: 32px 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .buy { padding: 18px; border-radius: 20px; }

  .steps li { grid-template-columns: 44px 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .rail { grid-auto-columns: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Product: quick jump to the order form */
.product__cta { margin-top: 26px; }
.buy { scroll-margin-top: 84px; }
@media (max-width: 1024px) { .product__cta { display: none; } }
