/* LeadPole landing page. Tokens from the CRM (LeadPole Landing/tokens.css + apps/web/src/styles/_tokens.scss).
   Plain CSS, no build step. Breakpoints: 1440 design, 820 tablet (<=1023), 390 mobile (<=639). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg-1: #171717; --bg-2: #1b1b1b; --bg-3: #1d1d1d; --bg-4: #222222;
  --fg-1: #ebebeb; --fg-2: #b3b3b3; --fg-3: #8f8f8f; --fg-4: #828282;
  --blue: #3e63dd; --blue-hover: #4b6ce1; --blue-press: #3a4f97; --blue-text: #9db1ff;
  --blue-glow: rgb(62 99 221 / 0.35); --blue-glow-soft: rgb(62 99 221 / 0.25);
  --danger-solid: #ce4146; --danger-text: rgb(255 174 171);
  --tr-strong: rgb(255 255 255 / 0.141); --tr-medium: rgb(255 255 255 / 0.102);
  --tr-light: rgb(255 255 255 / 0.059); --tr-lighter: rgb(255 255 255 / 0.031);
  --line: var(--tr-light);
  --surface-hover: oklch(0.31 0 0);             /* bg-4 (L 0.25) + 0.06 */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1200px; --gutter: 32px;
  --section: 128px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  /* Tag pairs (text / background) */
  --t-red: rgb(255 138 136); --b-red: rgb(59 18 25);
  --t-purple: rgb(213 156 255); --b-purple: rgb(47 28 59);
  --t-sky: rgb(117 199 240); --b-sky: rgb(17 40 64);
  --t-turquoise: rgb(10 216 182); --b-turquoise: rgb(13 45 42);
  --t-amber: rgb(255 201 22); --b-amber: rgb(48 32 8);
  --t-green: rgb(61 214 140); --b-green: rgb(19 45 33);
  --t-blue: rgb(157 177 255); --b-blue: rgb(24 36 73);
  --t-orange: rgb(255 155 82); --b-orange: rgb(51 30 11);
  --t-pink: rgb(255 128 202); --b-pink: rgb(56 18 39);
  --t-gray: var(--fg-2); --b-gray: var(--tr-medium);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-1); color: var(--fg-1); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: clip; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--bg-4); padding: 8px 16px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2 { font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
h2 { font-size: 44px; line-height: 1.12; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.lede { color: var(--fg-2); font-size: 18px; line-height: 1.6; text-wrap: pretty; max-width: 34em; }

/* Links: animated underline */
.link { position: relative; color: var(--fg-2); font-size: 15px; font-weight: 500; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: color .15s, background-size .25s var(--ease); }
.link:hover { color: var(--fg-1); background-size: 100% 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .12s, border-color .12s, transform .12s; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px var(--blue-press); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { background: var(--blue-press); transform: translateY(1px); }
.btn--secondary { background: var(--bg-4); color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--tr-medium); }
.btn--secondary:hover { background: var(--surface-hover); }
.btn--secondary:active { background: var(--bg-3); transform: translateY(1px); }
.btn--ghost { color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--tr-strong); }
.btn--ghost:hover { background: var(--bg-4); }
.btn--ghost:active { background: var(--bg-3); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-md); }

/* Pills, tags, badges */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; color: var(--fg-2); background: var(--tr-lighter); box-shadow: inset 0 0 0 1px var(--line); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-text); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; font-style: normal; color: var(--tt); background: var(--tb); white-space: nowrap; }
.tag--red { --tt: var(--t-red); --tb: var(--b-red); } .tag--purple { --tt: var(--t-purple); --tb: var(--b-purple); }
.tag--sky { --tt: var(--t-sky); --tb: var(--b-sky); } .tag--turquoise { --tt: var(--t-turquoise); --tb: var(--b-turquoise); }
.tag--amber { --tt: var(--t-amber); --tb: var(--b-amber); } .tag--green { --tt: var(--t-green); --tb: var(--b-green); }
.tag--blue { --tt: var(--t-blue); --tb: var(--b-blue); } .tag--orange { --tt: var(--t-orange); --tb: var(--b-orange); }
.tag--pink { --tt: var(--t-pink); --tb: var(--b-pink); } .tag--gray { --tt: var(--t-gray); --tb: var(--b-gray); }
.soon { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--fg-2); background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--tr-medium); }
.soon--live { color: var(--t-green); background: var(--b-green); box-shadow: none; }

