@import url('/paper-tokens.css');

:root {
  --cf-bg: #f7f7f8;
  --cf-surface: #ffffff;
  --cf-surface-2: #f1f1f3;
  --cf-text: #171717;
  --cf-muted: #6b6b6f;
  --cf-line: #dedee2;
  --cf-line-soft: #e9e9ec;
  --cf-accent: oklch(58.1% .229 278.57);
  --cf-positive: #19704a;
  --cf-warning: #8a5617;
  --cf-danger: #a33b2b;
  --cf-width: 840px;
  --cf-font: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  background: var(--cf-bg);
  color: var(--cf-text);
  font-family: var(--cf-font);
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* dvh tracks the iOS toolbar so full-height doesn't crop */
  margin: 0;
  background: var(--cf-bg);
  font-family: var(--cf-font);
  -webkit-font-smoothing: antialiased;
}

body:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
  overflow: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.cf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  border-bottom: 1px solid var(--cf-line-soft);
  background: rgba(247, 247, 248, .9);
  backdrop-filter: blur(16px);
}

.cf-header-inner {
  display: flex;
  width: min(1280px, calc(100% - 48px));
  min-height: 58px;
  align-items: center;
  margin: 0 auto;
}

.cf-brand { display: inline-flex; align-items: center; }
.cf-brand img { display: block; width: auto; height: 22px; }

.cf-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.cf-nav-link, .cf-account {
  color: var(--cf-muted);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}
.cf-nav-link:hover, .cf-account:hover { color: var(--cf-text); }
.cf-account {
  margin-left: 2px;
  padding: 7px 11px;
  border: 1px solid var(--cf-line);
  border-radius: 999px;
  background: var(--cf-surface);
  color: var(--cf-text);
}

.cf-layout {
  width: min(var(--cf-width), calc(100% - 48px));
  margin: 0 auto;
}

.cf-landing-visual,
.cf-scan-rail { display: none; }
.cf-rail-results { display: none; }

@media (min-width: 940px) {
  body[data-cf-mode="landing"] .cf-layout,
  body[data-cf-mode="wizard"] .cf-layout,
  body[data-cf-mode="results"] .cf-layout {
    display: grid;
    width: min(1280px, calc(100% - 48px));
    grid-template-columns: clamp(300px, 31vw, 400px) minmax(0, 840px);
    align-items: start;
    justify-content: space-between;
    gap: clamp(28px, 3vw, 40px);
  }

  body[data-cf-mode="landing"] .cf-layout { padding-bottom: 48px; }

  body[data-cf-mode="landing"] .cf-landing-visual {
    position: sticky;
    top: 78px;
    display: block;
    height: min(640px, calc(100dvh - 92px));
    min-height: 560px;
    margin: 24px 0 0;
    overflow: hidden;
    border-radius: 22px;
    background: #171717;
    box-shadow: 0 18px 50px rgba(20, 20, 22, .11);
    animation: cf-landing-visual-in .35s ease both;
  }

  .cf-landing-visual picture,
  .cf-landing-visual img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .cf-landing-visual img {
    object-fit: cover;
    object-position: 51% 50%;
    filter: saturate(.88) contrast(1.02);
    transform: scale(1.002);
  }

  .cf-landing-visual::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 10, .14) 25%, rgba(8, 10, 10, .88));
    content: '';
    pointer-events: none;
  }

  .cf-landing-visual figcaption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1;
    display: grid;
    gap: 7px;
    color: white;
  }

  .cf-landing-visual figcaption span {
    color: rgba(255, 255, 255, .67);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .cf-landing-visual figcaption strong {
    max-width: 230px;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.08;
  }

  .cf-landing-visual figcaption small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
    font-weight: 550;
  }

  body[data-cf-mode="landing"] .cf-shell { padding-top: 31px; }
  body[data-cf-mode="landing"] .cf-intro {
    margin-bottom: 26px;
    text-align: left;
  }
  body[data-cf-mode="landing"] .cf-intro h1 {
    max-width: 790px;
    font-size: clamp(42px, 4.2vw, 52px);
  }
  body[data-cf-mode="landing"] .cf-hero-lead {
    max-width: 720px;
    margin-left: 0;
  }
  body[data-cf-mode="landing"] .cf-hero-promises { margin-top: 22px; }
  body[data-cf-mode="landing"] .cf-conversation,
  body[data-cf-mode="landing"] .cf-composer.is-initial { margin-left: 0; }

  @keyframes cf-landing-visual-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }

  body[data-cf-mode="wizard"] .cf-scan-rail,
  body[data-cf-mode="results"] .cf-scan-rail {
    position: sticky;
    top: 80px;
    display: block;
    align-self: start;
    width: 100%;
    animation: cf-landing-visual-in .24s ease both;
  }

  body[data-cf-mode="wizard"] .cf-scan-rail { margin-top: 22px; }
  body[data-cf-mode="results"] .cf-scan-rail { margin-top: 34px; }
  body[data-cf-mode="wizard"] .cf-rail-setup { display: block; }
  body[data-cf-mode="wizard"] .cf-rail-results { display: none; }
  body[data-cf-mode="results"] .cf-rail-setup { display: none; }
  body[data-cf-mode="results"] .cf-rail-results { display: block; }
}

