/* ============================================================
   RECRM — Demo landing page
   "Architectural Light" — refined proptech, indigo #4649cc
   ============================================================ */

:root {
  /* Brand indigo ramp (from RECRM brand system) */
  --i-300: #7f80dc;
  --i-400: #6769d5;
  --i-500: #4649cc;
  --i-600: #3235b8;
  --i-700: #2a2c98;

  /* Neutrals — cool paper */
  --paper:   #f4f5fb;
  --paper-2: #eceefc;
  --white:   #ffffff;
  --i-800:   #1f2159;   /* deep tail for dark indigo panels */
  --ink:     #1e2330;
  --ink-2:   #3a4059;
  --muted:   #565c72;   /* AA-compliant on paper (6.1:1) and white (6.6:1) */

  /* Accents outside the indigo system (used sparingly) */
  --ok:      #16b57a;              /* single "live/success" accent */
  --ok-tint: rgba(22, 181, 122, 0.2);
  --wa:      #25d366;              /* official WhatsApp green */

  /* Lines & tints */
  --line:      rgba(30, 35, 48, 0.09);
  --line-2:    rgba(30, 35, 48, 0.06);
  --i-line:    rgba(70, 73, 204, 0.16);
  --i-tint:    rgba(70, 73, 204, 0.06);
  --i-tint-2:  rgba(70, 73, 204, 0.11);

  /* Shadows — soft, layered, indigo-tinted */
  --sh-sm: 0 1px 2px rgba(30,35,48,.05), 0 2px 6px rgba(30,35,48,.05);
  --sh-md: 0 4px 12px rgba(30,35,48,.06), 0 12px 30px rgba(46,49,120,.08);
  --sh-lg: 0 10px 24px rgba(30,35,48,.07), 0 30px 70px rgba(46,49,120,.12);
  --sh-indigo: 0 10px 24px rgba(70,73,204,.28), 0 4px 10px rgba(70,73,204,.20);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Atmospheric base as a COMPOSITED fixed layer (cheap — no per-frame repaint,
   unlike background-attachment:fixed which forces full-viewport repaints). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, var(--i-tint-2), transparent 60%),
    radial-gradient(900px 600px at -6% 12%, rgba(127,128,220,.10), transparent 55%),
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--i-300); color: #fff; }

/* ---------------------------------- Typographic helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--i-600);
}
.eyebrow--light { color: #cfd0ff; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--i-500); box-shadow: 0 0 0 4px var(--i-tint);
}
.grad {
  background: linear-gradient(120deg, var(--i-500), var(--i-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------- Buttons */
.btn {
  --pad: .8rem 1.25rem;
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad); border: none; border-radius: 100px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn--lg { --pad: 1.05rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary { background: var(--i-500); color: #fff; box-shadow: var(--sh-indigo); }
.btn--primary:hover { background: var(--i-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(70,73,204,.36); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: rgba(255,255,255,.7); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--i-line), var(--sh-sm); transform: translateY(-2px); }

/* Branded keyboard focus ring — visible on light, glass, and indigo surfaces.
   The box-shadow follows each element's own border-radius automatically. */
.btn:focus-visible,
.nav__links a:focus-visible,
.nav__cta:focus-visible,
.nav__burger:focus-visible,
.hero__scroll:focus-visible,
.footer__nav a:focus-visible,
.footer__meta a:focus-visible,
.check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--i-400);
}
/* Light-on-dark variant for elements sitting on the indigo panels */
.demo__pitch a:focus-visible,
.demo__pitch .btn:focus-visible,
.why__panel a:focus-visible,
.demo__wa:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 0 0 6px #fff;
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-stuck {
  padding-top: .6rem; padding-bottom: .6rem;
  background: rgba(244,245,251,.72);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--sh-sm);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 30px; width: auto; }
