/* ==========================================================================
   DATANEST - style.css
   Mobile-first. One stylesheet for the whole site.

   Contents
   1. Design tokens (colours, type, spacing)   7. Home: stats, problems, services
   2. Base & typography                        8. Interactive: demo, flow, calculator
   3. Layout helpers                           9. Services & pricing page
   4. Buttons, tags, small pieces             10. Case studies + server diagram
   5. Header, navigation, language toggle     11. About, contact, FAQ, privacy, 404
   6. Hero                                    12. Footer, floating WhatsApp, motion
   ========================================================================== */

/* ---------- 1. Design tokens --------------------------------------------- */
:root {
  --paper: #F4F7F5;        /* page background: cool, slightly green white */
  --surface: #FFFFFF;
  --ink: #13241F;          /* main text: deep forest */
  --muted: #4E5F59;        /* secondary text */
  --green: #0B5D4B;        /* brand: Borneo rainforest green */
  --green-dark: #084436;
  --mint: #DCEBE4;         /* soft panels */
  --mint-soft: #EBF3EF;
  --amber: #F2A900;        /* accent: hornbill yellow, used sparingly */
  --amber-soft: #FFF1CC;
  --line: #D3DDD8;
  --wa: #0B7A43;           /* WhatsApp button (dark enough for white text) */
  --wa-dark: #086236;

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(19, 36, 31, .06), 0 10px 28px -12px rgba(11, 93, 75, .28);
  --wrap: 1160px;
  --header-h: 64px;
}

/* ---------- 2. Base & typography ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6.4vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 3. Layout helpers --------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tint { background: var(--mint-soft); }
.section--white { background: var(--surface); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
main { min-height: 60vh; }

/* ---------- 4. Buttons, tags, small pieces --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 122, 67, .7); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .92rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .2rem .65rem; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .82rem; font-weight: 600; }
.checks { display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: .22em; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-300%); z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.skip:focus { transform: none; color: #fff; }
.noscript { margin: 1rem auto; padding: 1rem 1.25rem; background: var(--amber-soft); border-radius: var(--r-md); max-width: 46rem; }

/* ---------- 5. Header, navigation, language toggle ------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; min-height: var(--header-h); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header__in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.035em; }
.brand__word span { color: var(--green); }
.header__tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header__wa { display: none; }

.nav { display: none; }
.nav.is-open {
  display: grid; position: absolute; left: 0; right: 0; top: 100%;
  padding: .5rem 1.25rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav a { padding: .8rem .25rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--mint); }
.nav a[aria-current="page"] { color: var(--green); }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mint); }
.lang button { min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--green-dark); box-shadow: 0 1px 3px rgba(19, 36, 31, .18); }

@media (min-width: 960px) {
  .nav, .nav.is-open { display: flex; position: static; gap: .25rem; padding: 0; margin-left: 1.5rem; background: none; border: 0; box-shadow: none; }
  .nav a { padding: .45rem .7rem; border: 0; border-radius: 999px; font-size: .95rem; }
  .nav a:hover { background: var(--mint-soft); }
  .nav a[aria-current="page"] { background: var(--mint); }
  .nav-toggle { display: none; }
  .header__wa { display: inline-flex; }
}

/* ---------- 6. Hero -------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
/* Faint spreadsheet grid: the world our customers already work in */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 34px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__copy h1 { max-width: 14ch; }
.hero__try { display: flex; gap: .6rem; align-items: flex-start; margin: 1.5rem 0 0; padding: .7rem .9rem; max-width: 30rem; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 600; font-size: .95rem; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; }
}

