/* ==========================================================================
   VibeCoders — site styles
   Brand palette from the VibeCoders branding sheet.
   Headings: Ragick (brand font) when installed/self-hosted, Poppins fallback.
   ========================================================================== */

/* Self-hosted fonts (latin subset), so no third-party request blocks the first paint */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/poppins-800-latin.woff2") format("woff2"); }

:root {
  /* Brand colors */
  --plum: #66033C;
  --plum-deep: #3D0224;
  --red: #E6474B;
  --orange: #FBA866;
  --cream: #F2EFE8;
  --ink: #051316;

  /* Derived */
  --paper: #FBFAF7;
  --tint: #ECE7DC;
  --text: #051316;
  --muted: #4A5457;
  --line: rgba(5, 19, 22, 0.10);
  --on-dark: #F2EFE8;
  --on-dark-muted: rgba(242, 239, 232, 0.72);
  --wa: #25D366;
  --grad-warm: linear-gradient(100deg, var(--red) 0%, var(--orange) 100%);
  --grad-brand: linear-gradient(110deg, var(--plum) 0%, var(--red) 100%);

  /* Type */
  --font-head: "Ragick", "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(5, 19, 22, 0.04), 0 12px 32px -12px rgba(5, 19, 22, 0.18);
  --header-h: 72px;

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 700; }
h3, .h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
/* Even line lengths in headings, no single-word last lines in body text */
h2, h3, .h3, .page-intro h1 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--orange); }