.cf-rail-panel {
  padding: 22px;
  border: 1px solid var(--cf-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}
.cf-rail-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.cf-rail-progress { margin: 6px 0 0; color: var(--cf-muted); font-size: 11px; font-weight: 600; }
.cf-rail-steps {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.cf-rail-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8a8a8f;
}
.cf-rail-steps li.is-current {
  border-color: #ddd8f2;
  background: #f3f1fb;
  color: var(--cf-text);
}
.cf-rail-steps li.is-complete { color: var(--cf-text); }
.cf-rail-step-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: var(--cf-surface);
  color: #85858a;
  font-size: 9px;
  font-weight: 750;
}
.cf-rail-steps li.is-current .cf-rail-step-marker { border-color: var(--cf-accent); color: var(--cf-accent); }
.cf-rail-steps li.is-complete .cf-rail-step-marker { border-color: var(--cf-text); background: var(--cf-text); color: white; }
.cf-rail-steps li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cf-rail-steps strong { font-size: 12px; font-weight: 650; line-height: 1.3; }
.cf-rail-steps small { color: var(--cf-muted); font-size: 9.5px; line-height: 1.4; }
.cf-rail-trust {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--cf-line-soft);
}
.cf-rail-trust h3 {
  margin: 0;
  color: var(--cf-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.cf-rail-trust ul {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.cf-rail-trust li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 16px;
}
.cf-rail-trust li::before {
  position: absolute;
  top: 4px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cf-accent);
  content: '';
}
.cf-rail-trust strong {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}
.cf-rail-trust span {
  color: var(--cf-muted);
  font-size: 9px;
  line-height: 1.45;
}
.cf-rail-state {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff3dc;
  color: var(--cf-warning);
  font-size: 9px;
  font-weight: 650;
}
.cf-rail-state[data-state="complete"] { background: #e5f3eb; color: var(--cf-positive); }
.cf-rail-state[data-state="error"] { background: #fae9e5; color: var(--cf-danger); }
.cf-rail-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 15px 0 0;
  overflow: hidden;
  border: 1px solid var(--cf-line-soft);
  border-radius: 10px;
  background: var(--cf-line-soft);
}
.cf-rail-counts div { padding: 10px; background: var(--cf-surface); }
.cf-rail-counts dt { color: var(--cf-muted); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cf-rail-counts dd { margin: 3px 0 0; font-size: 18px; font-weight: 650; }
.cf-rail-result-copy { margin: 13px 0 0; color: var(--cf-muted); font-size: 9.5px; line-height: 1.5; }
.cf-rail-action {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: var(--cf-text);
  color: white;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}
.cf-rail-action:hover { background: #303030; }
.cf-rail-action:disabled { cursor: default; opacity: .38; }
.cf-rail-action:focus-visible { outline: 3px solid rgba(63, 32, 196, .22); outline-offset: 2px; }

.cf-shell {
  width: 100%;
  min-width: 0;
  padding: 42px 0 190px;
}

.cf-shell:has(.cf-composer.is-initial) { padding-bottom: 36px; }

.cf-chat { min-width: 0; }

.cf-intro {
  margin: 0 0 46px;
  text-align: center;
}

.cf-intro h1 {
  margin: 0;
  font-family: var(--cf-font);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.cf-hero-lead {
  max-width: 650px;
  margin: 17px auto 0;
  color: #66666c;
  font-size: 16px;
  line-height: 1.55;
}

.cf-hero-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  border-top: 1px solid var(--cf-line-soft);
  border-bottom: 1px solid var(--cf-line-soft);
  list-style: none;
  text-align: left;
}

.cf-hero-promises li {
  display: grid;
  min-height: 110px;
  align-content: start;
  gap: 0;
  padding: 17px 18px 18px;
  color: #69696f;
  font-size: 12.5px;
  line-height: 1.5;
}
.cf-hero-promises li + li { border-left: 1px solid var(--cf-line-soft); }

.cf-hero-promises strong {
  display: block;
  margin: 0 0 6px;
  color: var(--cf-text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.cf-promise-description { display: block; }

.cf-promise-link { color: inherit; text-underline-offset: 2px; }
.cf-promise-link:hover { color: var(--cf-text); }

.cf-active-progress {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--cf-line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--cf-muted);
  font-size: 11px;
  font-weight: 600;
}
.cf-active-progress > span:first-child { color: var(--cf-text); font-weight: 650; }
.cf-progress-copy { margin-left: auto; }
.cf-progress-dots { display: flex; align-items: center; gap: 4px; }
.cf-progress-dots i { width: 18px; height: 3px; border-radius: 99px; background: #d3d3d7; }
.cf-progress-dots i.is-complete { background: var(--cf-text); }

.cf-intro.is-collapsed { margin-bottom: 30px; }
.cf-intro.is-collapsed h1,
.cf-intro.is-collapsed .cf-hero-lead,
.cf-intro.is-collapsed .cf-hero-promises { display: none; }
.cf-intro.is-collapsed .cf-active-progress { display: flex; }

.cf-eyebrow {
  margin: 0 0 4px;
  color: var(--cf-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf-conversation {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-turn {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
}

.cf-turn-user { justify-content: flex-end; }

.cf-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--cf-text);
  color: white;
  font-family: var(--cf-font);
  font-size: 11px;
  font-weight: 700;
}
.cf-avatar img { display: block; width: 18px; height: 18px; object-fit: contain; }

.cf-bubble {
  max-width: min(700px, calc(100% - 42px));
  padding: 4px 0;
  color: var(--cf-text);
  font-size: 15px;
  line-height: 1.55;
}

.cf-turn-user .cf-bubble {
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--cf-surface-2);
}

.cf-bubble p { margin: 0; }
.cf-answer-row { display: flex; align-items: center; gap: 9px; }

.cf-welcome-heading { display: flex; align-items: center; gap: 5px; }
.cf-welcome-title { font-weight: 650; }
.cf-info-trigger {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dedee2;
  border-radius: 50%;
  background: transparent;
  color: #aaa9b0;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.cf-info-trigger::after {
  position: absolute;
  right: -4px;
  bottom: calc(100% + 8px);
  left: auto;
  z-index: 25;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--cf-text);
  color: white;
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease;
  white-space: nowrap;
}
.cf-info-trigger:hover {
  border-color: #bab9c0;
  background: transparent;
  color: var(--cf-muted);
}
.cf-info-trigger:hover::after,
.cf-info-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.cf-info-trigger:focus-visible { outline: 2px solid oklch(58.1% .229 278.57 / .16); outline-offset: 2px; }

.cf-edit {
  padding: 2px;
  border: 0;
  color: var(--cf-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.cf-edit:hover { color: var(--cf-text); }

.cf-composer {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom)); /* clear the iOS home indicator */
  left: 50%;
  z-index: 30;
  width: min(var(--cf-width), calc(100% - 36px));
  margin: 0;
  padding: 12px;
  border: 1px solid var(--cf-line);
  border-radius: 20px;
  background: var(--cf-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
  transform: translateX(-50%);
}

.cf-composer::after {
  position: absolute;
  right: 0;
  bottom: -19px;
  left: 0;
  height: 18px;
  background: var(--cf-bg);
  content: '';
}

.cf-composer.is-initial {
  position: static;
  width: 100%;
  margin: 14px 0 0;
  box-shadow: none;
  transform: none;
}
.cf-composer.is-initial::after { display: none; }

.cf-chat:has(.cf-composer.is-initial) .cf-intro { margin-bottom: 30px; }

.cf-composer.is-review {
  position: static;
  width: 100%;
  margin: 28px 0 0;
  transform: none;
}
.cf-composer.is-review::after { display: none; }

.cf-layout:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
  height: calc(100dvh - 58px);
}

.cf-shell:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding-top: 22px;
  padding-bottom: 18px;
}

.cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) .cf-intro {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) .cf-conversation {
  min-height: 0;
  max-height: min(38dvh, 360px);
  flex: 0 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  padding-bottom: 12px;
  scrollbar-color: #cfcfd3 transparent;
  scrollbar-width: thin;
}

.cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) .cf-composer {
  position: static;
  width: 100%;
  flex: 0 0 auto;
  margin: 14px 0 0;
  box-shadow: none;
  transform: none;
}

.cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) .cf-composer::after {
  display: none;
}

.cf-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px 3px;
  color: var(--cf-muted);
  font-size: 12px;
  font-weight: 600;
}

