/* ==========================================================================
   Alevio landing page
   Tokens first, then layout, then sections.
   ========================================================================== */

:root {
  /* color */
  --ink: #13233f;            /* primary text: deep navy instead of black */
  --ink-2: #1c3358;
  --blue: #2c5ea8;           /* the one accent: a moderate blue */
  --blue-dark: #214a8a;
  --blue-deep: #17305a;      /* dark section */
  --blue-tint: #edf2f9;      /* quiet blue-white surface */
  --paper: #ffffff;
  --mist: #f3f6fa;           /* quiet light surface */
  --signal: #ff5b2e;         /* findings, the one accent */
  --ok: #1f9d63;             /* clean state, used sparingly */
  --warn: #c98a00;
  --rule: rgba(19, 35, 63, 0.08);
  --rule-strong: rgba(19, 35, 63, 0.13);
  --rule-dark: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 2px rgba(19, 35, 63, 0.05), 0 10px 26px -10px rgba(28, 58, 110, 0.18);

  /* type */
  /* Apple system fonts: SF Pro, SF Mono, New York. Fall back to the platform UI font elsewhere. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;

  /* shadcn / Basecoat theme tokens mapped to our palette */
  --radius: 0.625rem;
  --background: #ffffff;
  --foreground: #13233f;
  --card: #ffffff;
  --card-foreground: #13233f;
  --popover: #ffffff;
  --popover-foreground: #13233f;
  --primary: #2c5ea8;
  --primary-foreground: #ffffff;
  --secondary: #eef2f8;
  --secondary-foreground: #13233f;
  --muted: #f3f6fa;
  --muted-foreground: #5b6b84;
  --accent: #eef2f8;
  --accent-foreground: #13233f;
  --destructive: #c8432e;
  --border: #e3e8ef;
  --input: #dbe2eb;
  --ring: #2c5ea8;

  /* layout */
  --gutter: 20px;
  --strip: 20px;
  --frame: 1112px;

  /* spacing scale (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (min-width: 768px)  { :root { --gutter: 48px; --strip: 48px; } }
@media (min-width: 1024px) { :root { --gutter: 80px; --strip: 80px; } }
@media (min-width: 1280px) { :root { --gutter: 164px; --strip: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
p, h1, h2, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Shared atoms
   -------------------------------------------------------------------------- */

.eyebrow, .meta, .nav a, .mono-s, .source, .f-label, .tag {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.eyebrow { display: flex; align-items: center; gap: var(--s3); font-size: 13px; line-height: 20px; color: var(--ink); }
.mono-s { font-size: 12px; line-height: 18px; }
.muted { color: rgba(15, 27, 45, 0.5); }
.sq { display: inline-block; width: 5px; height: 5px; background: var(--blue); flex: none; }
.tag {
  font-size: 11px; line-height: 1; padding: 4px 6px 3px;
  border: 1px solid var(--rule-strong); color: rgba(15, 27, 45, 0.6);
}

.display {
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.inv {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  padding: 0 0.12em 0.02em;
  line-height: 1.05;
}
.inv em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1em;
}
.inv-light { background: var(--paper); color: var(--blue-deep); }
.lede {
  max-width: 480px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
@media (min-width: 640px) { .lede { font-size: 18px; } }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 20px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: -0.02em;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), opacity 160ms;
}
.cta:active { transform: scale(0.97); }
.cta-ink { background: var(--blue); color: var(--paper); }
.cta-ink:hover { background: var(--blue-dark); }
.cta-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.cta-ghost:hover { box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.3); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.01em;
  padding: 5px 7px 4px; white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.chip.crit { color: #b23a26; background: rgba(200, 67, 46, 0.09); }
.chip.neutral { color: var(--muted-foreground); background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.chip.warn { color: #8a5f00; background: rgba(201, 138, 0, 0.12); }
.chip.ok { color: #157246; background: rgba(31, 157, 99, 0.1); }

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

/* Full-width and quiet at the top. After scrolling it folds into a dark
   floating island (like the iPhone Dynamic Island). Toggled by main.js. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flow-root;                   /* keeps the island's top margin inside the header */
  height: 76px; margin-bottom: -76px;   /* overlays the hero instead of pushing it down */
  pointer-events: none;
  color: var(--ink);
}
.header-inner {
  pointer-events: auto;
  max-width: calc(var(--frame) + 2 * var(--gutter));
  margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  border-radius: 0;
  background: rgba(255, 255, 255, 0);
  transition:
    max-width 560ms cubic-bezier(0.32, 0.72, 0, 1),
    margin 560ms cubic-bezier(0.32, 0.72, 0, 1),
    padding 560ms cubic-bezier(0.32, 0.72, 0, 1),
    border-radius 560ms cubic-bezier(0.32, 0.72, 0, 1),
    background-color 360ms ease, box-shadow 360ms ease, color 360ms ease;
}
.site-header.is-island { color: #fff; }
.site-header.is-island .header-inner {
  max-width: 600px;
  margin-top: 12px;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: rgba(12, 14, 19, 0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.brand { display: flex; align-items: center; min-height: 40px; transition: opacity 150ms; }
.brand:hover { opacity: 0.75; }
.logo-full {
  display: block; width: 82px; height: 23px;
  background: currentColor;
  -webkit-mask: url(assets/alevio-logo.svg) center / contain no-repeat;
          mask: url(assets/alevio-logo.svg) center / contain no-repeat;
  transition: width 560ms cubic-bezier(0.32, 0.72, 0, 1), height 560ms cubic-bezier(0.32, 0.72, 0, 1);
}
.site-header .logo-full { color: inherit; }
.site-header.is-island .logo-full { width: 68px; height: 19px; }
.logo-full.small { width: 72px; height: 20px; background: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--sans); text-transform: none; letter-spacing: -0.01em;
  font-size: 14px; font-weight: 500; line-height: 20px;
  padding: 8px 12px; border-radius: 999px;
  color: inherit; opacity: 0.75;
  transition: opacity 150ms, background-color 200ms;
}
.nav a:hover, .nav a.is-current { opacity: 1; }
.site-header.is-island .nav a.is-current { background: rgba(255, 255, 255, 0.12); }
.nav a:not(.nav-cta) { display: none; }
@media (min-width: 720px) { .nav a:not(.nav-cta) { display: inline; } }
.nav .nav-cta {
  opacity: 1; margin-left: 6px;
  background: var(--blue); color: #fff; padding: 8px 16px;
}
.nav .nav-cta:hover { background: var(--blue-dark); }
.site-header.is-island .nav .nav-cta { background: #fff; color: #0c0e13; }
.site-header.is-island .nav .nav-cta:hover { background: #e8ecf2; }
@media (max-width: 719px) {
  .site-header.is-island .header-inner { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-inner, .logo-full { transition: none; }
}
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

/* --------------------------------------------------------------------------
   Section scaffold: plus-pattern strips + frame rules (Gauss-style grid)
   -------------------------------------------------------------------------- */

.sec { position: relative; isolation: isolate; padding: 0 var(--gutter); }
.sec::before, .sec::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1;
  width: var(--strip);
  background-image: var(--plus-ink);
  background-repeat: repeat-y; background-size: 88px 760px;
}
.sec::before { left: 0; background-position: left top; }
.sec::after { right: 0; background-position: right top; }
.frame { position: relative; max-width: var(--frame); margin: 0 auto; }
@media (min-width: 1024px) {
  .frame { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
}

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

.hero { background: linear-gradient(180deg, #ffffff 0%, #ffffff 30%, #eef1f6 100%); }
.hero .frame { padding-top: calc(76px + var(--s6)); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); padding: 0; }
@media (min-width: 640px) { .hero-copy { padding: var(--s6); gap: var(--s6); } }
@media (min-width: 1024px) { .hero .frame { padding-top: calc(76px + var(--s7)); } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; line-height: 1; color: rgba(15, 27, 45, 0.8); }
@media (min-width: 640px) { .meta { font-size: 13px; } }
.dot-sep { width: 3px; height: 3px; background: var(--rule-strong); }
.live { position: relative; width: 7px; height: 7px; background: var(--ok); }
.live::after {
  content: ""; position: absolute; inset: -4px; border: 1px solid var(--ok);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.hero .display { font-size: clamp(34px, 5vw, 56px); max-width: 21ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.mountain {
  position: relative;
  height: 340px;
  margin: var(--s5) calc(-1 * var(--gutter)) 0;
  overflow: hidden;
}
@media (min-width: 768px) { .mountain { height: 420px; margin: var(--s4) 0 0; } }
@media (min-width: 1024px) { .mountain { margin-top: calc(-1 * var(--s9)); height: 460px; } }
.mountain canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mountain { pointer-events: none; }
.mountain-hint { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: rgba(19, 35, 63, 0.45); pointer-events: none; transition: opacity 300ms var(--ease-out); }
.mountain.touched .mountain-hint { opacity: 0; }

.pin {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; line-height: 1; text-transform: lowercase; letter-spacing: -0.02em;
  padding: 7px 9px 6px; background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  white-space: nowrap; opacity: 0; transform: translateY(4px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.pin.show { opacity: 1; transform: none; }
.pin.show.hit { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(44, 94, 168, 0.35), 0 10px 24px -8px rgba(44, 94, 168, 0.45); transition-duration: 160ms; }
.pin b { font-weight: 500; text-transform: uppercase; }
.pin-a b { color: #157246; }
.pin-b b { color: #b23a26; }
.pin::after { /* stem down to the peak */
  content: ""; position: absolute; left: var(--stem, 12px); top: 100%; width: 1px; height: 18px;
  background: rgba(15, 27, 45, 0.35);
}
.pin-dot { width: 6px; height: 6px; }
.pin-dot.is-ok { background: var(--ok); }
.pin-dot.is-alert { background: var(--destructive); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* --------------------------------------------------------------------------
   Brand row
   -------------------------------------------------------------------------- */

.brands { background: linear-gradient(180deg, #eef1f6 0%, #ffffff 100%); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brands-row {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6) 0;
}
@media (min-width: 1024px) {
  .brands-row { flex-direction: row; align-items: center; gap: var(--s6); padding: var(--s6) var(--s6); min-height: 128px; }
}
.brands .eyebrow { color: rgba(15, 27, 45, 0.45); font-size: 12px; white-space: nowrap; }
.brand-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4) var(--s3);
  flex: 1;
}
@media (min-width: 768px) { .brand-list { grid-template-columns: repeat(8, auto); justify-content: space-between; } }
.brand-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: -0.02em; color: rgba(15, 27, 45, 0.55);
  transition: color 200ms var(--ease-out);
}
.brand-list li { cursor: pointer; border-radius: 6px; outline-offset: 4px; -webkit-user-select: none; user-select: none; }
.brand-list img { width: 18px; height: 18px; filter: grayscale(1); opacity: 0.55; transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
/* real brand colors on hover, keyboard focus and tap (touch has no hover) */
.brand-list li.is-active, .brand-list li:focus-visible, .brand-list li:active { color: var(--ink); }
.brand-list li.is-active img, .brand-list li:focus-visible img, .brand-list li:active img { filter: none; opacity: 1; transform: scale(1.08); }
@media (hover: hover) {
  .brand-list li:hover { color: var(--ink); }
  .brand-list li:hover img { filter: none; opacity: 1; transform: scale(1.08); }
}
/* Lovable is the main home of our users: keep it in color */
.brand-list li:first-child { color: var(--ink); }
.brand-list li:first-child img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.sec-head { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s9) 0 var(--s7); }
@media (min-width: 640px) { .sec-head { padding: var(--s10) var(--s6) var(--s8); } }

/* --------------------------------------------------------------------------
   Evidence
   -------------------------------------------------------------------------- */

.evidence-grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) { .evidence-grid { grid-template-columns: 1.25fr 1fr; } }

.stat-hero {
  position: relative; overflow: hidden;
  padding: var(--s6) 0 var(--s7);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6);
}
@media (min-width: 640px) { .stat-hero { padding: var(--s6); } }
@media (min-width: 900px) { .stat-hero { border-right: 1px solid var(--rule); min-height: 440px; } }

.big-num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(120px, 20vw, 240px); line-height: 0.85; letter-spacing: -0.08em;
  /* halftone fill: the number is made of dots */
  background-image: radial-gradient(circle at center, var(--blue) 1.35px, transparent 1.6px);
  background-size: 5px 5px;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-text { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; max-width: 26ch; text-wrap: pretty; }
.stat-hero .stat-text { font-size: clamp(20px, 2vw, 26px); max-width: 22ch; }
.source { margin-top: var(--s3); font-size: 11px; line-height: 16px; color: rgba(15, 27, 45, 0.45); max-width: 44ch; }
.source em { font-style: normal; color: var(--ink); }

.stat-list { display: grid; }
.stat { padding: var(--s6) 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .stat { padding: var(--s6); } }
@media (min-width: 900px) { .stat:first-child { border-top: 0; } }
.num { font-family: var(--mono); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: -0.06em; margin-bottom: var(--s3); }
.num .arrow { color: var(--blue); }

.kicker {
  border-top: 1px solid var(--rule);
  padding: var(--s7) 0 var(--s9);
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.03em;
  max-width: 34ch; text-wrap: pretty;
}
@media (min-width: 640px) { .kicker { padding: var(--s7) var(--s6) var(--s10); } }

/* --------------------------------------------------------------------------
   Product cells
   -------------------------------------------------------------------------- */

.product { background: var(--paper); border-top: 1px solid var(--rule); }
.product .sec-head .eyebrow .tag { margin-left: var(--s1); }
.cells {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) { .cells { grid-template-columns: 1fr 1fr; } }
.cell {
  display: flex; flex-direction: column; gap: var(--s5);
  padding: var(--s6) 0 var(--s7);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
@media (min-width: 640px) { .cell { padding: var(--s6) var(--s6) var(--s7); } }
@media (min-width: 900px) {
  .cell-wide { grid-column: 1 / -1; }
  .cell:not(.cell-wide):nth-child(even) { border-right: 1px solid var(--rule); }
}
.cell-title { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; }
.cell-sub { margin-top: var(--s1); font-weight: 300; font-size: 15px; color: rgba(15, 27, 45, 0.65); max-width: 46ch; }

.ui { position: relative; background: var(--paper); box-shadow: var(--shadow); font-size: 14px; border-radius: 12px; }
.ui::before { /* hairline instead of a hard border */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--border);
}

/* window + table */
.win-bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em;
}
.win-dots { display: flex; gap: 5px; }
.win-dots i { width: 7px; height: 7px; background: var(--rule-strong); }
.win-title { color: var(--ink); }
.win-meta { margin-left: auto; color: rgba(15, 27, 45, 0.45); display: none; }
@media (min-width: 640px) { .win-meta { display: inline; } }
.app-table { overflow-x: auto; }
.tr {
  display: grid; align-items: center; gap: var(--s3);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  padding: 12px 14px; border-bottom: 1px solid var(--rule);
  font-size: 13px; letter-spacing: -0.01em;
}
.tr:last-child { border-bottom: 0; }
.tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr.th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: rgba(19, 35, 63, 0.5); padding-block: 9px; background: var(--blue-tint); }
.tr .hide-s { display: none; }
@media (min-width: 720px) {
  .tr { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 120px 100px 110px; }
  .tr .hide-s { display: block; }
  .tr .hide-s.plat { display: inline-flex; }
}
.app { font-family: var(--mono); font-size: 12.5px; }
.plat { display: inline-flex; align-items: center; gap: 7px; }
.window { overflow: hidden; }
.plat img { width: 14px; height: 14px; }
.tr:nth-child(2) { background: linear-gradient(90deg, rgba(255, 91, 46, 0.06), transparent 60%); }

/* chat with Alevio */
.chat { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fbfcfe; }
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 16px; }
.msg { font-size: 14px; line-height: 1.5; }
.msg-user {
  align-self: flex-end; max-width: 82%;
  background: var(--blue); color: #fff;
  padding: 9px 14px; border-radius: 18px 18px 6px 18px;
}
.msg-ai { display: flex; gap: 10px; align-items: flex-start; max-width: 94%; }
.ai-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.ai-avatar .mark {
  width: 14px; height: 13px; background: #fff;
  -webkit-mask: url(assets/alevio-mark.svg) center / contain no-repeat; mask: url(assets/alevio-mark.svg) center / contain no-repeat;
}
.ai-body { padding-top: 4px; color: var(--ink); }
.ai-working { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 13.5px; }
.ai-done { display: none; }
.ai-done code { font-family: var(--mono); font-size: 0.88em; padding: 1px 5px; border-radius: 5px; background: var(--muted); border: 1px solid var(--border); }
.chat.is-done .ai-working { display: none; }
.chat.is-done .ai-done { display: block; animation: fade-up 360ms var(--ease-out); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-actions { display: flex; gap: 8px; margin-top: 10px; }
.ai-actions .btn { cursor: default; }
.autofix-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; cursor: default; }
.autofix-toggle .input[role=switch] { pointer-events: none; }
.tip.autofix-toggle::after { left: auto; right: 0; transform: none; }
.ai-chips .badge svg { width: 12px; height: 12px; color: var(--ok); }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.composer {
  margin: 0 12px 12px; padding: 12px 12px 10px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(19, 35, 63, 0.04), 0 6px 16px -10px rgba(19, 35, 63, 0.18);
}
.composer-text { min-height: 22px; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.composer-text:has(.composer-typed:empty)::before { content: "Ask Alevio to check or fix an app…"; color: #9aa6b8; }
.caret { display: inline-block; width: 1.5px; height: 16px; background: var(--blue); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.composer-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 4px 9px; border-radius: 999px; background: var(--muted); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-chip img { width: 13px; height: 13px; flex: none; }
.owner-ok { width: 12px; height: 12px; color: var(--ok); flex: none; }
.muted-chip { color: var(--muted-foreground); }
.send {
  margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: var(--blue); color: #fff; cursor: default;
}
.send svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .muted-chip { display: none; } }
@media (max-width: 400px) { .autofix-toggle { display: none; } }

/* auto-fix */
.autofix { padding: var(--s5); display: flex; flex-direction: column; gap: 14px; border-radius: 14px; }
.finding-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.finding-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-foreground); }
.finding-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.finding-title code { padding: 1px 6px; border-radius: 5px; background: var(--muted); border: 1px solid var(--border); font-weight: 500; font-size: 0.86em; }
.steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 22px 8px 0 0; font-size: 13px; min-width: 0; }
.steps li:not(:last-child)::after { /* connector to the next dot */
  content: ""; position: absolute; top: 6px; left: 18px; right: 4px; height: 1.5px; border-radius: 2px;
  background: var(--ink); transform-origin: left center; transform: scaleX(0);
}
.steps li:not(:last-child)::before { /* resting track */
  content: ""; position: absolute; top: 6px; left: 18px; right: 4px; height: 1.5px; border-radius: 2px; background: var(--border);
}
.steps li.line-done::after { transform: scaleX(1); }
.steps b { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.steps time { font-family: var(--mono); font-size: 11.5px; color: var(--muted-foreground); }
.step-dot {
  position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1.5px #c9d2de;
}
.steps li.done .step-dot { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 3px #fff; }
.steps li.step-verified.done .step-dot { background: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok), 0 0 0 3px #fff; }
.step-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(19, 35, 63, 0.35); }
.steps li.pulse .step-dot::after { animation: step-pulse 520ms var(--ease-out); }
@keyframes step-pulse { from { box-shadow: 0 0 0 0 rgba(19, 35, 63, 0.35); } to { box-shadow: 0 0 0 8px rgba(19, 35, 63, 0); } }
.approver { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; position: relative; z-index: 1; }
.avatar-xs { flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 8.5px; font-weight: 600; display: grid; place-items: center; }
.verify-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.verify-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.verify-list svg { width: 13px; height: 13px; flex: none; color: var(--ok); }
.diff-label { margin-bottom: -6px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.foot-note { font-size: 12.5px; color: var(--muted-foreground); }

/* step-by-step reveal (main.js adds .is-armed, then marks steps done one by one) */
.steps li .step-dot, .steps li::after { transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 380ms var(--ease-out); }
[data-steps].is-armed ~ .verify-list { opacity: 0; transition: opacity 220ms var(--ease-out); }
[data-steps].is-armed ~ .verify-list.shown { opacity: 1; }
[data-steps].is-armed ~ .verify-list li { opacity: 0; transform: translateY(3px); }
[data-steps].is-armed ~ .verify-list li.shown { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@media (max-width: 480px) {
  .steps li { font-size: 12px; }
  .approver { white-space: normal; align-items: flex-start; line-height: 1.3; }
}

.diff { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.diff-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--muted); border-bottom: 1px solid var(--border); }
.diff-file { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diff-file img { width: 13px; height: 13px; flex: none; }
.diff-stat { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ok); }
.diff-body { margin: 0; padding: 8px 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink); overflow-x: auto; }
.diff-body .add { display: block; padding: 0 12px 0 28px; position: relative; background: rgba(46, 139, 87, 0.08); }
.diff-body .add::before { content: "+"; position: absolute; left: 12px; color: var(--ok); }
.autofix-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.connect-actions { display: inline-flex; gap: 8px; }
.connect-actions .btn { cursor: default; }
.spin { width: 12px; height: 12px; border: 1.5px solid #d5dce6; border-top-color: var(--blue); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* interactive drift chart */
.drift-wrap { position: relative; touch-action: pan-y; cursor: crosshair; }
.drift-chart .area { fill: rgba(44, 94, 168, 0.08); stroke: none; }
.drift-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(19, 35, 63, 0.25); opacity: 0; pointer-events: none; transition: opacity 150ms; }
.drift-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); opacity: 0; pointer-events: none; transition: opacity 150ms; }
.drift-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%);
  padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 150ms;
}
.drift-tip b { font-weight: 600; }
.drift-tip span { display: block; color: rgba(255, 255, 255, 0.65); font-size: 11px; }
.drift-wrap.is-active .drift-cursor, .drift-wrap.is-active .drift-dot, .drift-wrap.is-active .drift-tip { opacity: 1; }

/* report */
.report-wrap { padding: var(--s5); background: var(--blue-tint); }
.report {
  position: relative; background: var(--paper); padding: var(--s5);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--s4);
  max-width: 400px; margin: 0 auto;
  transform: rotate(-1deg);
}
.report-head { display: flex; justify-content: space-between; align-items: center; }
.agency { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; letter-spacing: -0.01em; }
.agency i { width: 14px; height: 14px; background: #2e5bff; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.report-title { font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; }
.report-title span { font-weight: 300; color: rgba(15, 27, 45, 0.6); font-size: 15px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.report-kpis > div { padding: 10px 0; }
.report-kpis > div + div { padding-left: 10px; border-left: 1px solid var(--rule); }
.kpi { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.05em; }
.kpi-l { font-size: 11.5px; color: rgba(15, 27, 45, 0.6); }
.report-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.report-bars i { flex: 1; height: calc(var(--h) * 100%); background: rgba(15, 27, 45, 0.14); }
.report-bars i.hit { background: var(--destructive); }
.report-bars i { position: relative; border-radius: 3px 3px 0 0; cursor: default; outline: none; transition: filter 150ms; }
.report-bars i:hover, .report-bars i:focus-visible { filter: brightness(0.85); }
.tip { position: relative; }
.report-bars i::after, .tip::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 5px 8px; border-radius: 6px; background: var(--ink); color: #fff;
  font: 11px/1.3 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 150ms; z-index: 2;
}
.report-bars i:hover::after, .report-bars i:focus-visible::after, .tip:hover::after, .tip:focus-within::after { opacity: 1; }
.report-bars i:first-child::after { left: 0; transform: none; }
.report-bars i:last-child::after { left: auto; right: 0; transform: none; }
.report-foot { font-size: 11.5px; line-height: 1.45; color: rgba(15, 27, 45, 0.55); }

/* drift */
.drift { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.drift-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.drift-chart { width: 100%; height: 130px; }
.drift-chart .grid { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.drift-chart .line { stroke: var(--blue); stroke-width: 1.75; vector-effect: non-scaling-stroke; fill: none; }
.drift-chart .mark { stroke: rgba(19, 35, 63, 0.4); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------------------------
   Why (dark)
   -------------------------------------------------------------------------- */

.why { background: linear-gradient(180deg, #1c3a6b 0%, #16335c 100%); color: var(--paper); }
.why::before, .why::after { background-image: var(--plus-light); }
.why .frame { border-color: var(--rule-dark); }
.why .eyebrow { color: rgba(255, 255, 255, 0.85); }
.why .lede { color: rgba(255, 255, 255, 0.72); }

.quote-row { display: grid; border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .quote-row { grid-template-columns: 1.15fr 1fr; } }
.portrait { position: relative; min-height: 380px; overflow: hidden; }
@media (min-width: 900px) { .portrait { min-height: 460px; border-right: 1px solid var(--rule-dark); } }
.portrait-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-cap {
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 1;
  padding: var(--s5); max-width: 380px;
  font-weight: 300; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.62);
}
.portrait-cap .mono-s { color: rgba(255, 255, 255, 0.9); margin-bottom: 6px; }
@media (min-width: 640px) { .portrait-cap { padding: var(--s6); } }

.quote {
  align-self: start;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: var(--s6) var(--s6) var(--s6) var(--s7);
  display: flex; flex-direction: column; gap: var(--s5);
}
@media (min-width: 900px) { .quote { margin-top: var(--s6); padding: var(--s7) var(--s7) var(--s7) var(--s8); } }
.quote p {
  position: relative;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.q { font-family: var(--sans); font-style: normal; color: #9db8e0; }
.q-open { position: absolute; left: -0.6em; top: 0; }
.q-close { margin-left: 0.06em; }
.quote footer { color: rgba(255, 255, 255, 0.5); }

.principles {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-dark);
  padding: var(--s7) 0 var(--s9);
  gap: var(--s7);
}
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 0; padding: var(--s8) 0 var(--s9); } }
.principle { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: 0 var(--s4); }
.p-icon { display: block; height: 48px; margin-bottom: var(--s3); color: var(--paper); }
.p-icon svg { height: 48px; width: auto; }
.p-title { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: -0.02em; }
.p-text { font-weight: 300; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
@media (max-width: 767px) { .p-text br { display: none; } }

/* --------------------------------------------------------------------------
   Footer + merge effect
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #16335c 0%, #102544 50%, #0b1a33 100%);
  color: #fff;
  height: 900px;
}
.site-footer::before, .site-footer::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none;
  width: var(--strip);
  background-image: var(--plus-light);
  background-repeat: repeat-y; background-size: 88px 760px;
}
.site-footer::before { left: 0; background-position: left top; }
.site-footer::after { right: 0; background-position: right top; }
@media (min-width: 1024px) { .site-footer { height: 860px; } }

.cx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cx-bg canvas { width: 100%; height: 100%; }

.cx-layer {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: 0; visibility: hidden;
}
.cx-layer[data-tone="light"] { color: var(--paper); }
.cx-layer[data-tone="ink"] { color: #fff; }
.cx-icon { position: absolute; left: 0; top: 0; height: 48px; will-change: transform; }
.cx-icon svg { height: 48px; width: auto; }
.cx-logo {
  position: absolute; left: 0; top: 0;
  background: currentColor;
  -webkit-mask: url(assets/alevio-mark.svg) center top / 100% 100% no-repeat;
          mask: url(assets/alevio-mark.svg) center top / 100% 100% no-repeat;
  opacity: 0;
}

.footer-top {
  position: absolute; z-index: 40; left: 0; right: 0; top: 40px;
  padding: 0 var(--gutter);
}
@media (min-width: 1024px) { .footer-top { top: 112px; } }
.footer-cols {
  max-width: var(--frame); margin: 0 auto;
  display: grid; gap: var(--s6);
}
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1fr 2fr 1fr; gap: var(--s7); } }
.f-title { font-size: 26px; letter-spacing: -0.04em; line-height: 1.15; }
.f-text { margin-top: var(--s2); font-weight: 300; font-size: 15px; color: rgba(255, 255, 255, 0.68); max-width: 46ch; }
.waitlist { margin-top: var(--s5); display: flex; gap: 0; max-width: 460px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); padding: 4px; background: rgba(255, 255, 255, 0.06); }
.waitlist input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent;
  padding: 0 12px; font: 16px var(--sans); color: #fff; letter-spacing: -0.01em;
}
.waitlist input::placeholder { color: rgba(255, 255, 255, 0.45); }
.waitlist .cta-ink { background: #fff; color: var(--blue-deep); }
.waitlist .cta-ink:hover { background: #dce6f5; }
.waitlist input:focus { outline: none; }
/* Browser autofill paints a light box behind the text; keep the field transparent so the text sits in the pill */
.waitlist input:-webkit-autofill,
.waitlist input:-webkit-autofill:hover,
.waitlist input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.waitlist input:autofill { background: transparent; }
.waitlist:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.waitlist .cta { flex: none; }
@media (max-width: 420px) { .waitlist { flex-direction: column; } .waitlist .cta { width: 100%; } }
.form-msg { min-height: 22px; margin-top: var(--s2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.form-msg.ok { color: #8fd9b0; }
.form-msg.err { color: #f3a493; }
.f-label { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: var(--s3); }
.f-price { font-family: var(--mono); font-size: 18px; letter-spacing: -0.04em; line-height: 1.8; }
.f-price span { font-family: var(--sans); font-size: 13px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.6); }

.footer-legal {
  position: absolute; z-index: 40; left: 0; right: 0; bottom: 34px;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.legal-links { display: flex; gap: var(--s4); }
.legal-links a { padding: 10px 0; transition: opacity 150ms; opacity: 0.75; }
.legal-links a:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Entrance motion: hero only, short, ease-out
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .live::after, .pin-dot.is-alert, .caret, .spin { animation: none; }
}

/* --------------------------------------------------------------------------
   Decorative dot fields: quiet blue texture in otherwise empty white areas
   -------------------------------------------------------------------------- */

.deco-dots {
  position: absolute; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(44, 94, 168, 0.28) 1px, transparent 1.4px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}
.deco-hero { top: 24px; right: -40px; width: 520px; height: 360px; }
.deco-head { top: 64px; right: 0; width: 420px; height: 300px; }
.deco-left { bottom: 40px; left: -60px; width: 360px; height: 260px; opacity: 0.7; }
@media (max-width: 767px) {
  .deco-hero { width: 300px; height: 240px; right: -80px; top: 0; opacity: 0.6; }
  .deco-head { width: 260px; height: 200px; right: -60px; opacity: 0.6; }
  .deco-left { display: none; }
}

/* --------------------------------------------------------------------------
   Hero small text in SF Pro (sentence case, no mono)
   -------------------------------------------------------------------------- */
.hero .meta, .hero .pin, .hero .mountain-hint, .brands .eyebrow, .brand-list li, .cta {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: -0.01em;
}
.hero .meta { font-size: 13px; font-weight: 500; }
.hero .meta .muted { font-weight: 400; }
.cta { font-size: 15px; font-weight: 500; border-radius: 999px; padding: 0 22px; }
.hero .pin { font-size: 12px; font-weight: 500; padding: 7px 11px 7px 9px; border-radius: 999px; }
.hero .pin b { text-transform: none; font-weight: 600; }
.hero .mountain-hint { font-size: 12px; }
.brands .eyebrow { font-size: 13px; font-weight: 500; }

/* dot field behind the chat card, fading out toward the center */
.chat {
  background-color: #fff;
  background-image:
    radial-gradient(ellipse 72% 62% at 50% 45%, #fff 38%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle, rgba(19, 35, 63, 0.16) 0.9px, transparent 1.25px);
  background-size: auto, 8px 8px;
}
.hero .pin-dot, .hero .live, .hero .live::after { border-radius: 50%; }

/* Basecoat buttons keep their own text colors (our global button reset would override them) */
.btn:not([data-variant]) { color: var(--primary-foreground); }
.btn[data-variant="outline"], .btn[data-variant="ghost"] { color: var(--foreground); }

/* Product mock-ups: monospace only for code, times and file names */
.cells .chip, .cells .tr.th, .cells .win-bar, .cells .mono-s, .cells .tag, .drift-note {
  font-family: var(--sans); text-transform: none; letter-spacing: -0.01em;
}
.cells .chip { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; }
.cells .chip::before { border-radius: 50%; }
.cells .tr.th { font-size: 12px; font-weight: 500; }
.cells .win-bar { font-size: 12.5px; }
.cells .win-title { font-weight: 500; }
.cells .mono-s { font-size: 12.5px; }
.cells .tag { font-size: 11px; font-weight: 500; border-radius: 999px; padding: 3px 7px; }

/* Franklin caption: solid backdrop so the halftone dots don't run through the text */
.portrait-cap {
  max-width: none;
  padding-top: 72px;
  background: linear-gradient(to top, #16335c 0%, rgba(22, 51, 92, 0.94) 55%, rgba(22, 51, 92, 0) 100%);
  color: rgba(255, 255, 255, 0.78);
}
.portrait-cap > * { max-width: 380px; }
.portrait-cap .mono-s { color: #fff; }

/* chat card fills the cell, composer sits at the bottom */
.cell > .ui.chat { flex: 1; }
.chat .chat-thread { flex: 1; }
.ai-body { min-width: 0; flex: 1; }
.diff-compact { margin-top: 10px; }
.diff-compact .diff-bar { padding: 6px 10px; }
.diff-compact .diff-file, .diff-compact .diff-stat { font-size: 11.5px; }
.diff-compact .diff-body { font-size: 11.5px; line-height: 1.65; padding: 6px 0; }
.diff-compact .diff-body .add { padding: 0 10px 0 24px; }
.diff-compact .diff-body .add::before { left: 10px; }

/* chips: content always fits cleanly */
.composer-row { min-width: 0; }
.app-chip { flex: none; height: 26px; padding: 0 10px; line-height: 1; overflow: visible; }
.app-chip-host { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.app-chip-host .chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autofix-toggle { flex: none; }
.autofix-toggle .input[role=switch] { flex: none; }

/* --------------------------------------------------------------------------
   Legal pages (imprint, privacy)
   -------------------------------------------------------------------------- */
body.legal { background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #eef1f6 100%); min-height: 100vh; display: flex; flex-direction: column; }
.legal-page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: calc(76px + var(--s8)) var(--gutter) var(--s9); }
@media (min-width: 768px) { .legal-page { padding-left: 0; padding-right: 0; } }
.legal-page h1 { margin-top: var(--s4); font-size: clamp(34px, 5vw, 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.legal-lead { margin-top: var(--s3); font-size: 17px; color: var(--muted-foreground); }
.legal-page section { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.legal-page h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.legal-page section p { font-size: 15px; line-height: 1.65; color: var(--ink); }
.todo { padding: 1px 6px; border-radius: 5px; background: rgba(200, 67, 46, 0.08); color: #b23a26; font-size: 0.94em; }
.legal-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s6) var(--gutter) var(--s7); font-size: 13px; color: var(--muted-foreground); }
.legal-footer .legal-links { display: flex; gap: var(--s4); }
.legal-footer a { padding: 8px 0; }
.legal-footer a[aria-current="page"] { color: var(--ink); }

/* header content sits inside the frame, on the same line as the hero copy */
@media (min-width: 640px) {
  .site-header:not(.is-island) .header-inner { padding-left: calc(var(--gutter) + var(--s6)); padding-right: calc(var(--gutter) + var(--s6)); }
}

/* footer: LinkedIn */
.footer-cols .f-col:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.social-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.social-link:active { transform: scale(0.95); }
.social-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.waitlist { border-radius: 999px; padding: 4px 4px 4px 8px; }
@media (max-width: 420px) { .waitlist { border-radius: 16px; padding: 4px; } }

/* waitlist: honeypot + consent line */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-consent { margin-top: var(--s2); max-width: 460px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }
.form-consent a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 2px; }
.waitlist .cta[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { text-transform: none; font-family: var(--sans); font-size: 13px; letter-spacing: -0.01em; }

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

.faq-list { border-top: 1px solid var(--rule); padding-bottom: var(--s8); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5);
  padding: var(--s4) 0;
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--mono); font-size: 16px; color: var(--blue);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.faq-item p { max-width: 68ch; padding: 0 0 var(--s4); color: var(--muted-foreground); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
@media (min-width: 640px) {
  .faq-item summary, .faq-item p { padding-left: var(--s6); padding-right: var(--s6); }
}
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

.faq .sec-head { padding-bottom: var(--s6); }
.faq .sec-head .display { font-size: clamp(30px, 3.6vw, 44px); }
