/*
 * NPATI Agent landing page.
 * Buttons, eyebrow and action cards copy the app (apps/web/src/styles/03-buttons.css, 01-base-and-shell.css);
 * cards, sections, FAQ and checklists copy npati.com (npati-clone PluginsLandingComponents).
 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/landing/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/landing/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/landing/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --white: #ffffff;
  --black: #111111;
  --gray-950: #0a0a0a;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-500: #717171;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #ececec;
  --gray-50: #f7f7f7;
  --red: #e11d2e;          /* --npati-red */
  --red-button: #d83438;   /* app .button-primary */
  --red-site: #e32c26;     /* npati.com accent */
  --pink-line: #f2b6bd;    /* app eyebrow and action cards */
  --pink-bg: #fff1f2;
  --red-on-pink: #c0162a;  /* --red is 4.33:1 on --pink-bg; this keeps the brand red at 5.64:1 (WCAG AA 4.5:1) */
  --radius: 16px;          /* --npati-radius */
  --card-shadow: 0 8px 24px rgba(15, 23, 42, .07), 0 0 0 1px rgba(0, 0, 0, .02);
  --panel-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --app-shadow: 0 18px 50px rgb(17 17 17 / 8%);                                  /* --npati-shadow */
  --app-shadow-hover: 0 22px 48px rgb(17 17 17 / 13%), 0 6px 16px rgb(225 29 46 / 10%);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--gray-950); letter-spacing: -0.02em; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-site); outline-offset: 2px; }

/* Logo — the app's NpatiAgentLogo */
.logo { display: inline-flex; align-items: center; gap: 8px; color: #000; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: .025em; text-decoration: none; transition: transform .3s ease-in-out; }
.logo:hover { transform: scale(1.05); }
.logo-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, .2); transform: translateY(-1px); flex-shrink: 0; }
/* A light ring that softly spreads from the dot (transform/opacity only, so it runs on the compositor). */
.logo-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(225 29 46 / 55%); animation: logo-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; pointer-events: none; }
@keyframes logo-ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

/* Buttons — app .button-primary / .button-secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 10px; font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { color: #fff; background: var(--red-button); border: 1px solid var(--red-button); }
.btn-primary:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(216, 52, 56, .28); }
.btn-primary:active { transform: translateY(0); background: var(--red-button); box-shadow: 0 1px 3px rgba(216, 52, 56, .15); }
.btn-secondary { color: #222; background: #fff; border: 1px solid #d9d9d9; font-weight: 650; }
.btn-secondary:hover { color: var(--red); border-color: rgba(216, 52, 56, .42); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(216, 52, 56, .22); }
.btn-secondary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(216, 52, 56, .15); }
.btn-dark { color: #fff; background: var(--black); border: 1px solid var(--black); }
.btn-dark:hover { color: var(--red); background: #fff; border-color: rgba(216, 52, 56, .42); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(216, 52, 56, .22); }
.btn-dark:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(216, 52, 56, .15); }
.btn-shadow { box-shadow: 0 8px 24px rgba(15, 23, 42, .10), 0 0 0 1px rgba(0, 0, 0, .02); }
.btn-github { gap: 10px; padding: 10px 32px; color: #000; background: #fff; border: 1px solid #9ca3af; border-radius: 12px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 24px rgba(15, 23, 42, .07), 0 0 0 1px rgba(0, 0, 0, .02); transition: color .15s, border-color .15s; }
.btn-github svg { width: 18px; height: 18px; }
.btn-github:hover { color: var(--red-site); border-color: var(--red-site); }
.btn-sm { min-height: 36px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 95%); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: #000; text-decoration: none; transition: color .15s; }
.main-nav a:hover { color: var(--red-site); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Eyebrows */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px 6px 12px; color: var(--red); background: #fff; border: 1px solid var(--pink-line); border-radius: 999px; box-shadow: 0 4px 14px rgb(17 17 17 / 5%); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.eyebrow { margin-bottom: 12px; color: var(--red-site); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Sections — npati.com LandingSection */
.section { padding: 64px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: 64px; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; }
.section-head p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: #000; }

