/* ==========================================================================
   Byurel — site design system (October 2026 redesign)

   Light, calm and product-first. Colours are Byurel's own brand: navy ink,
   WhatsApp green for action, and a dashboard blue used only inside product
   pictures. Dark is an accent here (one band, the footer CTA), never the
   page.

   Everything a visitor needs is readable with scripts off: the motion in
   site.js only ever moves things between states that are already in the
   HTML, and a visitor who asked for reduced motion sees the final state.
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0A1A2E;
  --ink-2: #1E2F45;
  --text: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --line-2: #EDF1F6;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --bg-tint: #F1F5F9;

  --green: #16A34A;
  --green-2: #22C55E;
  --green-3: #4ADE80;
  --green-dark: #15803D;
  --mint: #F0FDF4;
  --mint-2: #DCFCE7;
  --mint-line: #BBF7D0;

  --blue: #2563EB;
  --sky: #EFF6FF;
  --sky-line: #BFDBFE;
  --violet: #7C3AED;
  --lilac: #F5F3FF;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --red: #DC2626;
  --red-soft: #FEF2F2;

  --wa-bg: #EFEAE2;
  --wa-out: #D9FDD3;
  --wa-head: #075E54;
  --tick-blue: #53BDEB;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(10, 26, 46, 0.06), 0 1px 1px rgba(10, 26, 46, 0.04);
  --shadow: 0 12px 32px -12px rgba(10, 26, 46, 0.18), 0 2px 6px rgba(10, 26, 46, 0.05);
  --shadow-l: 0 40px 80px -30px rgba(10, 26, 46, 0.30), 0 12px 24px -12px rgba(10, 26, 46, 0.12);

  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(22, 163, 74, 0.45); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint-2); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  body { font-size: 16px; }
}

/* ---------- Type ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-dark);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.display { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; max-width: 60ch; }
.grad {
  background: linear-gradient(100deg, var(--green) 10%, #0EA5E9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--font-body); white-space: nowrap; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, 0.6); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 14px 28px -10px rgba(22, 163, 74, 0.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { border-color: #CBD5E1; }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-dark); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 26, 46, 0.35); }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 800 21px/1 var(--font-head); letter-spacing: -0.04em; position: relative;
}
.logo-mark::after { content: ""; position: absolute; right: 7px; bottom: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--green-2); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font: 800 19px/1 var(--font-head); letter-spacing: -0.02em; }
.logo-text b i { font-style: normal; color: var(--green-2); }
.logo-text small { font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--bg-tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; place-items: center; color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .site-header.open { height: auto; background: #fff; }
  .site-header.open .header-in { flex-wrap: wrap; height: auto; padding: 14px 0 18px; }
  .site-header.open .logo { height: 44px; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; margin: 8px 0 0; }
  .site-header.open .nav a { padding: 13px 14px; font-size: 16px; }
  .site-header.open .header-cta { display: flex; width: 100%; order: 4; margin: 10px 0 0; }
  .site-header.open .header-cta .btn { flex: 1; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 14px; }
.section-head .lede { margin-top: 16px; }
.section-head.center .kicker::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.mesh::before, .mesh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.mesh::before { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, #BBF7D0, transparent 65%); }
.mesh::after { width: 560px; height: 560px; left: -220px; bottom: -260px; background: radial-gradient(circle, #BFDBFE, transparent 65%); }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.section > .container, .section > .container-narrow { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero-grid > * { min-width: 0; }
.hero .display { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.badge-meta {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.badge-meta i { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--green); }
.badge-meta i svg { width: 15px; height: 15px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
}

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; text-align: center; }
.page-hero .h1 { margin: 16px auto 0; max-width: 18ch; }
.page-hero .lede { margin: 18px auto 0; }
.page-hero .hero-actions { justify-content: center; }

/* ---------- Cards and grids ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-s); padding: 28px; position: relative;
}
.card-hover { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D5DEE8; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--green); border: 1px solid var(--mint-line);
}
.icon-tile svg { width: 23px; height: 23px; }
.icon-tile.blue { background: var(--sky); color: var(--blue); border-color: var(--sky-line); }
.icon-tile.violet { background: var(--lilac); color: var(--violet); border-color: #DDD6FE; }
.icon-tile.amber { background: var(--amber-soft); color: var(--amber); border-color: #FDE68A; }
.card h3 { margin-top: 18px; font-size: 20px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid var(--mint-line);
}

/* ---------- Industry marquee ---------- */

