/* Vidyavane website. Tokens follow the app (vidyavane-app lib/core/theme/tokens.dart):
   palette 3b "Navy hero" (blue, teal, navy; no warm colours), Organic shapes,
   Caprasimo + Figtree. */

@font-face { font-family: "Caprasimo"; src: url("../fonts/Caprasimo-Regular.91e7dcc5194d.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Regular.9703770ed23e.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Medium.fba97fe73891.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-SemiBold.2605c37a9eff.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #F7FAFC;
  --surface: #E8F0F6;
  --text: #082E47;
  --muted: #435362;
  --divider: rgba(8, 46, 71, 0.16);
  --white: #FFFFFF;

  --primary: #1377C0;
  --primary-100: #E3F0FA;
  --primary-200: #C3DEF3;
  --primary-300: #92C3E8;
  --primary-400: #519FDA;
  --primary-700: #0F5E99;
  --primary-800: #0B4573;
  --primary-900: #082E47;

  /* Light blue: the bright accent on navy and the soft tint on light sections. */
  --sky: #92C3E8;
  --sky-100: #E3F0FA;
  --sky-200: #C3DEF3;
  --sky-800: #0B4573;

  --teal: #0F5873;
  --teal-100: #E1EEF2;
  --teal-200: #C2DCE5;
  --teal-800: #0C455B;

  --neutral-100: #F2F5F8;
  --neutral-200: #E1E7ED;
  --neutral-600: #5D6E7E;

  --wa: #1DA851;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(22, 34, 45, 0.14);
  --shadow-md: 0 3px 10px rgba(22, 34, 45, 0.16);
  --shadow-lg: 0 12px 32px rgba(22, 34, 45, 0.22);
  --shadow-xl: 0 40px 80px -20px rgba(8, 46, 71, 0.45);

  --font-head: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--primary-700); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-head); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.22em; z-index: -1;
  background: var(--sky); border-radius: 999px; opacity: 0.55;
  transform: scaleX(0); transform-origin: left; animation: underline 1s 0.6s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-700); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow--light { color: var(--sky-200); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--primary-900); letter-spacing: 0.06em; font-size: 0.72rem; }

/* Buttons --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px -8px rgba(19, 119, 192, 0.7); }
.btn--primary:hover { background: var(--primary-700); box-shadow: 0 14px 28px -10px rgba(19, 119, 192, 0.8); }
.btn--light { background: var(--white); color: var(--primary-800); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--primary-700); box-shadow: inset 0 0 0 2px var(--primary-200); }
.btn--sky { background: var(--sky); color: var(--primary-900); box-shadow: 0 10px 24px -10px rgba(146, 195, 232, 0.9); }
.btn--wa { background: var(--wa); color: var(--white); }

/* Store badges (official artwork, unaltered) ------------------------------------------------ */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.store { display: inline-block; border-radius: 9px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store img { height: 44px; width: auto; }
.stores__soon { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; color: var(--primary-800); background: var(--primary-100); }
.stores__soon svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stores--light { margin: 18px 0 0; }
.stores--light .stores__soon { color: var(--primary-100); background: rgba(255, 255, 255, 0.12); }
.demo__apps { margin-top: 28px; font-size: 1rem; color: var(--white); }

/* Navigation ------------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled { background: rgba(247, 250, 252, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--divider); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 400 1.45rem/1 var(--font-head); }
.brand img { border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand--light { color: var(--white); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text); text-decoration: none; font-weight: 500; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__login-link { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------------------ */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 40px; min-height: min(100vh, 980px); display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready { opacity: 1; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(8px); opacity: 0.55; animation: morph 18s ease-in-out infinite alternate; }
.blob--primary { width: 46vmax; height: 46vmax; right: -14vmax; top: -12vmax; background: radial-gradient(circle at 30% 30%, var(--primary-300), var(--primary-200) 60%, transparent 70%); }
.blob--sky { width: 28vmax; height: 28vmax; left: -10vmax; bottom: -8vmax; background: radial-gradient(circle at 60% 40%, var(--sky-200), transparent 70%); animation-duration: 22s; }
.blob--teal { width: 18vmax; height: 18vmax; left: 38%; top: 8%; background: radial-gradient(circle, var(--teal-200), transparent 70%); animation-duration: 26s; }
@keyframes morph {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 63% 37% 46% 54% / 55% 61% 39% 45%; transform: translate(2vmax, 1.5vmax) rotate(20deg); }
  100% { border-radius: 38% 62% 35% 65% / 62% 38% 62% 38%; transform: translate(-1.5vmax, 2vmax) rotate(-10deg); }
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__copy h1 { margin-bottom: 22px; }
.hero__copy .lead { margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-sm); font-weight: 500; font-size: 0.92rem; backdrop-filter: blur(6px); }
.chips svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__note { margin-top: 18px; font-size: 0.8rem; color: var(--neutral-600); text-align: right; }