/* ---------- 7. Home: stats, problems, services ----------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { display: grid; gap: .15rem; padding: 1.1rem 1rem; background: var(--surface); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .92rem; line-height: 1.35; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.problems { display: grid; gap: .75rem; }
.problem { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); font-size: 1.02rem; }
.problem .icon { width: 1.6rem; height: 1.6rem; color: var(--green); margin-top: .1rem; }
.problems__close { margin-top: 1.5rem; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; max-width: 34ch; line-height: 1.25; }
@media (min-width: 760px) { .problems { grid-template-columns: 1fr 1fr; } }

.services { display: grid; gap: 1rem; }
.service, .case-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service:hover, .case-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.service__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green-dark); flex: none; }
.service__icon .icon { width: 26px; height: 26px; }
.service__name, .case-card h3 { margin: .4rem 0 0; font-size: 1.25rem; }
.service__text, .case-card p { margin: 0; color: var(--muted); }
.service__price { margin: .3rem 0 0; font-size: .95rem; }
.service__price strong { font-family: var(--font-display); font-size: 1.15rem; }
.service__more { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }

.case-grid { display: grid; gap: 1rem; }
.case-card .tags { margin-top: .4rem; }
@media (min-width: 860px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

.offer { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--green); color: #fff; border-radius: var(--r-lg); }
.offer h2 { color: #fff; font-size: clamp(1.4rem, 3.6vw, 2rem); }
.offer p { margin: 0; color: #D7EBE3; max-width: 56ch; }
.offer .btn--wa { background: #fff; color: var(--green-dark); box-shadow: none; }
.offer .btn--wa:hover { background: var(--amber-soft); color: var(--green-dark); }
@media (min-width: 860px) { .offer { grid-template-columns: 1fr auto; gap: 2rem; } }

/* ---------- 8a. Interactive: finance bot demo ------------------------------ */
.demo { display: grid; gap: 1rem; justify-items: center; }
.phone {
  width: min(100%, 320px); display: flex; flex-direction: column; height: 500px;
  background: #E7EEF2; border: 9px solid var(--ink); border-radius: 36px; overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(19, 36, 31, .55);
}
.phone__bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; }
.phone__name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.phone__status { font-size: .75rem; color: var(--muted); line-height: 1.2; }
.chat { flex: 1; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .45rem; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .5rem .7rem; border-radius: 14px; font-size: .86rem; line-height: 1.4; animation: msg-in .25s ease both; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: #D5F2C6; border-bottom-right-radius: 4px; }
.msg b { display: block; }
.msg small { display: block; margin-top: .25rem; color: var(--muted); }
.msg__undo { display: inline-flex; align-items: center; gap: .3rem; margin-top: .45rem; padding: .3rem .7rem; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--mint-soft); font-size: .8rem; font-weight: 700; cursor: pointer; }
.msg__undo:disabled { opacity: .5; cursor: default; }
.typing { display: inline-flex; gap: 4px; padding: .7rem .8rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.receipt { width: 150px; padding: .6rem .65rem; background: #fff; border-radius: 6px; font-size: .74rem; line-height: 1.35; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.receipt__method { display: inline-block; padding: 0 .4rem; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 700; font-size: .66rem; }
.receipt strong { display: block; margin: .3rem 0; }
.receipt__lines { display: grid; gap: 4px; margin: .4rem 0; }
.receipt__lines i { height: 4px; border-radius: 2px; background: var(--line); }
.receipt__lines i:last-child { width: 60%; }
.receipt__total { display: flex; justify-content: space-between; padding-top: .35rem; border-top: 1px dashed var(--muted); font-weight: 700; }
.quick { padding: .45rem .6rem .2rem; background: var(--surface); border-top: 1px solid var(--line); }
.quick__label { margin: 0 0 .3rem; font-size: .72rem; color: var(--muted); }
.quick__row { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.quick__row::-webkit-scrollbar { display: none; }
.quick button { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .25rem .7rem; border: 1px solid var(--green); border-radius: 999px; background: var(--mint-soft); color: var(--green-dark); font-size: .78rem; font-weight: 700; cursor: pointer; }
.quick button:hover { background: var(--mint); }
.chat-form { display: flex; gap: .4rem; padding: .45rem .6rem .6rem; background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 16px; }
.chat-form button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; }

.demo__side { width: 100%; max-width: 420px; min-width: 0; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.sheet__bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--green); color: #fff; font-weight: 700; font-size: .88rem; }
.sheet table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .76rem; font-variant-numeric: tabular-nums; }
.sheet th:nth-child(1) { width: 15%; }
.sheet th:nth-child(2) { width: 30%; }
.sheet th:nth-child(3) { width: 26%; }
.sheet th:nth-child(4) { width: 29%; }
.sheet td { overflow-wrap: anywhere; }
.sheet th, .sheet td { padding: .42rem .4rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; line-height: 1.3; }
.sheet th { background: var(--mint-soft); color: var(--muted); font-weight: 700; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; text-align: right; white-space: nowrap; }
.sheet td:first-child { white-space: nowrap; color: var(--muted); }
.sheet tr.row-new td { animation: row-flash 2.2s ease both; }
.sheet tfoot td { border-bottom: 0; font-weight: 800; font-size: .9rem; background: var(--amber-soft); }
.demo__note { margin: .7rem 0 0; font-size: .8rem; color: var(--muted); }
.demo__cta { margin-top: .6rem; }
@media (min-width: 640px) {
  .demo { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 1.25rem; }
  .phone { width: 280px; }
  .demo__side { max-width: none; }
}

/* ---------- 8b. Interactive: how automation works -------------------------- */
.flow__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.flow__tabs button { display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .5rem 1.05rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.flow__tabs button:hover { border-color: var(--green); }
.flow__tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pipe { display: grid; gap: 0; }
.pipe__step { position: relative; padding: 1.2rem 1.2rem 1.3rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); opacity: .35; transform: scale(.98); transition: opacity .4s ease, transform .4s ease, border-color .4s ease, box-shadow .4s ease; }
.pipe__step.on { opacity: 1; transform: none; border-color: var(--green); box-shadow: var(--shadow); }
.pipe__label { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .7rem .15rem .3rem; border-radius: 999px; background: var(--amber-soft); font-size: .82rem; font-weight: 700; }
.pipe__label b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: .78rem; }
.pipe__step h3 { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 .3rem; }
.pipe__step h3 .icon { color: var(--green); width: 1.4em; height: 1.4em; }
.pipe__step p { margin: 0; color: var(--muted); }
.pipe__link { position: relative; height: 30px; width: 4px; margin: 0 auto; background: var(--line); border-radius: 2px; overflow: hidden; }
.pipe__link::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .4s ease; }
.pipe__link.on::after { transform: scaleY(1); }
.flow__example { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--amber); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; max-width: 60rem; opacity: 0; transition: opacity .5s ease; }
.flow__example.on { opacity: 1; }
@media (min-width: 860px) {
  .pipe { grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; }
  .pipe__link { width: 100%; height: 4px; margin: auto 0; }
  .pipe__link::after { transform: scaleX(0); transform-origin: left; }
  .pipe__link.on::after { transform: scaleX(1); }
}

