/* Lead modal, cookie, back-to-top, AI placeholder */

.fc-modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.fc-modal.is-open { display: flex; }
.fc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.80); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fc-modal__panel {
  position: relative; width: 100%; max-width: 440px;
  max-height: calc(100vh - 4rem);
  background: #141414; color: var(--fc-pearl);
  border: 1px solid rgba(179,143,111,.18);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  animation: fc-fade-up 500ms ease-out forwards;
  overflow: hidden;
}
.fc-modal__close {
  position: absolute; right: 24px; top: 24px; z-index: 30;
  color: #9a9a9a; transition: color .3s;
}
.fc-modal__close:hover { color: var(--fc-sand); }
.fc-modal__body {
  padding: 56px 40px; max-height: calc(100vh - 4rem); overflow-y: auto;
}
@media (min-width: 1024px) { .fc-modal__body { padding: 64px 56px; } }
.fc-modal__eyebrow {
  color: var(--fc-sand); font-size: 10px; letter-spacing: .32em;
  text-transform: uppercase; font-weight: 300; margin: 0 0 28px;
}
.fc-modal__title {
  font-size: 28px; font-weight: 300; letter-spacing: .005em; line-height: 1.2;
  margin: 0 0 20px; text-transform: none;
}
@media (min-width: 768px) { .fc-modal__title { font-size: 30px; } }
.fc-modal__desc {
  font-size: 14px; color: #9a9a9a; font-weight: 300; line-height: 1.7;
  margin: 0 0 48px; max-width: 340px;
}
.fc-modal__field { margin-bottom: 40px; }
.fc-modal__label {
  display: block; font-size: 10px; color: rgba(179,143,111,.80);
  letter-spacing: .28em; text-transform: uppercase; font-weight: 300; margin-bottom: 16px;
}
.fc-modal__input {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid rgba(179,143,111,.25);
  color: var(--fc-pearl); font-size: 15px; font-weight: 300;
  padding: 10px 0; outline: none; transition: border-color .3s;
  font-family: inherit;
}
.fc-modal__input::placeholder { color: #5a5a5a; font-weight: 300; }
.fc-modal__input:focus { border-bottom-color: rgba(179,143,111,.70); }
.fc-modal__textarea {
  resize: vertical; min-height: 72px; line-height: 1.5;
}
.fc-modal__consent {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding-top: 24px; margin-bottom: 24px; user-select: none;
}
.fc-modal__check {
  width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0;
  border: 1px solid rgba(179,143,111,.40); position: relative;
}
.fc-modal__consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.fc-modal__consent input:checked + .fc-modal__check {
  background: var(--fc-sand); border-color: var(--fc-sand);
}
.fc-modal__consent input:checked + .fc-modal__check::after {
  content: ''; position: absolute; left: 3px; top: 0;
  width: 5px; height: 9px; border: solid #141414; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fc-modal__consent-text {
  font-size: 12px; color: #8a8a8a; font-weight: 300; line-height: 1.6;
}
.fc-modal__consent-text a { text-decoration: underline; text-underline-offset: 3px; }
.fc-modal__error {
  font-size: 13px; color: var(--fc-danger); font-weight: 300; margin: 0 0 16px;
}
.fc-modal__submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 28px; border: 1px solid var(--fc-sand);
  color: var(--fc-sand); background: transparent;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 300;
  transition: all 400ms;
}
.fc-modal__submit:hover { background: var(--fc-sand); color: #141414; }
.fc-modal__success { text-align: center; padding: 8px 0; }
.fc-modal__success-icon {
  position: relative; width: 64px; height: 64px; margin: 0 auto 40px;
  border: 1px solid rgba(179,143,111,.40); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--fc-sand);
}

@keyframes fc-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie banner */
.fc-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 0 16px 16px; pointer-events: none;
  display: none;
}
.fc-cookie.is-visible { display: block; }
@media (min-width: 640px) { .fc-cookie { padding: 0 24px 24px; } }
.fc-cookie__box {
  pointer-events: auto; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px 24px; border: 1px solid rgba(179,143,111,.25);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 640px) {
  .fc-cookie__box { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 32px; }
}
.fc-cookie__text {
  margin: 0; font-size: 13px; color: rgba(242,241,237,.85); font-weight: 300; line-height: 1.6;
}
.fc-cookie__text a {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(179,143,111,.50); transition: color .3s, text-decoration-color .3s;
}
.fc-cookie__text a:hover { color: var(--fc-sand); text-decoration-color: var(--fc-sand); }
.fc-cookie__btn {
  align-self: flex-start; padding: 10px 28px;
  border: 1px solid var(--fc-sand); color: var(--fc-sand);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 300;
  transition: all 400ms; white-space: nowrap;
}
@media (min-width: 640px) { .fc-cookie__btn { align-self: auto; } }
.fc-cookie__btn:hover { background: var(--fc-sand); color: var(--fc-pearl); }

