/* ============================================================
   Lomako Comptable — "Warm Ledger" design system
   Cream paper · ledger green · warm charcoal · accountant mono
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JBMono";
  src: url("../fonts/jbmono.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  font-style: normal;
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #F6F1E7;   /* warm cream page */
  --paper-2:    #EFE8D8;   /* slightly deeper cream */
  --surface:    #FFFDF8;   /* card / panel */
  --surface-2:  #FBF7EE;
  --ink:        #20211C;   /* warm near-black (never pure #000) */
  --ink-2:      #4A4B43;   /* secondary text */
  --ink-3:      #7C7C70;   /* muted */
  --line:       #E2D9C6;   /* hairlines, ledger rules */
  --line-2:     #D2C7AE;

  --green:      #1C6B4A;   /* ledger / money green */
  --green-d:    #134e36;
  --green-l:    #2E8B61;
  --green-tint: #E6F0E8;

  --gold:       #B98427;   /* warm accent / highlight */
  --gold-l:     #D7A94E;
  --gold-tint:  #F3E9D2;

  --credit:     #1C6B4A;   /* + green */
  --debit:      #B0472E;   /* − terracotta-red */
  --debit-tint: #F5E2DB;

  /* deep brand dark — a green-tinted charcoal, NOT neutral #111,
     so dark sections read as part of the palette, not a paste-in */
  --ink-deep:   #11160F;   /* deepest — section bg */
  --ink-deep-2: #192016;   /* raised surface on dark */

  --maxw: 1180px;
  --gut: clamp(22px, 5vw, 40px);   /* page gutter */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* layered, hue-tinted shadows (warm umber, never pure black) */
  --shadow-sm: 0 1px 2px rgba(46,38,20,.05), 0 2px 6px rgba(46,38,20,.05);
  --shadow-md: 0 2px 6px rgba(46,38,20,.05), 0 12px 28px -10px rgba(46,38,20,.18);
  --shadow-lg: 0 4px 12px rgba(46,38,20,.06), 0 44px 80px -32px rgba(28,40,28,.34);
  --shadow-green: 0 18px 50px -18px rgba(20,78,54,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  /* --serif kept as the variable name for minimal churn, now a clean
     modern grotesque (Satoshi) used for all display headings */
  --serif: "Satoshi", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.05;
  letter-spacing: -.025em; margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.mono, .num, [data-count] { font-variant-numeric: tabular-nums; }
::selection { background: var(--green); color: #fff; }

/* focus ring — visible, on-brand, keyboard only */
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }

/* skip to content */
.skip {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -150%);
  z-index: 200; background: var(--ink); color: var(--paper); padding: 11px 20px;
  border-radius: 100px; font-size: 14px; font-weight: 600; transition: transform .25s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* paper grain overlay — two layers for organic depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* top scroll-progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--gold-l));
  pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
/* optical rhythm: slightly more bottom padding than top */
.section { padding: clamp(70px, 9vw, 132px) 0 clamp(78px, 10vw, 144px); position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--gold); display: inline-block; }
.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(31px, 4.6vw, 54px); margin: 20px 0 0; font-variation-settings: "opsz" 144; }
.section-head p { color: var(--ink-2); margin-top: 18px; font-size: clamp(16.5px, 1.6vw, 19px); max-width: 60ch; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 27px; border-radius: 100px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 28px -20px rgba(40,34,20,.5); background: color-mix(in srgb, var(--paper) 88%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .4s var(--ease); }
.header.scrolled .nav { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; font-weight: 580; letter-spacing: -.02em; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(150deg, var(--green-l), var(--green-d));
  color: var(--gold-l); display: grid; place-items: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.12);
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  transition: transform .4s var(--ease-spring);
}
.brand:hover .mark { transform: rotate(-7deg) scale(1.05); }
.brand small { display:block; font-family: var(--mono); font-size: 9.5px; letter-spacing:.28em; color: var(--ink-3); text-transform: uppercase; font-weight:600; margin-top:2px;}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; transition: color .25s; padding: 4px 0; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--gold); border-radius:2px; transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after,
.nav-links a.current::after { width: 100%; }
.nav-links a.current { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; padding: 4px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 100px; background: var(--surface);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em;
}
.lang button { background: none; border: none; padding: 5px 11px; border-radius: 100px; color: var(--ink-3); transition: all .3s var(--ease); }
.lang button.active { background: var(--ink); color: var(--paper); }
.lang button:not(.active):hover { color: var(--ink); }