.nav__links {
  display: flex; gap: 1.9rem; margin-left: auto;
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
}
.nav__links a { position: relative; padding: .3rem 0; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--i-500); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--i-600); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0; }
.nav__burger { display: none; }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem clamp(1rem, 4vw, 2.4rem) 4rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero__inner {
  position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.hero__copy { max-width: 640px; }
.hero__eyebrow {
  padding: .5rem .85rem; border-radius: 100px;
  background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px var(--i-line);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: 0.98;
  letter-spacing: -0.028em; margin: 1.4rem 0 1.5rem; color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--i-500); }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2);
  max-width: 33em; margin-bottom: 2.1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none;
  font-size: .92rem; color: var(--muted);
}
.hero__meta strong { color: var(--ink); font-weight: 700; }
.hero__meta li { position: relative; padding-left: 1.1rem; }
.hero__meta li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--i-400); transform: translateY(-50%);
}
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 42px; background: var(--line); overflow: hidden; position: relative; }
.hero__scroll-line span {
  position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--i-500); animation: scrolldrop 1.8s var(--ease) infinite;
}
@keyframes scrolldrop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============================ TRUST STRIP ============================ */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.5); overflow: hidden; padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; gap: 2.5rem; align-items: center; width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink-2);
}
.strip__track i { color: var(--i-400); font-size: .6rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ SECTIONS ============================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 4vw, 2.4rem); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.06;
  letter-spacing: -0.02em; margin: 1rem 0 1.1rem; color: var(--ink);
}
.section__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); }
.section__head:not(.section__head--left) .section__lead { margin-inline: auto; }

/* ---------------------------------- Feature cards */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.card {
  position: relative; padding: 1.9rem 1.7rem 1.7rem;
  background: rgba(255,255,255,.78); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm);
  backdrop-filter: blur(4px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, var(--i-line), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--i-line), var(--sh-lg); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 14px; color: var(--i-600);
  background: linear-gradient(160deg, #fff, var(--paper-2));
  box-shadow: inset 0 0 0 1px var(--i-line), var(--sh-sm);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card__tag {
  display: inline-block; margin-top: 1.1rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--i-600);
  padding: .32rem .7rem; border-radius: 100px; background: var(--i-tint);
}

/* ---------------------------------- Surfaces / glass showcase */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; align-items: stretch; }
.glass {
  position: relative; padding: 1.4rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-md);
  backdrop-filter: blur(10px); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.glass:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--i-line), var(--sh-lg); }
.glass__label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; color: var(--i-600);
  margin-bottom: 1rem;
}
.glass__label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.glass h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 1.1rem 0 .35rem; }
.glass p { color: var(--ink-2); font-size: .92rem; }