/* 3D phone mockup: --rx/--ry come from the pointer (site.js). */
.hero__stage { position: relative; perspective: 1400px; height: 640px; display: grid; place-items: center; --rx: 0deg; --ry: 0deg; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #23343B, #0E1A1F); box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-18deg + var(--ry))) rotateZ(2deg);
  transition: transform 0.6s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #0B1418; border-radius: 999px; z-index: 2; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 35%); pointer-events: none; }
.phone__screen { height: 100%; border-radius: 37px; background: var(--bg); overflow: hidden; padding: 52px 14px 0; display: flex; flex-direction: column; gap: 10px; font-size: 12px; position: relative; }
.app-bar { display: flex; justify-content: space-between; align-items: center; }
.app-bar__title { font: 400 22px/1 var(--font-head); }
.pill { background: var(--white); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 10.5px; box-shadow: var(--shadow-sm); color: var(--primary-700); }
.card { background: var(--white); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.card__label { font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-600); margin-bottom: 8px; }
.card--today { background: linear-gradient(135deg, var(--primary), var(--primary-800)); color: var(--white); }
.card--today .card__label { color: var(--primary-200); }
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.today small { display: block; opacity: 0.75; font-size: 9.5px; }
.today strong { font-size: 13px; }
.today .pos { color: var(--sky-200); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--white); border-radius: 16px; padding: 10px; box-shadow: var(--shadow-sm); }
.kpi small { display: block; color: var(--neutral-600); font-size: 9.5px; }
.kpi strong { font-size: 16px; }
.bar { display: block; height: 5px; border-radius: 9px; background: var(--primary-100); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transform-origin: left; animation: grow 1.6s 0.8s var(--ease) both; }
.bar--m { background: var(--sky-100); } .bar--m i { background: var(--sky); }
.bar--t { background: var(--teal-100); } .bar--t i { background: var(--teal); }
.w94 { width: 94%; } .w38 { width: 38%; } .w80 { width: 80%; } .w30 { width: 30%; }
@keyframes grow { from { transform: scaleX(0); } }
.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.attn li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.attn b { margin-left: auto; background: var(--neutral-200); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.dot--t { background: var(--teal); } .dot--m { background: var(--sky); }
.tabbar { margin-top: auto; margin-inline: -14px; padding: 10px 14px 18px; background: var(--white); display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; font-weight: 600; color: var(--neutral-600); box-shadow: 0 -1px 0 var(--divider); }
.tabbar .on { color: var(--primary); }
.tabbar .create { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: 22px; margin-top: -26px; box-shadow: 0 8px 16px -6px rgba(15, 88, 115, 0.8); }

.float {
  position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.92); border-radius: 20px; box-shadow: var(--shadow-lg); font-size: 0.86rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 0.5s var(--ease);
  animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-size: 0.88rem; }