/* Hero */
.hero { padding: 56px 0 64px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
/* Same typography as the section headings below: Inter 700, gray-950, tight tracking. No red here: the page already has enough of it. */
.hero h1 { margin-top: 18px; font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; color: var(--gray-950); text-wrap: balance; }
.hero h1 .hero-line { display: block; }
.hero-lead { max-width: 520px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--gray-700); }

/* Browser window (macOS Safari style) around a product GIF */
.browser { margin: 0; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -20px rgb(17 17 17 / 22%), 0 12px 24px -12px rgb(17 17 17 / 12%); }
.browser-bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--gray-200); background: linear-gradient(#fbfbfb, #f2f2f2); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / 12%); }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 140px); padding: 4px 16px; overflow: hidden; border-radius: 7px; background: rgb(0 0 0 / 5%); font-size: 12px; font-weight: 500; color: var(--gray-700); white-space: nowrap; text-overflow: ellipsis; }
.browser-url svg { width: 11px; height: 11px; flex: none; color: var(--gray-500); }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: var(--gray-50); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* The hero GIF arrives after the page loads: a soft shimmer holds its place, then it fades in. */
.hero-browser .browser-view { background: linear-gradient(100deg, var(--gray-50) 30%, #fff 50%, var(--gray-50) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.hero-browser .browser-view img { opacity: 0; transition: opacity .4s ease; }
.hero-browser .browser-view img.loaded, .hero-browser noscript img { opacity: 1; }
.hero-browser .browser-view::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 13.04%; background: #fff; border-left: 1px solid #ededed; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.hero-browser .browser-view:has(img.loaded)::after { opacity: 1; }
@keyframes shimmer { to { background-position: -150% 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--gray-700); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.stat { padding: 14px 12px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); text-align: center; }
.stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--gray-950); }
.stat strong em { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--gray-700); }

/* Product panel (kept for reuse) */
.panel { padding: 18px; border: 1px solid var(--gray-200); border-radius: 24px; background: var(--gray-50); box-shadow: var(--panel-shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--gray-200); }
.panel-kicker { color: var(--red-site); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.panel-title { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--gray-950); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.bubble { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; }
.avatar { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: #fff; font-size: 11px; font-weight: 700; }
.shot { margin-top: 10px; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--gray-200); font-size: 11px; font-weight: 600; color: var(--gray-500); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); }
.shot-bar i:first-child { background: var(--red); }
.shot-bar span { margin-left: 6px; }
.steps-mini { display: grid; gap: 8px; margin-top: 10px; }
.step-mini { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; font-size: 13px; }
.step-mini b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: #fff; font-size: 11px; }
.step-mini strong { font-weight: 700; color: var(--gray-950); }
.step-mini span { color: var(--gray-700); }
.step-mini .ok { margin-left: auto; color: var(--red-site); font-weight: 700; }

/* Model chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgb(17 17 17 / 5%); font-size: 14px; font-weight: 600; }
.chip-red { border-color: var(--pink-line); color: var(--red); }

/* Feature cards — npati.com FeatureCard */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.card-featured { border-color: var(--red-site); }
.card-bar { display: block; width: 40px; height: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--red-site); }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: #000; }

/* Demo cards with GIFs */
.demo { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
#demos .section-head { margin-bottom: 24px; }
.carousel .demo { box-shadow: 0 10px 20px -12px rgb(17 17 17 / 22%), 0 1px 3px rgb(17 17 17 / 6%); }
.demo-media { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--gray-200); aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-50); cursor: inherit; }
.demo-media:focus-visible { outline: 2px solid var(--red-site); outline-offset: -2px; }
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.demo-body { padding: 18px 20px 20px; }
.tag { display: inline-block; margin-bottom: 8px; color: var(--red-site); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.demo h3 { font-size: 17px; font-weight: 700; }
.demo p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--gray-700); }