/* mock UIs (blueprint-style, honest — no fake screenshots) */
.mock { position: relative; height: 190px; border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.mock--map { background:
  radial-gradient(120px 90px at 30% 40%, rgba(70,73,204,.10), transparent 70%),
  linear-gradient(#fbfbff, #eef0fb); }
.mock__grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--i-line) 1px, transparent 1px), linear-gradient(90deg, var(--i-line) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--i-400); transform: rotate(-45deg); box-shadow: 0 3px 6px rgba(46,49,120,.3); }
.pin::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.pin--1 { top: 26%; left: 22%; } .pin--2 { top: 55%; left: 44%; } .pin--3 { top: 34%; left: 68%; }
.pin--4 { top: 62%; left: 74%; }
.pin.is-active { background: var(--i-600); transform: rotate(-45deg) scale(1.35); z-index: 2; animation: pinpulse 2.4s var(--ease) infinite; }
@keyframes pinpulse { 0%,100% { box-shadow: 0 3px 6px rgba(46,49,120,.3), 0 0 0 0 rgba(70,73,204,.35);} 50% { box-shadow: 0 3px 6px rgba(46,49,120,.3), 0 0 0 10px rgba(70,73,204,0);} }
.mock__chip {
  position: absolute; left: 12px; bottom: 12px; font-size: .72rem; font-weight: 600;
  padding: .45rem .7rem; background: #fff; border-radius: 10px; box-shadow: var(--sh-sm); color: var(--ink);
}
.mock__chip--wa { left: auto; right: 12px; color: #0f7a41; }

.mock--pipe { background: linear-gradient(#fbfbff, #eef0fb); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }
.mock--pipe .col { background: rgba(255,255,255,.7); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.mock--pipe b { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock--pipe i { height: 22px; border-radius: 6px; background: linear-gradient(120deg, #e7e9fb, #f3f4ff); box-shadow: inset 0 0 0 1px var(--line-2); }
.mock--pipe i.hot { background: linear-gradient(120deg, var(--i-300), var(--i-400)); }
.mock--pipe i.won { background: linear-gradient(120deg, var(--ok), #12996a); }

.mock--report { background: linear-gradient(#eef0fb, #e4e7fb); display: grid; place-items: center; }
.doc { width: 62%; background: #fff; border-radius: 8px; box-shadow: var(--sh-md); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.doc__logo { width: 30px; height: 30px; border-radius: 8px; background: var(--i-500); }
.doc .bar { height: 7px; border-radius: 4px; background: #e7e9f5; }
.doc .bar.w70 { width: 70%; } .doc .bar.w90 { width: 90%; } .doc .bar.w50 { width: 50%; }
.doc__chart { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 4px; }
.doc__chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--i-300), var(--i-500)); }

/* ---------------------------------- Why panel (indigo) */
.why__panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    radial-gradient(600px 320px at 12% 0%, rgba(127,128,220,.35), transparent 60%),
    linear-gradient(150deg, var(--i-600), var(--i-700) 70%, var(--i-800));
  color: #eef0ff; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--sh-lg);
}
.why__panel::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(700px 400px at 80% 100%, #000, transparent 70%);
          mask-image: radial-gradient(700px 400px at 80% 100%, #000, transparent 70%);
}
.why__text, .why__list { position: relative; z-index: 1; }
.why__text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: .9rem 0 1rem; color: #fff; }
.why__lead { color: #c9caf5; font-size: 1.05rem; max-width: 30em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1.8rem; margin-top: 2.2rem; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; display: block; line-height: 1; letter-spacing: -0.02em; }
.stat__lbl { font-size: .86rem; color: #b9baf0; margin-top: .35rem; display: block; }
.why__list { list-style: none; display: flex; flex-direction: column; gap: .85rem; align-self: center; }
.why__list li {
  padding: 1rem 1.1rem; border-radius: var(--r-md); font-size: .96rem; color: #dcddfb;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
}
.why__list b { color: #fff; font-weight: 700; }

/* ---------------------------------- How it works / steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; counter-reset: s; }
.step {
  position: relative; padding: 2rem 1.7rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm);
}
.step__n {
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.4px var(--i-400); display: block; margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: .45rem; }
.step p { color: var(--ink-2); font-size: .96rem; }
.step::after {
  content: ""; position: absolute; top: 2.7rem; right: -0.7rem; width: 1.4rem; height: 2px;
  background: var(--i-line);
}
.steps .step:last-child::after { display: none; }

/* ============================ DEMO FORM ============================ */
.demo__wrap {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg);
}
.demo__pitch {
  position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(155deg, var(--i-500), var(--i-700) 75%, var(--i-800)); color: #eef0ff;
  display: flex; flex-direction: column;
}
.demo__pitch-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 300px at 100% 0%, rgba(127,128,220,.5), transparent 60%),
              radial-gradient(340px 320px at 0% 100%, rgba(50,53,184,.55), transparent 65%); }
.demo__logo { position: relative; height: 30px; width: auto; margin-bottom: auto; }
.demo__pitch h2 { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 2.2rem 0 1rem; }
.demo__pitch > p { position: relative; color: #dbdcfb; margin-bottom: 1.6rem; max-width: 24em; }
.demo__pitch em { color: #fff; font-style: italic; }
.demo__ticks { position: relative; list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; }
.demo__ticks li { position: relative; padding-left: 1.8rem; font-size: .95rem; color: #e3e4fc; }
.demo__ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12 4 4 10-10' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.demo__wa {
  position: relative; display: inline-flex; align-items: center; gap: .55rem; margin-top: auto;
  font-size: .9rem; font-weight: 600; color: #fff; padding-top: 1.2rem;
}
.demo__wa svg { color: var(--wa); }
.demo__wa:hover { text-decoration: underline; }

.demo__card { padding: clamp(1.6rem, 3.5vw, 2.8rem); position: relative; display: grid; }
.form { display: flex; flex-direction: column; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field > span i { color: var(--muted); font-weight: 400; font-style: normal; }
.field input, .field textarea, .select select {
  font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  padding: .82rem .95rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #686e85; }
.field input:focus, .field textarea:focus, .select select:focus {
  outline: none; border-color: var(--i-400); background: #fff;
  box-shadow: 0 0 0 4px var(--i-tint);
}
.field input:user-invalid, .select select:user-invalid,
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .select select[aria-invalid="true"] {
  border-color: #e0607a;
}
/* Consent checkbox invalid state (native :user-invalid + JS aria-invalid fallback) */
.check input:user-invalid, .check input[aria-invalid="true"] { outline: 2px solid #e0607a; outline-offset: 2px; }
.check:has(input:user-invalid) > span, .check:has(input[aria-invalid="true"]) > span { color: #c0405a; }
.select { position: relative; }
.select select { appearance: none; cursor: pointer; }
.select svg { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--i-500); margin-top: .1rem; }

.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn__label { opacity: .7; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading .btn__arrow { display: none; }
.form__fineprint { text-align: center; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* success state */
.success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .7rem; min-height: 340px; }
.success[hidden] { display: none; }   /* the [hidden] attr must win over the flex rule above */
.success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; }
.success p { color: var(--ink-2); max-width: 26em; }
.success__check svg { width: 84px; height: 84px; }
.success__check circle { stroke: var(--i-500); stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; }
.success__check path { stroke: var(--i-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.success.is-in circle { animation: dash .7s var(--ease) forwards; }
.success.is-in path { animation: dash .5s .5s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.55); margin-top: 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.4rem);
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start;
}
.footer__logo { height: 30px; width: auto; margin-bottom: .9rem; }
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 24em; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; color: var(--ink-2); }
.footer__nav a:hover { color: var(--i-600); }
.footer__meta { display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; color: var(--muted); text-align: right; }
.footer__meta a { font-weight: 600; color: var(--i-600); }

/* ============================ SCROLL REVEAL ============================ */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Fallback if JS/GSAP fails: never leave content hidden */
.no-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 940px) {
  .cards, .showcase, .steps { grid-template-columns: repeat(2, 1fr); }
  .why__panel { grid-template-columns: 1fr; }
  .demo__wrap { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__meta { text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav__links {
    display: none; flex-direction: column; gap: 0; order: 3; width: 100%;
    margin: .8rem 0 .2rem;
  }
  .nav.is-open { background: rgba(244,245,251,.94); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line), var(--sh-md); }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__links a {
    padding: .85rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__cta { margin-left: auto; }
  .nav__burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer; order: 2;
    min-width: 44px; min-height: 44px; padding: .5rem; -webkit-tap-highlight-color: transparent;
  }
  .nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .hero { padding-top: 6rem; }
  .hero__canvas { opacity: .85; }
  .cards, .showcase, .steps, .stats, .form__row { grid-template-columns: 1fr; }
  .hero__meta { gap: .5rem 1.2rem; }
}
@media (max-width: 460px) {
  .hero__title { font-size: clamp(2.4rem, 12vw, 3rem); }
  .btn--lg { --pad: .95rem 1.4rem; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .strip__track { animation: none; }
  .hero__scroll-line span { animation: none; }
  /* Kill hover/focus movement (scoped so resting/layout transforms survive) */
  .card:hover, .glass:hover, [data-tilt]:hover,
  .btn:hover, .btn--primary:hover, .btn--ghost:hover, .btn--primary:hover svg { transform: none !important; }
}