.burger { display:none; width:44px; height:44px; border:1px solid var(--line-2); border-radius:12px; background:var(--surface); flex-direction:column; gap:5px; align-items:center; justify-content:center;}
.burger span { width:18px; height:2px; background: var(--ink); border-radius:2px; transition:.3s;}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 116px); position: relative; z-index: 2; }
/* ambient warmth behind the hero */
.hero::before{ content:""; position:absolute; inset:-10% 0 auto 0; height:120%; z-index:-1; pointer-events:none;
  background: radial-gradient(46% 55% at 78% 28%, color-mix(in srgb, var(--green-l) 14%, transparent), transparent 62%),
              radial-gradient(38% 48% at 8% 8%, color-mix(in srgb, var(--gold-l) 12%, transparent), transparent 62%);}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero-tag {
  display:inline-flex; align-items:center; gap:9px; padding:7px 16px 7px 12px;
  background: var(--surface); color: var(--green-d); border:1px solid var(--line);
  border-radius:100px; font-size:13px; font-weight:600; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-tag .dot { width:7px; height:7px; border-radius:50%; background: var(--green-l); box-shadow:0 0 0 4px color-mix(in srgb, var(--green-l) 22%, transparent); animation: pulse 2.6s ease-in-out infinite;}
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px color-mix(in srgb, var(--green-l) 26%, transparent);} 50%{ box-shadow:0 0 0 7px color-mix(in srgb, var(--green-l) 0%, transparent);} }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.hero h1 .accent { color: var(--green); position: relative; }
.hero h1 .accent::after{ content:""; position:absolute; left:0; right:0; bottom:.02em; height:.07em; background: linear-gradient(90deg, var(--gold), var(--gold-l)); opacity:.65; border-radius:2px;}
.hero-lead { font-size: clamp(17px, 1.55vw, 19.5px); color: var(--ink-2); max-width: 50ch; margin: 28px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items:center; }
.hero-note { display:flex; align-items:center; gap:10px; margin-top:32px; font-size:14px; color: var(--ink-3); }
.hero-note .stars { color: var(--gold); letter-spacing:1px; }
.hero-prov { display:flex; gap:8px; margin-top: 24px; flex-wrap:wrap;}
.prov-chip { font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:.05em; color:var(--ink-2); background:var(--surface); border:1px solid var(--line); padding:6px 12px; border-radius:100px; transition: border-color .3s, transform .3s;}
.prov-chip:hover{ border-color: var(--line-2); transform: translateY(-1px); }

/* word reveal */
.reveal-line { display:block; overflow:hidden; }
.reveal-line > span { display:block; }