.grad, .hl {
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.grad { background-image: var(--grad-brand); }
.hl { background-image: var(--grad-warm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }
.btn-primary {
  background: var(--grad-warm);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(230, 71, 75, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(230, 71, 75, 0.85); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light { border-color: rgba(242, 239, 232, 0.5); color: var(--cream); background: rgba(242, 239, 232, 0.06); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(242, 239, 232, 0.14); }
.btn-wa { background: var(--wa); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.btn-wa:hover { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.9); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 232, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(5, 19, 22, 0.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 168px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--plum); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; padding: 10px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}

/* Recreates the brand's "refraction" banner: warm glow split into vertical glass bands. */
.hero-bg, .chatbots-bg, .contact-side-bg, .calc-result-bg, .footer-cta-bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero-bg {
  background:
    linear-gradient(180deg, rgba(5,19,22,0) 55%, var(--ink) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0) 26px, rgba(5,19,22,0.16) 58px, rgba(255,255,255,0.10) 60px),
    radial-gradient(60% 70% at 78% 40%, rgba(251,168,102,0.95) 0%, rgba(230,71,75,0.85) 30%, rgba(102,3,60,0.85) 58%, rgba(5,19,22,0) 85%),
    radial-gradient(50% 60% at 10% 100%, rgba(102,3,60,0.8) 0%, rgba(5,19,22,0) 70%),
    var(--ink);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,19,22,0.9) 0%, rgba(5,19,22,0.6) 42%, rgba(5,19,22,0) 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero h1 { color: #fff; text-wrap: balance; }
.rotator { display: grid; margin-top: 0.06em; }
.rot-word {
  grid-area: 1 / 1;
  background-image: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(0.35em);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.rot-word.is-active { opacity: 1; transform: none; }
.rot-word.is-leaving { opacity: 0; transform: translateY(-0.35em); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-dark-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 0.93rem; font-weight: 500; color: var(--on-dark); }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--check) center / 11px no-repeat, var(--grad-warm);
}

/* Hero collage. Sizes use --u (1% of the collage width) so everything scales together. */
.hero-visual {
  --u: 1cqw;
  position: relative; width: 100%; max-width: 540px; justify-self: end;
  aspect-ratio: 1 / 0.98;
  container-type: inline-size;
}
/* Browsers without container units get a fixed unit at the collage's full size */
@supports not (width: 1cqw) { .hero-visual { --u: 5.3px; } }
.hv-browser {
  position: absolute; left: 0; top: 4%; width: 74%;
  background: var(--paper); border-radius: calc(var(--u) * 2.6); overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.75);
  transform: rotate(-2.5deg);
}
.hv-bar { display: flex; align-items: center; gap: var(--u); height: calc(var(--u) * 6); padding: 0 calc(var(--u) * 2.4); background: #E9E4DA; }
.hv-bar i { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: #C9C2B6; flex: none; }
.hv-bar i:nth-child(1) { background: var(--red); }
.hv-bar i:nth-child(2) { background: var(--orange); }
.hv-bar span {
  margin-left: calc(var(--u) * 1.6); flex: 1; height: calc(var(--u) * 3.4); border-radius: 99px; background: #fff;
  display: flex; align-items: center; padding-left: calc(var(--u) * 1.6);
  font-size: calc(var(--u) * 1.9); font-weight: 500; color: var(--muted);
}
.hv-page { padding: calc(var(--u) * 3); display: grid; gap: calc(var(--u) * 3); }
.hv-nav { display: flex; align-items: center; gap: calc(var(--u) * 2); }
.hv-nav b { width: calc(var(--u) * 12); height: calc(var(--u) * 2.4); border-radius: 99px; background: var(--grad-brand); margin-right: auto; }
.hv-nav span { width: calc(var(--u) * 6); height: calc(var(--u) * 1.3); border-radius: 99px; background: #D9D3C8; }
.hv-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: calc(var(--u) * 3); align-items: center; }
.hv-lines { display: grid; gap: calc(var(--u) * 1.4); }
.hv-lines span { height: calc(var(--u) * 2.6); border-radius: 99px; background: var(--ink); }
.hv-lines span.short { width: 62%; }
.hv-lines em { margin-top: calc(var(--u) * 1.2); width: 52%; height: calc(var(--u) * 4); border-radius: 99px; background: var(--grad-warm); }
.hv-img {
  aspect-ratio: 1; border-radius: calc(var(--u) * 2);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0, rgba(255,255,255,0) calc(var(--u) * 1.6), rgba(0,0,0,0.14) calc(var(--u) * 3.2)),
    linear-gradient(160deg, var(--orange), var(--red) 45%, var(--plum));
}
.hv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2); }
.hv-cards span { height: calc(var(--u) * 9); border-radius: calc(var(--u) * 1.6); background: #EFEAE0; }

.hv-phone {
  position: absolute; right: 0; top: 20%; z-index: 2; width: 43%; height: 72%;
  display: flex; flex-direction: column;
  background: #0E2226; border-radius: calc(var(--u) * 5); padding: calc(var(--u) * 1.4);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.85), 0 0 0 calc(var(--u) * 0.8) rgba(242,239,232,0.06);
}
.hv-phone-head {
  display: flex; align-items: center; gap: calc(var(--u) * 1.4);
  background: var(--plum); color: #fff;
  border-radius: calc(var(--u) * 3.8) calc(var(--u) * 3.8) var(--u) var(--u);
  padding: calc(var(--u) * 1.8) calc(var(--u) * 2);
}
.hv-phone-head img { width: calc(var(--u) * 6); height: calc(var(--u) * 6); background: var(--cream); border-radius: 50%; padding: calc(var(--u) * 0.5); }
.hv-phone-head b { display: block; font-size: calc(var(--u) * 2.4); line-height: 1.2; }
.hv-phone-head small { display: block; font-size: calc(var(--u) * 1.8); opacity: 0.8; line-height: 1.2; }
.hv-chat {
  flex: 1; margin-top: calc(var(--u) * 0.6); overflow: hidden;
  display: flex; flex-direction: column; gap: calc(var(--u) * 1.4);
  padding: calc(var(--u) * 2);
  background: #ECE5DD;
  border-radius: var(--u) var(--u) calc(var(--u) * 3.8) calc(var(--u) * 3.8);
}
.hv-chat p {
  margin: 0; max-width: 88%;
  font-size: calc(var(--u) * 2.15); line-height: 1.35; color: var(--ink);
  padding: calc(var(--u) * 1.3) calc(var(--u) * 1.8); border-radius: calc(var(--u) * 2.2);
  box-shadow: 0 1px 1px rgba(5,19,22,0.12);
  transition: opacity .4s ease, transform .4s ease;
}
.hv-chat .u { align-self: flex-end; background: #FCD9BD; border-top-right-radius: calc(var(--u) * 0.6); }
.hv-chat .b { align-self: flex-start; background: #fff; border-top-left-radius: calc(var(--u) * 0.6); }
.js .hv-chat p { opacity: 0; transform: translateY(calc(var(--u) * 1.5)); }
.js .hv-chat p.show { opacity: 1; transform: none; }

.hv-flow {
  position: absolute; left: 5%; bottom: 2%; z-index: 3; width: 48%;
  background: rgba(251,250,247,0.97); border-radius: calc(var(--u) * 2.8);
  padding: calc(var(--u) * 2.6) calc(var(--u) * 3);
  box-shadow: 0 26px 50px -22px rgba(0,0,0,0.75);
}
.hv-flow-title { margin: 0 0 calc(var(--u) * 1.6); font-size: calc(var(--u) * 1.8); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); line-height: 1; }
.hv-flow ol { display: grid; gap: calc(var(--u) * 1.5); }
.hv-flow li { display: flex; align-items: center; gap: calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.3); font-weight: 600; color: var(--ink); line-height: 1.2; }
.hv-flow li::before {
  content: ""; flex: none; width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4); border-radius: 50%;
  background: #23B26D var(--check) center / 60% no-repeat;
  border: calc(var(--u) * 0.35) solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.js .hv-flow li:not(.done)::before { background: transparent; border-color: #D3CCC0; }

.hv-bot {
  position: absolute; z-index: 4; right: -3%; top: 1%; width: 22%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(5,19,22,0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 116px) 0; isolation: isolate; }
.section-tint { background: var(--tint); }
/* Inner pages: short light title inside the first section instead of a dark page header,
   so the content starts on the first screen */
.section-first { padding-top: clamp(28px, 4vw, 48px); }
.page-intro { margin-bottom: clamp(24px, 3vw, 36px); }
.page-intro h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; text-wrap: balance; }
.page-intro p { margin: 0; max-width: 70ch; font-size: 1.05rem; color: var(--muted); }
/* Keep the first section's heading smaller than the page title above it */
.section-first .why-copy h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head h2:last-child { margin-bottom: 0; }

/* Brand pattern tile, tinted plum via mask so it stays subtle */
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--plum);
  opacity: 0.05;
  -webkit-mask: url("../assets/pattern-tile.webp") repeat 0 0 / 380px 380px;
  mask: url("../assets/pattern-tile.webp") repeat 0 0 / 380px 380px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Home: services teaser ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.teaser {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 46px 22px 20px; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.teaser:hover { transform: translateY(-3px); border-color: rgba(102,3,60,0.25); box-shadow: 0 1px 2px rgba(5,19,22,0.04), 0 18px 36px -18px rgba(102,3,60,0.35); }
.teaser .icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-brand); box-shadow: 0 10px 20px -10px rgba(102,3,60,0.8);
}
.teaser .icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.teaser-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 2px 0 4px; }
.teaser-text span { display: block; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.teaser::after {
  content: ""; position: absolute; right: 18px; top: 26px; width: 18px; height: 18px;
  background: var(--plum);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.35; transition: opacity .2s ease, transform .2s ease;
}
.teaser:hover::after { opacity: 1; transform: translateX(3px); }
.teaser-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; color: var(--orange); text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.chatbots-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.price-hint { margin: 18px 0 0; font-size: 0.92rem; color: var(--on-dark-muted); }
.price-hint strong { color: #fff; }
.price-hint a, .price-from a { font-weight: 600; color: var(--orange); white-space: nowrap; }
.price-from { margin: 18px 0 0; font-size: 0.9rem; color: var(--muted); }
.price-from strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.service-featured .price-from strong { color: #fff; }
.service:not(.service-featured) .price-from a { color: var(--plum); }

/* ---------- Prijzen ---------- */
/* Nested subgrids line up title, price, ticks and button across all four cards. */
.pricing { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 0; }
.plan-group { display: grid; grid-row: span 7; grid-template-rows: subgrid; scroll-margin-top: calc(var(--header-h) + 20px); }
.plan-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.plan-group-head h2 { font-size: 1.5rem; margin: 0; }
.plan-group-head .icon, .fee-head .icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-brand); box-shadow: 0 10px 20px -10px rgba(102,3,60,0.8);
}
.plan-group-head .icon svg, .fee-head .icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; grid-row: span 6; grid-template-rows: subgrid; }
.plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 26px 22px 22px; transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(5,19,22,0.04), 0 22px 44px -18px rgba(102,3,60,0.35); }
.plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0 0 18px; }
.plan-price {
  display: grid; grid-template-columns: 1fr 1fr; align-self: start;
  background: var(--tint); border-radius: 14px; overflow: hidden;
}
.plan-price div { padding: 12px 14px; }
.plan-price div + div { border-left: 1px solid rgba(5,19,22,0.08); }
.plan-price span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plan-price strong { display: block; font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--plum); }
.plan-first { margin: 12px 0 0; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.plan-first strong { color: var(--ink); }
.plan-first a { font-weight: 600; color: var(--plum); white-space: nowrap; }
.plan .ticks { margin-top: 16px; padding-top: 16px; align-content: start; }
.plan .btn { margin-top: 22px; width: 100%; align-self: end; }
.pricing .service-wide { margin-top: 40px; }
/* Service pages: one package group, left aligned under the page title */
.pricing-single { grid-template-columns: minmax(0, 780px) minmax(0, 1fr); }
.included { grid-column: 2; grid-row: 1 / span 7; align-self: start; margin-top: 64px; padding: 26px 24px 24px; }
.included h2 { margin-bottom: 4px; }
.included > p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.included .ticks { margin-top: 16px; padding-top: 16px; }
.included .btn { width: 100%; margin-top: 22px; }
.pricing-note { margin: 22px 0 0; color: var(--muted); font-size: 0.95rem; }
.pricing-note a { font-weight: 600; color: var(--plum); }
.js .plan.reveal.in { transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease; }
/* Browsers without subgrid: plain cards, button pinned to the bottom */
@supports not (grid-template-rows: subgrid) {
  .plan-group { grid-row: auto; display: flex; flex-direction: column; }
  .plan-pair { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .plan { display: flex; flex-direction: column; }
  .plan-price { align-self: stretch; }
  .plan .btn { margin-top: auto; }
  .plan .ticks { margin-bottom: 22px; }
}

/* What the monthly fee covers */
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fee { padding: 28px 28px 26px; }
.fee-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.fee-head h3 { margin: 0; font-size: 1.25rem; }
.fee-head p { margin: 2px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--plum); }
.fee-list { display: grid; gap: 14px; }
.fee-list li { position: relative; padding-left: 28px; font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
.fee-list li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--check) center / 10px no-repeat, var(--grad-warm);
}
.fee-list strong { display: block; font-weight: 600; color: var(--ink); }
.fee-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.fee-note { padding: 24px 26px; border: 1.5px dashed rgba(102,3,60,0.25); border-radius: var(--radius); }
.fee-note h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fee-note p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(5,19,22,0.04), 0 22px 44px -20px rgba(102,3,60,0.35); }
.pain-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #B4373B;
}
.pain-label::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: #F9DCDC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B4373B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.pain-problem { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 20px; }
.pain-fix {
  margin: auto 0 0; padding-top: 18px; border-top: 1.5px dashed rgba(102,3,60,0.22);
  font-size: 0.97rem; font-weight: 500; color: var(--ink);
  display: flex; gap: 12px; align-items: baseline;
}
.pain-fix span {
  flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--grad-brand); padding: 5px 10px; border-radius: 999px; line-height: 1;
  position: relative; top: -1px;
}

