/* ==========================================================================
 * Fable Collab — Creator Partnership Agency
 * Editorial Light Palette (OKLCH warm stone) + Concentric Geometry + A11y
 * ========================================================================== */

@font-face {
  font-family: "Gilroy";
  src: url("/assets/v3/fonts/Gilroy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/assets/v3/fonts/Gilroy-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/assets/v3/fonts/Gilroy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fc-bg: #faf9f6;
  --fc-surface: #ffffff;
  --fc-surface-muted: #f2f0ec;
  --fc-ink: #14151a;
  --fc-ink-muted: #555863;
  --fc-ink-subtle: #717582;
  --fc-border: rgba(20, 21, 26, 0.1);
  --fc-border-strong: rgba(20, 21, 26, 0.18);
  --fc-accent: #e84843;
  --fc-accent-hover: #d13833;
  --fc-accent-soft: rgba(232, 72, 67, 0.08);
  --fc-accent-border: rgba(232, 72, 67, 0.24);
  --fc-green-bg: #ecfdf3;
  --fc-green-text: #15803d;
  --fc-green-border: rgba(21, 128, 61, 0.22);
  --fc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fc-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fc-bg);
  color: var(--fc-ink);
  font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--fc-accent);
  outline-offset: 2px;
}

#how-it-works,
#campaigns,
#rates,
#faq {
  scroll-margin-top: 88px;
}

.fc-wrap {
  width: 100%;
  max-width: var(--fc-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
 * Header & Navigation
 * ========================================================================== */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fc-border);
}

.fc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.fc-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--fc-ink);
  color: #ffffff;
  flex-shrink: 0;
}

.fc-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--fc-ink-muted);
  transition: background-color 0.16s var(--fc-ease), color 0.16s var(--fc-ease);
}

.fc-nav__link:hover {
  background: var(--fc-surface-muted);
  color: var(--fc-ink);
}

.fc-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s var(--fc-ease), background-color 0.16s var(--fc-ease), border-color 0.16s var(--fc-ease);
}

.fc-btn:active {
  transform: translateY(1px);
}

.fc-btn--primary {
  background: var(--fc-accent);
  color: #ffffff;
}

.fc-btn--primary:hover {
  background: var(--fc-accent-hover);
}

.fc-btn--ghost {
  background: var(--fc-surface);
  border-color: var(--fc-border-strong);
  color: var(--fc-ink);
}

.fc-btn--ghost:hover {
  border-color: var(--fc-ink);
}

.fc-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fc-border-strong);
  background: var(--fc-surface);
  color: var(--fc-ink);
  cursor: pointer;
}

.fc-mobile-drawer {
  border-top: 1px solid var(--fc-border);
  background: var(--fc-surface);
  padding: 16px 24px 20px;
}

.fc-mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-mobile-drawer__links a {
  padding: 10px 4px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--fc-border);
}

/* ==========================================================================
 * Hero Split Section + Interactive Invite Lookup + Rate Ledger
 * ========================================================================== */
.fc-hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.fc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fc-ink-muted);
  margin-bottom: 14px;
}

.fc-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc-accent);
}

.fc-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 3.8vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.fc-hero__lead {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: 17px;
  color: var(--fc-ink-muted);
  text-wrap: pretty;
}

/* Concentric Lookup Dock: outer 22px, inner padding 8px, inner controls 14px */
.fc-lookup {
  max-width: 560px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border-strong);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(20, 21, 26, 0.04), 0 10px 28px -8px rgba(20, 21, 26, 0.07);
}

.fc-lookup__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-lookup__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--fc-ink);
  font-size: 16px;
}

.fc-lookup__input:focus {
  outline: none;
}

.fc-lookup__submit {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--fc-ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s var(--fc-ease), opacity 0.16s var(--fc-ease);
}

.fc-lookup__submit:hover {
  background: var(--fc-accent);
}

.fc-lookup__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fc-lookup__hint {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--fc-ink-subtle);
}

.fc-lookup__error {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--fc-accent-soft);
  border: 1px solid var(--fc-accent-border);
  color: #b42318;
  font-size: 13px;
  font-weight: 500;
}

.fc-invite-result {
  margin-top: 14px;
  max-width: 560px;
  padding: 18px;
  border-radius: 20px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-green-border);
  box-shadow: 0 8px 24px -8px rgba(20, 21, 26, 0.08);
}

.fc-invite-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.fc-pill-green {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fc-green-bg);
  color: var(--fc-green-text);
  border: 1px solid var(--fc-green-border);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}