.strip { padding: 34px 0 10px; }
.strip-title { text-align: center; font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.marquee { overflow: hidden; margin-top: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature tabs ---------- */

.tabs-nav {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 34px;
  padding: 6px; border-radius: 999px; background: var(--bg-tint); width: fit-content; max-width: 100%;
}
.tabs-nav button {
  position: relative; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s; overflow: hidden; white-space: nowrap;
}
.tabs-nav button svg { width: 17px; height: 17px; }
.tabs-nav button:hover { color: var(--ink); }
.tabs-nav button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.tabs-nav button .bar { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--green-2); transform: scaleX(0); transform-origin: left; }
.tabs-nav button[aria-selected="true"] .bar { animation: tabbar var(--tab-time, 8s) linear forwards; }
.tabs.paused .tabs-nav button .bar { animation-play-state: paused; }
@keyframes tabbar { to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .tabs-nav { border-radius: 18px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tabs-nav button { flex: none; }
  .tabs-nav::-webkit-scrollbar { display: none; }
}
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.feature-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-split > * { min-width: 0; }
.feature-split.flip { grid-template-columns: 1.15fr 0.85fr; }
.feature-split.flip > :first-child { order: 2; }
@media (max-width: 980px) {
  .feature-split, .feature-split.flip { grid-template-columns: 1fr; }
  .feature-split.flip > :first-child { order: 0; }
}
.feature-copy .h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); }
.feature-copy .lede { margin-top: 14px; font-size: 17.5px; }
.feature-copy .link-arrow { margin-top: 26px; }

/* ---------- Stage: where a demo plays ---------- */