.cf-step-count {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--cf-surface-2);
  color: var(--cf-text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .025em;
}

.cf-mode-chooser {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--cf-line-soft);
}
.cf-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cf-mode-option {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--cf-line-soft);
  border-radius: 12px;
  background: var(--cf-bg);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cf-mode-option[data-mode="monitor"] {
  border-color: oklch(86.9% .067 284.13);
  background: oklch(98% .01 287.73);
}
.cf-mode-option[data-mode="ephemeral"] {
  border-color: rgba(201, 100, 66, .28);
  background: rgba(201, 100, 66, .045);
}
.cf-mode-option[data-mode="monitor"]:hover {
  border-color: oklch(78.5% .115 282.33);
  background: oklch(96.5% .02 286);
}
.cf-mode-option[data-mode="ephemeral"]:hover {
  border-color: rgba(201, 100, 66, .5);
  background: rgba(201, 100, 66, .075);
}
.cf-mode-option[data-mode="monitor"]:has(input:checked) {
  border-color: var(--cf-accent);
  background: oklch(96.5% .02 286);
  box-shadow: 0 0 0 1px oklch(58.1% .229 278.57 / .1), 0 4px 12px oklch(58.1% .229 278.57 / .1);
}
.cf-mode-option[data-mode="ephemeral"]:has(input:checked) {
  border-color: var(--paper-accent);
  background: rgba(201, 100, 66, .09);
  box-shadow: 0 0 0 1px rgba(201, 100, 66, .08), 0 4px 12px rgba(201, 100, 66, .1);
}
.cf-mode-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--cf-text);
}
.cf-mode-option[data-mode="monitor"] input { accent-color: var(--cf-accent); }
.cf-mode-option[data-mode="ephemeral"] input { accent-color: var(--paper-accent); }
.cf-mode-copy { display: grid; gap: 2px; min-width: 0; }
.cf-mode-title-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; }
.cf-mode-copy strong { color: var(--cf-text); font-size: 12px; font-weight: 650; line-height: 1.3; }
.cf-mode-copy span { color: var(--cf-muted); font-size: 10.5px; line-height: 1.4; }
.cf-mode-copy .cf-mode-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cf-mode-option[data-mode="monitor"] .cf-mode-badge {
  background: oklch(93.8% .031 285.93);
  color: oklch(49% .252 276.73);
}
.cf-mode-option[data-mode="ephemeral"] .cf-mode-badge {
  background: rgba(201, 100, 66, .14);
  color: var(--paper-accent-d);
}