.fc-invite-result__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fc-invite-result__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.fc-invite-result__sub {
  font-size: 13px;
  color: var(--fc-ink-muted);
}

.fc-invite-result__offer {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-ink);
}

/* Signature Right Panel: Live Rate Ledger */
.fc-ledger {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border-strong);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(20, 21, 26, 0.04), 0 12px 32px -12px rgba(20, 21, 26, 0.08);
}

.fc-ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.fc-ledger__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.fc-ledger__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-ink-subtle);
}

.fc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--fc-surface-muted);
  margin-bottom: 16px;
}

.fc-tab {
  border: 0;
  border-radius: 10px;
  padding: 9px 8px;
  background: transparent;
  color: var(--fc-ink-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s var(--fc-ease), color 0.15s var(--fc-ease);
}

.fc-tab[aria-selected="true"] {
  background: var(--fc-surface);
  color: var(--fc-ink);
  box-shadow: 0 1px 3px rgba(20, 21, 26, 0.08);
}

.fc-ledger__rows {
  display: grid;
  gap: 10px;
}

.fc-ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
}

.fc-ledger__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fc-ink-muted);
}

.fc-ledger__val {
  font-size: 17px;
  font-weight: 700;
  color: var(--fc-ink);
  text-align: right;
}

.fc-ledger__val--accent {
  color: var(--fc-accent);
}

.fc-ledger__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--fc-ink-muted);
}

.fc-ledger__link {
  font-weight: 700;
  color: var(--fc-accent);
  text-decoration: none;
}

.fc-ledger__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
 * Sections
 * ========================================================================== */
.fc-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--fc-border);
}

.fc-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fc-section__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.fc-section__sub {
  margin: 0;
  max-width: 52ch;
  color: var(--fc-ink-muted);
  font-size: 15px;
}

/* Chronological Editorial Process Rows */
.fc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fc-step {
  padding: 24px;
  border-radius: 20px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
}

.fc-step__num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fc-accent);
}

.fc-step__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.fc-step__body {
  margin: 0;
  font-size: 15px;
  color: var(--fc-ink-muted);
}

/* Active Brand Campaign Spotlight */
.fc-campaign-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  padding: 32px;
  border-radius: 24px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border-strong);
  align-items: center;
}

.fc-campaign-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fc-ink-muted);
}

.fc-campaign-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fc-campaign-card__desc {
  margin: 0 0 22px;
  color: var(--fc-ink-muted);
  max-width: 58ch;
}

.fc-campaign-card__specs {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
}

.fc-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fc-border);
  font-size: 14px;
}

.fc-spec-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fc-spec-row span:first-child {
  color: var(--fc-ink-muted);
}

.fc-spec-row strong {
  text-align: right;
}

/* FAQ Accordion */
.fc-faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.fc-faq__item {
  border-radius: 16px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  overflow: hidden;
}

.fc-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--fc-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fc-faq__panel {
  padding: 0 20px 18px;
  color: var(--fc-ink-muted);
  font-size: 15px;
}

/* Footer */
.fc-footer {
  padding: 40px 0 48px;
  background: var(--fc-surface);
}

.fc-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.fc-footer__meta {
  font-size: 14px;
  color: var(--fc-ink-muted);
  max-width: 48ch;
}

.fc-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}

.fc-footer__links a {
  text-decoration: none;
  color: var(--fc-ink-muted);
}

.fc-footer__links a:hover {
  color: var(--fc-ink);
  text-decoration: underline;
}

/* Legal Document Pages (/terms, /privacy) */
.fc-legal {
  padding: 48px 0 72px;
}

.fc-legal__card {
  max-width: 780px;
  padding: 36px;
  border-radius: 24px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
}

.fc-legal__card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  letter-spacing: -0.025em;
}

.fc-legal__updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--fc-ink-subtle);
}

.fc-legal__card h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.fc-legal__card p,
.fc-legal__card li {
  color: var(--fc-ink-muted);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
  .fc-hero__grid,
  .fc-campaign-card,
  .fc-steps {
    grid-template-columns: 1fr;
  }

  .fc-nav__links,
  .fc-nav__actions {
    display: none;
  }

  .fc-burger {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .fc-hero {
    padding: 36px 0 44px;
  }

  .fc-lookup__form {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-lookup__submit {
    width: 100%;
  }

  .fc-invite-result__top {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-invite-result__top .fc-pill-green {
    align-self: flex-start;
  }

  .fc-invite-result__top .fc-btn {
    width: 100%;
  }

  .fc-campaign-card,
  .fc-legal__card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