.float small { color: var(--neutral-600); }
.float__icon { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--primary-100); color: var(--primary-700); }
.float__icon--wa { background: #DFF5E7; color: var(--wa); }
.float__icon--m { background: var(--sky-100); color: var(--sky-800); }
.float--a { top: 70px; left: -10px; }
.float--b { top: 300px; right: -20px; animation-delay: -2s; }
.float--c { bottom: 60px; left: 10px; animation-delay: -4s; }
@keyframes floaty { 50% { translate: 0 -10px; } }

/* Marquee --------------------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--primary-800); color: var(--primary-100); transform: rotate(-1.2deg); margin: 30px -20px 0; box-shadow: var(--shadow-md); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 400 1.35rem/1 var(--font-head); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee li::after { content: "✦"; color: var(--sky); font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--surface { background: linear-gradient(180deg, var(--neutral-100), var(--neutral-200)); border-radius: var(--r-xl); margin-inline: clamp(0px, 1.5vw, 20px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { margin-bottom: 16px; }

/* Bento ----------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); overflow: hidden; isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(19, 119, 192, 0.12), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.tile:hover { box-shadow: var(--shadow-lg); }
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 18px 0 8px; }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile--wide { grid-column: span 2; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-100); transform: translateZ(30px); }
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile--primary { background: linear-gradient(140deg, var(--primary), var(--primary-800)); color: var(--white); }
.tile--primary p { color: var(--primary-100); }
.tile--primary .tile__icon { background: rgba(255, 255, 255, 0.14); }
.tile--primary .tile__icon svg { stroke: var(--sky-200); }
.tile--sky { background: var(--sky-100); }
.tile--sky .tile__icon { background: var(--sky-200); }
.tile--sky .tile__icon svg { stroke: var(--sky-800); }
.tile--teal { background: var(--teal-100); }
.tile--teal .tile__icon { background: var(--teal-200); }
.tile--teal .tile__icon svg { stroke: var(--teal-800); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 22px; }
.mini-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--sky-200)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.tile.in .mini-bars i { transform: scaleY(1); }
.mini-bars i:nth-child(2) { transition-delay: 0.08s; } .mini-bars i:nth-child(3) { transition-delay: 0.16s; }
.mini-bars i:nth-child(4) { transition-delay: 0.24s; } .mini-bars i:nth-child(5) { transition-delay: 0.32s; } .mini-bars i:nth-child(6) { transition-delay: 0.4s; }
.h45 { height: 45%; } .h60 { height: 60%; } .h70 { height: 70%; } .h80 { height: 80%; } .h90 { height: 90%; } .h95 { height: 95%; }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--teal-800); }

/* Timeline -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; display: grid; gap: 22px; --p: 0; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 3px; background: var(--primary-200); border-radius: 3px; }
.timeline::after { content: ""; position: absolute; left: 47px; top: 10px; width: 3px; height: calc((100% - 20px) * var(--p)); background: linear-gradient(var(--primary), var(--sky)); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 98px 1fr; gap: 18px; align-items: start; position: relative; z-index: 1; }
.timeline time { justify-self: start; font: 700 0.95rem/1 var(--font-body); background: var(--white); color: var(--primary-700); padding: 10px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); min-width: 72px; text-align: center; }
.timeline div { background: var(--white); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); }

/* AI -------------------------------------------------------------------------------- */
.ai { background: radial-gradient(1000px 600px at 85% 20%, rgba(146, 195, 232, 0.18), transparent 60%), linear-gradient(160deg, var(--primary-800), var(--primary-900)); color: var(--white); border-radius: var(--r-xl); margin: 0 clamp(0px, 1.5vw, 20px); overflow: hidden; }
.ai .lead { color: var(--primary-200); margin-bottom: 22px; }
.ai__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai h2 { margin-bottom: 16px; }
.ticks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; color: var(--primary-100); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--primary-900); font-weight: 800; font-size: 0.8rem; }
.chat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.chat__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.chat__head small { display: block; color: var(--primary-300); }
.chat__avatar { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: conic-gradient(from 180deg, var(--sky), var(--teal), var(--primary-400), var(--sky)); color: var(--primary-900); }
.chat__body { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; min-height: 330px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 0.97rem; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.msg.is-shown { opacity: 1; transform: none; }
.msg--me { align-self: flex-end; background: var(--sky); color: var(--primary-900); border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: rgba(255, 255, 255, 0.95); color: var(--text); border-bottom-left-radius: 6px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: rgba(255, 255, 255, 0.95); border-radius: 20px; opacity: 0; transition: opacity 0.3s; }
.typing.is-shown { opacity: 1; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-400); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Security, steps, pricing ------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); border-top: 4px solid var(--primary-300); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.feat:nth-child(3n + 2) { border-top-color: var(--sky); }
.feat:nth-child(3n) { border-top-color: var(--teal); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--muted); }
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); position: relative; }
.steps span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--primary); color: var(--white); font: 400 1.4rem/1 var(--font-head); margin-bottom: 16px; }
.steps li:nth-child(2) span { background: var(--sky); color: var(--primary-900); }
.steps li:nth-child(3) span { background: var(--teal); }
.steps li:nth-child(4) span { background: var(--primary-800); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.pricing { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-md); }
.pricing h3 { font: 400 1.7rem/1.1 var(--font-head); margin-bottom: 6px; }
.pricing p { color: var(--muted); max-width: 60ch; }

