:root {
  --bf-ink: #2B231C;
  --bf-bg: #FAF6F0;
  --bf-muted: #7A6E64;
  --bf-border: #E6DED2;
  --bf-display: "Bricolage Grotesque", system-ui, sans-serif;
  --bf-body: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bf-bg);
  color: var(--bf-ink);
  font-family: var(--bf-body);
}
[hidden] { display: none !important; }
.bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Decoration */
.bf-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bf-shape { position: absolute; display: block; animation: bf-float 7s ease-in-out infinite; }
.bf-shape--sun { width: 180px; height: 180px; border-radius: 50%; background: #F3D58C; top: -50px; right: -60px; animation-duration: 8s; }
.bf-shape--mint { width: 120px; height: 120px; border-radius: 50%; background: #9ED9D6; top: 360px; left: -50px; animation-duration: 9s; animation-delay: -2s; }
.bf-shape--coral { width: 26px; height: 26px; border-radius: 8px; background: #E0684A; top: 190px; right: 14%; animation-duration: 5s; animation-delay: -1s; }
.bf-shape--leaf { width: 70px; height: 70px; border-radius: 50% 50% 8px 50%; background: #C9C2EC; top: 640px; right: 6%; animation-duration: 7s; animation-delay: -3s; }
.bf-shape--dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bf-ink); top: 120px; left: 12%; animation-duration: 6s; animation-delay: -4s; }
@keyframes bf-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

/* Layout */
.bf-wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.bf-header { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.bf-logo { height: 73px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bf-logo-main { display: block; width: 8.25rem; height: auto; }
.bf-logo-optimized { display: block; width: 6.25rem; height: auto; margin: -.5rem 0 0 .2rem; }
.bf-beta {
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--bf-ink);
}
.bf-main { padding: 56px 0 80px; }
.bf-kicker { margin: 0 0 14px; font-weight: 600; font-size: 14px; color: #B5502F; }
.bf-h1 {
  margin: 0 0 22px; font-family: var(--bf-display); font-weight: 800;
  font-size: clamp(40px, 7vw, 64px); line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
.bf-intro { max-width: 560px; font-size: 17px; line-height: 1.55; color: #4A3F36; }
.bf-intro p { margin: 0 0 12px; }
.bf-intro p:last-child { margin-bottom: 0; }

/* Cards */
.bf-card {
  margin-top: 40px; background: #fff; border-radius: 28px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 1px 0 #EAE3D8, 0 20px 50px -24px rgba(110, 90, 60, .35);
}
.bf-field { display: flex; flex-direction: column; gap: 10px; }
.bf-label { font-weight: 600; font-size: 14px; }
.bf-optional { font-weight: 400; color: var(--bf-muted); }

.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 999px;
  border: 1.5px solid var(--bf-border); background: #fff; color: var(--bf-ink);
  font: 500 15px var(--bf-body); cursor: pointer; transition: transform .15s;
}
.bf-chip:hover { transform: translateY(-2px); }
.bf-chip[aria-pressed="true"] { border-color: var(--bf-ink); background: #F6EEE2; }
.bf-chip:focus-visible, .bf-btn:focus-visible, .bf-link:focus-visible { outline: 2px solid var(--bf-ink); outline-offset: 3px; }
.bf-mark { display: block; width: 10px; height: 10px; }
.bf-mark--circle { border-radius: 50%; }
.bf-mark--diamond { border-radius: 2px; transform: rotate(45deg); }
.bf-mark--square { border-radius: 2px; }
.bf-mark--leaf { border-radius: 50% 50% 2px 50%; }

.bf-input {
  width: 100%; border: 1.5px solid var(--bf-border); background: #FCF9F5; color: var(--bf-ink);
  font: 400 16px/1.5 var(--bf-body); outline: none; border-radius: 18px; padding: 16px 18px;
}
.bf-input::placeholder { color: var(--bf-muted); }
.bf-input:focus { border-color: var(--bf-ink); background: #fff; }
.bf-textarea { min-height: 130px; resize: vertical; }
.bf-input--small { border-radius: 14px; padding: 14px 16px; }
.bf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bf-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.bf-note { font-size: 13px; color: var(--bf-muted); }
.bf-btn {
  border: 1.5px solid var(--bf-ink); background: var(--bf-ink); color: #fff; cursor: pointer;
  font: 600 16px var(--bf-body); padding: 15px 26px; border-radius: 999px;
  transition: transform .15s, opacity .15s;
}
.bf-btn:hover:not(:disabled) { transform: translateY(-2px) rotate(-1deg); }
.bf-btn:disabled { opacity: .35; cursor: not-allowed; }
.bf-btn--small { padding: 12px 20px; font-size: 15px; }
.bf-btn--outline { background: transparent; color: var(--bf-ink); }
.bf-btn--gold { background: #F0C46A; border-color: #F0C46A; color: var(--bf-ink); align-self: flex-start; }
.bf-error { margin: 0; font-size: 14px; font-weight: 500; color: #B03A1E; }

/* Chat */
.bf-chat { padding: 24px; gap: 16px; }
.bf-chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #EFE9E0; }
.bf-avatar { width: 38px; height: 38px; border-radius: 50%; background: #4FBFC0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; }
.bf-avatar i { display: block; width: 5px; height: 7px; border-radius: 3px; background: #fff; }
.bf-chat-title { font-family: var(--bf-display); font-weight: 700; font-size: 16px; }
.bf-chat-sub { font-size: 13px; color: var(--bf-muted); }
.bf-log { display: flex; flex-direction: column; gap: 10px; }
.bf-msg {
  max-width: 82%; padding: 12px 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: bf-pop .25s ease-out both;
}
.bf-msg--ai { align-self: flex-start; background: #EAF6F6; border-radius: 18px 18px 18px 6px; transform-origin: left bottom; }
.bf-msg--user { align-self: flex-end; background: var(--bf-ink); color: #fff; border-radius: 18px 18px 6px 18px; transform-origin: right bottom; }
@keyframes bf-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bf-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #EAF6F6; border-radius: 18px 18px 18px 6px; }
.bf-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--bf-ink); opacity: .25; animation: bf-dot 1.2s ease-in-out infinite; }
.bf-typing i:nth-child(2) { animation-delay: .15s; }
.bf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bf-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.bf-reply { display: flex; align-items: flex-end; gap: 10px; }
.bf-reply .bf-input { border-radius: 14px; padding: 12px 14px; resize: none; }
.bf-chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bf-link { background: none; border: 0; padding: 4px; color: var(--bf-ink); font: 500 14px var(--bf-body); text-decoration: underline; cursor: pointer; }

/* Thank you */
.bf-thanks { position: relative; overflow: hidden; background: var(--bf-ink); color: #fff; padding: 44px 32px; gap: 16px; }
.bf-eyebrow { margin: 0; font-weight: 600; font-size: 13px; letter-spacing: .12em; color: #F0C46A; }
.bf-h2 { margin: 0; font-family: var(--bf-display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; outline: none; }
.bf-thanks-body { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.55; color: #E3DDD5; }
.bf-burst { position: absolute; top: 28px; right: 28px; width: 0; height: 0; pointer-events: none; }
.bf-burst i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; opacity: 0; animation: bf-burst 1.1s ease-out forwards; }
@keyframes bf-burst {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1); opacity: 0; }
}

@media (max-width: 520px) {
  .bf-card { padding: 22px; }
  .bf-chat { padding: 20px; }
  .bf-main { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-shape, .bf-msg, .bf-burst i { animation: none; }
  .bf-typing i { animation: none; opacity: .6; }
  .bf-chip, .bf-btn { transition: none; }
  .bf-chip:hover, .bf-btn:hover:not(:disabled) { transform: none; }
}