.cf-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 15, 17, .28);
  backdrop-filter: blur(2px);
}
.cf-privacy-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(420px, 100%);
  overflow-y: auto;
  border-left: 1px solid var(--cf-line);
  background: var(--cf-surface);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .14);
}
.cf-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--cf-line-soft);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.cf-drawer-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.cf-drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--cf-line-soft);
  border-radius: 10px;
  background: var(--cf-bg);
  color: var(--cf-muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.cf-drawer-close:hover { color: var(--cf-text); }
.cf-drawer-close:focus-visible { outline: 3px solid rgba(63, 32, 196, .18); outline-offset: 2px; }
.cf-drawer-content { display: grid; gap: 8px; padding: 18px 20px 28px; }
.cf-drawer-intro { margin: 0 0 8px; color: var(--cf-muted); font-size: 12px; line-height: 1.55; }
.cf-drawer-content details { border: 1px solid var(--cf-line-soft); border-radius: 12px; background: var(--cf-bg); }
.cf-drawer-content summary { padding: 13px 14px; color: var(--cf-text); font-size: 13px; font-weight: 650; cursor: pointer; }
.cf-drawer-content details p { margin: 0; padding: 0 14px 14px; color: var(--cf-muted); font-size: 12px; line-height: 1.5; }

.cf-learn-band {
  overflow: hidden;
  border-top: 1px solid #dddde1;
  background: #ededf0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
.cf-learn-band.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}
.cf-learn-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.cf-learn-band details { width: 100%; }
.cf-learn-band summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2px;
  color: var(--cf-text);
  list-style: none;
  cursor: pointer;
}
.cf-learn-band summary::-webkit-details-marker { display: none; }
.cf-learn-heading { display: grid; gap: 4px; }
.cf-learn-heading strong { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.cf-learn-heading small { color: var(--cf-muted); font-size: 12px; line-height: 1.45; }
.cf-learn-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #d2d2d6;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  color: var(--cf-muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform .18s ease, background-color .18s ease;
}
.cf-learn-band summary:hover .cf-learn-toggle { background: var(--cf-surface); color: var(--cf-text); }
.cf-learn-band details[open] .cf-learn-toggle { transform: rotate(45deg); }
.cf-learn-content {
  display: grid;
  gap: 18px;
  padding: 22px 0 32px;
  border-top: 1px solid #d8d8dc;
}
.cf-exposure-guide {
  overflow: hidden;
  padding: 30px;
  border: 1px solid #d8d8dc;
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
}
.cf-exposure-guide-head { max-width: 720px; }
.cf-exposure-guide-head h2 {
  margin: 0;
  color: var(--cf-text);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.cf-exposure-guide-head > p:last-child {
  margin: 10px 0 0;
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.55;
}
.cf-exposure-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.cf-exposure-guide-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--cf-line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.cf-exposure-guide-grid article > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: oklch(58.1% .229 278.57 / .09);
  color: var(--cf-accent);
  font-size: 12px;
  font-weight: 700;
}
.cf-exposure-guide-grid h3 {
  margin: 13px 0 0;
  color: var(--cf-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.cf-exposure-guide-grid p {
  margin: 6px 0 0;
  color: var(--cf-muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.cf-operation {
  overflow: hidden;
  padding: 30px;
  border: 1px solid #d8d8dc;
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
}
.cf-operation-head { max-width: 720px; }
.cf-operation-eyebrow {
  margin: 0 0 8px;
  color: var(--cf-accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cf-operation-head h2, .cf-threats-head h2 {
  margin: 0;
  color: var(--cf-text);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.cf-operation-head > p:last-child, .cf-threats-head p {
  margin: 10px 0 0;
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.55;
}
.cf-operation-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.cf-operation-timeline::before {
  position: absolute;
  top: 7px;
  right: 7%;
  left: 1%;
  height: 1px;
  background: #cfcfd4;
  content: '';
}
.cf-operation-timeline li {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
}
.cf-operation-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--cf-text);
  box-shadow: 0 0 0 1px #bdbdc3;
}
.cf-operation-timeline li:last-child .cf-operation-dot { background: var(--cf-positive); }
.cf-operation-phase {
  margin-top: 13px;
  color: #77777d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cf-operation-timeline strong { margin-top: 4px; color: var(--cf-text); font-size: 11.5px; font-weight: 650; line-height: 1.35; }
.cf-operation-timeline p { margin: 5px 0 0; color: var(--cf-muted); font-size: 10px; line-height: 1.45; }
.cf-operation-note { margin: 24px 0 0; color: #85858a; font-size: 9.5px; line-height: 1.45; }
.cf-threats {
  padding: 30px;
  border: 1px solid #d8d8dc;
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
}
.cf-threats-head { max-width: 620px; }
.cf-threat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.cf-threat-card {
  overflow: hidden;
  border: 1px solid #d6d6da;
  border-radius: 18px;
  background: var(--cf-surface);
}
.cf-threat-image { height: 220px; overflow: hidden; background: #1e1e1e; }
.cf-threat-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cf-threat-copy { padding: 17px 18px 19px; }
.cf-threat-copy h3 { margin: 0; color: var(--cf-text); font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
.cf-threat-copy p { margin: 6px 0 0; color: var(--cf-muted); font-size: 11px; line-height: 1.5; }
.cf-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--cf-text);
  font-size: 12px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.cf-mega-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #1e1e1e;
  color: #f4f2ef;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
.cf-mega-footer.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
}
.cf-foot-inner { width: min(1180px, 100%); margin: 0 auto; padding: 56px 60px 28px; }
.cf-foot-top {
  display: grid;
  grid-template-columns: 240px repeat(5, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 242, 239, .10);
}
.cf-foot-brand-link { display: inline-block; color: inherit; text-decoration: none; }
.cf-foot-brand-link:hover { opacity: .85; }
.cf-foot-brand img { display: block; width: 120px; height: auto; }
.cf-foot-brand p {
  max-width: 220px;
  margin: 16px 0 0;
  color: rgba(244, 242, 239, .65);
  font-size: 13.5px;
  line-height: 1.5;
}
.cf-foot-col { display: flex; min-width: 0; flex-direction: column; }
.cf-foot-title {
  margin: 0 0 14px;
  color: rgba(244, 242, 239, .50);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cf-foot-title.is-sub { margin-top: 22px; }
.cf-foot-col a {
  padding: 5px 0;
  color: rgba(244, 242, 239, .78);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease;
}
.cf-foot-col a:hover { color: #f4f2ef; }
.cf-foot-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 20px 0 4px;
  border-bottom: 1px solid rgba(244, 242, 239, .10);
}
.cf-foot-hubs a, .cf-foot-bottom a {
  color: rgba(244, 242, 239, .65);
  text-decoration: none;
  transition: color .15s ease;
}
.cf-foot-hubs a { font-size: 12.5px; }
.cf-foot-hubs a:hover, .cf-foot-bottom a:hover { color: #f4f2ef; }
.cf-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: rgba(244, 242, 239, .50);
  font-size: 12.5px;
}
.cf-foot-sep { margin: 0 6px; color: rgba(244, 242, 239, .30); }

.cf-input-row { display: flex; align-items: center; gap: 8px; }

.cf-composer.is-initial .cf-input-row {
  gap: 5px;
  padding: 3px 3px 3px 7px;
  border: 1px solid #dddde2;
  border-radius: 14px;
  background: #fafafa;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cf-composer.is-initial .cf-input-row:hover { border-color: #c8c8ce; background: #fcfcfc; }
.cf-composer.is-initial .cf-input-row:focus-within {
  border-color: #9d90d4;
  background: var(--cf-surface);
  box-shadow: 0 0 0 3px rgba(63, 32, 196, .08);
}

.cf-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cf-text);
  /* 16px minimum: iOS Safari auto-zooms into any focused input under 16px, and
     the wizard autofocuses on start — that zoom hid the fields on mobile. */
  font-size: 16px;
}
.cf-input::placeholder { color: #9a9a9f; }
.cf-input:focus { box-shadow: none; }
.cf-composer:has(.cf-input[aria-invalid="true"]) {
  border-color: #d79b8f;
  box-shadow: 0 0 0 3px rgba(163, 59, 43, .08), 0 12px 36px rgba(0, 0, 0, .10);
}

.cf-helper { margin: 3px 3px 0; color: var(--cf-muted); font-size: 11px; line-height: 1.4; }

.pac-container {
  z-index: 90;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid var(--cf-line);
  border-radius: 12px;
  background: var(--cf-surface);
  box-shadow: 0 18px 50px -28px rgba(40, 30, 90, .4);
  font-family: var(--cf-font);
}
.pac-container.cf-pac-above {
  margin-top: 0;
  transform-origin: bottom center;
}
.pac-item {
  padding: 9px 14px;
  border-top: 1px solid var(--cf-line-soft);
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected { background: var(--cf-bg); }
.pac-item-query { color: var(--cf-text); font-size: 13px; }
.pac-matched { font-weight: 700; }
.pac-icon { display: none; }
.pac-logo::after { margin: 6px 12px; }

.cf-submit, .cf-primary {
  border: 0;
  background: var(--cf-text);
  color: white;
  font-family: var(--cf-font);
  font-weight: 650;
  cursor: pointer;
}

.cf-submit {
  min-width: 94px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 13px;
}

.cf-submit:hover, .cf-primary:hover { background: #303030; }
.cf-submit:disabled, .cf-primary:disabled { cursor: not-allowed; opacity: .45; }
.cf-submit:disabled:hover, .cf-primary:disabled:hover { background: var(--cf-text); }
.cf-submit:focus-visible, .cf-primary:focus-visible, .cf-edit:focus-visible, .cf-scan-error button:focus-visible {
  outline: 3px solid rgba(63, 32, 196, .22);
  outline-offset: 2px;
}

.cf-consent-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.cf-consent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 2px;
}
.cf-consent-heading {
  color: var(--cf-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.cf-consent-required {
  padding: 4px 7px;
  border-radius: 99px;
  background: oklch(58.1% .229 278.57 / .09);
  color: var(--cf-accent-dark);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}
.cf-consent-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid oklch(58.1% .229 278.57 / .17);
  border-radius: 12px;
  background: oklch(58.1% .229 278.57 / .035);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.cf-consent-label:hover { border-color: oklch(58.1% .229 278.57 / .34); }
.cf-consent-label input {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  appearance: none;
  place-content: center;
  border: 1px solid #b8b8bd;
  border-radius: 6px;
  background: var(--cf-surface);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cf-consent-label input::before {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: '';
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.7);
  transition: opacity .15s ease, transform .15s ease;
}
.cf-consent-label input:checked { border-color: var(--cf-accent); background: var(--cf-accent); }
.cf-consent-label input[aria-invalid="true"] { border-color: var(--cf-danger); }
.cf-consent-label input:checked::before { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.cf-consent-label input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(63, 32, 196, .18);
}
.cf-consent-copy { display: grid; gap: 2px; min-width: 0; }
.cf-consent-detail { color: var(--cf-text); font-size: 12.5px; font-weight: 550; line-height: 1.4; }
.cf-consent-legal {
  margin: 0 2px;
  color: #85858a;
  font-size: 9.5px;
  line-height: 1.4;
}
.cf-consent-legal a { color: inherit; text-underline-offset: 2px; }
.cf-consent-legal a:hover { color: var(--cf-text); }
.cf-consent-control .cf-submit {
  width: 100%;
  min-height: 44px;
  background: var(--cf-accent);
}
.cf-consent-control .cf-submit:hover { filter: brightness(.92); }
.cf-consent-control .cf-submit:disabled,
.cf-consent-control .cf-submit:disabled:hover { background: var(--cf-accent); filter: none; }

.cf-error { margin: 8px 3px 0; color: var(--cf-danger); font-size: 12px; font-weight: 550; }

.cf-review { display: grid; gap: 13px; }
.cf-review-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--cf-line-soft);
  border-radius: 13px;
  background: var(--cf-line-soft);
}
.cf-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: var(--cf-surface);
}
.cf-review-row dt { color: var(--cf-muted); font-size: 10px; font-weight: 650; }
.cf-review-row dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--cf-text); font-size: 13px; }
.cf-review-note { margin: 0; color: var(--cf-muted); font-size: 11px; line-height: 1.45; }
.cf-review > .cf-submit { justify-self: end; }

.cf-results {
  width: 100%;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--cf-line);
  border-radius: 16px;
  background: var(--cf-surface);
}

.cf-results-head, .cf-verdict, .cf-progress, .cf-counts, .cf-narrative, .cf-source-note, .cf-findings, .cf-next-steps, .cf-receipt, .cf-scan-error {
  padding-right: 18px;
  padding-left: 18px;
}

.cf-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 17px;
}

.cf-results-head h2 {
  margin: 0;
  font-family: var(--cf-font);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.cf-verdict {
  padding-top: 22px;
  padding-bottom: 22px;
}
.cf-verdict h3 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.cf-verdict > p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cf-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cf-surface-2);
  color: var(--cf-muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.cf-status[data-state="running"] { background: #fff3dc; color: var(--cf-warning); }
.cf-status[data-state="reviewing"] { background: #eeebff; color: var(--cf-accent); }
.cf-status[data-state="complete"] { background: #e5f3eb; color: var(--cf-positive); }
.cf-status[data-state="error"] { background: #fae9e5; color: var(--cf-danger); }

.cf-progress { padding-top: 15px; }
.cf-progress-track { overflow: hidden; height: 3px; border-radius: 99px; background: var(--cf-surface-2); }
.cf-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--cf-text); transition: width .3s ease; }
.cf-progress-track[data-indeterminate="true"] span { width: 28%; animation: cf-progress 1.35s ease-in-out infinite; }
.cf-progress p { margin: 8px 0 0; color: var(--cf-muted); font-size: 11px; line-height: 1.45; }
@keyframes cf-progress { from { transform: translateX(-110%); } to { transform: translateX(360%); } }

.cf-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 0 0;
  padding-right: 0;
  padding-left: 0;
  border-top: 1px solid var(--cf-line-soft);
  border-bottom: 1px solid var(--cf-line-soft);
  background: var(--cf-line-soft);
}
.cf-counts div { padding: 13px 18px; background: var(--cf-surface); }
.cf-counts dt { color: var(--cf-muted); font-size: 9px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.cf-counts dd { margin: 3px 0 0; font-family: var(--cf-font); font-size: 20px; font-weight: 600; }

.cf-narrative {
  position: relative;
  margin: 16px 18px 0;
  padding: 18px 20px 19px;
  overflow: hidden;
  border: 1px solid oklch(58.1% .229 278.57 / .16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, oklch(58.1% .229 278.57 / .10), transparent 38%),
    oklch(58.1% .229 278.57 / .035);
}
.cf-narrative-kicker {
  margin: 0 0 7px;
  color: var(--cf-accent);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.cf-narrative h3 {
  margin: 0;
  color: var(--cf-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.cf-narrative > p:last-child {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--cf-muted);
  font-size: 12px;
  line-height: 1.58;
}

.cf-exposure-summary {
  padding: 15px 18px 16px;
  border-bottom: 1px solid var(--cf-line-soft);
}
.cf-exposure-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.cf-exposure-summary li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--cf-line-soft);
  border-radius: 9px;
  background: var(--cf-bg);
}
.cf-exposure-summary li strong { font-size: 10.5px; font-weight: 650; }
.cf-exposure-summary li span { color: var(--cf-muted); font-size: 9px; }

.cf-source-note { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; color: var(--cf-muted); font-size: 10px; line-height: 1.4; }
.cf-source-note span { color: var(--cf-positive); font-weight: 750; }
.cf-source-note p { margin: 0; }

.cf-findings { border-top: 1px solid var(--cf-line-soft); padding-top: 15px; padding-bottom: 17px; }
.cf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-section-head h3 { margin: 0; font-size: 12px; font-weight: 650; }
.cf-section-head span { color: var(--cf-muted); font-size: 10px; font-weight: 600; }
.cf-empty {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--cf-bg);
  color: var(--cf-muted);
  font-size: 11px;
  line-height: 1.45;
}
.cf-empty p { margin: 0; }

.cf-finding-list { display: grid; gap: 7px; max-height: 300px; overflow: auto; margin: 12px 0 0; padding: 0; list-style: none; }
.cf-finding { padding: 11px 12px; border: 1px solid var(--cf-line-soft); border-radius: 10px; background: var(--cf-surface); }
.cf-finding-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cf-finding-domain { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cf-finding-kind { color: var(--cf-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cf-chip { padding: 3px 6px; border-radius: 5px; background: var(--cf-surface-2); color: var(--cf-muted); font-size: 9px; font-weight: 650; }

.cf-scan-error { padding-top: 13px; padding-bottom: 13px; border-top: 1px solid #edc9c1; background: #fff6f3; color: var(--cf-danger); }
.cf-scan-error p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; }
.cf-scan-error button { padding: 0; border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 650; text-decoration: underline; cursor: pointer; }

.cf-next-steps {
  padding-top: 22px;
  padding-bottom: 23px;
  border-top: 1px solid var(--cf-line-soft);
  background: #f7f7f8;
}
.cf-next-steps > h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.cf-next-steps > ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.cf-next-steps li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--cf-line-soft);
  border-radius: 12px;
  background: var(--cf-surface);
}
.cf-next-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--cf-text);
  color: white;
  font-size: 8px;
  font-weight: 750;
}
.cf-next-steps li strong { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 650; line-height: 1.3; }
.cf-next-steps li p { margin: 5px 0 0; color: var(--cf-muted); font-size: 10px; line-height: 1.45; }

.cf-receipt { padding-top: 26px; padding-bottom: 25px; border-top: 0; background: var(--cf-text); color: white; }
.cf-receipt-kicker { margin: 0 0 5px; color: #b9f5d6; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.cf-receipt h3 { margin: 0; font-family: var(--cf-font); font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.cf-receipt > p:not(.cf-receipt-kicker):not(.cf-fineprint) { max-width: 650px; margin: 9px 0 16px; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.5; }
.cf-primary { width: 100%; min-height: 44px; padding: 0 15px; border-radius: 11px; font-size: 12px; }
.cf-receipt .cf-primary { background: white; color: var(--cf-text); }
.cf-receipt .cf-primary:hover { background: #efeff1; }
.cf-fineprint { margin: 9px 0 0; color: rgba(255, 255, 255, .55); font-size: 9.5px; line-height: 1.4; text-align: center; }

.cf-plan-picker {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.cf-plan-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cf-plan-picker-head > div:first-child { display: grid; gap: 2px; }
.cf-plan-picker-head strong { font-size: 12px; font-weight: 650; }
.cf-plan-picker-head > div:first-child span { color: rgba(255, 255, 255, .6); font-size: 9.5px; }
.cf-billing-toggle {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
}
.cf-billing-toggle button {
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
}
.cf-billing-toggle button[aria-pressed="true"] { background: white; color: var(--cf-text); }
.cf-billing-toggle button span { color: #b9f5d6; font-size: 8px; }
.cf-billing-toggle button[aria-pressed="true"] span { color: var(--cf-positive); }
.cf-billing-toggle button:focus-visible { outline: 3px solid rgba(185, 245, 214, .28); outline-offset: 2px; }
.cf-plan-options {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .1);
}
.cf-plan-option {
  display: grid;
  grid-template-columns: 17px minmax(110px, 1fr) minmax(76px, .65fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 13px;
  background: #242424;
  cursor: pointer;
  transition: background-color .15s ease;
}
.cf-plan-option:hover, .cf-plan-option:has(input:checked) { background: #2b2b2b; }
.cf-plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.cf-plan-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
}
.cf-plan-check::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  content: '';
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}
.cf-plan-option input:checked + .cf-plan-check { border-color: white; }
.cf-plan-option input:checked + .cf-plan-check::after { opacity: 1; transform: scale(1); }
.cf-plan-option:has(input:focus-visible) { outline: 3px solid rgba(185, 245, 214, .26); outline-offset: -3px; }
.cf-plan-name { display: flex; min-width: 0; align-items: center; gap: 7px; }
.cf-plan-name strong { font-size: 11.5px; font-weight: 650; }
.cf-plan-name small {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(185, 245, 214, .14);
  color: #b9f5d6;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cf-plan-coverage { color: rgba(255, 255, 255, .56); font-size: 9.5px; }
.cf-plan-price { min-width: 70px; font-size: 14px; font-weight: 650; text-align: right; }
.cf-plan-price small { margin-left: 2px; color: rgba(255, 255, 255, .5); font-size: 8.5px; font-weight: 500; }
.cf-billing-note { margin: 9px 13px 0; color: rgba(255, 255, 255, .58); font-size: 9px; line-height: 1.4; }
.cf-plan-picker > .cf-primary { width: calc(100% - 26px); margin: 9px 13px 13px; }
.cf-checkout-error { margin: -3px 13px 12px; color: #ffc8bd; font-size: 10px; line-height: 1.4; }
.cf-checkout-error[data-state="notice"] { color: #b9f5d6; }

.cf-sticky-cta {
  position: fixed;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom)); /* clear the iOS home indicator */
  left: 50%;
  z-index: 45;
  display: flex;
  width: min(820px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 11px 10px 16px;
  border: 1px solid #303033;
  border-radius: 16px;
  background: rgba(23, 23, 23, .96);
  color: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  backdrop-filter: blur(14px);
}
.cf-sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}
.cf-sticky-cta > div { display: grid; gap: 2px; min-width: 0; }
.cf-sticky-cta strong { font-size: 12px; font-weight: 650; }
.cf-sticky-cta span { color: rgba(255, 255, 255, .58); font-size: 10px; }
.cf-sticky-cta .cf-primary {
  width: auto;
  min-width: 142px;
  flex: 0 0 auto;
  background: white;
  color: var(--cf-text);
}
.cf-sticky-cta .cf-primary:hover { background: #efeff1; }
.cf-sticky-cta .cf-primary span { color: inherit; }

/* Results are a second, document-scrolling mode—not a panel below the chat. */
body[data-cf-mode="results"] {
  overflow-y: auto;
}

body[data-cf-mode="results"] .cf-shell {
  height: auto;
  min-height: calc(100dvh - 58px);
  padding: 34px 0 72px;
  overflow: visible;
}

body[data-cf-mode="results"] .cf-chat,
body[data-cf-mode="results"] .cf-learn-band,
body[data-cf-mode="results"] .cf-mega-footer {
  display: none !important;
}

body[data-cf-mode="results"] .cf-results {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .06);
  animation: cf-results-enter .22s ease both;
}

body[data-cf-mode="results"] .cf-finding-list {
  max-height: none;
  overflow: visible;
}

@keyframes cf-results-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .cf-foot-inner { padding: 38px 24px 24px; }
  .cf-foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
  .cf-exposure-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-operation-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .cf-operation-timeline::before { display: none; }
}

@media (max-width: 1060px) {
  .cf-scan-rail { display: none !important; }
  body[data-cf-mode="wizard"] .cf-layout {
    display: block;
    width: min(var(--cf-width), calc(100% - 36px));
  }
  body[data-cf-mode="results"] .cf-layout {
    display: block;
    width: min(860px, calc(100% - 36px));
  }
}

@media (max-width: 600px) {
  .cf-header { min-height: 54px; }
  .cf-header-inner { width: calc(100% - 28px); min-height: 54px; }
  .cf-layout:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
    height: calc(100dvh - 54px);
  }
  .cf-shell:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) {
    padding-top: 14px;
    padding-bottom: 10px;
  }
  /* Typing steps (exclude review + landing): keep the viewport-locked column,
     but show ONLY the current question — hide the older chat turns — so the
     flex column packs the question + input into the TOP third of the screen.
     The keyboard fills the bottom half and its AutoFill bar sits just above it,
     so neither can ever reach the input. No offsets, no scroll, no iOS quirks —
     it works by layout physics. Prior answers are recapped on the review step.
     Desktop is untouched (this is inside the max-width:600px query). */
  .cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden]):not(.is-review)) .cf-conversation {
    max-height: none;
    overflow: visible;
  }
  .cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden]):not(.is-review)) .cf-conversation > li:not(:last-child) {
    display: none;
  }
  /* Give the anchored question+input a little breathing room from the header
     instead of jamming them against it. */
  .cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden]):not(.is-review)) .cf-intro {
    margin-bottom: 8px;
    padding-top: 2vh;
  }
  .cf-brand img { height: 21px; }
  .cf-nav { gap: 14px; }
  .cf-nav-link { display: none; }
  .cf-account { font-size: 10px; }
  .cf-layout { width: calc(100% - 28px); }
  body[data-cf-mode="results"] .cf-layout { width: calc(100% - 28px); }
  body[data-cf-mode="results"] .cf-shell {
    min-height: calc(100dvh - 54px);
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .cf-shell { padding-top: 36px; padding-bottom: 180px; }
  .cf-intro { margin-bottom: 38px; text-align: left; }
  .cf-intro.is-collapsed { margin-bottom: 24px; }
  .cf-intro h1 { font-size: 36px; }
  .cf-hero-lead { margin-left: 0; font-size: 14px; }
  .cf-hero-promises { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .cf-hero-promises li {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding: 8px 0;
  }
  .cf-hero-promises li + li { border-top: 1px solid var(--cf-line-soft); border-left: 0; }
  .cf-hero-promises strong { margin: 0; font-size: 12.5px; }
  .cf-active-progress {
    justify-content: flex-start;
    padding: 9px 11px;
    font-size: 10px;
  }
  .cf-progress-dots i { width: 13px; }
  .cf-promise-description { display: none; }
  .cf-conversation { gap: 22px; }
  .cf-chat:has(.cf-intro.is-collapsed):has(.cf-composer:not([hidden])) .cf-conversation {
    max-height: min(31dvh, 250px);
  }
  .cf-bubble { font-size: 14px; }
  .cf-welcome { max-width: calc(100% - 42px); }
  .cf-composer { right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 28px); padding: 10px; border-radius: 17px; }
  .cf-composer.is-initial { width: 100%; margin-top: 20px; }
  .cf-mode-grid { grid-template-columns: 1fr; }
  .cf-mode-option { padding: 9px; }
  .cf-privacy-drawer { width: 100%; border-left: 0; }
  .cf-input-row { gap: 5px; }
  .cf-input { height: 42px; font-size: 16px; } /* keep >=16px so iOS doesn't zoom on focus */
  .cf-submit { min-width: 82px; min-height: 40px; padding: 0 13px; }
  .cf-consent-control .cf-submit { justify-self: stretch; }
  .cf-results { margin-top: 25px; }
  .cf-verdict { padding-top: 19px; padding-bottom: 20px; }
  .cf-verdict h3 { font-size: 27px; }
  .cf-counts div { padding: 12px 14px; }
  .cf-next-steps > ol { grid-template-columns: 1fr; gap: 7px; }
  .cf-next-steps li { padding: 12px; }
  .cf-receipt { padding-top: 22px; padding-bottom: 22px; }
  .cf-receipt h3 { font-size: 22px; }
  .cf-plan-picker-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .cf-billing-toggle { align-self: flex-start; }
  .cf-plan-option {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 62px;
  }
  .cf-plan-coverage { grid-column: 2; margin-top: -6px; }
  .cf-plan-price { grid-column: 3; grid-row: 1 / span 2; }
  .cf-sticky-cta {
    bottom: calc(9px + env(safe-area-inset-bottom));
    width: calc(100% - 18px);
    gap: 10px;
    padding: 9px 9px 9px 12px;
    border-radius: 14px;
  }
  .cf-sticky-cta > div span { display: none; }
  .cf-sticky-cta strong { font-size: 10.5px; }
  .cf-sticky-cta .cf-primary { min-width: 116px; min-height: 40px; padding: 0 11px; }
  .cf-review > .cf-submit { justify-self: stretch; width: 100%; }
  .cf-shell:has(.cf-composer.is-initial) { padding-bottom: 38px; }
  .cf-learn-inner { width: calc(100% - 28px); }
  .cf-learn-band summary { min-height: 82px; padding: 15px 0; }
  .cf-learn-heading strong { font-size: 15px; }
  .cf-learn-heading small { font-size: 10.5px; }
  .cf-learn-content { padding: 14px 0 24px; }
  .cf-exposure-guide, .cf-operation, .cf-threats { padding: 22px 18px; border-radius: 16px; }
  .cf-exposure-guide-head h2, .cf-operation-head h2, .cf-threats-head h2 { font-size: 22px; }
  .cf-exposure-guide-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .cf-exposure-guide-grid article { padding: 14px; }
  .cf-operation-timeline { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .cf-operation-timeline li { grid-template-columns: 15px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; }
  .cf-operation-dot { grid-column: 1; grid-row: 1 / span 4; margin-top: 1px; }
  .cf-operation-phase, .cf-operation-timeline strong, .cf-operation-timeline p { grid-column: 2; }
  .cf-operation-phase { margin-top: 0; }
  .cf-operation-timeline strong { margin-top: 2px; }
  .cf-operation-note { margin-top: 4px; }
  .cf-threat-grid { grid-template-columns: 1fr; }
  .cf-threat-image { height: 200px; }
  .cf-foot-inner { padding: 36px 20px 20px; }
  .cf-foot-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .cf-foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
  /* Legibility floor: the funnel's smallest meta/label text (7.5–10px) was
     near-unreadable on phones. Lift the mobile-rendered copy toward a ~12px
     floor; compact uppercase micro-labels and tight plan-card badges stay a
     touch smaller so they don't break their flex/grid rows. */
  .cf-source-note,
  .cf-section-head span,
  .cf-next-steps li p,
  .cf-exposure-summary li strong,
  .cf-checkout-error { font-size: 12px; }
  .cf-exposure-summary li span,
  .cf-fineprint,
  .cf-billing-note,
  .cf-plan-coverage { font-size: 11.5px; }
  .cf-counts dt,
  .cf-finding-kind,
  .cf-chip,
  .cf-receipt-kicker { font-size: 11px; }
  .cf-plan-tag,
  .cf-plan-price small,
  .cf-billing-toggle button span { font-size: 10.5px; }
}

@media (max-width: 420px) {
  .cf-foot-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cf-progress-track[data-indeterminate="true"] span { width: 40%; transform: none; }
}