/* Demo carousel: three cards per view, scroll-snap, arrows below */
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); column-gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 16px 28px; margin: -4px -16px -12px; scroll-padding-inline: 16px; outline: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .demo { scroll-snap-align: start; }
.carousel-track:focus-visible { outline: 2px solid var(--red-site); outline-offset: 4px; border-radius: var(--radius); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 6px; }
.carousel-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d9d9d9; border-radius: 50%; background: #fff; color: #222; cursor: pointer; transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover:not(:disabled) { color: #fff; background: var(--red-button); border-color: var(--red-button); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(216, 52, 56, .28); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-count { min-width: 56px; text-align: center; font-size: 14px; font-weight: 600; color: var(--gray-700); font-variant-numeric: tabular-nums; }
.carousel-count b { color: var(--gray-950); }

/* Sign-in dialog — copied from the app's AuthModal (.auth-modal-*) */
.auth-dialog { width: min(440px, calc(100vw - 40px)); max-width: none; padding: 32px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); color: var(--black); }
.auth-dialog::backdrop { background: rgb(15 23 42 / 60%); backdrop-filter: blur(4px); }
.auth-dialog[open] { animation: auth-in .2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes auth-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.auth-close { position: absolute; top: 20px; right: 20px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 24px; line-height: 1; cursor: pointer; }
.auth-close:hover { background: #f1f5f9; color: #334155; }
.auth-head { margin-bottom: 20px; text-align: center; }
.auth-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #0f172a; }
.auth-head p { font-size: 13px; line-height: 1.4; color: #64748b; }
.auth-error { margin-bottom: 16px; padding: 10px 14px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.auth-error[hidden], .auth-start[hidden], .auth-pairing[hidden] { display: none; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 6px; font-size: 14px; }
.auth-submit:disabled { opacity: .7; cursor: default; transform: none; }
.auth-pairing { display: flex; flex-direction: column; gap: 14px; text-align: center; font-size: 14px; }
.auth-code { font-size: 1.4rem; letter-spacing: .08em; }
.auth-wait { font-size: 12px; color: var(--gray-700); }
.auth-foot { margin-top: 18px; text-align: center; font-size: 11px; line-height: 1.4; color: #94a3b8; }

/* Back to top — copied from the app's .marketplace-scroll-top (apps/web/src/styles/02-toasts-and-buttons.css) */
.scroll-top { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e9a5ad; border-radius: 50%; color: var(--red); background: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / 12%); cursor: pointer; animation: scroll-top-enter 400ms ease-out; transition: transform 220ms ease, box-shadow 220ms ease; }
.scroll-top[hidden] { display: none; }
.scroll-top:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgb(0 0 0 / 20%); }
.scroll-top:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@keyframes scroll-top-enter { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Lightbox: the GIF alone, larger, with arrows to the previous and next demo */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgb(10 10 10 / 82%); }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .2s ease-out; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-img { width: auto; height: auto; max-width: calc(100vw - 176px); max-height: calc(100vh - 80px); border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 45%); }
.lightbox-btn { position: fixed; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #111; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-btn:hover { background: var(--red-button); color: #fff; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 20px; right: 24px; width: 44px; height: 44px; }

/* Numbered cards — npati.com DifferenceCard */
.num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-weight: 700; }
.example { display: block; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--gray-50); font-size: 13px; color: var(--gray-800); }

/* BYO AI split */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.checklist { display: grid; gap: 10px; margin-top: 20px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: #000; font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23e32c26' d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Decision card — npati.com security block */
.decision { padding: 22px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.decision-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; padding: 14px; border: 1px solid var(--gray-200); border-radius: 12px; }
.decision-row h3 { font-size: 15px; }
.decision-row p { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--gray-700); }
.dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; }
.dot-green { background: #22c55e; } .dot-amber { background: #f59e0b; } .dot-red { background: var(--red-site); }

/* Flow diagram — npati.com ArchitectureDiagram: white panel, gray-bordered nodes, one red accent node, red arrows */
.flow { padding: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.flow-inner { max-width: 940px; margin: 0 auto; }
.flow-node { padding: 16px; border: 1px solid var(--gray-300); border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); text-align: center; }
.flow-node-accent { border-color: var(--red-site); }
.flow-node h3 { font-size: 16px; font-weight: 700; }
.flow-node p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--gray-700); }
.flow-node .channels { justify-content: center; margin-top: 12px; }
.flow-arrow { padding: 4px 0; text-align: center; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--red-site); }
.flow-row { display: grid; gap: 12px; }
.flow-row-4 { grid-template-columns: repeat(4, 1fr); }
.flow-row-3 { grid-template-columns: repeat(3, 1fr); }

