:root {
  --ink: #15171A;
  --muted: #5B616B;
  --subtle: #8A909A;
  --line: #E9EBEE;
  --blue: #2F5DEC;
  --blue-hover: #2449C9;
  --blue-deep: #1B3BB5;
  --blue-tint: #EEF3FF;
  --fdbc-logo-background: #EEF3FF;
  --blue-soft: #DCE6FF;
  --blue-mid: #C9D8FF;
  --dot: #C4C9D0;
  --white: #FFFFFF;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-mono: 'Azeret Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

img { display: block; }

.fdbc-img-holder {
  background-color: var(--fdbc-logo-background);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1 0 auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------- Shared type ---------- */
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--muted);
  text-wrap: pretty;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: var(--white);
  background: var(--blue);
}
.btn:hover { background: var(--blue-hover); color: var(--white); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn--sm { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 26px; border-radius: 12px; font-size: 16px; }
.btn--glow { box-shadow: 0 14px 32px -12px rgba(47, 93, 236, .6); }

.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--white); color: var(--ink); }
.btn--dark:focus-visible { outline-color: var(--white); }

/* ---------- Notice ---------- */
.notice {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  padding: 10px 24px;
}
.notice a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.notice a:hover { color: var(--blue-soft); }
.notice a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nav__home { display: flex; }
.nav__logo { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.nav__link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
}
.nav__link:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 48px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 48px;
  align-items: end;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 84px);
  line-height: .96;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 460px;
}
.hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.store-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.store-note strong { color: var(--ink); }

/* ---------- Demo stage ---------- */
.stage {
  position: relative;
  border-radius: 20px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  padding: clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}

.mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-right: 8px;
}
.mock__bar { display: flex; align-items: center; gap: 8px; }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.mock__url {
  margin-left: 8px;
  height: 26px;
  flex: 1;
  max-width: 360px;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.mock__line { border-radius: 4px; background: var(--blue-soft); }
.mock__line--title { height: 16px; width: 36%; }
.mock__line--a { height: 12px; width: 70%; }
.mock__line--b { height: 12px; width: 52%; }
.mock__video {
  height: clamp(120px, 22vw, 260px);
  border-radius: 14px;
  background: var(--blue-soft);
}
.mock__buttons { display: flex; gap: 8px; }
.mock__button { height: 36px; width: 110px; border-radius: 9px; background: var(--blue-soft); }
.mock__button--primary { background: var(--blue-mid); }
.mock__badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.mock__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.widget-dock {
  position: relative;
  display: flex;
  align-items: center;
}
.widget-dock__tab {
  width: 44px;
  height: 52px;
  border: 1px solid #DFE2E6;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: -6px 0 24px rgba(21, 23, 26, .1);
}
.widget-dock__tab img { height: 20px; width: auto; }

/* Real widget mounts inside this frame (360 x 642). */
.widget-frame {
  width: 360px;
  height: 642px;
  max-width: calc(100vw - 120px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 64px rgba(21, 23, 26, .22);
}
.widget-frame > * { width: 100%; height: 100%; }
.widget-frame:empty::after {
  content: "Widget";
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .mock { display: none; }
  .widget-frame { max-width: calc(100vw - 140px); }
  .hero__top, .goodfor__panel, .install__panel { grid-template-columns: minmax(0, 1fr); }
  .hero__side { max-width: none; }
  .nav { align-items: flex-start; }
  .nav__links { gap: 6px 16px; }
  .goodfor__panel { padding: 28px 22px; }
}

/* ---------- How it works ---------- */
.how { padding-top: 88px; padding-bottom: 24px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head .h2 { max-width: 18ch; }
.section-head .lead { max-width: 38ch; }

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.stage-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
}
.stage-card__meta { display: flex; justify-content: space-between; align-items: center; }
.stage-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.stage-card__unit {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.meter {
  position: relative;
  height: 4px;
  background: repeating-linear-gradient(90deg, #E3E6EA 0 9px, transparent 9px 12px);
}
.meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: repeating-linear-gradient(90deg, var(--blue) 0 9px, transparent 9px 12px);
}
.stage-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.stage-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- What it tells you ---------- */
.goodfor { padding-top: 72px; padding-bottom: 24px; }
.goodfor__panel {
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 56px;
  align-items: start;
}
.goodfor__intro { display: flex; flex-direction: column; gap: 18px; }
.goodfor__intro .h2 { max-width: 14ch; }
.goodfor__intro .lead { color: #B9BEC6; max-width: 40ch; }

.caps { display: flex; flex-direction: column; }
.caps__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid #2A2D31;
}
.caps__row--head {
  padding: 0 0 10px;
  border-top: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--subtle);
}
.caps__row--head span:not(:first-child) { text-align: right; }
.caps__name { font-size: 17px; font-weight: 700; }
.caps__val {
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: right;
  min-width: 88px;
}
.caps__note { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--subtle); }

/* ---------- Controls ---------- */
.controls { padding-top: 72px; padding-bottom: 24px; }
.controls__title {
  margin: 0 0 32px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.04;
  max-width: 20ch;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feature {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.feature__text { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--muted); }

/* ---------- Install ---------- */
.install { padding-top: 72px; padding-bottom: 24px; }
.install__panel {
  background: var(--blue);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}
.install__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.install__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.install__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--blue-soft);
  max-width: 40ch;
  text-wrap: pretty;
}
.install__art { display: flex; justify-content: center; }
.install__badge {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -20px rgba(21, 23, 26, .4);
}
.install__badge img { width: 120px; height: auto; }