/* 1. Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgb(23 23 23 / .72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgb(23 23 23 / .82); }
.topbar__inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.wordmark .mark { width: 24px; height: 24px; }
.nav__list { display: flex; gap: 28px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-md); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--fg-1); stroke-width: 1.8; stroke-linecap: round; }
.menu-btn:hover { background: var(--bg-4); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; font-size: 17px; color: var(--fg-1); border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child a { border-bottom: 0; color: var(--fg-2); }

/* 2. Hero */
.hero { position: relative; padding-top: 96px; overflow: clip; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { margin-top: 24px; font-size: 68px; line-height: 1.04; letter-spacing: -0.04em; max-width: 12.5em; }
.hero__sub { margin-top: 24px; max-width: 36em; font-size: 19px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; margin-top: 40px; }
.hero__stage { position: relative; margin-top: 72px; padding-bottom: 24px; perspective: 1800px; }
.glow { position: absolute; inset: -60px 10% auto; height: 70%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, var(--blue-glow), transparent 70%),
              radial-gradient(30% 40% at 50% 10%, var(--blue-glow-soft), transparent 70%);
  filter: blur(40px); }
.tilt { position: relative; z-index: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .6s var(--ease); will-change: transform; }
.hero__stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-1)); }
/* The toggle sits outside .tilt (so it does not move under the pointer) and above the bottom fade (z 2), so its label
   keeps full contrast. Offsets add the stage gutter and bottom padding to land 16px inside the frame corner. */
.demo-toggle { position: absolute; right: calc(var(--gutter) + 16px); bottom: calc(24px + 16px); z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg-1);
  background: rgb(34 34 34 / .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--tr-medium), 0 4px 16px rgb(0 0 0 / .4); }
.demo-toggle:hover { background: rgb(52 52 52 / .9); }
.demo-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-toggle .i-play { display: none; }
.demo-toggle[aria-pressed="true"] .i-pause { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: block; fill: currentColor; }

/* Product frame (shared) */
.frame { position: relative; border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden;
  box-shadow: 0 0 0 1px var(--tr-medium), 0 1px 0 0 rgb(255 255 255 / .08) inset, 0 32px 80px -24px rgb(0 0 0 / .7); }
.frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: linear-gradient(180deg, rgb(255 255 255 / .05), transparent 30%); }

/* 3. Showcase */
.section { padding-block: var(--section) 0; }
.section__head { display: grid; gap: 16px; margin-bottom: 48px; }
.section__head--center { text-align: center; justify-items: center; margin-bottom: 32px; }
.tabs { position: relative; display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto; padding: 4px;
  border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs [role="tab"] { height: 40px; min-width: 104px; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--fg-2);
  transition: background-color .15s, color .15s; }
.tabs [role="tab"]:hover { color: var(--fg-1); background: var(--tr-lighter); }
.tabs [role="tab"][aria-selected="true"] { color: var(--fg-1); background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--tr-medium), 0 1px 2px rgb(0 0 0 / .4); }
.showcase__caption { min-height: 1.6em; margin: 20px auto 32px; text-align: center; color: var(--fg-2); max-width: 36em; transition: opacity .2s; }
.showcase__caption.is-swapping { opacity: 0; }
.panels { display: grid; }
.panel { grid-area: 1 / 1; opacity: 0; transition: opacity .32s var(--ease); }
.panel.is-active { opacity: 1; }
.panel[hidden] { display: block; visibility: hidden; }

/* 4. Roles */
.roles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.roles__copy h2 { margin-bottom: 16px; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; padding: 4px;
  border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; height: 44px; min-width: 112px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--fg-2); transition: color .2s; }
.seg button:hover { color: var(--fg-1); }
.seg button[aria-checked="true"] { color: var(--fg-1); }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 8px;
  background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--tr-medium), 0 1px 2px rgb(0 0 0 / .4);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .35s var(--ease); }
.roles__hint { margin-top: 12px; font-size: 15px; color: var(--fg-3); }
.role-list { margin-top: 32px; display: grid; gap: 4px; }
.role-list__item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--fg-3); transition: color .2s; }
.role-list__item dt { font-weight: 500; }
.role-list__item.is-active { color: var(--fg-1); }
.role-list__item.is-active dd { color: var(--fg-2); }