/* ---------- 8c. Interactive: savings calculator ---------------------------- */
.calc { display: grid; gap: 1.25rem; }
.calc__form, .calc__out { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r-lg); }
.calc__form { background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1.3rem; align-content: start; }
.calc__out { background: var(--ink); color: #fff; }
.field label { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 600; margin-bottom: .45rem; }
.field output { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--green); white-space: nowrap; }
.field input[type="range"] { width: 100%; height: 32px; accent-color: var(--green); cursor: pointer; }
.field input[type="number"] { width: 100%; min-height: 48px; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: 1.05rem; font-weight: 700; }
.field input[type="number"]:focus { border-color: var(--green); outline: none; }
.field__hint { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.stepper { display: flex; gap: .5rem; }
.stepper button { width: 48px; min-height: 48px; flex: none; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { border-color: var(--green); }
.out-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.1rem 1rem; }
.out__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5.6vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.out--main .out__num { color: var(--amber); }
.out__label { font-size: .88rem; color: #B9CCC5; }
.rec { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.rec p { margin: 0 0 .4rem; color: #B9CCC5; font-size: .92rem; }
.rec .rec__pkg { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 .2rem; }
.rec .btn { margin-top: .9rem; width: 100%; }
.calc__note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); max-width: 70ch; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; } }

/* ---------- 9. Services & pricing page ------------------------------------- */
.svc { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.svc__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.svc__head h2 { margin: 0; }
.svc__grid { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.svc__col h3, .case__block h3, .case__tech h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--green); margin-bottom: .4rem; letter-spacing: 0; }
.svc__col p { margin: 0; }
.svc__col--result { padding: 1rem 1.1rem; background: var(--amber-soft); border-radius: var(--r-md); }
.svc__col--result h3 { color: var(--ink); }
@media (min-width: 900px) { .svc__grid { grid-template-columns: 1fr 1.2fr 1fr; gap: 2rem; } }

/* Price list laid out like the rows of a sheet */
.price-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.price-table__head { display: none; }
.price-row { display: grid; gap: .5rem; padding: 1.1rem; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row--starter { background: linear-gradient(90deg, var(--amber-soft), transparent 55%); }
.price-row p, .price-row h4 { margin: 0; }
.price-row__inc { color: var(--muted); font-size: .95rem; }
.price-row__time { display: flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--muted); }
.price-row__price strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.price-row__from { font-size: .82rem; color: var(--muted); }
.price-row .btn { justify-self: start; }
@media (min-width: 900px) {
  .price-table__head, .price-row { display: grid; grid-template-columns: 1.1fr 2.5fr .9fr 1.15fr auto; gap: 1.25rem; align-items: center; padding: .9rem 1.2rem; }
  .price-table__head { background: var(--mint-soft); border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); }
  .price-table__head span:last-child { width: 168px; }
  .price-row .btn { justify-self: end; width: 168px; }
  .price-row__from { display: block; }
}
.notes { display: grid; gap: .7rem; max-width: 60rem; }

