/* FoundByChat brand layer: fonts, type roles and the signature components.
   Import tokens.css first. Every template in brand/ builds on this file. */

@import url("../tokens/tokens.css");

@font-face {
  font-family: "Funnel Sans";
  src: url("../fonts/FunnelSans[wght].ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Funnel Sans";
  src: url("../fonts/FunnelSans-Italic[wght].ttf") format("truetype");
  font-weight: 300 800;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "Faustina";
  src: url("../fonts/Faustina-Italic[wght].ttf") format("truetype");
  font-weight: 300 800;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/SplineSansMono[wght].ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

.fbc {
  font-family: var(--fbc-font-sans);
  color: var(--fbc-text);
  background: var(--fbc-bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

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

.fbc--dark {
  color: var(--fbc-paper);
  background: var(--fbc-ink-900);
}

/* Type roles */

.fbc-display,
.fbc-h1,
.fbc-h2,
.fbc-h3,
.fbc-h4 {
  margin: 0;
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

.fbc-display { font-size: 78px; line-height: 0.94; letter-spacing: -0.055em; }
.fbc-h1 { font-size: 64px; line-height: 0.98; letter-spacing: -0.05em; }
.fbc-h2 { font-size: 46px; line-height: 1.05; letter-spacing: -0.045em; }
.fbc-h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.fbc-h4 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }

.fbc-lead { margin: 0; font-size: 20px; line-height: 1.55; letter-spacing: -0.01em; color: var(--fbc-ink-700); }
.fbc-body { margin: 0; font-size: 16px; line-height: 1.6; }
.fbc-small { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fbc-text-secondary); }
.fbc-caption { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--fbc-text-muted); }

.fbc-eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fbc-accent-text);
}

.fbc--dark .fbc-eyebrow { color: var(--fbc-accent-on-dark); }

.fbc-data {
  font-family: var(--fbc-font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums slashed-zero;
}

.fbc-num { font-variant-numeric: tabular-nums; }

/* The accent: Faustina italic, for the one phrase that points at the customer */
.fbc-accent {
  font-family: var(--fbc-font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--fbc-accent);
  padding-right: 0.04em;
}

.fbc--dark .fbc-accent { color: var(--fbc-accent-on-dark); }

/* The highlight: a brand name the AI actually named */
.fbc-highlight {
  background: var(--fbc-highlight);
  color: var(--fbc-ink-900);
  border-radius: 4px;
  padding: 0.04em 0.22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Buttons */

.fbc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--fbc-radius-md);
  font: 600 16px/1 var(--fbc-font-sans);
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, #162E3C, #0F2230);
  box-shadow: var(--fbc-shadow-button-ink);
  text-decoration: none;
  white-space: nowrap;
}

.fbc-btn--flame {
  background: var(--fbc-flame-600);
  box-shadow: var(--fbc-shadow-button-flame);
}

.fbc-btn--quiet {
  color: var(--fbc-ink-900);
  background: #fff;
  box-shadow: var(--fbc-shadow-ring);
}

.fbc-btn svg { width: 16px; height: 16px; }

/* Chips */

.fbc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--fbc-radius-xs);
  font: 500 12.5px/1 var(--fbc-font-sans);
  color: var(--fbc-ink-600);
  background: var(--fbc-tray);
  white-space: nowrap;
}

.fbc-chip--named { color: var(--fbc-named); background: var(--fbc-named-bg); }

.fbc-chip--not-named {
  font-weight: 600;
  color: var(--fbc-not-named);
  background: #fff;
  box-shadow: 0 0 0 1px #F6CDB3;
}

.fbc-chip--not-named::before,
.fbc-chip--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fbc-chip--not-named::before { background: var(--fbc-not-named-fill); }

.fbc-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--fbc-radius-xs);
  font: 600 12px/1 var(--fbc-font-sans);
  color: var(--fbc-ink-600);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 36, 49, 0.08);
}

/* Surfaces */

.fbc-card {
  background: #fff;
  border-radius: var(--fbc-radius-lg);
  box-shadow: var(--fbc-shadow-card);
  border: 1px solid rgba(16, 36, 49, 0.06);
}

.fbc-tray {
  background: #F5F4EF;
  border: 1px solid rgba(16, 36, 49, 0.1);
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(16, 36, 49, 0.05), 0 12px 28px -8px rgba(16, 36, 49, 0.12), 0 28px 56px -22px rgba(16, 36, 49, 0.2);
}

/* The Answer Card: a real AI answer, shown as product UI */

.fbc-answer { width: 100%; margin: 0; }

.fbc-answer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 10px;
}

.fbc-answer__engine {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: #1E645B;
  flex: none;
}

.fbc-answer__engine img,
.fbc-answer__engine svg { width: 18px; height: 18px; }

.fbc-answer__engine--google { background: #fff; box-shadow: var(--fbc-shadow-ring); }

.fbc-answer__engine-name { font: 600 14px/20px var(--fbc-font-sans); color: var(--fbc-ink-900); }

.fbc-answer__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/20px var(--fbc-font-sans);
  color: var(--fbc-text-muted);
}

.fbc-answer__panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 36, 49, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 36, 49, 0.04);
}

.fbc-answer__body { padding: 20px 20px 4px; }

.fbc-answer__question {
  margin: 0;
  font: 600 18px/1.35 var(--fbc-font-sans);
  letter-spacing: -0.02em;
  color: var(--fbc-ink-900);
  text-wrap: balance;
}

.fbc-answer__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.fbc-answer__label {
  margin: 0;
  font: 600 11px/16px var(--fbc-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fbc-text-muted);
}

.fbc-answer__count { margin: 0; font: 500 12px/16px var(--fbc-font-sans); color: var(--fbc-text-muted); }

.fbc-answer__list { list-style: none; margin: 6px 0 0; padding: 0; }

.fbc-answer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #F0F1EE;
}

.fbc-answer__row:first-child { border-top: 0; }

.fbc-answer__rank {
  width: 12px;
  flex: none;
  text-align: center;
  font: 560 13px/20px var(--fbc-font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--fbc-ink-400);
}

.fbc-answer__logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fbc-shadow-ring);
}

.fbc-answer__logo img { width: 18px; height: 18px; border-radius: 3px; }

.fbc-answer__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 600 15px/20px var(--fbc-font-sans);
  color: var(--fbc-ink-900);
}

.fbc-answer__gap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #FFF7F2;
  border-top: 1px dashed #F1B994;
}

.fbc-answer__gap .fbc-answer__logo {
  color: #E0561C;
  border: 1px dashed #EEA177;
  box-shadow: none;
}

.fbc-answer__gap .fbc-answer__logo svg { width: 15px; height: 15px; }

.fbc-answer__sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 10px 6px;
  font: 400 12.5px/20px var(--fbc-font-sans);
  color: var(--fbc-text-muted);
}

.fbc-answer__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--fbc-ink-600);
}

.fbc-answer__source img { width: 16px; height: 16px; border-radius: 3px; }

@media (max-width: 520px) {
  .fbc-answer__body { padding: 16px 16px 4px; }
  .fbc-answer__gap { padding: 10px 16px; }
  .fbc-answer__question { font-size: 17px; }
  .fbc-answer__brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .fbc-answer__brand .fbc-chip { height: auto; padding: 0; background: none; box-shadow: none; }
  .fbc-answer__brand .fbc-chip--not-named { padding: 0; }
}

/* Logo helpers */

.fbc-logo { display: block; height: 32px; width: auto; }
.fbc-symbol { display: block; height: 32px; width: auto; }