/* ---------- Services (bento) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 30px 28px 28px; transition: transform .25s ease, box-shadow .25s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(5,19,22,0.04), 0 22px 44px -18px rgba(102,3,60,0.35); }
.service .icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 10px 20px -10px rgba(102,3,60,0.8);
}
.service .icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: 0.98rem; }
.ticks { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 26px; font-size: 0.94rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--check) center / 10px no-repeat, var(--grad-warm);
}

.service-featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--plum) 0%, var(--plum-deep) 100%);
  border: 0; color: var(--on-dark);
}
.service-featured::after {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,71,75,0.55), rgba(230,71,75,0) 70%);
}
.service-featured .h3 { color: #fff; font-size: 1.45rem; }
.service-featured p { color: var(--on-dark-muted); }
.service-featured .icon { background: var(--grad-warm); box-shadow: 0 10px 20px -10px rgba(230,71,75,0.9); }
.service-featured .icon svg { stroke: var(--ink); }
.service-featured .ticks { border-top-color: rgba(242,239,232,0.16); }
.service-featured .ticks li { color: #fff; }
.tag {
  display: inline-block; margin-bottom: 10px !important;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink) !important; background: var(--orange); padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.mini-chat {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(242,239,232,0.07); border: 1px solid rgba(242,239,232,0.14);
  border-radius: 18px; padding: 16px;
}
.mini-chat p {
  margin: 0; max-width: 88%; font-size: 0.85rem; line-height: 1.4; color: var(--ink);
  padding: 8px 12px; border-radius: 12px;
}
.mini-chat .u { align-self: flex-end; background: #FCD9BD; border-top-right-radius: 4px; }
.mini-chat .b { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }

.service-wide {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 24px;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate;
}
.service-wide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0) 30px, rgba(0,0,0,0.14) 60px),
              radial-gradient(40% 120% at 100% 50%, rgba(102,3,60,0.9), rgba(5,19,22,0) 70%);
}
.service-wide .icon { margin: 0; flex: none; }
.service-wide-text { flex: 1; }
.service-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.service-links .link-arrow { margin-top: 0; }
.service:not(.service-featured) .link-arrow { color: var(--plum); }
.service-wide .h3 { color: #fff; margin-bottom: 4px; }
.service-wide p { color: var(--on-dark-muted); margin: 0; max-width: 62ch; }

/* ---------- Chatbot demo ---------- */
.section-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.section-dark h2 { color: #fff; }
.chatbots-bg {
  background:
    radial-gradient(45% 60% at 85% 50%, rgba(102,3,60,0.9) 0%, rgba(5,19,22,0) 75%),
    radial-gradient(35% 45% at 70% 90%, rgba(230,71,75,0.35) 0%, rgba(5,19,22,0) 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0) 30px, rgba(0,0,0,0.12) 60px);
  /* Fade in from plain ink so the section melts into the hero above it. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}
/* Hero and demo read as one dark block: no double padding between them. */
.hero + .chatbots { padding-top: clamp(24px, 3vw, 48px); margin-top: -2px; } /* overlap hides sub-pixel hairline at browser zoom */
.chatbots-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "intro phone" "more phone";
  column-gap: 64px; row-gap: 0; align-items: center;
}
.chatbots-intro { grid-area: intro; align-self: end; }
.chatbots-intro .lead { margin-bottom: 0; }
.chatbots-more { grid-area: more; align-self: start; }
.chatbots .phone-wrap { grid-area: phone; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 34px 0 38px; }
.feature-list li { padding-left: 18px; border-left: 2px solid var(--red); }
.feature-list strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.feature-list span { color: var(--on-dark-muted); font-size: 0.95rem; }