/* ---------- Hero ledger book (two-page spread) ---------- */
.book-stage { perspective: 2200px; position: relative; }
.book-stage::after{ /* desk shadow */
  content:""; position:absolute; left:6%; right:6%; bottom:-24px; height:42px;
  background: radial-gradient(50% 100% at 50% 0, rgba(30,26,15,.30), transparent 70%);
  filter: blur(5px); z-index:0;
}
.book {
  position: relative; aspect-ratio: 1.34 / 1; transform-style: preserve-3d;
  transform: rotateX(26deg) rotateZ(-1.5deg); transform-origin: center;
}
.book .page {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(var(--surface), var(--surface-2));
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.book .page-right { right: 0; border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-lg), 2px 3px 0 #efe7d6, 4px 6px 0 #e7dcc4, 6px 9px 0 #ded2b8; }
/* ribbon bookmark hanging from the spine */
.book .ribbon { position:absolute; top:-2px; left:calc(50% - 5px); width:10px; height:122%; z-index:5;
  background: linear-gradient(180deg, var(--gold), var(--gold-l)); border-radius:0 0 2px 2px; transform: rotateX(0) translateZ(-2px);
  box-shadow: -1px 0 2px rgba(0,0,0,.15); }
.book .ribbon::after{ content:""; position:absolute; bottom:-9px; left:0; right:0; height:10px;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%); }
.book .page-right::before{ /* gutter shade near spine */
  content:""; position:absolute; left:0; top:0; bottom:0; width:30px;
  background: linear-gradient(90deg, rgba(0,0,0,.10), transparent);
}
.book .page-left {
  left: 0; border-radius: 14px 0 0 14px;
  transform-origin: right center; transform-style: preserve-3d;
  background: none; border: none; box-shadow: none;
  z-index: 6;
}
.book .page-left .face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.book .page-left .face.front {
  background: linear-gradient(var(--surface), var(--surface-2));
  border-radius: 14px 0 0 14px;
  box-shadow: var(--shadow-lg), -2px 3px 0 #efe7d6, -4px 6px 0 #e7dcc4, -6px 9px 0 #ded2b8;
}
.book .page-left .face.front::after{ /* gutter shade near spine (right side) */
  content:""; position:absolute; right:0; top:0; bottom:0; width:30px;
  background: linear-gradient(270deg, rgba(0,0,0,.10), transparent);
}
.book .page-left .face.back {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
  border: 1px solid var(--green-d); border-radius: 14px 0 0 14px;
  transform: rotateY(180deg); display: grid; place-items: center; color: var(--gold-l);
}
.book .emboss { text-align:center; }
.book .emboss .ring { width:70px; height:70px; border:2px solid color-mix(in srgb, var(--gold-l) 70%, transparent); border-radius:50%; display:grid; place-items:center; margin:0 auto 16px; font-family:var(--serif); font-size:32px; font-weight:600;}
.book .emboss small{ font-family:var(--mono); letter-spacing:.32em; font-size:11px; opacity:.85; text-transform:uppercase;}
.book .emboss b{ display:block; font-family:var(--serif); font-size:20px; font-weight:500; margin-top:6px; color:#F3E9D2; }
.book .spine { position:absolute; left:calc(50% - 4px); top:1%; bottom:1%; width:8px; z-index:7;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.04) 45%, rgba(255,255,255,.25) 50%, rgba(0,0,0,.04) 55%, rgba(0,0,0,.18)); border-radius:3px; }

/* inner ledger lines */
.ledger-inner { position:absolute; inset: 22px 20px; }
.ledger-row { display:grid; grid-template-columns: 1fr auto; gap:14px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); opacity:0; }
.ledger-row .lbl { height:8px; background: var(--line-2); border-radius:3px; }
.ledger-row .lbl.w1{width:62%}.ledger-row .lbl.w2{width:80%}.ledger-row .lbl.w3{width:50%}.ledger-row .lbl.w4{width:72%}
.ledger-row .amt { font-family: var(--mono); font-size: 13px; font-weight:700; }
.ledger-row .amt.cr{ color: var(--credit); } .ledger-row .amt.dr{ color: var(--debit); }
.ledger-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; padding-bottom:10px; border-bottom:2px solid var(--ink); }
.ledger-head b { font-family: var(--serif); font-size:16px;} .ledger-head span{ font-family:var(--mono); font-size:10px; letter-spacing:.18em; color:var(--ink-3); text-transform:uppercase;}
.ledger-total { display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:12px; border-top:2px solid var(--ink); font-family:var(--mono); font-weight:700;}
.ledger-total .v { color: var(--green); font-size:18px; }

/* floating coin chips */
.coin {
  position:absolute; z-index:6; background: var(--surface); border:1px solid var(--line);
  border-radius:14px; padding:10px 14px; box-shadow: var(--shadow-md);
  display:flex; align-items:center; gap:10px; font-weight:600; font-size:13.5px;
}
.coin .ic{ width:32px;height:32px;border-radius:9px;display:grid;place-items:center; }
.coin .ic.g{ background:var(--green-tint); color:var(--green);} .coin .ic.d{background:var(--debit-tint); color:var(--debit);}
.coin small{ display:block; font-family:var(--mono); font-size:10px; color:var(--ink-3); letter-spacing:.1em; text-transform:uppercase;}
.coin .num{ font-family:var(--mono); }
.coin-1 { top: 6%; right: -6%; } .coin-2 { bottom: 12%; left: -9%; }