/* FAQ ------------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); font-size: 1.3rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Demo form ------------------------------------------------------------------------- */
.demo { background: linear-gradient(150deg, var(--primary), var(--primary-800)); color: var(--white); border-radius: var(--r-xl); margin: 0 clamp(0px, 1.5vw, 20px) clamp(20px, 3vw, 40px); overflow: hidden; }
.demo::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(146, 195, 232, 0.35), transparent 65%); }
.demo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.demo h2 { margin-bottom: 16px; }
.demo .lead { color: var(--primary-100); margin-bottom: 24px; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact a { color: var(--white); font-weight: 600; text-decoration: none; display: inline-flex; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.contact a:hover { background: rgba(255, 255, 255, 0.2); }
.form { background: var(--bg); color: var(--text); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-xl); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; padding: 0; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid transparent;
  background: var(--white); font: 400 1rem var(--font-body); color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 4px var(--primary-100); }
.field input[aria-invalid="true"] { border-color: var(--primary-700); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: grid; place-items: center; min-height: 44px; border-radius: 14px; background: var(--white); font-weight: 600; box-shadow: var(--shadow-sm); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.segmented input:checked + span { background: var(--primary); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.form__error { color: var(--primary-700); font-weight: 600; }
.form__error::before { content: "\26A0\FE0E"; margin-right: 6px; }
.form__note { font-size: 0.82rem; color: var(--neutral-600); text-align: center; }

/* Footer ---------------------------------------------------------------------------- */
.footer { background: var(--primary-900); color: var(--primary-200); padding: 64px 0 28px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--primary-200); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer p { margin-top: 14px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; }

/* WhatsApp button and mobile CTA bar ---------------------------------------------------- */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); box-shadow: 0 12px 28px -8px rgba(29, 168, 81, 0.75); transition: transform 0.3s var(--ease); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); animation: ping 2.4s ease-out infinite; z-index: -1; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
.mobile-cta { display: none; }

/* Scroll reveal (site.js adds .in) --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__wa { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 28px); }
  .hero__inner, .ai__inner, .demo__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__copy { text-align: left; }
  .hero__stage { height: 560px; }
  .phone { width: 270px; height: 550px; }
  .float--a { left: 0; } .float--b { right: 0; } .float--c { left: 4%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .chat { transform: none; }

  .nav__links {
    position: fixed; inset: var(--nav-h) 12px auto; flex-direction: column; gap: 4px; padding: 14px;
    background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav__links a { padding: 12px 14px; border-radius: 12px; }
  .nav__links a:hover { background: var(--primary-100); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(247, 250, 252, 0.95); }
  .nav__toggle { display: flex; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .nav__actions .btn--primary, .nav__login { display: none; }
  .nav__links .nav__login-link { display: block; margin-top: 6px; background: var(--primary); color: var(--white); text-align: center; font-weight: 600; }
  .nav__links .nav__login-link:hover { background: var(--primary-700); }
  .bento, .grid-3, .steps, .field-row, .footer__inner { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stage { height: 500px; }
  .phone { width: 240px; height: 490px; border-radius: 40px; }
  .phone__screen { border-radius: 30px; padding-top: 46px; font-size: 11px; }
  .float { font-size: 0.78rem; padding: 9px 12px 9px 9px; }
  .float--a { top: 40px; left: -4px; } .float--b { top: 250px; right: -4px; } .float--c { bottom: 30px; left: -2px; }
  .timeline::before, .timeline::after { left: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 44px; }
  .timeline time { justify-self: start; }
  .pricing { padding: 24px; }
  .hero__note { text-align: left; }
  .wa-fab { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 250, 252, 0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--divider), 0 -8px 24px -12px rgba(0, 0, 0, 0.2);
    transform: translateY(110%); transition: transform 0.4s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 50px; }
}

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