.phone-wrap { justify-self: center; width: 100%; max-width: 390px; }
.scenario-tabs {
  display: flex; gap: 4px; width: fit-content; margin: 0 auto 14px; padding: 5px;
  background: rgba(242,239,232,0.07); border: 1px solid rgba(242,239,232,0.14); border-radius: 999px;
}
.scenario-tabs button {
  font: 600 0.9rem/1 var(--font-body); padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--on-dark-muted); transition: background-color .2s ease, color .2s ease;
}
.scenario-tabs button:hover { color: #fff; }
.scenario-tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.phone {
  background: #0E2226; border-radius: 32px; padding: 10px;
  border: 1px solid rgba(242,239,232,0.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 6px rgba(242,239,232,0.04);
  display: flex; flex-direction: column;
}
.phone-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--plum); border-radius: 24px 24px 6px 6px; color: #fff;
}
.phone-top img { width: 36px; height: 36px; background: var(--cream); border-radius: 50%; padding: 3px; }
.phone-top strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.phone-top .status { font-size: 0.76rem; color: rgba(255,255,255,0.75); }
.phone-top .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3BD48A; margin-right: 5px; }
.demo-badge {
  margin-left: auto; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.16);
}
.chat {
  height: 340px; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px;
  background:
    linear-gradient(rgba(236,229,221,0.94), rgba(236,229,221,0.94)),
    url("../assets/pattern-tile.webp") 0 0 / 220px 220px;
  margin-top: 4px; border-radius: 6px;
}
.msg {
  max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45;
  color: var(--ink); box-shadow: 0 1px 1px rgba(5,19,22,0.12);
  animation: pop .25s ease-out;
}
.msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.user { background: #FCD9BD; align-self: flex-end; border-top-right-radius: 4px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA3A5; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px 6px; min-height: 58px; }
.chips button {
  font: 500 0.84rem/1.2 var(--font-body);
  padding: 9px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(242,239,232,0.08); color: var(--on-dark);
  border: 1px solid rgba(242,239,232,0.22);
  transition: background-color .2s ease, border-color .2s ease;
}
.chips button:hover:not(:disabled) { background: rgba(251,168,102,0.18); border-color: var(--orange); }
.chips button:disabled { opacity: .45; cursor: default; }
.chips .chip-restart { border-style: dashed; }
.phone-note { margin-top: 16px; font-size: 0.86rem; color: var(--on-dark-muted); text-align: center; }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.calc-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.calc-form {
  margin-top: 28px; display: grid; gap: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.range-head label { font-weight: 600; font-size: 0.96rem; }
.range-head output { font: 700 1.1rem/1 var(--font-head); color: var(--plum); white-space: nowrap; }
.range-hint { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 8px; margin: 8px 0; border-radius: 99px; cursor: pointer;
  background: var(--grad-warm) 0 0 / var(--fill, 50%) 100% no-repeat, #E3DDD2;
}
input[type="range"]:focus-visible { outline-offset: 8px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--plum);
  box-shadow: 0 4px 10px rgba(5,19,22,0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--plum);
  box-shadow: 0 4px 10px rgba(5,19,22,0.25);
}
input[type="range"]::-moz-range-track { background: transparent; }

.calc-result {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 48px 40px 40px; text-align: center;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 40px 80px -40px rgba(5,19,22,0.7);
}
.calc-result-bg {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(251,168,102,0.55), rgba(5,19,22,0) 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0) 22px, rgba(0,0,0,0.16) 46px),
    linear-gradient(180deg, var(--plum) 0%, var(--ink) 100%);
}
.calc-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin: 0; }
.calc-big { font: 800 clamp(4rem, 8vw, 6rem)/1 var(--font-head); color: #fff; margin: 10px 0 0; letter-spacing: -0.03em; }
.calc-big small { font-size: 0.34em; font-weight: 700; letter-spacing: 0; }
.calc-per { font-weight: 600; color: #fff; margin: 6px 0 18px; }
.calc-sub { color: var(--on-dark-muted); max-width: 34ch; margin: 0 auto 26px; }
.calc-note { font-size: 0.8rem; color: rgba(242,239,232,0.55); margin: 18px 0 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(102,3,60,0.35) 0 8px, transparent 8px 16px);
  z-index: -1;
}
.step { text-align: center; padding: 0 6px; }
.step-num {
  display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  font: 700 1.2rem/1 var(--font-head); color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 0 0 8px var(--tint), 0 14px 28px -12px rgba(102,3,60,0.8);
  margin-bottom: 22px;
}
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- About ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.why-bot { width: 120px; margin-top: 28px; transform: rotate(-6deg); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.value h3 { position: relative; padding-top: 18px; }
.value h3::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 4px; border-radius: 4px; background: var(--grad-warm); }
.value p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.values-3 { grid-template-columns: repeat(3, 1fr); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 72px; }
.mv { position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px 36px; color: var(--on-dark); isolation: isolate; }
.mv img { width: 44px; margin-bottom: 22px; opacity: .95; }
.mv-text { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.42; color: #fff; margin: 0; }
.mv-mission { background: var(--plum); }
.mv-vision { background: var(--ink); }
.mv::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(251,168,102,0.45), rgba(251,168,102,0) 70%);
}
.mv-mission::after { background: radial-gradient(circle, rgba(230,71,75,0.55), rgba(230,71,75,0) 70%); }