/* ============================================================
   Stats strip
   ============================================================ */
.stats { border-block: 1px solid var(--line); background: var(--surface-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(34px,5vw,52px) 0; }
.stat { text-align:center; position:relative; }
.stat:not(:last-child)::after{ content:""; position:absolute; right:-12px; top:14%; bottom:14%; width:1px; background: var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(34px,4.5vw,52px); font-weight:500; color: var(--ink); line-height:1; }
.stat .num .pre{ color: var(--green); } .stat .num .suf{ color: var(--gold); }
.stat .cap { font-size: 14px; color: var(--ink-2); margin-top: 10px; font-weight:500; }

/* ============================================================
   Services
   ============================================================ */
.svc-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; position: relative; overflow:hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  grid-column: span 2;
}
/* gold accent edge that draws in on hover */
.svc::before{
  content:""; position:absolute; left:0; top:0; height:3px; width:0;
  background: linear-gradient(90deg, var(--gold), var(--gold-l)); transition: width .5s var(--ease);
}
/* cursor spotlight (driven by --mx/--my from JS) */
.svc::after{
  content:""; position:absolute; inset:0; opacity:0; transition: opacity .4s; pointer-events:none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--green) 9%, transparent), transparent 60%);
}
.svc:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--green) 22%, var(--line)); }
.svc:hover::before{ width:100%; }
.svc:hover::after{ opacity:1; }
.svc .ico { width:54px; height:54px; border-radius:15px; background: var(--green-tint); color: var(--green); display:grid; place-items:center; margin-bottom:22px; transition: transform .45s var(--ease-spring); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 12%, transparent);}
.svc:hover .ico{ transform: rotate(-6deg) scale(1.07); }
.svc .ico svg{ width:26px; height:26px; }
.svc h3 { font-size: clamp(21px, 2.4vw, 25px); margin-bottom: 10px; font-variation-settings:"opsz" 40; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.svc .feats{ list-style:none; padding:0; margin:20px 0 0; display:flex; flex-wrap:wrap; gap:7px; }
.svc .feats li{ font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:.02em; color:var(--green-d); background:var(--green-tint); padding:5px 10px; border-radius:7px; }
.svc .idx{ position:absolute; top:26px; right:28px; font-family:var(--mono); font-size:12px; color:var(--ink-3); letter-spacing:.1em;}
.svc.feature{ background: linear-gradient(155deg, var(--green-l) -10%, var(--green) 38%, var(--green-d) 100%); color:#fff; border-color: var(--green-d); box-shadow: var(--shadow-green);}
.svc.feature::after{ background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.10), transparent 60%); }
.svc.feature .ico{ background: rgba(255,255,255,.14); color: var(--gold-l); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);}
.svc.feature p{ color: rgba(255,255,255,.84);}
.svc.feature .feats li{ background: rgba(255,255,255,.13); color:#F4ECD8;}
.svc.feature .idx{ color: rgba(255,255,255,.5);}

/* ============================================================
   Live ledger (debit/credit animation)
   ============================================================ */
.ledger-sec { background: var(--ink-deep); color: var(--paper); border-radius: 0; position:relative; z-index:2; overflow:hidden;}
.ledger-sec::before{ content:""; position:absolute; inset:0; opacity:.7; pointer-events:none;
  background-image: radial-gradient(60% 50% at 18% 12%, rgba(185,132,39,.16), transparent 60%), radial-gradient(60% 60% at 85% 88%, rgba(46,139,97,.20), transparent 60%);}
/* hairline rule top + bottom to frame the dark band */
.ledger-sec::after{ content:""; position:absolute; left:0; right:0; top:0; height:1px; background: linear-gradient(90deg, transparent, rgba(215,169,78,.4), transparent);}
.ledger-sec .eyebrow{ color: var(--gold-l);} .ledger-sec .eyebrow::before{ background: var(--gold-l);}
.ledger-sec .section-head h2{ color: var(--paper);} .ledger-sec .section-head p{ color: rgba(246,241,231,.66);}
.ledger-sec .grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,60px); align-items:center; position:relative; z-index:1;}
.tplate {
  background: #FDFBF4; color: var(--ink); border-radius: var(--r-md); padding: 8px 0 0;
  box-shadow: var(--shadow-lg); font-family: var(--mono); overflow:hidden;
  background-image: repeating-linear-gradient(transparent, transparent 43px, var(--line) 43px, var(--line) 44px);
  background-position: 0 64px;
}
.tplate .t-top{ display:flex; justify-content:space-between; align-items:center; padding: 14px 22px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.tplate .t-top b{ font-family: var(--serif); font-size:17px; font-weight:600;}
.tplate .t-top .pill{ font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--green); background:var(--green-tint); padding:4px 9px; border-radius:6px; font-weight:700;}
.t-cols{ display:grid; grid-template-columns: 1fr 96px 96px; gap:8px; padding: 10px 22px; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-3); border-bottom:1px solid var(--line); }
.t-cols span:nth-child(2),.t-cols span:nth-child(3){ text-align:right; }
.t-row{ display:grid; grid-template-columns: 1fr 96px 96px; gap:8px; padding: 0 22px; height:44px; align-items:center; font-size:13.5px; border-bottom:1px solid transparent; }
.t-row .desc{ color: var(--ink); font-weight:500; }
.t-row .dr,.t-row .cr{ text-align:right; font-weight:700; font-variant-numeric: tabular-nums;}
.t-row .dr{ color: var(--debit);} .t-row .cr{ color: var(--credit);}
.t-row .muted{ color: var(--line-2);}
.t-foot{ display:grid; grid-template-columns: 1fr 96px 96px; gap:8px; padding: 14px 22px; border-top:2px solid var(--ink); font-size:14px; font-weight:800; }
.t-foot span:nth-child(2),.t-foot span:nth-child(3){ text-align:right;}
.t-foot .bal{ grid-column: 1/-1; display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding-top:12px; border-top:1px dashed var(--line-2); font-family:var(--serif); }
.t-foot .bal .ok{ color: var(--green); display:inline-flex; gap:7px; align-items:center; font-size:14px;}

