/* Tellyport public design system.
   Part 1 (core) is shared by the marketing site, legal pages, docs, and demo.
   Part 2 is the marketing page, scoped to body.marketing. */

/* ============================== 1. CORE ============================== */

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #ffffff;
  --bg-subtle: #f8f9fc;
  --bg-muted: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --border: #e7e9f0;
  --border-strong: #d6dae4;
  --text: #0b1020;
  --text-2: #475069;
  --text-3: #6b7489;
  --text-inverse: #ffffff;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-softer: #f5f7ff;
  --accent-border: #c7d2fe;
  --accent-text: #4338ca;
  --accent-2: #7c3aed;
  --focus: 0 0 0 3px rgba(79, 70, 229, 0.28);

  --success: #047857;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;
  --info: #1d4ed8;
  --info-soft: #eff6ff;
  --info-border: #bfdbfe;

  --code-bg: #0c0f1d;
  --code-border: #1e2338;
  --code-text: #e3e6f3;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -6px rgba(15, 23, 42, 0.12), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  --shadow-accent: 0 1px 2px rgba(79, 70, 229, 0.25), 0 6px 18px -6px rgba(79, 70, 229, 0.5);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --header-h: 64px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 160ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0c14;
  --bg-subtle: #0e1120;
  --bg-muted: #141829;
  --surface: #11141f;
  --surface-2: #161a28;
  --border: #22273a;
  --border-strong: #2e3550;
  --text: #eef0f7;
  --text-2: #a9b0c6;
  --text-3: #7e879f;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-softer: rgba(99, 102, 241, 0.07);
  --accent-border: rgba(129, 140, 248, 0.35);
  --accent-text: #a5b4fc;
  --accent-2: #a78bfa;
  --focus: 0 0 0 3px rgba(129, 140, 248, 0.38);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --success-border: rgba(52, 211, 153, 0.3);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --warning-border: rgba(251, 191, 36, 0.3);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-border: rgba(248, 113, 113, 0.3);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --info-border: rgba(96, 165, 250, 0.3);

  --code-bg: #080a12;
  --code-border: #1d2236;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(99, 102, 241, 0.6);
  color-scheme: dark;
}

/* Before site.js runs (or without JS), follow the OS setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --bg: #0a0c14; --surface: #11141f; --text: #eef0f7; --text-2: #a9b0c6; --border: #22273a; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { color: var(--text); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:root[data-theme="dark"] a:hover { color: #c7d2fe; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.88em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
::selection { background: rgba(99, 102, 241, 0.22); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 8px 14px; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 500; }
.skip-link:focus { top: 12px; color: #fff; }

/* Icons: inline SVGs inherit currentColor strokes. */
.icon-btn svg, .btn svg, .theme-menu svg, .om-nav svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 550; line-height: 1; white-space: nowrap;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #5458e8; color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--text-3); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
:root[data-theme="dark"] .btn-danger { background: #dc2626; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text-2);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* Chips / badges */
.chip, .badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--text-2);
  font-size: 12px; font-weight: 550; white-space: nowrap;
}
.chip svg, .badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chip-accent, .badge-accent { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.chip-success, .badge-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.chip-warning, .badge-warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning); }
.chip-danger, .badge-danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.chip-info, .badge-info { background: var(--info-soft); border-color: var(--info-border); color: var(--info); }

/* Forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--text); }
.field small { font-weight: 400; color: var(--text-3); }
.input, .select {
  width: 100%; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-icon { width: auto; height: 28px; }
.brand-word span { color: var(--accent); }
:root[data-theme="dark"] .brand-word span { color: #a5b4fc; }
.brand-suffix { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--border-strong); color: var(--text-3); font-weight: 500; font-size: 15px; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
:root[data-theme="dark"] .logo-for-light { display: none; }

/* Header */
.om-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.om-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.om-header.is-scrolled { border-bottom-color: var(--border); }
.om-header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.om-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.om-nav > a { padding: 7px 11px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.om-nav > a:hover, .om-nav > a[aria-current="page"] { color: var(--text); background: var(--bg-muted); }
.om-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-mobile-actions, .menu-btn { display: none; }

/* Theme menu */
.theme-switch { position: relative; }
.theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  display: grid; gap: 2px; min-width: 148px; padding: 5px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.theme-menu[hidden] { display: none; }
.theme-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; text-align: left; }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--bg-muted); color: var(--text); box-shadow: none; }
.theme-menu button[aria-checked="true"] { color: var(--accent-text); }
.theme-menu button[aria-checked="true"]::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.theme-menu svg { width: 16px; height: 16px; }