/* ---------- FAQ ---------- */
.faq-wrap .section-head { margin-bottom: 40px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(5,19,22,0.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq[open] { border-color: rgba(102,3,60,0.25); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 64px 20px 24px;
  font: 600 1.05rem/1.4 var(--font-head); letter-spacing: -0.01em;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2366033C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: #FCD9BD; }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-a p { margin: 0; max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden;
  border-radius: 28px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(5,19,22,0.6);
}
.contact-side { position: relative; isolation: isolate; color: var(--on-dark); padding: 52px 44px; display: flex; }
.contact-side-bg {
  background:
    linear-gradient(180deg, rgba(5,19,22,0.55) 0%, rgba(5,19,22,0.1) 40%, rgba(5,19,22,0.85) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0) 18px, rgba(5,19,22,0.2) 40px, rgba(255,255,255,0.10) 42px),
    linear-gradient(180deg, var(--plum) 0%, var(--red) 55%, var(--orange) 100%);
}
.contact-side-inner { display: flex; flex-direction: column; align-items: flex-start; }
.contact-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.contact-side p { color: rgba(242,239,232,0.88); }
.contact-side .btn-wa { margin-top: 8px; }
.contact-list { margin-top: auto; padding-top: 36px; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list .label { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242,239,232,0.7); font-weight: 600; }
.contact-list a, .contact-list span:not(.label) { font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--paper); padding: 48px 44px; }
.contact-form > img { width: 40px; margin-bottom: 14px; }
.contact-form h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid rgba(5,19,22,0.16); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(230,71,75,0.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-size: 0.92rem; font-weight: 500; color: var(--plum); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 28px; }
.footer-cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 60px 32px; margin-bottom: 72px; text-align: center;
}
.footer-cta-bg {
  background:
    linear-gradient(180deg, rgba(5,19,22,0.2) 0%, rgba(5,19,22,0.55) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0) 26px, rgba(5,19,22,0.18) 58px, rgba(255,255,255,0.12) 60px),
    radial-gradient(70% 110% at 50% 0%, var(--orange) 0%, var(--red) 40%, var(--plum) 75%, var(--ink) 100%);
}
.footer-cta h2 { color: #fff; margin-bottom: 10px; }
.footer-cta p { color: rgba(242,239,232,0.9); font-size: 1.1rem; margin-bottom: 28px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.footer-links .footer-title { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(242,239,232,0.12);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
  animation: wa-in .4s ease-out .6s backwards;
}
.wa-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(5, 19, 22, 0.55), 0 0 0 4px rgba(37, 211, 102, 0.18);
  transition: transform .2s ease;
}
.wa-icon svg { width: 30px; height: 30px; }
.wa-label {
  background: var(--ink); color: var(--cream);
  font-size: 0.9rem; font-weight: 600; line-height: 1;
  padding: 11px 14px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(5, 19, 22, 0.6);
}
.wa-float:hover .wa-icon { transform: scale(1.07); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-icon { outline: 3px solid var(--orange); outline-offset: 3px; }
.wa-float.away {
  opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* Cards with their own hover lift keep a short transform transition once revealed */
.js .service.reveal.in, .js .pain.reveal.in { transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .services-grid, .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-column: 1 / -1; }
  .chatbots-grid { column-gap: 44px; }
  .calc-grid { gap: 44px; }
  .why-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing { grid-template-columns: 1fr; }
  .plan-group + .plan-group { margin-top: 44px; }
  .included { grid-column: auto; grid-row: auto; margin-top: 28px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 30px -20px rgba(5,19,22,0.4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5,19,22,0.85) 0%, rgba(5,19,22,0.55) 50%, rgba(5,19,22,0.25) 100%); }
  .hero-visual { justify-self: center; max-width: 520px; }

  .why-grid, .contact-card, .calc-grid { grid-template-columns: 1fr; }
  /* Phones and tablets: the demo comes right after the intro, details below it */
  .chatbots-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "phone" "more"; row-gap: 36px; }
  .chatbots-more .feature-list { margin-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; }
  .steps::before { display: none; }
  .mv-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .values-3 { grid-template-columns: repeat(2, 1fr); }
  .why-bot { display: none; }
}