.ledger-points{ list-style:none; padding:0; margin: 26px 0 0; display:grid; gap:18px;}
.ledger-points li{ display:flex; gap:15px; align-items:flex-start;}
.ledger-points .lp-ic{ flex:none; width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.08); color:var(--gold-l); display:grid; place-items:center; border:1px solid rgba(255,255,255,.12);}
.ledger-points h4{ font-family: var(--sans); font-weight:700; font-size:16px; color:var(--paper); margin-bottom:3px;}
.ledger-points p{ color: rgba(246,241,231,.64); font-size:14.5px;}

/* ============================================================
   Steps
   ============================================================ */
.steps{ counter-reset: step; display:grid; grid-template-columns: repeat(4,1fr); gap: 22px;}
.step{ position:relative; padding-top: 30px; }
.step::before{ counter-increment: step; content: "0" counter(step); position:absolute; top:-6px; left:0; font-family: var(--mono); font-size: 13px; font-weight:700; color: var(--gold); letter-spacing:.1em;}
.step .bar{ height:3px; background: var(--line); border-radius:3px; margin-bottom:22px; position:relative; overflow:hidden;}
.step .bar i{ position:absolute; inset:0; width:0; background: var(--green); border-radius:3px;}
.step h3{ font-size: 20px; margin-bottom: 9px;}
.step p{ color: var(--ink-2); font-size: 15px;}

/* ============================================================
   Pricing — tailored quote (no online payment)
   ============================================================ */
.quote-card{
  max-width: 880px; margin-inline:auto;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(30px,4vw,48px);
  display:flex; flex-direction:column; align-items:center;
}
.quote-points{ list-style:none; padding:0; margin:0 0 8px; display:grid; grid-template-columns:1fr 1fr; gap: 26px 40px; width:100%;}
.quote-points li{ display:flex; gap:15px; align-items:flex-start;}
.quote-points .qp-ic{ flex:none; width:46px; height:46px; border-radius:13px; background: var(--green-tint); color: var(--green); display:grid; place-items:center;}
.quote-points h4{ font-family: var(--sans); font-weight:700; font-size:16px; margin-bottom:4px;}
.quote-points p{ color: var(--ink-2); font-size:14.5px; line-height:1.55;}
.quote-card .btn{ margin-top: 34px; }
@media (max-width:680px){ .quote-points{ grid-template-columns:1fr; gap:24px;} }