.mini { border-radius: var(--r-lg); background: var(--bg-2); box-shadow: 0 0 0 1px var(--tr-medium), 0 24px 64px -24px rgb(0 0 0 / .7);
  font-size: 13px; line-height: 1.4; overflow: hidden; }
.mini__bar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mini__bar .who { display: flex; align-items: center; gap: 8px; color: var(--fg-1); font-weight: 500; }
.mini__bar .who small { color: var(--fg-3); font-size: 13px; font-weight: 400; }
.mini__count { margin-left: auto; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mini__count b { color: var(--fg-1); font-weight: 500; }
.mini__head, .mini__row { display: grid; grid-template-columns: minmax(0, 2.2fr) 84px 64px minmax(0, 1.5fr); gap: 12px; align-items: center; padding: 0 16px; }
.mini__head { height: 34px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.mini__row { height: 40px; border-bottom: 1px solid var(--tr-lighter); overflow: hidden;
  transition: height .35s var(--ease), opacity .25s, background-color .3s; }
.mini__row.is-hidden { height: 0; opacity: 0; border-bottom-color: transparent; }
.mini__row.is-new { background: rgb(62 99 221 / .08); }
.mini__row .amt { font-variant-numeric: tabular-nums; color: var(--fg-1); }
.mini__foot { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; color: var(--fg-3); }
.mini__foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 5. Bento feature grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s; }
.fcard:hover { transform: translateY(-4px); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--tr-medium), 0 16px 40px -20px rgb(0 0 0 / .8); }
.fcard--wide { grid-column: span 2; }
.fcard--full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.fcard__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 20px;
  background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--tr-medium); }