/* Code */
.code, .code-block {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-text);
  font-size: 13px; line-height: 1.7; tab-size: 2;
}
.code code, .code-block code { font-size: inherit; color: inherit; white-space: pre; }
.tk-k { color: #c4b5fd; }
.tk-s { color: #86efac; }
.tk-t { color: #93c5fd; }
.tk-f { color: #fcd34d; }
.tk-c { color: #6b7591; font-style: italic; }
.tk-n { color: #fda4af; }

/* Footer */
.om-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { margin-top: 14px; max-width: 280px; color: var(--text-3); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links h3 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.footer-links a { display: block; padding: 4px 0; color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-base { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); }
.footer-base p { color: var(--text-3); font-size: 12.5px; }

/* Dialog */
dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(8, 10, 20, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog form { display: grid; gap: 14px; padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-head h2 { font-size: 22px; margin-top: 4px; }
.dialog-sub { color: var(--text-2); font-size: 14px; margin-top: -6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.terms input { margin-top: 3px; accent-color: var(--accent); }
.form-error { min-height: 0; color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.form-legal, .sign-in-note { font-size: 12.5px; color: var(--text-3); text-align: center; }

.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }

@media (max-width: 960px) {
  .om-header-inner { gap: 12px; }
  .desktop-only { display: none; }
  .menu-btn { display: inline-grid; }
  .om-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    align-self: stretch; justify-self: stretch;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 16px var(--gutter) 32px; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--border);
  }
  .om-nav.open { display: flex; }
  .om-nav > a { padding: 13px 12px; font-size: 16px; }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  body.menu-open { overflow: hidden; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  dialog form { padding: 20px; }
}

/* ============================== 2. MARKETING ============================== */

.marketing .grad {
  background: linear-gradient(100deg, #4f46e5 0%, #7c3aed 55%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .marketing .grad { background-image: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 50%, #93c5fd 100%); }

.marketing .section { padding: 112px 0; }
.marketing .section-alt { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marketing .section-head { max-width: 720px; margin-bottom: 56px; }
.marketing .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.marketing .section-head h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 700; }
.marketing .section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.marketing .section-lead { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.marketing .text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; font-size: 14px; }

/* Hero */
.marketing .hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.marketing .hero-bg {
  position: absolute; inset: -1px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(124, 58, 237, 0.08), transparent 70%),
    linear-gradient(to right, var(--border) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, var(--border) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.9;
}
:root[data-theme="dark"] .marketing .hero-bg { opacity: 0.7; }
.marketing .hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.marketing .announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text-2);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-xs);
}
.marketing .announce:hover { border-color: var(--accent-border); color: var(--text); }
.marketing .announce-tag { padding: 2px 8px; border-radius: var(--radius-full); background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; }
.marketing .hero h1 { margin-top: 22px; font-size: clamp(40px, 4.9vw, 62px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.marketing .hero .lead { margin-top: 22px; max-width: 560px; color: var(--text-2); font-size: 18.5px; line-height: 1.6; }
.marketing .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.marketing .cta-row.center { justify-content: center; }
.marketing .hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; color: var(--text-3); font-size: 13.5px; }
.marketing .hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.marketing .hero-points svg { width: 15px; height: 15px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero console mock */
.marketing .hero-visual { position: relative; min-width: 0; }
.marketing .console {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent);
  overflow: hidden;
}
.marketing .console-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.marketing .dots { display: inline-flex; gap: 6px; }
.marketing .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.marketing .console-url { flex: 1; min-width: 0; color: var(--text-3); font-size: 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketing .console-env { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 550; }
.marketing .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); flex: 0 0 auto; }
.marketing .console-body { display: grid; gap: 16px; padding: 20px; }
.marketing .console-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.marketing .c-label { color: var(--text-3); font-size: 12px; font-weight: 500; }
.marketing .c-title { margin-top: 2px; color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.marketing .c-muted { color: var(--text-3); font-size: 12.5px; }
.marketing .diff { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; line-height: 1.75; overflow: hidden; }
.marketing .diff p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketing .diff-key { color: var(--text-3); }
.marketing .diff-del { color: var(--danger); }
.marketing .diff-add { color: var(--success); }
.marketing .c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.marketing .c-tile { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.marketing .c-tile-label { color: var(--text-3); font-size: 11.5px; font-weight: 500; }
.marketing .c-tile-value { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.marketing .c-tile-sub { margin-top: 2px; color: var(--text-3); font-size: 11.5px; }
.marketing .risk-dot { width: 8px; height: 8px; border-radius: 50%; }
.marketing .risk-low { background: #10b981; }
.marketing .meter { height: 6px; margin-top: 9px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.marketing .meter span { display: block; width: 10%; min-width: 10px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.marketing .spark { width: 100%; height: 22px; margin-top: 6px; }
.marketing .spark path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.marketing .platform-bars { display: grid; gap: 7px; }
.marketing .pb-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; color: var(--text-2); font-size: 12px; }
.marketing .pb-track { height: 8px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.marketing .pb-track i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.marketing .w-82 { width: 82%; } .marketing .w-64 { width: 64%; } .marketing .w-56 { width: 56%; } .marketing .w-48 { width: 48%; } .marketing .w-36 { width: 36%; }
.marketing .console-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.marketing .float-card {
  position: absolute; left: -36px; bottom: -64px; width: 250px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.marketing .fc-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.marketing .fc-line { color: var(--text-2); font-size: 11.5px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marketing .fc-line b, .marketing .mini-log b { display: inline-block; width: 40px; font-weight: 500; }
.marketing .lv-info { color: var(--info); }
.marketing .lv-warn { color: var(--warning); }
.marketing .lv-err { color: var(--danger); }

/* Platforms strip */
.marketing .platforms { padding: 44px 0 52px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.marketing .platforms-title { margin-bottom: 22px; text-align: center; color: var(--text-3); font-size: 13.5px; font-weight: 550; letter-spacing: 0; }
.marketing .platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; list-style: none; }
.marketing .platform-list li {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-xs);
}
.marketing .platform-list svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.marketing .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; counter-reset: none; }
.marketing .step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.marketing .step-num { color: var(--accent-text); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.marketing .step h3 { font-size: 18px; }
.marketing .step p { color: var(--text-2); font-size: 15px; }
.marketing .step-code { display: block; margin-top: auto; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; overflow-x: auto; white-space: nowrap; }

/* Bento */
.marketing .bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.marketing .tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-xs); overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.marketing .tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.marketing .tile-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.marketing .tile-copy { display: flex; flex-direction: column; gap: 10px; }
.marketing .tile h3 { font-size: 18px; letter-spacing: -0.02em; }
.marketing .tile p { color: var(--text-2); font-size: 14.5px; }
.marketing .tile-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border: 1px solid var(--accent-border); border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.marketing .tile-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.marketing .tile-visual { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }

.marketing .route-visual { display: grid; justify-items: center; gap: 0; }
.marketing .rv-node { display: grid; gap: 1px; min-width: 150px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; box-shadow: var(--shadow-xs); }
.marketing .rv-node small { color: var(--text-3); font-size: 11.5px; font-weight: 450; }
.marketing .rv-accent { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-text); }
.marketing .rv-line { width: 2px; height: 18px; background: linear-gradient(var(--accent-border), var(--accent)); }
.marketing .rv-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.marketing .rv-targets .rv-node { min-width: 0; }
.marketing .rv-muted { opacity: 0.6; }
.marketing .rv-live { border-color: var(--success-border); background: var(--success-soft); }
.marketing .rv-live small { color: var(--success); }

.marketing .mini-list, .marketing .mini-log { display: grid; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 12px; }
.marketing .mini-list p, .marketing .mini-log p { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.marketing .mini-list b { width: 38px; font-weight: 600; }
.marketing .mini-list span { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--bg-muted); color: var(--text-3); font-size: 11px; }
.marketing .mini-list span.on { background: var(--success-soft); color: var(--success); }
.marketing .m-get { color: var(--success); }
.marketing .m-post { color: var(--info); }

.marketing .fallback-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 8px 0 0; list-style: none; counter-reset: fb; }
.marketing .fallback-mini li { counter-increment: fb; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.marketing .fallback-mini li::before { content: counter(fb); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; }

.marketing .canary-visual { display: grid; gap: 10px; }
.marketing .cv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.marketing .cv-chart { width: 100%; height: 110px; }
.marketing .cv-stable, .marketing .cv-canary { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.marketing .cv-stable { stroke: var(--text-3); stroke-dasharray: 4 4; }
.marketing .cv-canary { stroke: var(--danger); }
.marketing .cv-mark { stroke: var(--danger); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.marketing .cv-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-3); font-size: 11.5px; }
.marketing .cv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.marketing .cv-legend i { width: 14px; height: 3px; border-radius: 2px; }
.marketing .lg-canary { background: var(--danger); }
.marketing .lg-stable { background: var(--text-3); }

.marketing .risk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }

.marketing .bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: auto; padding-top: 8px; }
.marketing .bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.marketing .h-40 { height: 40%; } .marketing .h-48 { height: 48%; } .marketing .h-55 { height: 55%; } .marketing .h-62 { height: 62%; }
.marketing .h-70 { height: 70%; } .marketing .h-78 { height: 78%; } .marketing .h-85 { height: 85%; } .marketing .h-92 { height: 92%; }

.marketing .term { background: var(--code-bg); border-color: var(--code-border); color: var(--code-text); font-size: 12.5px; line-height: 1.8; overflow-x: auto; }
.marketing .term p { white-space: pre; }
.marketing .t-prompt { color: #818cf8; }
.marketing .t-dim { color: #7c86a3; }
.marketing .t-del { color: #fca5a5; }
.marketing .t-add { color: #86efac; }

/* Split sections */
.marketing .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.marketing .split-copy h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 700; }
.marketing .check-list { display: grid; gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
.marketing .check-list li { position: relative; display: grid; gap: 2px; padding-left: 32px; }
.marketing .check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.5' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.marketing .check-list b { color: var(--text); font-weight: 600; }
.marketing .check-list span { color: var(--text-2); font-size: 14.5px; }

.marketing .panel { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.marketing .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.marketing .panel-title { font-weight: 650; }
.marketing .panel-sub { color: var(--text-3); font-size: 12.5px; }
.marketing .audit-list { display: grid; padding: 8px 22px 14px; list-style: none; }
.marketing .audit-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.marketing .audit-list li:last-child { border-bottom: 0; }
.marketing .audit-list time { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.marketing .a-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.marketing .a-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.marketing .a-muted { background: var(--bg-muted); color: var(--text-2); }
.marketing .a-ok { background: var(--success-soft); color: var(--success); }
.marketing .a-accent { background: var(--accent-soft); color: var(--accent-text); }
.marketing .a-detail { margin-top: 2px; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Developers (always-dark band) */
.marketing .section-dark { position: relative; background: #0a0c16; color: #e6e8f2; overflow: hidden; }
.marketing .section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 30%, rgba(99, 102, 241, 0.25), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(124, 58, 237, 0.14), transparent 70%); }
.marketing .section-dark .container { position: relative; }
.marketing .section-dark h2 { color: #fff; }
.marketing .section-dark .eyebrow { color: #a5b4fc; }
.marketing .section-dark .section-lead { color: #a9b0c6; }
.marketing .section-dark .text-link { color: #c7d2fe; }
.marketing .section-dark .text-link:hover { color: #fff; }
.marketing .dev-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.marketing .code-window { min-width: 0; border: 1px solid #23283d; border-radius: 16px; background: #0c0f1d; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03); overflow: hidden; }
.marketing .code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #1e2338; overflow-x: auto; scrollbar-width: none; }
.marketing .code-tabs::-webkit-scrollbar { display: none; }
.marketing .code-tabs button { flex: 0 0 auto; padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8a93ad; font-size: 13px; font-weight: 550; }
.marketing .code-tabs button:hover { color: #e3e6f3; }
.marketing .code-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #818cf8; }
.marketing .code-window .code { min-height: 236px; padding: 22px 24px; background: transparent; }
.marketing .code-window [role="tabpanel"]:focus-visible { box-shadow: inset 0 0 0 2px #818cf8; border-radius: 0; }

/* Pricing */
.marketing .billing-toggle { display: flex; width: max-content; max-width: 100%; margin: -24px auto 36px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-subtle); }
.marketing .billing-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 550; }
.marketing .billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.marketing .save { padding: 2px 8px; border-radius: var(--radius-full); background: var(--success-soft); color: var(--success); font-size: 11.5px; font-weight: 600; }
.marketing .price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.marketing .plan { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-xs); }
.marketing .plan-popular { position: relative; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.marketing .plan-popular::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(180deg, var(--accent-softer), transparent 40%); pointer-events: none; }
.marketing .plan-popular > * { position: relative; }
.marketing .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marketing .plan-name { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.marketing .plan-desc { margin-top: -8px; color: var(--text-3); font-size: 13.5px; }
.marketing .plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.marketing .plan-price .amount { color: var(--text); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.marketing .plan-price .per { color: var(--text-3); font-size: 14px; }
.marketing .plan-annual-note { margin-top: -8px; color: var(--success); font-size: 12.5px; font-weight: 550; }
.marketing .plan-annual-note[hidden] { display: none; }
.marketing .plan-list { display: grid; gap: 10px; margin-top: 6px; padding: 16px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--text-2); font-size: 14px; }
.marketing .plan-list li { position: relative; padding-left: 24px; }
.marketing .plan-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.marketing .enterprise { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(110deg, var(--surface) 40%, var(--accent-softer)); }
.marketing .enterprise h3 { font-size: 18px; }
.marketing .enterprise p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.marketing .overage { margin-top: 20px; text-align: center; color: var(--text-2); font-size: 14.5px; font-weight: 500; }

.marketing .compare-title { margin: 72px 0 18px; font-size: 22px; letter-spacing: -0.02em; }
.marketing .table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.marketing .cmp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.marketing .cmp-table th, .marketing .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.marketing .cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 650; }
.marketing .cmp-table tbody th { color: var(--text); font-weight: 550; width: 28%; }
.marketing .cmp-table td { color: var(--text-2); }
.marketing .cmp-table tbody tr:last-child > * { border-bottom: 0; }
.marketing .cmp-table .col-hl { background: var(--accent-softer); }
.marketing .cmp-table thead .col-hl { color: var(--accent-text); background: var(--accent-soft); }
.marketing .yes { color: var(--accent-text); font-weight: 700; }
.marketing .no { color: var(--text-3); }
.marketing .cmp-vs td.col-hl { color: var(--text); font-weight: 500; }
.marketing .footnote { margin-top: 14px; color: var(--text-3); font-size: 12.5px; }

/* FAQ */
.marketing .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.marketing .faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.marketing .faq-list { border-top: 1px solid var(--border); }
.marketing .faq-list details { border-bottom: 1px solid var(--border); }
.marketing .faq-list summary { position: relative; display: block; padding: 20px 40px 20px 0; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.marketing .faq-list summary::-webkit-details-marker { display: none; }
.marketing .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(45deg); transition: transform var(--duration) var(--ease); }
.marketing .faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.marketing .faq-list details p { padding: 0 40px 20px 0; color: var(--text-2); font-size: 15px; }

/* Final CTA */
.marketing .final { padding: 24px 0 112px; }
.marketing .final-card {
  position: relative; overflow: hidden; padding: 72px 32px; border-radius: 24px; text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(135deg, #4f46e5 0%, #6d28d9 60%, #4338ca 100%);
  color: #fff; box-shadow: 0 30px 80px -30px rgba(79, 70, 229, 0.7);
}
.marketing .final-card h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.04em; font-weight: 700; }
.marketing .final-card p { margin: 14px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.btn-light { background: #fff; color: #312e81; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4); }
.btn-light:hover { background: #eef2ff; color: #312e81; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Marketing responsive */
@media (max-width: 1100px) {
  .marketing .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing .float-card { left: 12px; }
}
@media (max-width: 960px) {
  .marketing .section { padding: 80px 0; }
  .marketing .hero { padding: 56px 0 72px; }
  .marketing .hero-inner, .marketing .split, .marketing .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .marketing .faq-grid { gap: 32px; }
  .marketing .faq-grid .section-head { position: static; }
  .marketing .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing .tile-wide { grid-column: span 2; }
  .marketing .steps { grid-template-columns: minmax(0, 1fr); }
  .marketing .float-card { position: relative; left: auto; bottom: auto; width: auto; max-width: 300px; margin: -24px 0 0 16px; }
}
@media (max-width: 700px) {
  .marketing .bento { grid-template-columns: minmax(0, 1fr); }
  .marketing .tile-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .marketing .price-grid { grid-template-columns: minmax(0, 1fr); }
  .marketing .enterprise { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .marketing .section { padding: 64px 0; }
  .marketing .section-head { margin-bottom: 36px; }
  .marketing .hero h1 { font-size: 38px; }
  .marketing .hero .lead { font-size: 16.5px; }
  .marketing .cta-row .btn { flex: 1 1 100%; }
  .marketing .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .marketing .c-tile { padding: 9px; }
  .marketing .c-tile-value { font-size: 15px; }
  .marketing .console-body { padding: 14px; gap: 12px; }
  .marketing .console-url { display: none; }
  .marketing .console-bar { justify-content: space-between; }
  .marketing .tile { padding: 22px; }
  .marketing .platform-list li { height: 34px; padding: 0 12px; font-size: 13px; }
  .marketing .final-card { padding: 52px 20px; border-radius: 20px; }
  .marketing .code-window .code { padding: 18px; font-size: 12px; }
  .marketing .billing-toggle button { padding: 0 12px; }
}

/* ============================== 3. TELLYPORT PRODUCT SECTIONS ============================== */
.marketing .lv-ok { color: var(--success); }
.marketing .center-link { margin-top: 18px; text-align: center; }
.marketing .price-grid { grid-template-columns: repeat(var(--plan-columns, 4), minmax(0, 1fr)); }

/* Hero: a TV showing a Studio-made app */
.marketing .tvx { padding: 8px 0 92px; }
.marketing .tvx-tv { display: grid; justify-items: center; container-type: inline-size; }
.marketing .tvx-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 3.6% 4.5%; box-sizing: border-box; overflow: hidden; border: 10px solid #111522; border-radius: 16px; background: radial-gradient(120% 90% at 85% 0%, #3b2a7a 0%, #141833 45%, #0b0e1c 100%); color: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; font-size: 1.8cqi; }
.marketing .tvx-stand { width: 26%; height: 14px; margin-top: -2px; border-radius: 0 0 10px 10px; background: linear-gradient(#1b2033, #0f1322); }
.marketing .tvx-nav { display: flex; gap: 1.6em; align-items: center; margin-bottom: 4.5%; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.marketing .tvx-nav b { margin-right: 1em; color: #fff; font-size: 1.25em; letter-spacing: -0.02em; }
.marketing .tvx-nav .on { padding: 0.25em 0.9em; border-radius: 99px; background: #fff; color: #111; }
.marketing .tvx-hero { margin-bottom: 5%; }
.marketing .tvx-hero small { color: #c4b5fd; font-weight: 600; }
.marketing .tvx-hero p { margin: 0.2em 0 0.6em; font-size: 2.3em; font-weight: 750; letter-spacing: -0.03em; }
.marketing .tvx-btns { display: flex; gap: 0.7em; }
.marketing .tvx-btns i { padding: 0.45em 1.1em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.14); font-style: normal; font-weight: 600; }
.marketing .tvx-btns i.on { background: #fff; color: #111; }
.marketing .tvx-row-title { margin: 0 0 0.6em; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.marketing .tvx-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.2%; margin-bottom: 4%; }
.marketing .tvx-row.is-small { grid-template-columns: repeat(6, 1fr); }
.marketing .tvx-row i { aspect-ratio: 16 / 10; border-radius: 0.5em; }
.marketing .tvx-row.is-small i { aspect-ratio: 1; }
.marketing .tvx-row i.focus { outline: 0.22em solid #fff; outline-offset: 0.18em; transform: scale(1.06); }
.marketing .c1 { background: linear-gradient(135deg, #f97316, #db2777); }
.marketing .c2 { background: linear-gradient(135deg, #22d3ee, #6366f1); }
.marketing .c3 { background: linear-gradient(135deg, #a3e635, #059669); }
.marketing .c4 { background: linear-gradient(135deg, #facc15, #f97316); }
.marketing .c5 { background: linear-gradient(135deg, #a78bfa, #4f46e5); }
.marketing .tvx-release { left: auto; right: -24px; bottom: 0; width: 262px; }
.marketing .tvx-release ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.marketing .tvx-release li { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; }
.marketing .tvx-release li b { font-weight: 550; }
.marketing .tvx-release .chip { font-size: 11px; }
.marketing .tvx-cms { left: -28px; bottom: 22px; width: 236px; }
.marketing .tvx-cms .fc-line b { width: 74px; }

/* Studio: kinds of apps */
.marketing .kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.marketing .kind { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.marketing .kind:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.marketing .kind h3 { font-size: 15.5px; font-weight: 650; }
.marketing .kind p { color: var(--text-3); font-size: 13.5px; }
.marketing .kind-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px; color: #fff; }
.marketing .kind-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.marketing .kind-icon.k1 { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.marketing .kind-icon.k2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.marketing .kind-icon.k3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.marketing .kind-icon.k4 { background: linear-gradient(135deg, #ec4899, #be185d); }
.marketing .kind-icon.k5 { background: linear-gradient(135deg, #22c55e, #059669); }
.marketing .kind-icon.k6 { background: linear-gradient(135deg, #64748b, #334155); }

/* Content library */
.marketing .split-reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.marketing .lib-list { margin: 0; padding: 8px 0; list-style: none; }
.marketing .lib-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 22px; }
.marketing .lib-list li + li { border-top: 1px solid var(--border); }
.marketing .lib-list i { width: 56px; aspect-ratio: 16 / 10; border-radius: 8px; }
.marketing .lib-list b { display: block; font-weight: 600; font-size: 14.5px; }
.marketing .lib-list small { color: var(--text-3); font-size: 12.5px; }

/* Publish: stores */
.marketing .stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.marketing .store { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.marketing .store header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.marketing .store header b { font-size: 15.5px; font-weight: 650; }
.marketing .store p { color: var(--text-3); font-size: 13.5px; }
.marketing .publish-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.marketing .publish-points li { display: flex; align-items: center; gap: 7px; }
.marketing .publish-points svg { width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing page */
.marketing .pricing-hero { padding: 72px 0 36px; text-align: center; }
.marketing .pricing-hero h1 { max-width: 760px; margin: 12px auto 0; font-size: clamp(36px, 5vw, 54px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; }
.marketing .pricing-hero p.lead { max-width: 620px; margin: 16px auto 0; color: var(--text-2); font-size: 18px; }
.marketing .everything { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.marketing .everything li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
.marketing .everything svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.marketing .estimator { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); }
.marketing .est-inputs { display: grid; gap: 22px; align-content: start; padding: 30px; }
.marketing .est-inputs h3 { font-size: 20px; letter-spacing: -0.02em; }
.marketing .est-inputs > p { margin-top: -14px; color: var(--text-3); font-size: 14px; }
.marketing .est-field { display: grid; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.marketing .est-field output { color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.marketing .est-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.marketing .est-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; font-weight: 500; }
.marketing .est-result { display: grid; gap: 8px; align-content: center; padding: 30px; border-left: 1px solid var(--border); background: linear-gradient(160deg, var(--accent-softer), var(--surface) 70%); }
.marketing .est-plan { color: var(--accent-text); font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.marketing .est-total { font-size: 46px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.marketing .est-total span { color: var(--text-3); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.marketing .est-note { margin-bottom: 8px; color: var(--text-2); font-size: 14px; }
.marketing .plan-skeleton { min-height: 360px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-subtle); }

@media (max-width: 1100px) {
  .marketing .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing .tvx-release { right: 8px; }
  .marketing .tvx-cms { left: 8px; }
}
@media (max-width: 960px) {
  .marketing .split-reverse { grid-template-columns: minmax(0, 1fr); }
  .marketing .split-reverse .panel { order: 2; }
  .marketing .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing .tvx { padding-bottom: 0; }
  .marketing .tvx .float-card { position: relative; left: auto; right: auto; bottom: auto; width: auto; max-width: none; margin: 12px 0 0; }
  .marketing .estimator { grid-template-columns: minmax(0, 1fr); }
  .marketing .est-result { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .marketing .price-grid { grid-template-columns: minmax(0, 1fr); }
  .marketing .kinds, .marketing .stores { grid-template-columns: minmax(0, 1fr); }
  .marketing .tvx-screen { border-width: 6px; border-radius: 10px; }
  .marketing .lib-list li { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 16px; }
  .marketing .lib-list i { width: 44px; }
  .marketing .lib-list .chip { grid-column: 2; justify-self: start; }
  .marketing .est-inputs, .marketing .est-result { padding: 22px; }
}
.marketing .section-tight { padding-top: 8px; }

/* Signup page (app host /signup) */
.signup-page { min-height: 100vh; background: radial-gradient(70% 50% at 50% 0%, var(--accent-softer), transparent 70%), var(--bg); }
.signup-shell { display: grid; justify-items: center; gap: 22px; padding: 48px 16px 40px; }
.signup-brand { font-size: 18px; }
.signup-card { width: min(520px, 100%); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.signup-card form { display: grid; gap: 14px; padding: 26px; }
.signup-foot { color: var(--text-3); font-size: 13px; }
.signup-foot a { color: var(--text-2); }
@media (max-width: 560px) { .signup-shell { padding-top: 28px; } .signup-card form { padding: 20px; } }
.marketing .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marketing .contact-company { margin-top: 18px; }
@media (max-width: 700px) { .marketing .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.marketing .contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.marketing .contact-form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); }
.marketing .contact-form h2 { font-size: 20px; letter-spacing: -0.02em; }
.marketing .contact-form textarea { resize: vertical; min-height: 140px; font: inherit; }
.marketing .contact-form .field small { display: inline; margin: 0; color: var(--text-3); font-weight: 400; }
.marketing .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.marketing .contact-actions small { color: var(--text-3); font-size: 13px; }
.marketing .contact-done { padding: 18px; border: 1px solid var(--success-border); border-radius: 12px; background: var(--success-soft); }
.marketing .contact-done p { margin-top: 4px; color: var(--text-2); }
.marketing .contact-cards { display: grid; gap: 12px; }
.marketing .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .marketing .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.marketing .contact-form.is-sent > :not(.contact-done) { display: none; }

/* Features page */
.marketing .feat-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.marketing .feat-toc a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.marketing .feat-toc a:hover { border-color: var(--accent-border); color: var(--accent-text); }
.marketing .feat-section { scroll-margin-top: 64px; }
.marketing .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.marketing .feat { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.marketing .feat h3 { display: flex; gap: 10px; align-items: center; font-size: 15.5px; font-weight: 650; }
.marketing .feat h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.marketing .feat p { margin-top: 6px; color: var(--text-3); font-size: 14px; }

/* Landing: two ways to start, features overview */
.marketing .ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.marketing .way { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-xs); }
.marketing .way h3 { font-size: 20px; letter-spacing: -0.02em; }
.marketing .way p { color: var(--text-2); font-size: 15px; }
.marketing .ov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.marketing .ov { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.marketing .ov:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.marketing .ov b { font-size: 15.5px; font-weight: 650; }
.marketing .ov > span:last-child { color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.marketing .ov-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.marketing .ov-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .marketing .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .marketing .ways, .marketing .ov-grid { grid-template-columns: minmax(0, 1fr); } }

/* Made in Studio gallery */
.marketing .apps-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.marketing .app-shot { margin: 0; display: grid; gap: 12px; }
.marketing .tv-frame { padding: 7px; border-radius: 14px; background: linear-gradient(#1b2033, #0f1322); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.marketing .tv-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.marketing .app-shot figcaption { display: grid; gap: 2px; padding: 0 4px; }
.marketing .app-shot figcaption b { font-size: 15px; font-weight: 650; }
.marketing .app-shot figcaption span { color: var(--text-3); font-size: 13.5px; }

/* Product tour */
.marketing .tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 26px; }
.marketing .tour-tabs button { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.marketing .tour-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.marketing .tour-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.marketing .tour-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.marketing .tour-panel[hidden] { display: none; }
.marketing .tour-copy h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.marketing .tour-copy p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.marketing .tour-copy .check-list { margin-top: 16px; }
.marketing .check-list.compact li { padding-top: 6px; padding-bottom: 6px; }
.marketing .browser-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #0b0d14; box-shadow: var(--shadow-lg); }
.marketing .browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #12141d; }
.marketing .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f52; }
.marketing .browser-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 6px; background: #1b1e2b; color: #8b90a6; font-size: 11px; }
.marketing .browser-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .marketing .apps-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .marketing .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 560px) { .marketing .apps-gallery { grid-template-columns: minmax(0, 1fr); } .marketing .tour-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .marketing .tour-tabs button { flex: none; } }
.marketing .feat-shot { margin: 0 0 22px; }