/* Responsive ad placements */
.cio-placement {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 36px auto;
  overflow: hidden;
}
.cio-placement__align {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.cio-placement__slot { max-width: 100%; }
.cio-placement__slot img { max-width: 100%; height: auto; }
.cio-placement--wide { max-width: 970px; min-height: 250px; margin-top: 32px; margin-bottom: 36px; }
@media (max-width: 783px) {
  .cio-placement { display: none; }
}
@media (max-width: 1025px) {
  .cio-placement--wide { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__logo { height: 26px; width: auto; }
.footer__links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer__links a:hover { color: var(--blue); }
.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}

/* ---------- How-to-use and framework pages ---------- */
.htu-intro, .htu-thank-you {
  padding-top: 64px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.htu-intro .h2, .htu-thank-you .h2 { max-width: 18ch; }
.htu-intro .lead, .htu-thank-you .lead { max-width: 58ch; }
.htu-welcome {
  width: 100%;
  margin-top: clamp(32px, 6vw, 64px);
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 36px;
  border: 1px solid var(--blue-soft);
  border-radius: 24px;
  background: linear-gradient(115deg, var(--blue-tint), #F8FAFF 72%);
}
.htu-welcome__copy { max-width: 760px; }
.htu-welcome__copy .eyebrow { margin-bottom: 14px; }
.htu-welcome__copy h1 { max-width: 18ch; margin: 0; font: 800 clamp(36px, 5.5vw, 62px)/1.02 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.htu-welcome__copy .lead { max-width: 58ch; margin-top: 18px; }
.htu-welcome__link { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--blue); font-size: 14px; font-weight: 800; }
.htu-welcome__link span { font-size: 18px; }
.htu-welcome__mark { display: grid; width: 180px; height: 180px; place-items: center; border: 1px solid rgba(47, 93, 236, .12); border-radius: 50%; background: rgba(255, 255, 255, .72); }
.htu-welcome__mark img { width: 120px; height: auto; }
.htu-steps {
  padding-top: 36px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 14px;
}
.htu-step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.htu-step__num { color: var(--blue); font: 600 12px var(--font-mono); }
.htu-step__title { margin: 0 0 8px; font: 700 21px/1.2 var(--font-display); }
.htu-step__text { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.55; }
.htu-outro { margin-top: 20px; margin-bottom: 72px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.htu-outro .eyebrow { margin-bottom: 10px; }
.htu-outro h2 { max-width: 24ch; font-size: clamp(24px, 3vw, 34px); }
.htu-outro .lead { max-width: 60ch; margin-top: 10px; font-size: 14px; }
.htu-outro__link { flex: 0 0 auto; color: var(--blue); font-size: 14px; font-weight: 800; }
.htu-outro__link span { margin-left: 5px; }
@media (max-width: 767px) {
  .htu-welcome { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .htu-welcome__mark { order: -1; justify-self: end; }
  .htu-outro { align-items: flex-start; flex-direction: column; }
}
.legal-page {
  max-width: 1200px;
  margin-top: 40px;
  margin-bottom: 72px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #F8F9FB;
}
.legal-page__header { margin-bottom: 30px; }
.legal-page__header h1 { margin: 12px 0 0; font: 800 clamp(34px, 5vw, 58px)/1.02 var(--font-display); letter-spacing: -.03em; }
.legal-page__content { color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-page__content img { max-width: 100%; height: auto; }
.legal-page__content h2, .legal-page__content h3 { color: var(--ink); font-family: var(--font-display); line-height: 1.2; }
.legal-page__content a { text-decoration: underline; }

/* ---------- Exit survey ---------- */
.survey-page { max-width: 960px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 72px; }
.survey-intro { max-width: 700px; margin: 0 auto; text-align: center; }
.survey-intro .eyebrow { margin-bottom: 14px; }
.survey-intro h1 {
  margin: 0;
  font: 800 clamp(36px, 6vw, 60px)/1.02 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.survey-intro__copy { margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.survey-page > .cio-placement { margin-top: 30px; margin-bottom: 30px; }
.survey-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(21, 23, 26, .07);
}
.survey-card__heading { margin-bottom: 28px; }
.survey-card__heading h2, .survey-result h2 {
  margin: 0;
  font: 800 clamp(24px, 4vw, 32px)/1.12 var(--font-display);
  letter-spacing: -.025em;
}
.survey-card__heading p, .survey-result > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.survey-alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 10px; background: #FFF1F0; color: #9F3027; font-size: 14px; font-weight: 700; }
.survey-questions { display: grid; gap: 24px; }
.survey-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.survey-question legend { width: 100%; margin-bottom: 12px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.45; }
.survey-options { display: grid; gap: 9px; }
.survey-option__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FAFBFD;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color .15s ease, background-color .15s ease;
}
.survey-option__label:hover { border-color: var(--blue-mid); background: var(--blue-tint); }
.survey-option__label input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.survey-option__label input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.survey-option__detail { padding: 10px 0 0 30px; }
.survey-option__detail[hidden] { display: none; }
.survey-question textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font: 500 14px/1.5 var(--font-body);
  resize: vertical;
}
.survey-question textarea:focus { border-color: var(--blue); outline: 3px solid rgba(47, 93, 236, .12); }
.survey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.survey-actions .btn { min-height: 46px; padding-inline: 22px; border: 0; border-radius: 10px; cursor: pointer; font: 800 14px var(--font-body); }
.survey-actions__skip { color: var(--muted); font-size: 13px; font-weight: 700; }
.survey-actions__skip:hover { color: var(--blue); }
.survey-result { text-align: center; }
.survey-result .eyebrow { margin: 18px 0 8px; }
.survey-result__mark { display: grid; width: 52px; height: 52px; margin: 0 auto; place-items: center; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-size: 26px; font-weight: 800; }
.survey-result .btn { margin-top: 24px; }
.survey-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; }

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 14px; }
  .nav__links { width: 100%; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .caps__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .caps__val { min-width: 58px; font-size: 12px; }
  .caps__name { font-size: 13px; }
  .stage-card { padding: 20px; }
  .install__badge { width: 160px; height: 160px; }
  .install__badge img { width: 96px; }
  .htu-welcome { gap: 18px; }
  .htu-welcome__mark { width: 112px; height: 112px; grid-row: 1; justify-self: end; }
  .htu-welcome__mark img { width: 76px; }
  .htu-outro { padding-inline: 0; }
  .survey-page { padding-bottom: 48px; }
  .survey-actions { align-items: stretch; flex-direction: column; }
  .survey-actions .btn { justify-content: center; }
}