.fcard__icon svg, .checks svg { width: 20px; height: 20px; fill: none; stroke: var(--fg-1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { margin-bottom: 6px; }
.fcard p { color: var(--fg-2); font-size: 16px; }
.stages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stages .tag { height: 26px; padding: 0 10px; font-size: 14px; }
.totals { display: grid; gap: 8px; }
.totals__row { display: grid; grid-template-columns: 96px 24px 1fr 1fr; align-items: center; gap: 12px; height: 48px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.totals__row .tag { justify-self: start; }
.totals__n { color: var(--fg-3); }
.totals__v { color: var(--fg-1); white-space: nowrap; }

/* 6. Security */
.security { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.security__copy { position: sticky; top: 112px; }
.security__copy h2 { margin-bottom: 16px; }
.security__panel { position: relative; border-radius: var(--r-xl); background: var(--bg-2); overflow: hidden; }
/* The hairline ring is drawn on top, so the audit block's own background does not hide it at the sides and bottom. */
.security__panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); font-size: 17px; }
.checks svg { flex: none; margin-top: 3px; }
.audit { padding: 20px 24px 24px; background: var(--bg-1); font-size: 13px; }
.audit__head { display: flex; justify-content: space-between; color: var(--fg-2); font-weight: 500; margin-bottom: 12px; }
.audit__head span { color: var(--fg-3); font-weight: 400; }
.audit__list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; color: var(--fg-2); border-top: 1px solid var(--tr-lighter); }
.audit__list b { color: var(--fg-1); font-weight: 500; }
.audit__list time { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.audit__list .tag { height: 18px; font-size: 12px; }

/* 7. Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.roadmap li { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.roadmap p { color: var(--fg-2); font-size: 16px; margin-top: 4px; }

/* 8. Pricing */
.pricing { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 64px 32px; border-radius: var(--r-xl);
  background: radial-gradient(60% 100% at 50% 0%, var(--tr-lighter), transparent 70%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.pricing .btn { margin-top: 16px; }

/* 9. FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 18px; font-weight: 500; }
.faq__item button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 16px 0; text-align: left; border-radius: 4px; }
.faq__item button:hover { color: #fff; }
.faq__item button svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--fg-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.faq__item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__a > div { overflow: hidden; transition: visibility .3s; }
/* Collapsed answers are also hidden from assistive tech and find-in-page; without JS every answer stays shown. */
.js .faq__item:not(.is-open) .faq__a > div { visibility: hidden; }
.faq__a p { padding: 0 48px 24px 0; color: var(--fg-2); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.no-js .faq__a { grid-template-rows: 1fr; }

/* 10. Final CTA */
.section--final { padding-bottom: 96px; }
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px;
  border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.final::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -80px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow-soft), transparent); }
.final__copy { display: grid; gap: 16px; justify-items: start; }
.final .btn { margin-top: 16px; }
.palette { border-radius: var(--r-lg); background: rgb(29 29 29 / .9); box-shadow: 0 0 0 1px var(--tr-medium), 0 24px 64px -16px rgb(0 0 0 / .8); font-size: 15px; overflow: hidden; }
.palette svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--fg-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.palette__input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--fg-1); }
.caret { width: 1.5px; height: 18px; background: var(--fg-1); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.palette kbd { margin-left: auto; font: 500 12px var(--mono); color: var(--fg-3); padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--tr-medium); }
.palette__list { padding: 6px; }
.palette__list li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 6px; color: var(--fg-2); transition: background-color .2s, color .2s; }
.palette__list li.is-on { background: var(--tr-light); color: var(--fg-1); }
.palette__list li.is-dim { opacity: .35; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand p { color: var(--fg-3); font-size: 15px; }
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__copy { color: var(--fg-3); font-size: 15px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet (820) ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 32px; --section: 104px; }
  .hero__title { font-size: 56px; }
  h2 { font-size: 38px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar__actions .link--quiet { display: none; }
  .roles, .security, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .security__copy { position: static; }
  .roles__copy { max-width: 560px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard--wide, .fcard--full { grid-column: 1 / -1; }
  .fcard--full { grid-template-columns: 1fr; gap: 24px; } /* text above the totals, so "No USD deals" stays on one line */
  .roadmap { column-gap: 40px; }
  .final { grid-template-columns: 1fr; padding: 48px; }
}

/* ---------- Mobile (390) ---------- */
@media (max-width: 639px) {
  :root { --gutter: 20px; --section: 80px; }
  body { font-size: 16px; }
  .topbar__inner { height: 56px; gap: 12px; }
  .topbar__actions { gap: 4px; }
  .hero { padding-top: 56px; }
  .hero__title { font-size: 40px; line-height: 1.08; letter-spacing: -0.035em; }
  .hero__sub { font-size: 17px; margin-top: 16px; }
  .hero__ctas { flex-direction: column; align-self: stretch; margin-top: 32px; }
  .hero__ctas .btn { width: 100%; }
  .hero__stage { margin-top: 48px; }
  .hero__stage::after { height: 96px; }
  .hero__stage .frame { border-radius: 10px; }
  .demo-toggle { right: calc(var(--gutter) + 12px); bottom: calc(24px + 12px); }
  h2 { font-size: 30px; line-height: 1.15; }
  .lede { font-size: 17px; }
  .section__head { margin-bottom: 32px; }
  .tabs { width: 100%; }
  .tabs [role="tab"] { flex: 1; min-width: 0; padding: 0 4px; font-size: 14px; height: 44px; }
  .showcase__caption { margin: 16px 0 24px; text-align: left; }
  .seg { display: grid; width: 100%; }
  .seg button { min-width: 0; padding: 0 4px; }
  .role-list__item { grid-template-columns: 88px 1fr; }
  .mini__head, .mini__row { grid-template-columns: minmax(0, 1.5fr) 80px minmax(0, 1fr); gap: 8px; padding: 0 12px; }
  .mini__bar { padding: 0 12px; }
  .mini__bar .who small { display: none; }
  .c-amt { display: none; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .fcard { padding: 24px; }
  .fcard--full { grid-template-columns: 1fr; gap: 24px; }
  .totals__row { grid-template-columns: 88px 16px minmax(0, 1fr) auto; gap: 8px; padding: 0 12px; font-size: 14px; }
  .checks li { padding: 16px 20px; font-size: 16px; }
  .audit { padding: 16px 20px 20px; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { padding: 20px 0; }
  .pricing { padding: 48px 24px; }
  .faq__item h3 { font-size: 17px; }
  .faq__a p { padding-right: 0; }
  .final { padding: 32px 24px; gap: 32px; border-radius: 16px; }
  .final .btn { width: 100%; }
  .final__copy { justify-items: stretch; }
  .palette { font-size: 14px; }
  .totals__none { font-size: 13px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__links { margin-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .fcard:hover { transform: none; }
  .demo-toggle { display: none; }
}
.totals__none { color: var(--fg-3); font-size: 14px; }