/* ============================================================
   Tools strip
   ============================================================ */
.tools{ padding: clamp(40px,5vw,60px) 0; border-bottom:1px solid var(--line); position:relative; z-index:2;}
.tools-label{ text-align:center; font-family:var(--mono); font-size:11.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-3); margin-bottom:26px;}
.tools-row{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px 38px;}
.tools-row li{ font-family:var(--serif); font-weight:600; font-size:clamp(17px,2vw,22px); letter-spacing:-.01em; color:var(--ink-2); opacity:.62; transition:opacity .3s, color .3s; white-space:nowrap;}
.tools-row li:hover{ opacity:1; color:var(--green);}

/* ============================================================
   Industries
   ============================================================ */
.ind-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.ind{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:30px; transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;}
.ind:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:color-mix(in srgb,var(--green) 20%,var(--line));}
.ind-ic{ width:48px; height:48px; border-radius:13px; background:var(--gold-tint); color:var(--gold); display:grid; place-items:center; margin-bottom:18px;}
.ind-ic svg{ width:24px; height:24px;}
.ind h3{ font-size:19px; margin-bottom:8px;}
.ind p{ color:var(--ink-2); font-size:14.5px; line-height:1.55;}

/* ============================================================
   The Lomako standard
   ============================================================ */
.standard{ background:var(--surface-2); border-block:1px solid var(--line);}
.std-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,6vw,80px); align-items:start;}
.std-lead h2{ font-size:clamp(28px,3.8vw,46px); margin:18px 0 0;}
.std-lead > p{ color:var(--ink-2); font-size:18px; margin-top:16px; max-width:46ch;}
.std-quote{ margin-top:36px; padding:28px 30px; background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:0 var(--r-md) var(--r-md) 0; position:relative;}
.std-quote .q{ width:30px; height:30px; color:var(--green); opacity:.35; margin-bottom:8px;}
.std-quote p{ font-family:var(--serif); font-size:clamp(18px,2vw,22px); font-weight:500; line-height:1.4; letter-spacing:-.01em; color:var(--ink);}
.std-sign{ display:block; margin-top:16px; font-family:var(--mono); font-size:12px; letter-spacing:.08em; color:var(--ink-3);}
.std-points{ list-style:none; padding:0; margin:0; display:grid; gap:4px;}
.std-points li{ display:flex; gap:20px; align-items:flex-start; padding:22px 0; border-bottom:1px solid var(--line);}
.std-points li:last-child{ border-bottom:none;}
.std-no{ font-family:var(--mono); font-size:13px; font-weight:700; color:var(--gold); letter-spacing:.06em; padding-top:3px; flex:none;}
.std-points h4{ font-size:18px; margin-bottom:5px;}
.std-points p{ color:var(--ink-2); font-size:15px; line-height:1.55;}

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.quote-c{ margin:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:30px; display:flex; flex-direction:column; transition:transform .4s var(--ease), box-shadow .4s var(--ease);}
.quote-c:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md);}
.quote-c .stars{ color:var(--gold); letter-spacing:2px; font-size:14px; margin-bottom:16px;}
.quote-c blockquote{ margin:0 0 22px; font-size:16px; line-height:1.6; color:var(--ink); font-weight:450; flex:1;}
.quote-c figcaption{ display:flex; align-items:center; gap:13px;}
.quote-c .av{ width:42px; height:42px; border-radius:50%; background:linear-gradient(150deg,var(--green-l),var(--green-d)); color:#F4ECD8; display:grid; place-items:center; font-family:var(--serif); font-weight:600; font-size:18px; flex:none;}
.quote-c b{ display:block; font-size:14.5px; font-weight:600;}
.quote-c small{ display:block; font-size:12.5px; color:var(--ink-3); margin-top:1px;}

@media (max-width:900px){
  .ind-grid{ grid-template-columns:repeat(2,1fr);}
  .std-grid{ grid-template-columns:1fr; gap:40px;}
  .testi-grid{ grid-template-columns:1fr;}
}
@media (max-width:560px){ .ind-grid{ grid-template-columns:1fr;} }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ max-width: 820px; margin-inline:auto;}
.qa{ border-bottom:1px solid var(--line); }
.qa button{ width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px; text-align:left; padding: 24px 0; background:none; border:none; color:var(--ink); font-family:var(--serif); font-size: clamp(18px,2vw,22px); font-weight:500;}
.qa .ico{ flex:none; width:34px; height:34px; border-radius:50%; border:1px solid var(--line-2); display:grid; place-items:center; transition: .35s var(--ease); position:relative;}
.qa .ico::before,.qa .ico::after{ content:""; position:absolute; background: var(--green); border-radius:2px;}
.qa .ico::before{ width:13px; height:2px;} .qa .ico::after{ width:2px; height:13px; transition: transform .35s var(--ease);}
.qa.open .ico{ background: var(--green); border-color: var(--green);}
.qa.open .ico::before,.qa.open .ico::after{ background:#fff;}
.qa.open .ico::after{ transform: scaleY(0);}
.qa .ans{ overflow:hidden; height:0; }
.qa .ans p{ color: var(--ink-2); padding-bottom: 24px; font-size: 16px; max-width: 680px;}

/* ============================================================
   Contact / CTA
   ============================================================ */
.cta { position: relative; z-index:2; }
.cta-card{
  background: linear-gradient(160deg, var(--green) 0%, var(--green-d) 100%);
  border-radius: var(--r-lg); padding: clamp(40px,5vw,68px); color:#fff; position:relative; overflow:hidden;
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,60px); align-items:center;
}
.cta-card::after{ content:"$"; position:absolute; right:2%; bottom:-22%; font-family:var(--serif); font-style:italic; font-size:380px; color:rgba(255,255,255,.06); pointer-events:none; line-height:1;}
.cta-card .eyebrow{ color: var(--gold-l);} .cta-card .eyebrow::before{ background: var(--gold-l);}
.cta-card h2{ font-size: clamp(28px,3.6vw,46px); margin:16px 0 14px; color:#fff;}
.cta-card p{ color: rgba(255,255,255,.8); max-width: 420px;}
.cta-list{ list-style:none; padding:0; margin:24px 0 0; display:grid; gap:12px;}
.cta-list li{ display:flex; gap:11px; align-items:center; font-size:15px; color:rgba(255,255,255,.9);}
.cta-list svg{ width:19px;height:19px; color: var(--gold-l); flex:none;}
.form{ background: var(--surface); border-radius: var(--r-lg); padding: 32px; position:relative; z-index:1; box-shadow: var(--shadow-lg); border:1px solid color-mix(in srgb, var(--line) 60%, transparent);}
.form .row{ display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
.field{ margin-bottom:16px; position:relative;} .field.full{ grid-column:1/-1;}
.field label{ display:block; font-weight:600; color: var(--ink-2); margin-bottom:8px; font-family:var(--mono); letter-spacing:.08em; text-transform:uppercase; font-size:10.5px;}
.field input,.field select,.field textarea{
  width:100%; padding: 13px 15px; border:1px solid var(--line-2); border-radius:12px;
  background: var(--surface-2); color: var(--ink); font-family: var(--sans); font-size:15px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder,.field textarea::placeholder{ color: var(--ink-3); }
/* custom select chevron */
.field select{ appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237C7C70' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 14px center; }
.field textarea{ resize:vertical; min-height: 100px;}
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 3px var(--green-tint);}
.field.invalid input,.field.invalid select{ border-color: var(--debit); box-shadow: 0 0 0 3px var(--debit-tint); }
.field .err{ display:none; font-size:12px; color: var(--debit); margin-top:6px; font-weight:500; }
.field.invalid .err{ display:block; }
.form .btn{ width:100%; justify-content:center; margin-top:6px;}
.form .fine{ font-size:12px; color: var(--ink-3); text-align:center; margin-top:14px;}
.form-ok{ display:none; text-align:center; padding: 38px 10px;}
.form-ok.show{ display:block;} .form.sent .form-body{ display:none;}
.form-ok .ck{ width:64px;height:64px;border-radius:50%; background: var(--green-tint); color:var(--green); display:grid; place-items:center; margin:0 auto 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--green) 18%, transparent);}
.form-ok h3{ font-size:25px; margin-bottom:8px;}

/* ============================================================
   Footer
   ============================================================ */
.footer{ background: var(--ink-deep); color: rgba(246,241,231,.7); position:relative; z-index:2; padding: clamp(60px,7vw,88px) 0 34px; overflow:hidden;}
.footer::before{ content:""; position:absolute; inset:0; pointer-events:none; opacity:.6;
  background-image: radial-gradient(50% 60% at 88% 0%, rgba(46,139,97,.16), transparent 60%);}
.foot-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1);}
.footer .brand{ color: var(--paper); margin-bottom:16px;}
.footer .brand .mark{ background: var(--green); }
.foot-about{ font-size:14.5px; max-width: 320px; line-height:1.7;}
.foot-col h5{ font-family: var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color: var(--gold-l); margin:0 0 18px; font-weight:700;}
.foot-col a{ display:block; font-size:14.5px; margin-bottom:11px; color: rgba(246,241,231,.7); transition: color .2s;}
.foot-col a:hover{ color: var(--paper);}
.foot-bot{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; font-size:13px; flex-wrap:wrap; gap:14px;}
.foot-legal{ display:flex; align-items:center; gap:20px; flex-wrap:wrap;}
.foot-legal a{ color: rgba(246,241,231,.7); transition: color .2s; position:relative;}
.foot-legal a:hover{ color: var(--paper);}
.foot-bot .lic{ font-family: var(--mono); letter-spacing:.04em; color: rgba(246,241,231,.5);}