/* Channels */
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.channel { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.channel img { width: 18px; height: 18px; }

/* Pricing — compact, so the heading and all three plans fit on one screen */
.section-pricing { padding: 48px 0; }
.section-pricing .section-head { margin-bottom: 28px; }
.plans-interval {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0 auto 24px;
  padding: 4px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  background: var(--gray-50);
}
.plans-interval input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.plans-interval label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--black);
  font-size: 13px;
  font-weight: 650;
  line-height: normal;
  cursor: pointer;
}
.plans-interval input:checked + label { background: #fff; color: var(--black); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.plans-interval input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.plans-interval small { padding: 2px 6px; border-radius: 999px; background: var(--pink-bg); color: var(--red-on-pink); font-size: 11px; font-weight: 700; }
.plans-price-month, .section-pricing:has(#plans-month:checked) .plans-price-year { display: none; }
.section-pricing:has(#plans-month:checked) .plans-price-month { display: inline; }
.plan-billing-total { min-height: 1.45em; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.plan-featured { border-color: var(--red-site); }
.plan-badge { position: absolute; top: -12px; left: 20px; padding: 3px 12px; color: var(--red); background: #fff; border: 1px solid var(--pink-line); border-radius: 999px; box-shadow: 0 4px 14px rgb(17 17 17 / 5%); font-size: 10.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { font-size: 18px; }
.plan-for { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--gray-700); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price strong { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.price span { font-size: 13px; color: var(--gray-700); }
.price-soon strong { font-size: 22px; letter-spacing: -0.02em; }
.plan .checklist { flex: 1; gap: 6px; margin-top: 14px; }
.plan .checklist li { font-size: 13.5px; line-height: 1.45; }
.plan .checklist li::before { width: 14px; height: 14px; margin-top: 2px; }
.plan .checklist li.muted { color: var(--gray-700); }
.plan .checklist li.muted::before { content: "-"; background: none; margin-top: 0; text-align: center; }
.plan .btn { width: 100%; min-height: 42px; margin-top: 16px; }

.plan-placeholder { min-height: 29rem; }
.plan-placeholder span { display: block; max-width: 100%; border-radius: 6px; background: var(--gray-100); }
.plan-placeholder-title { width: 34%; height: 18px; }
.plan-placeholder-caption { width: 72%; height: 11px; margin-top: 8px; }
.plan-placeholder-price { width: 24%; height: 28px; margin-top: 14px; }
.plan-placeholder-features { display: grid; align-content: start; flex: 1; gap: 12px; margin-top: 20px; }
.plan-placeholder-features span { width: 82%; height: 11px; }
.plan-placeholder-features span:nth-child(even) { width: 66%; }
.plan-placeholder-button { height: 42px; margin-top: 16px; }

.plans-note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--gray-700); }

/* Community videos */
.video { display: block; padding: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px -14px rgb(17 17 17 / 18%), 0 2px 8px rgb(17 17 17 / 5%); text-decoration: none; }
.video-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; background: #111827; color: #fff; overflow: hidden; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--black); box-shadow: 0 6px 18px rgb(0 0 0 / 35%); transition: transform .2s; }
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.video:hover .play { transform: scale(1.08); }
.video-body { padding: 12px 6px 4px; text-align: center; }
.video h3 { font-size: 15px; }
.video p { margin-top: 2px; font-size: 13px; color: var(--gray-700); }
.videos-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; max-width: 900px; margin: 28px auto 0; padding: 20px 24px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); text-align: center; }
.videos-cta p { font-size: 15px; }
.videos-cta .btn { box-shadow: 0 8px 24px rgba(15, 23, 42, .10), 0 0 0 1px rgba(0, 0, 0, .02); }
.videos-cta .btn:hover { box-shadow: 0 4px 12px rgba(216, 52, 56, .22); }

/* FAQ — npati.com FaqList */
.faq { max-width: 860px; margin: 0 auto; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.faq details { padding: 0 22px; border-top: 1px solid var(--gray-200); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; color: var(--gray-950); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23e32c26' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { max-width: 760px; padding-bottom: 18px; line-height: 1.7; color: #000; }

/* Final CTA */
.final { text-align: center; }
.final .section-head { margin-bottom: 0; }
.final .hero-cta { justify-content: center; }

/* Footer — npati.com PluginFooter */
.site-footer { padding: 24px 0; border-top: 1px solid var(--gray-200); background: #fff; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--gray-800); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--red-site); }
.footer-analytics { margin: 8px 0 4px; padding: 4px; border: 0; background: transparent; color: var(--gray-800); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.footer-analytics:hover { color: var(--red-site); }
.analytics-dialog h2 { font-size: 22px; margin: 0 0 12px; }
.analytics-dialog p { margin: 0 0 12px; }
.analytics-dialog form { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-dialog button { padding: 8px 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; cursor: pointer; }
.analytics-dialog button:disabled { opacity: .55; cursor: default; }
/* Consent banner for EEA and UK visitors: shown until they accept or decline, nothing is measured before. */
.analytics-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; margin: 0 auto; padding: 16px 20px; background: #fff; color: var(--black); border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 20px 40px -12px rgb(0 0 0 / 25%); font-size: 14px; line-height: 1.5; }
.analytics-banner p { flex: 1 1 320px; margin: 0; }
.analytics-banner a { color: inherit; text-decoration: underline; }
.analytics-banner div { display: flex; gap: 8px; margin-left: auto; }
.analytics-banner button { padding: 9px 18px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--black); font: inherit; font-weight: 600; cursor: pointer; }
.analytics-banner .analytics-banner-accept { background: var(--black); border-color: var(--black); color: #fff; }
.analytics-banner button:focus-visible { outline: 2px solid var(--red-site); outline-offset: 2px; }

.legal-page { background: var(--gray-50); padding: clamp(24px, 5vw, 60px) 0; }
.legal-document {
  width: min(840px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(20px, 5vw, 56px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow-wrap: anywhere;
}
.legal-document h1 { font-size: clamp(30px, 6vw, 48px); }
.legal-document time { display: block; margin-top: 8px; color: var(--gray-500); font-size: 14px; }
.legal-document section { margin-top: 28px; }
.legal-document h2 { font-size: clamp(20px, 3vw, 25px); }
.legal-document p, .legal-document ul { margin-top: 10px; }
.legal-document ul { list-style: disc; padding-inline-start: 24px; }
.legal-document li + li { margin-top: 6px; }
.legal-document a { color: var(--red-site); text-underline-offset: .15em; }
.copyright { margin-top: 4px; font-size: 12px; font-weight: 500; color: #000; }

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

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .flow-row-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 32px; }
  .hero-lead { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .grid-2, .flow-row-4, .flow-row-3 { grid-template-columns: 1fr; }
  .flow { padding: 16px; }
  .carousel-track { grid-auto-columns: 88%; }
  .browser-url { display: none; }
  .lightbox-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .hero-cta .btn { width: 100%; }
  .section { padding: 48px 0; }
}