/* Back to top */
.fc-backtop {
  position: fixed; bottom: 24px; left: 24px; z-index: 45;
  display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 44px;
  border: 1px solid rgba(179,143,111,.40); color: var(--fc-sand);
  background: rgba(10,10,10,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 600ms ease-out;
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.fc-backtop.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.fc-backtop:hover { background: var(--fc-sand); color: #0d0d0d; border-color: var(--fc-sand); }
.fc-backtop span {
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; font-weight: 300;
}

/* Local AI placeholder widget (no external API) */
.fc-ai-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 46;
  width: 56px; height: 56px; border-radius: 50%;
  background: #141414; border: 1px solid rgba(179,143,111,.35);
  color: var(--fc-sand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transition: border-color .4s, transform .4s, background .4s;
}
.fc-ai-toggle:hover { border-color: var(--fc-sand); transform: translateY(-2px); }
.fc-ai-toggle__dot {
  position: absolute; top: 10px; right: 12px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--fc-sand);
  box-shadow: 0 0 0 0 rgba(179,143,111,.5);
  animation: fc-pulse 2s infinite;
}
@keyframes fc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(179,143,111,.45); }
  70% { box-shadow: 0 0 0 10px rgba(179,143,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(179,143,111,0); }
}
.fc-ai-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 46;
  width: min(400px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  background: #141414; border: 1px solid rgba(179,143,111,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  display: none; flex-direction: column; overflow: hidden;
}
.fc-ai-panel.is-open { display: flex; animation: fc-fade-up 400ms ease-out; }
.fc-ai-panel__head {
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.fc-ai-panel__eyebrow {
  margin: 0 0 8px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--fc-sand); font-weight: 300;
}
.fc-ai-panel__title {
  margin: 0; font-size: 18px; font-weight: 300; letter-spacing: .01em;
  text-transform: none; color: var(--fc-pearl);
}
.fc-ai-panel__body { padding: 16px 20px 20px; }
.fc-ai-panel__hint {
  margin: 0 0 16px; font-size: 13px; color: #9a9a9a; font-weight: 300; line-height: 1.6;
}
.fc-ai-panel__links { display: flex; flex-direction: column; gap: 10px; }
.fc-ai-panel__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(179,143,111,.12);
  font-size: 13px; font-weight: 300; color: rgba(242,241,237,.85); transition: color .3s;
}
.fc-ai-panel__links a:hover { color: var(--fc-sand); }
.fc-ai-panel__note {
  margin: 16px 0 0; font-size: 11px; color: #6a6a6a; font-weight: 300; line-height: 1.5;
}

/* Layout test page */
.fc-test-hero {
  min-height: 100vh;
  background: var(--fc-pearl);
  color: #161616;
  display: flex; align-items: flex-end;
  padding: 120px 24px 80px;
}
@media (min-width: 1024px) { .fc-test-hero { padding-left: 48px; padding-right: 48px; } }
.fc-test-hero__inner { max-width: 1440px; margin: 0 auto; width: 100%; }
.fc-test-hero__eyebrow {
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--fc-sand); margin: 0 0 24px; font-weight: 300;
}
.fc-test-hero__title {
  margin: 0 0 20px; font-size: clamp(32px, 6vw, 56px); font-weight: 300;
  letter-spacing: .04em; text-transform: uppercase; max-width: 14ch; line-height: 1.1;
}
.fc-test-hero__text {
  margin: 0; max-width: 42ch; font-size: 15px; font-weight: 300; color: #5a5a5a; line-height: 1.7;
}
.fc-test-section {
  padding: 80px 24px; background: var(--fc-bg); color: var(--fc-pearl);
}
@media (min-width: 1024px) { .fc-test-section { padding-left: 48px; padding-right: 48px; } }
.fc-test-section__inner { max-width: 1440px; margin: 0 auto; }
.fc-test-section h2 {
  margin: 0 0 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fc-sand); font-weight: 300;
}
.fc-test-section p {
  margin: 0 0 24px; max-width: 60ch; color: #a0a0a0; font-weight: 300; font-size: 15px; line-height: 1.7;
}
.fc-test-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fc-test-actions button,
.fc-test-actions a {
  display: inline-flex; align-items: center; padding: 12px 24px;
  border: 1px solid var(--fc-sand); color: var(--fc-sand);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 300;
  transition: all .4s;
}
.fc-test-actions button:hover,
.fc-test-actions a:hover { background: var(--fc-sand); color: #141414; }