@media (max-width: 680px) {
  .pain-grid, .services-grid, .teaser-grid, .fee-grid, .fee-notes { grid-template-columns: 1fr; }
  .fee-grid, .fee-notes { gap: 16px; }
  .fee-notes { margin-top: 16px; }
  .service-featured { grid-template-columns: 1fr; }
  .service-wide { flex-direction: column; align-items: flex-start; }
  .service-wide .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 140px; }
  .hero-actions .btn, .chatbots-actions .btn { flex: 1 1 100%; }

  /* On phones the live demo follows right away, so skip the decorative collage */
  .hero-visual { display: none; }


  .values, .feature-list, .field-row, .plan-pair { grid-template-columns: 1fr; }
  /* One card per row: drop the shared row tracks */
  .plan-group, .plan-pair { display: flex; flex-direction: column; }
  .plan-pair { gap: 16px; }
  .plan { display: flex; flex-direction: column; }
  .plan-price { align-self: stretch; }
  .pricing .service-wide { margin-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step-num { width: 56px; height: 56px; font-size: 1.05rem; grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 4px; }
  .section-head { text-align: left; margin-bottom: 36px; }
  .pain { padding: 24px 20px 20px; }
  .fee { padding: 24px 20px 22px; }
  .fee-note { padding: 22px 20px; }
  .pain-fix { flex-direction: column; gap: 8px; }
  .calc-form { padding: 22px 18px; }
  .calc-result { padding: 40px 22px 32px; }
  .contact-side, .contact-form { padding: 36px 22px; }
  .form-actions .btn, .contact-side .btn-wa { flex: 1 1 100%; width: 100%; }
  .mv { padding: 32px 24px; }
  .chat { height: 300px; }
  .faq summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .faq summary::after { right: 16px; }
  .faq-a { padding: 0 18px 20px; }
  .footer-cta { padding: 44px 20px; margin-bottom: 56px; }
  .footer-cta-actions .btn { flex: 1 1 100%; }

  .wa-float { right: 16px; bottom: 16px; }
  .wa-label { display: none; }
  .wa-icon { width: 54px; height: 54px; }
}

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