/* ==========================================================================
   CapLens marketing site: design system
   Structure: 1 tokens, 2 base, 3 layout, 4 components, 5 sections, 6 pages, 7 responsive
   WordPress note: every token below maps 1:1 to theme.json / Elementor global colors & fonts.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --ink: #0b1220;
  --navy: #0f172a;
  --navy-2: #131f3a;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --sky: #0ea5e9;
  --sky-700: #0369a1;
  --teal: #14b8a6;
  --teal-700: #0f766e;
  --indigo: #4f46e5;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;

  --grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #14b8a6 100%);
  --grad-btn: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  --grad-text: linear-gradient(90deg, #60a5fa 0%, #22d3ee 55%, #2dd4bf 100%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 80px -24px rgba(15, 23, 42, 0.35);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--slate-50); }
.section.dark { background: var(--navy); color: #cbd5e1; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark a { color: #7dd3fc; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; } .mt-4 { margin-top: 4rem; }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.dark .eyebrow, .hero .eyebrow { color: #67e8f9; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--slate-600); max-width: 680px; }
.dark .lead { color: #b6c2d6; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 4. COMPONENTS ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--font-body); padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 28px -10px rgba(3, 105, 161, 0.7); }
.btn-primary:hover { color: #fff; box-shadow: 0 18px 36px -10px rgba(3, 105, 161, 0.75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 11px 18px; font-size: 0.93rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: rgba(14, 165, 233, 0.1); color: var(--sky-700); border: 1px solid rgba(14, 165, 233, 0.25); }
.dark .pill, .hero .pill { background: rgba(255, 255, 255, 0.08); color: #bae6fd; border-color: rgba(255, 255, 255, 0.16); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25); }

.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.card.flat:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--slate-200); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.dark .card:hover { border-color: rgba(103, 232, 249, 0.4); background: rgba(255, 255, 255, 0.07); }
.ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.16)); color: var(--blue-700); margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; }
.dark .ico { background: rgba(103, 232, 249, 0.12); color: #67e8f9; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 10px; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(4px); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); -webkit-mask: none; }
.check-list li::after { content: ""; position: absolute; left: 6.5px; top: 16.5px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.check-list.two { columns: 2; column-gap: 32px; }
.check-list.two li { break-inside: avoid; }

/* Browser-style frame around screenshots/videos */
.frame { background: #fff; border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.12); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #f1f5f9; border-bottom: 1px solid var(--slate-200); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.frame-bar i:nth-child(1) { background: #f87171; } .frame-bar i:nth-child(2) { background: #fbbf24; } .frame-bar i:nth-child(3) { background: #34d399; }
.frame-bar span { margin-left: 14px; flex: 1; max-width: 360px; font-size: 0.74rem; color: var(--slate-500); background: #fff; border: 1px solid var(--slate-200); border-radius: 7px; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img, .frame video { width: 100%; background: #f8fafc; }
.frame.tilt { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.frame.tilt:hover { transform: perspective(1800px) rotateY(0) rotateX(0); }
figure { margin: 0; }
figcaption { font-size: 0.86rem; color: var(--slate-500); margin-top: 12px; text-align: center; }
.dark figcaption { color: #94a3b8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15, 23, 42, 0.07); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nl { text-decoration: none; color: var(--slate-700); font-weight: 500; font-size: 0.98rem; padding: 9px 14px; border-radius: 10px; }
.nav a.nl:hover, .nav a.nl[aria-current="page"] { color: var(--ink); background: var(--slate-100); }
.nav-cta { display: flex; gap: 10px; margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--slate-200); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s ease, top .2s ease, opacity .2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 72px 0 36px; font-size: 0.95rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-grid h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 9px 0; }
.foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 0.86rem; }
.foot-note { max-width: 62ch; }

/* 5. SECTIONS -------------------------------------------------------------- */
/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 78% -10%, rgba(14, 165, 233, 0.28), transparent 60%), radial-gradient(900px 500px at 5% 20%, rgba(37, 99, 235, 0.3), transparent 60%), radial-gradient(700px 500px at 60% 110%, rgba(20, 184, 166, 0.22), transparent 60%), var(--navy); color: #cbd5e1; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 { color: #fff; margin: 18px 0 22px; font-size: clamp(2.2rem, 3.7vw, 3.1rem); letter-spacing: -0.03em; }
.hero .lead { color: #c3d0e3; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.92rem; color: #9fb0c8; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: #2dd4bf; }
.hero-visual { position: relative; }
.chip { position: absolute; background: rgba(255, 255, 255, 0.97); color: var(--ink); border-radius: 14px; padding: 11px 16px; box-shadow: 0 18px 40px -12px rgba(2, 8, 23, 0.55); font-size: 0.8rem; line-height: 1.25; display: flex; align-items: center; gap: 12px; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.chip b { display: block; font-family: var(--font-head); font-size: 1.25rem; letter-spacing: -0.02em; }
.chip small { color: var(--slate-500); font-size: 0.74rem; }
.chip .up { color: #059669; } .chip .down { color: #dc2626; }
.chip .ci { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.chip .ci svg { width: 18px; height: 18px; }
.chip.c1 { left: -28px; bottom: 14%; } .chip.c2 { right: -14px; top: -20px; animation-delay: -2.4s; } .chip.c3 { right: 6%; bottom: -26px; animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.disclaimer-line { font-size: 0.8rem; color: #8195b0; margin-top: 42px; text-align: center; }

/* Audience strip */
.strip { background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 26px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; }
.strip p { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; margin: 0; padding: 0; }
.strip li { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--slate-700); display: inline-flex; align-items: center; gap: 9px; }
.strip li svg { width: 20px; height: 20px; color: var(--sky); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.2vw, 2.9rem); letter-spacing: -0.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: #a8b8cf; font-size: 0.93rem; }
.stats-note { font-size: 0.82rem; color: var(--slate-500); text-align: center; margin-top: 14px; }

/* Tabs showcase */
.tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-btn { text-align: left; border: 1px solid var(--slate-200); background: #fff; border-radius: 14px; padding: 16px 18px; cursor: pointer; font: inherit; color: var(--slate-700); transition: all .18s ease; }
.tab-btn strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); margin-bottom: 2px; }
.tab-btn span { font-size: 0.88rem; line-height: 1.4; display: block; }
.tab-btn:hover { border-color: #93c5fd; }
.tab-btn[aria-selected="true"] { border-color: var(--blue); background: linear-gradient(180deg, #eff6ff, #fff); box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.6); }
.tab-panel[hidden] { display: none; }
.tab-panel .frame { margin-bottom: 18px; }
.tab-panel h3 { margin-bottom: 6px; }

/* Alternating feature rows */
.row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.row + .row { margin-top: clamp(64px, 9vw, 120px); }
.row.rev .row-text { order: 2; }
.row-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 22px 0 26px; }
.mini-stats div b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.dark .mini-stats div b { color: #fff; }
.mini-stats div span { font-size: 0.85rem; color: var(--slate-500); }
.dark .mini-stats div span { color: #94a3b8; }

/* Quant lab flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; position: relative; }
.flow-step { position: relative; padding: 0 22px 0 0; counter-increment: flow; }
.flow-step::before { content: counter(flow); width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; position: relative; z-index: 1; box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.7); }
.flow-step::after { content: ""; position: absolute; left: 52px; right: 8px; top: 21px; height: 2px; background: linear-gradient(90deg, rgba(103, 232, 249, 0.6), rgba(103, 232, 249, 0.08)); }
.flow-step:last-child::after { display: none; }
.flow-step h4 { color: #fff; margin-bottom: 6px; }
.flow-step p { font-size: 0.95rem; color: #a8b8cf; margin: 0; }

/* Steps (light) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: st; }
.step { counter-increment: st; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.step::before { content: "0" counter(st); font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 14px; }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.97rem; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.compare thead th { background: var(--slate-50); font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.compare thead th.us { background: var(--grad-btn); color: #fff; }
.compare td.us { background: #f0f9ff; font-weight: 500; color: var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.yes { color: #059669; font-weight: 700; } .no { color: #dc2626; font-weight: 700; } .part { color: #d97706; font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.table-scroll .compare { min-width: 760px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #93c5fd; box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--slate-100); display: grid; place-items: center; font-size: 1.3rem; color: var(--blue-700); transition: transform .2s ease, background .2s ease; line-height: 1; padding-bottom: 3px; }
.faq details[open] summary::after { content: "−"; background: var(--blue); color: #fff; }
.faq .ans { padding: 0 24px 22px; color: var(--slate-600); }

/* CTA band */
.cta-band { background: radial-gradient(800px 400px at 85% 0%, rgba(20, 184, 166, 0.35), transparent 60%), radial-gradient(700px 400px at 5% 100%, rgba(37, 99, 235, 0.45), transparent 60%), var(--navy); border-radius: 28px; padding: clamp(40px, 6vw, 80px); text-align: center; color: #cbd5e1; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 780px; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin: 0 auto 30px; color: #b6c2d6; }
.cta-band .btn-row { justify-content: center; }

/* Video cards */
.vid-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.vid-card video { width: 100%; aspect-ratio: 16 / 9; background: #0f172a; }
.vid-card .vc-body { padding: 22px 24px 26px; }
.vid-card .vc-meta { font-size: 0.82rem; color: var(--slate-500); display: flex; gap: 14px; margin-bottom: 8px; }
.vid-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.vid-card p { font-size: 0.95rem; margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--blue); box-shadow: 0 30px 60px -28px rgba(37, 99, 235, 0.55); transform: translateY(-10px); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-btn); color: #fff; padding: 5px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.plan .price { font-family: var(--font-head); font-size: 2rem; color: var(--ink); font-weight: 700; margin: 8px 0 4px; letter-spacing: -0.02em; }
.plan .for { color: var(--slate-500); font-size: 0.95rem; min-height: 3em; }
.plan .check-list { margin-top: 18px; flex: 1; }
.plan .btn { width: 100%; margin-top: 20px; }

/* 6. PAGES ----------------------------------------------------------------- */
.page-hero { background: radial-gradient(900px 420px at 80% -20%, rgba(14, 165, 233, 0.28), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(37, 99, 235, 0.32), transparent 60%), var(--navy); color: #c3d0e3; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 14px 0 18px; max-width: 880px; }
.page-hero .lead { color: #c3d0e3; }
.breadcrumb { font-size: 0.86rem; color: #8ea2bf; margin-bottom: 6px; }
.breadcrumb a { color: #b8c7de; text-decoration: none; } .breadcrumb a:hover { color: #fff; text-decoration: underline; }

.side-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); }
.sidenav h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-500); font-family: var(--font-body); }
.sidenav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--slate-200); }
.sidenav a { display: block; padding: 8px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--slate-600); font-size: 0.95rem; }
.sidenav a:hover, .sidenav a.active { color: var(--blue-700); border-left-color: var(--blue); background: linear-gradient(90deg, rgba(37, 99, 235, 0.07), transparent); }
.mod { padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--slate-200); }
.mod:first-child { padding-top: 0; } .mod:last-child { border-bottom: 0; }
.mod-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mod-head .ico { margin: 0; }
.mod h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0; }
.mod .frame { margin: 24px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; background: var(--slate-100); color: var(--slate-700); }

/* Articles */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--slate-700); }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--sky); background: var(--slate-50); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 1.05rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--slate-200); }
.prose th { background: var(--slate-50); color: var(--ink); }
.prose code { background: var(--slate-100); padding: 2px 7px; border-radius: 6px; font-size: 0.92em; }
.article-meta { color: #9fb0c8; font-size: 0.92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.callout { background: linear-gradient(135deg, #eff6ff, #f0fdfa); border: 1px solid #bae6fd; border-radius: 16px; padding: 22px 26px; margin: 2em 0; }
.callout strong { color: var(--ink); }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag { align-self: flex-start; margin-bottom: 14px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--slate-300); border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.84rem; color: var(--slate-500); margin-top: 12px; }
.form-ok { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-ok.show { display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
  .frame.tilt { transform: none; }
  .btn, .card { transition: none; }
}

/* 7. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; margin: 18px auto 0; }
  .chip.c1 { left: -8px; } .chip.c2 { right: -4px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .side-layout { grid-template-columns: 1fr; }
  .sidenav { position: static; }
  .sidenav ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .sidenav a { border: 1px solid var(--slate-200); border-radius: 999px; margin: 0; padding: 6px 14px; font-size: 0.88rem; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--slate-200); box-shadow: 0 30px 40px -20px rgba(15, 23, 42, 0.3); gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a.nl { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; flex-direction: column; } .nav-cta .btn { width: 100%; }
  .row, .row.rev { grid-template-columns: 1fr; }
  .row.rev .row-text { order: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tab-btn { flex: 0 0 220px; scroll-snap-align: start; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .flow-step::after { display: none; }
  .steps, .plans, .grid-3 { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .check-list.two { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-4, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.08); } .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .flow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .chip { display: none; }
  .frame.tilt { transform: none; }
  .btn-row .btn { width: 100%; }
  .compare th, .compare td { padding: 12px 14px; }
}
@media print { .site-header, .site-footer, .cta-band, .chip { display: none; } .section { padding: 24px 0; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .grid { margin: 1.5rem 0; }

/* ---- Larger, zoomable screenshots ---- */
.row { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr); }
.grid:has(> .frame), .grid:has(> div > .frame) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.frame img { cursor: zoom-in; }
.frame-hint { display: block; text-align: right; font-size: 0.78rem; color: var(--slate-500); margin: 6px 4px 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 13, 28, 0.92); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
@media (max-width: 920px) { .row { grid-template-columns: 1fr; } }

/* ---- Glossary ---- */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; }
.glossary > div { background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 16px 20px; }
.glossary dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--slate-600); font-size: 0.97rem; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1100px) { .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .steps.steps-4 { grid-template-columns: 1fr; } }
.steps.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .steps.steps-5 .step { padding: 22px 18px; } @media (max-width: 1100px) { .steps.steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .steps.steps-5 { grid-template-columns: 1fr; } }

/* Text above, screenshot full width: keeps product screens legible */
.row:has(.frame), .row.rev:has(.frame) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.row:has(.frame) .row-text, .row.rev:has(.frame) .row-text { order: 0; max-width: 820px; }