/* ---------- reveal util (only hide when JS is present) ---------- */
.js [data-reveal]{ opacity:0; transform: translateY(26px); }
.js .reveal-ready [data-reveal]{ transition: opacity .8s var(--ease), transform .8s var(--ease);}
.js .reveal-line > span{ transform: translateY(105%); }
html:not(.js) .reveal-line > span{ transform:none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; gap:50px;}
  .book-stage{ max-width: 460px; margin-inline:auto; width:100%;}
  .ledger-sec .grid2{ grid-template-columns: 1fr;}
  .cta-card{ grid-template-columns: 1fr;}
  .svc-grid{ grid-template-columns: repeat(2,1fr);}
  .svc, .svc:nth-child(1), .svc:nth-child(2){ grid-column: span 1;}
  .steps{ grid-template-columns: repeat(2,1fr); gap:30px 22px;}
  .foot-grid{ grid-template-columns: 1fr 1fr; gap:30px;}
}
@media (max-width: 720px){
  .nav-links{ display:none;}
  .nav-right > .btn-primary{ display:none; }   /* CTA lives in the mobile menu */
  .brand small{ display:none; }                /* keep header compact on mobile */
  .burger{ display:flex;}
  .stats .wrap{ grid-template-columns: 1fr 1fr; gap:34px 24px;}
  .stat:nth-child(2)::after{ display:none;}
  .svc-grid{ grid-template-columns: 1fr;}
  .form .row{ grid-template-columns:1fr;}
  .foot-grid{ grid-template-columns: 1fr;}
  .foot-bot{ flex-direction:column; align-items:flex-start; }
  .coin-1{ right:0; } .coin-2{ left:0; }
  body{ font-size:16px;}
}

/* mobile menu */
.mobile-menu{ position:fixed; inset:64px 0 auto; z-index:49; background: var(--paper); border-bottom:1px solid var(--line); padding: 16px 22px 26px; display:none; flex-direction:column; gap:4px; box-shadow: var(--shadow-md);}
.mobile-menu.open{ display:flex;}
.mobile-menu a{ padding:13px 4px; font-size:17px; font-weight:500; border-bottom:1px solid var(--line);}
.mobile-menu .btn{ margin-top:14px; justify-content:center; width:100%; box-sizing:border-box;}