.stage {
  position: relative; border-radius: 28px; padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(160deg, #F7FBF8, #EEF5FF);
  border: 1px solid var(--line); min-height: 420px; display: grid; place-items: center; overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10, 26, 46, 0.07) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.stage > * { position: relative; }
.stage.mint { background: linear-gradient(160deg, #F0FDF4, #F7FEF9); }
.stage.sky { background: linear-gradient(160deg, #EFF6FF, #F8FBFF); }
.stage.lilac { background: linear-gradient(160deg, #F5F3FF, #FBFAFF); }
.stage.sand { background: linear-gradient(160deg, #FFFBEB, #FFFDF6); }
.replay {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--muted);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.3s, color 0.2s;
}
.replay svg { width: 16px; height: 16px; }
.stage:hover .replay, .replay:focus-visible, .scene-done .replay { opacity: 1; }
.replay:hover { color: var(--ink); }

/* App window */
.window {
  width: 100%; max-width: 640px; background: #fff; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: var(--shadow-l); overflow: hidden;
}
.window-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F8FAFC; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.window-bar i:nth-child(1) { background: #FCA5A5; } .window-bar i:nth-child(2) { background: #FCD34D; } .window-bar i:nth-child(3) { background: #86EFAC; }
.window-bar span { margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--faint); letter-spacing: 0.04em; }
.window-body { padding: 18px; }

/* Phone */
.phone {
  width: 290px; max-width: 100%; border-radius: 40px; padding: 10px; background: #0B1220;
  box-shadow: var(--shadow-l), inset 0 0 0 2px #1F2937;
}
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--wa-bg); height: 520px; display: flex; flex-direction: column; position: relative; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 14px; background: #0B1220; z-index: 2; }
.wa-head { background: var(--wa-head); color: #fff; padding: 38px 14px 10px; display: flex; align-items: center; gap: 10px; }
.wa-head .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--wa-head); display: grid; place-items: center; font: 700 13px/1 var(--font-head); }
.wa-head b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.wa-head small { font-size: 11.5px; opacity: 0.8; }
.wa-head .verified { width: 14px; height: 14px; margin-left: 3px; display: inline-block; vertical-align: -2px; }
.wa-body {
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; justify-content: flex-end;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 14px 14px;
}
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: var(--wa-bg); }
.wa-input span { flex: 1; background: #fff; border-radius: 20px; padding: 9px 14px; font-size: 13px; color: var(--faint); }
.wa-input i { width: 36px; height: 36px; border-radius: 50%; background: #00A884; flex: none; display: grid; place-items: center; color: #fff; }
.wa-input i svg { width: 16px; height: 16px; }

.bubble {
  max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; color: #111B21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); position: relative; width: fit-content;
}
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 3px; }
.bubble .meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; font-size: 10.5px; color: #667781; }
.bubble .tk { width: 16px; height: 11px; color: #8696A0; transition: color 0.4s; }
.bubble .tk.read { color: var(--tick-blue); }
.bubble b { font-weight: 600; }
.bubble.doc { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.bubble.doc .file { width: 34px; height: 40px; border-radius: 4px; background: #F87171; color: #fff; display: grid; place-items: center; font: 700 9px/1 var(--font-body); flex: none; }
.wa-buttons { display: grid; gap: 4px; align-self: flex-start; width: 84%; }
.wa-buttons span {
  background: #fff; border-radius: 8px; padding: 8px; text-align: center; color: #027EB5; font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); transition: background 0.25s, transform 0.25s;
}
.wa-buttons span.tap { background: #E7F6FC; transform: scale(0.97); }
.typing { display: inline-flex; gap: 3px; padding: 11px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; 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%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Scene items: hidden until the scene shows them */
[data-step] { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-spring); }
[data-step].on { opacity: 1; transform: none; }
[data-step].gone { display: none; }
.instant, .instant * { transition: none !important; animation-duration: 0s !important; }

/* Floating chips around a demo */
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--green); flex: none; }
.float-chip .dot svg { width: 18px; height: 18px; }
.float-chip .dot.blue { background: var(--sky); color: var(--blue); }
.float-chip .dot.violet { background: var(--lilac); color: var(--violet); }
.bob { animation: bob 6s ease-in-out infinite; }
.bob.d2 { animation-delay: -2s; } .bob.d3 { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* Hero composition */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-visual .phone { position: relative; z-index: 2; }
.hero-visual .halo {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 120deg, #BBF7D0, #BFDBFE, #DDD6FE, #BBF7D0); filter: blur(70px); opacity: 0.55;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.hero-visual .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(10, 26, 46, 0.12); z-index: 1; }
.hero-visual .ring.r1 { width: 440px; height: 440px; }
.hero-visual .ring.r2 { width: 580px; height: 580px; }
.hv-chip-1 { top: 70px; left: -6px; }
.hv-chip-2 { top: 210px; right: -14px; }
.hv-chip-3 { bottom: 120px; left: 0; }
.hv-chip-4 { bottom: 40px; right: 10px; }
@media (max-width: 1180px) { .hv-chip-1, .hv-chip-3 { left: -30px; } .hv-chip-2, .hv-chip-4 { right: -30px; } }
@media (max-width: 980px) { .hv-chip-1, .hv-chip-3 { left: 4%; } .hv-chip-2, .hv-chip-4 { right: 4%; } }
@media (max-width: 560px) {
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .hero-visual .float-chip { display: none; }
  .hero-visual .halo { width: 340px; height: 340px; }
  .hero-visual .ring { display: none; }
}

/* ---------- Mini dashboard pieces (inside demos) ---------- */

.ui-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background 0.3s; }
.ui-row + .ui-row { margin-top: 4px; }
.ui-row.hot { background: var(--mint); }
.ui-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-head); color: #fff; flex: none; }
.av1 { background: #F97316; } .av2 { background: #8B5CF6; } .av3 { background: #0EA5E9; } .av4 { background: #EC4899; } .av5 { background: #14B8A6; }
.ui-main { flex: 1; min-width: 0; }
.ui-main b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.ui-main span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-side { text-align: right; font-size: 11.5px; color: var(--faint); flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green-2); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tag.g { background: var(--mint); color: var(--green-dark); }
.tag.b { background: var(--sky); color: var(--blue); }
.tag.v { background: var(--lilac); color: var(--violet); }
.tag.a { background: var(--amber-soft); color: var(--amber); }
.tag.r { background: var(--red-soft); color: var(--red); }
.tag.n { background: var(--bg-tint); color: var(--muted); }
.ui-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ui-title b { font: 700 15px/1.2 var(--font-head); color: var(--ink); }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ui-kpi small { font-size: 11.5px; color: var(--muted); display: block; }
.ui-kpi b { font: 800 22px/1.2 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.progress { height: 8px; border-radius: 8px; background: var(--bg-tint); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--green-2), #0EA5E9); transition: width 2.2s var(--ease); }
.note-y { background: #FEF9C3; border: 1px solid #FDE68A; color: #713F12; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.chat-pane { border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; }
.inbox-ui { display: grid; grid-template-columns: 1fr 1.05fr; gap: 14px; }
@media (max-width: 560px) { .inbox-ui { grid-template-columns: 1fr; } .chat-pane { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }

/* Flow builder */
.canvas { position: relative; height: 360px; width: 100%; max-width: 620px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-l); overflow: hidden;
  background-image: radial-gradient(#E2E8F0 1px, transparent 1px); background-size: 16px 16px; }
.canvas svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas svg.wires path { fill: none; stroke: #94A3B8; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 0.9s var(--ease); }
.canvas svg.wires path.on { stroke-dashoffset: 0; }
.canvas svg.wires path.live { stroke: var(--green-2); }
.node {
  position: absolute; width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-s);
  font-size: 12.5px; overflow: hidden; transition: box-shadow 0.4s, border-color 0.4s, opacity 0.5s var(--ease), transform 0.6s var(--ease-spring);
}
.node .nh { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.node .nh i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.node .nh i svg { width: 13px; height: 13px; }
.node .nb { padding: 8px 10px; color: var(--muted); line-height: 1.4; }
.node .nb .opt { display: block; margin-top: 4px; padding: 4px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--text); font-size: 11.5px; }
.node.live { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18), var(--shadow); }
.n-key i { background: var(--amber-soft); color: var(--amber); }
.n-msg i { background: var(--mint); color: var(--green); }
.n-btn i { background: var(--sky); color: var(--blue); }
.n-ask i { background: var(--lilac); color: var(--violet); }
.n-hand i { background: var(--red-soft); color: var(--red); }
.pulse-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25); opacity: 0; z-index: 3; }
@media (max-width: 640px) {
  .canvas { height: 300px; }
  .canvas .node { width: 136px; font-size: 11.5px; }
}

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #4ADE80, #16A34A); height: 0; transition: height 1.2s var(--ease); }
.bars i.alt { background: linear-gradient(180deg, #93C5FD, #2563EB); }
.bars-x { display: flex; gap: 10px; padding: 6px 4px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 11px; color: var(--faint); }

/* Pipeline */
.pipe { display: flex; align-items: center; gap: 0; margin-top: 18px; }
.pipe-step { flex: 1; text-align: center; position: relative; }
.pipe-step .pdot { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--faint); transition: all 0.5s var(--ease); position: relative; z-index: 1; }
.pipe-step .pdot svg { width: 16px; height: 16px; }
.pipe-step small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.pipe-step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.pipe-step:first-child::before { display: none; }
.pipe-step::after { content: ""; position: absolute; top: 17px; left: -50%; width: 0; height: 2px; background: var(--green-2); transition: width 0.7s var(--ease); }
.pipe-step:first-child::after { display: none; }
.pipe-step.done .pdot { border-color: var(--green-2); background: var(--green-2); color: #fff; }
.pipe-step.done::after { width: 100%; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > .tile { grid-column: span 2; }
.bento > .tile.wide { grid-column: span 3; }
.bento > .tile.big { grid-column: span 4; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > .tile, .bento > .tile.wide, .bento > .tile.big { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.tile h3 { font-size: 19px; margin-top: 4px; }
.tile p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tile .mini { margin-top: 22px; flex: 1; display: grid; place-items: center; min-height: 170px; border-radius: 16px; background: var(--bg-soft); padding: 16px; position: relative; overflow: hidden; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--mint-line), var(--sky-line)); }
.step { text-align: center; position: relative; }
.step-num {
  width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--green); position: relative;
}
.step-num svg { width: 26px; height: 26px; }
.step-num::after { counter-increment: step; content: counter(step); position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/24px var(--font-head); text-align: center; }
.step h3 { margin-top: 18px; font-size: 19px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 26ch; margin-inline: auto; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(30px, 3.6vw, 44px)/1 var(--font-head); letter-spacing: -0.04em; color: var(--ink); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pricing ---------- */

.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-tint);
  border: 1px solid var(--line); position: relative;
}
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; transition: color 0.3s; white-space: nowrap;
}
.billing-toggle button[aria-pressed="true"] { color: var(--ink); }
.billing-toggle .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease); z-index: 0; }
.billing-toggle .save { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--mint-2); color: var(--green-dark); font-weight: 700; }
.toggle-wrap { display: flex; justify-content: center; margin-top: 30px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1140px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* On a phone the plans are one row you swipe through, not four tall cards
   stacked into a long page. Room is left above for the "Most popular" tag,
   and the row reaches the screen edges so the next card peeks in. */
.plan-dots { display: none; }
@media (max-width: 760px) {
  .plans {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 18px 16px 6px; scroll-padding-inline: 16px;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 min(84%, 330px); scroll-snap-align: center; }
  .plans > .plan:hover { transform: none; }
  .plan-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .plan-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #CBD5E1; transition: width 0.3s var(--ease), background 0.3s; cursor: pointer; }
  .plan-dots button.on { width: 22px; background: var(--green); }
}
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 24px;
  display: flex; flex-direction: column; position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--green-2); box-shadow: 0 30px 60px -30px rgba(22, 163, 74, 0.45); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--green); color: #fff; font: 600 12px/1.2 var(--font-body); letter-spacing: 0.02em; white-space: nowrap; }
.plan-name { font: 750 22px/1.1 var(--font-head); color: var(--ink); }
.plan-tag { margin-top: 6px; color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font: 800 44px/1 var(--font-head); letter-spacing: -0.04em; color: var(--ink); }
.plan-price .per { color: var(--muted); font-size: 14.5px; }
.plan-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); min-height: 21px; }
.plan-sub b { color: var(--green-dark); }
.plan .btn { margin-top: 22px; }
.plan .ticks { margin-top: 24px; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.plan-lead { padding-top: 20px; border-top: 1px solid var(--line-2); }
.plan .ticks li { font-size: 14.5px; }
.plan .ticks li::before { width: 20px; height: 20px; background-size: 12px; }
.plan-lead { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink); }
.plan-lead + .ticks { margin-top: 12px; padding-top: 0; border-top: 0; }
.amount.swap { animation: priceSwap 0.45s var(--ease); }
@keyframes priceSwap { from { opacity: 0; transform: translateY(8px); } }

.compare-wrap { position: relative; overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare thead th { position: sticky; top: 0; background: #fff; font: 700 16px/1.2 var(--font-head); color: var(--ink); }
.compare thead th small { display: block; font: 500 13px/1.4 var(--font-body); color: var(--muted); margin-top: 3px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare .grp th { background: var(--bg-soft); font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; }
.compare td.featured, .compare th.featured { background: rgba(240, 253, 244, 0.6); }
.compare svg { width: 20px; height: 20px; margin: 0 auto; }
.compare .y { color: var(--green); }
.compare .n { color: #CBD5E1; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--ink); }
.price-table thead th { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price-table tr:last-child td, .price-table tr:last-child th { border-bottom: 0; }
.price-table tbody th { font-weight: 500; color: var(--text); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow-x: auto; }
.table-card .price-table { min-width: 420px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow 0.3s, border-color 0.3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #D5DEE8; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 650 17px/1.35 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1A2E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mint-2); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
.faq details.warn { border-color: #FDE68A; background: var(--amber-soft); }
.faq details.warn summary { color: #92400E; }

/* ---------- Limits ---------- */


/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 72px);
  background: radial-gradient(800px 400px at 85% -10%, rgba(34, 197, 94, 0.35), transparent 60%),
              radial-gradient(700px 400px at 0% 120%, rgba(37, 99, 235, 0.35), transparent 60%), var(--ink);
  color: #CBD5E1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.cta-band p { margin-top: 14px; font-size: 18px; }
.cta-band .hero-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .hero-actions { justify-content: center; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 36px; margin-top: clamp(72px, 9vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid h4 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text); font-size: 15px; }
.footer-grid a:hover { color: var(--green-dark); }
.footer-about p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-about address { font-style: normal; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--faint); font-size: 13.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Legal and prose ---------- */

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h4 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--green-2); text-decoration: none; }
.prose { color: var(--text); font-size: 16.5px; }
.prose h2 { font-size: 23px; margin: 44px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Forms ---------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Sub navigation (features page) ---------- */

.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.subnav a:hover { text-decoration: none; color: var(--ink); background: var(--bg-tint); }
.subnav a.here { color: var(--green-dark); background: var(--mint); }
.feature-sec { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Delivery ticks inside demos ---------- */
.tks { display: inline-flex; align-items: center; color: #8696A0; }
.tks .tk { width: 16px; height: 11px; transition: color 0.4s; }
.tks .double { display: none; }
.tks.dbl .single { display: none; }
.tks.dbl .double { display: inline-block; }
.tks.read { color: var(--tick-blue); }

/* ---------- Wide demos shrink to fit a phone ---------- */
.scene-wrap { width: 100%; display: grid; justify-items: center; }
.fit-box { width: 100%; overflow: hidden; }
.fit { transform-origin: top left; }
.fit > .window, .fit > .canvas { max-width: none; }

/* ---------- fixes found in the first browser pass ---------- */
[hidden] { display: none !important; }
.tab-panel:not(.active) { display: none !important; }
.wa-buttons span svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.float-chip { padding: 9px 13px 9px 9px; font-size: 13px; gap: 9px; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 9px; }
.hv-chip-1 { top: 92px; left: -64px; }
.hv-chip-2 { top: 232px; right: -70px; }
.hv-chip-3 { bottom: 150px; left: -76px; }
.hv-chip-4 { bottom: 52px; right: -56px; }
@media (max-width: 1280px) { .hv-chip-1, .hv-chip-3 { left: -20px; } .hv-chip-2, .hv-chip-4 { right: -24px; } }
@media (max-width: 1180px) and (min-width: 981px) { .hv-chip-2, .hv-chip-3 { display: none; } }
.pipe-step small { white-space: nowrap; }
.scene-wrap > .pipe, .scene-wrap > .ui-row { justify-self: stretch; }
.steps.vertical { grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: left; }
.steps.vertical::before { display: none; }
/* Bento cards: content may not push the card wider than the screen, and
   the replay button is left out because it would sit on the demo's text
   in a box this small (the demos replay on their own when scrolled back to). */
.tile .mini { grid-template-columns: minmax(0, 1fr); }
.tile .replay { display: none; }
/* Plan cards: a second group (Pro), the AI add-on note, and the greyed
   lines for what the next plan unlocks -- so each card shows its value
   and what moving up would add. */
.plan .ticks + .plan-lead { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.plan-note { margin-top: 14px; font-size: 13px; color: var(--muted); padding: 9px 12px; border-radius: 10px; background: var(--bg-soft); }
.plan-allin { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1.2 var(--font-body); letter-spacing: 0.02em; white-space: nowrap; }

/* ---------- pricing page, kept short ---------- */
.page-hero-tight { padding-bottom: 8px; }
.page-hero-tight .h1 { margin-top: 0; }
.section-tight { padding: 40px 0; }
#compare.section-tight { padding-top: 8px; }
.plans-proof { justify-content: center; margin-top: 30px; }
.plans-founding { margin: 12px auto 0; max-width: 46ch; text-align: center; font-size: 14px; color: var(--muted); }
.plans-founding b { color: var(--ink); }
.section-mid { padding: clamp(56px, 6vw, 84px) 0; }
.page-hero-tight .h1, .section-head .h2 { text-wrap: balance; }
.compare-box > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; margin: 0 auto; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: 600 15px/1.2 var(--font-body); color: var(--ink); transition: box-shadow 0.3s, border-color 0.3s;
}
.compare-box > summary::-webkit-details-marker { display: none; }
.compare-box > summary:hover { box-shadow: var(--shadow); border-color: #D5DEE8; }
.compare-box > summary svg { width: 17px; height: 17px; transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.compare-box[open] > summary svg { transform: rotate(-90deg); }
.compare-box .compare-wrap { margin-top: 24px; }
.addons .card { display: flex; flex-direction: column; }
.price-table.compact { margin-top: 18px; font-size: 14.5px; }
.price-table.compact th, .price-table.compact td { padding: 11px 0; }
.price-table.compact td small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
#ai, #services { scroll-margin-top: 96px; }

/* ---------------- cookie notice (Meta ads measurement) ----------------
   Slim, at the bottom, never covering the page's own sticky buttons for
   long: two taps and it is gone for six months. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(10, 26, 46, 0.35);
}
.consent p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1 1 auto; min-width: 0; }
.consent a { color: var(--green-dark); }
.consent-btns { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; gap: 10px; }
  .consent-btns { justify-content: flex-end; }
}