/* ---------- 10. Case studies + server diagram ------------------------------ */
.case { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.case__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.case__head h2 { margin-bottom: .3rem; }
.case__head .lead { margin: 0; }
.case__body { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.case__block p { margin: 0; }
.case__block--you { padding: 1rem 1.1rem; background: var(--amber-soft); border-radius: var(--r-md); }
.case__block--you h3 { color: var(--ink); }
.case__interactive { margin: 0 0 1.75rem; padding: clamp(1rem, 3vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.case__interactive h3 { font-size: 1.3rem; }
.case__tech { margin-bottom: .5rem; }
@media (min-width: 860px) { .case__body { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.dg { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.dg__map { display: grid; justify-items: center; }
.dg__node { display: flex; align-items: center; gap: .6rem; width: min(100%, 290px); min-height: 52px; padding: .55rem .9rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 700; font-size: .95rem; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.dg__node .icon { width: 1.5rem; height: 1.5rem; color: var(--green); }
.dg__node:hover { border-color: var(--green); }
.dg__node[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; transform: scale(1.03); box-shadow: var(--shadow); }
.dg__node[aria-pressed="true"] .icon { color: var(--amber); }
.dg__link { position: relative; width: 4px; height: 26px; background: var(--line); overflow: hidden; }
.dg__link i { position: absolute; left: 0; top: -8px; width: 4px; height: 8px; border-radius: 2px; background: var(--green); animation: packet 1.6s linear infinite; }
.dg__zone { position: relative; display: grid; justify-items: center; width: min(100%, 340px); padding: 1.6rem .9rem 1rem; border: 2px dashed var(--green); border-radius: var(--r-lg); background: var(--mint-soft); }
.dg__zone-label { position: absolute; top: -.8rem; left: 1rem; padding: 0 .6rem; background: var(--green); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.dg__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; margin-top: .5rem; }
.dg__pair .dg__node { width: 100%; font-size: .85rem; padding: .5rem .6rem; }
.dg__side { width: 100%; margin-top: .9rem; padding-top: .9rem; border-top: 2px dotted var(--green); display: grid; justify-items: center; }
.dg__info { padding: 1.2rem 1.3rem; background: var(--ink); color: #fff; border-radius: var(--r-lg); align-self: start; }
.dg__info h4 { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; color: #fff; }
.dg__info h4 .icon { color: var(--amber); }
.dg__info dt { margin-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--amber); }
.dg__info dd { margin: .15rem 0 0; color: #E2ECE8; }
@media (min-width: 760px) {
  .dg { grid-template-columns: 360px 1fr; gap: 2rem; }
  .dg__info { position: sticky; top: calc(var(--header-h) + 1rem); }
}

.empty { display: grid; justify-items: center; gap: .8rem; padding: 2rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--muted); }
.empty .icon { width: 2.2rem; height: 2.2rem; color: var(--green); }
.empty p { margin: 0; max-width: 56ch; }
.testi-grid { display: grid; gap: 1rem; }
.testi { margin: 0; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.testi blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.testi figcaption span { display: block; color: var(--muted); font-size: .9rem; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 11. About, contact, FAQ, privacy, 404 -------------------------- */
.about-hero { display: grid; gap: 2rem; align-items: center; }
.about__photo { max-width: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mint); box-shadow: var(--shadow); }
.about__photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.timeline { display: grid; gap: 0; border-left: 3px solid var(--mint); margin-left: .4rem; }
.timeline__item { position: relative; padding: 0 0 1.75rem 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--amber); border: 3px solid var(--paper); }
.timeline__period { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green); }
.timeline__item h3 { margin: .1rem 0 .3rem; }
.timeline__item p { margin: 0; color: var(--muted); max-width: 64ch; }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .about-hero { grid-template-columns: 340px 1fr; gap: 3.5rem; }
  .two-col { grid-template-columns: 1fr 1fr; }
}

.contact-grid { display: grid; gap: 1rem; }
.contact-card { display: grid; gap: .5rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-card h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin: 0; }
.contact-card h2 .icon { color: var(--green); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card__value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink) !important; overflow-wrap: anywhere; }
.contact-card .btn { justify-self: start; margin-top: .5rem; }
.contact-card--main { border: 2px solid var(--green); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .6rem; }
.faq summary { position: relative; padding: 1rem 3rem 1rem 1.2rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--muted); max-width: 70ch; }
.faq-list { max-width: 52rem; }

.notfound { display: grid; justify-items: start; gap: .5rem; padding-block: clamp(3rem, 10vw, 7rem); }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 11rem); font-weight: 800; line-height: .9; color: var(--mint); letter-spacing: -.05em; -webkit-text-stroke: 2px var(--green); }

/* ---------- 12. Footer, floating WhatsApp, motion -------------------------- */
.site-footer { margin-top: clamp(2rem, 6vw, 4rem); background: var(--ink); color: #C9D8D2; }
.footer__in { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__word span { color: var(--amber); }
.site-footer .brand__mark path { stroke: #7FD1B9; }
.footer__brand p { margin: 1rem 0 0; max-width: 40ch; }
.footer__h { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.footer__list { display: grid; gap: .55rem; }
.footer__list li, .footer__list a { display: flex; align-items: center; gap: .5rem; }
.footer__list a { color: #C9D8D2; text-decoration: none; min-height: 28px; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__base { padding-block: 1.2rem 5.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer__base p { margin: 0; }
@media (min-width: 760px) {
  .footer__in { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .footer__base { padding-bottom: 1.5rem; }
}

.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(11, 122, 67, .8); }
.fab .icon { width: 30px; height: 30px; }
.fab:hover { color: #fff; background: var(--wa-dark); }
@media (min-width: 960px) { .fab { display: none; } }

/* Scroll reveal: only active when JavaScript has added .can-reveal */
.can-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.can-reveal [data-reveal].in { opacity: 1; transform: none; }

@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes row-flash { 0% { background: var(--amber); transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; transform: none; } 100% { background: transparent; } }
@keyframes packet { from { transform: translateY(0); } to { transform: translateY(40px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dg__link i { display: none; }
  .can-reveal [data-reveal] { opacity: 1; transform: none; }
}
