/* ============================================================================
   ForensicTrail marketing site — stylesheet
   Part 1: the ft-* brand design system (verbatim from @forensictrail/brand-ds)
   Part 2: site-wide overrides shared by every page
   Part 3: the responsive layer (added for the live site; the design canvas was
           authored at a fixed 1280px preview width)
   ============================================================================ */

/* ===========================================================================
   PART 1 — Brand design system (ft-*)
   Tokens are the ft-* brand palette. All component classes are prefixed `ftds-`.
   =========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand palette (ft-*) */
  --color-ft-bg: #f1f5f9;
  --color-ft-ink: #1e293b;            /* deep navy — dark sections */
  --color-ft-ink-border: #334155;
  --color-ft-surface: #ffffff;
  --color-ft-surface-alt: #eef2ff;
  --color-ft-text: #0f172a;
  --color-ft-muted: #64748b;
  --color-ft-border: #cbd5e1;
  --color-ft-primary: #38bdf8;        /* sky */
  --color-ft-primary-strong: #0ea5e9;
  --color-ft-accent: #a78bfa;         /* violet */
  --color-ft-accent-strong: #8b5cf6;
  --color-ft-success: #22c55e;
  --color-ft-warning: #f59e0b;
  --color-ft-risk: #fb7185;

  /* Typography */
  --ft-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --ft-radius-sm: 8px;
  --ft-radius-md: 12px;
  --ft-radius-lg: 18px;
  --ft-radius-pill: 999px;

  /* Shadows */
  --ft-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --ft-shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);
  --ft-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --ft-shadow-glow: 0 10px 30px rgba(56, 189, 248, 0.35);

  /* Spacing scale */
  --ft-space-1: 4px;
  --ft-space-2: 8px;
  --ft-space-3: 12px;
  --ft-space-4: 16px;
  --ft-space-5: 24px;
  --ft-space-6: 32px;
  --ft-space-7: 48px;
  --ft-space-8: 64px;
}

/* ---------- Base / layout helpers ---------- */
.ftds-root,
.ftds-container {
  font-family: var(--ft-font-sans);
  color: var(--color-ft-text);
  -webkit-font-smoothing: antialiased;
}
.ftds-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--ft-space-5);
}
.ftds-stack { display: flex; flex-direction: column; gap: var(--ft-space-4); }
.ftds-row { display: flex; align-items: center; gap: var(--ft-space-3); flex-wrap: wrap; }
.ftds-grid { display: grid; gap: var(--ft-space-5); }
.ftds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ftds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Every component root establishes the brand font so all descendant text
 * (including arbitrary children) inherits Inter instead of a browser default. */
.ftds-logo, .ftds-btn, .ftds-badge, .ftds-card, .ftds-stat, .ftds-feature,
.ftds-step, .ftds-trust, .ftds-quote, .ftds-nav, .ftds-hero, .ftds-section,
.ftds-cta, .ftds-footer {
  font-family: var(--ft-font-sans);
}

/* ---------- Logo ---------- */
.ftds-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ft-font-sans); }
.ftds-logo__mark {
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-ft-primary), var(--color-ft-accent));
  color: #fff; box-shadow: var(--ft-shadow-glow);
}
.ftds-logo__mark svg { width: 60%; height: 60%; }
.ftds-logo__text { font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.ftds-logo__text b { color: var(--color-ft-primary-strong); font-weight: 800; }
.ftds-logo--sm .ftds-logo__mark { width: 26px; height: 26px; }
.ftds-logo--sm .ftds-logo__text { font-size: 16px; }
.ftds-logo--md .ftds-logo__mark { width: 34px; height: 34px; }
.ftds-logo--md .ftds-logo__text { font-size: 20px; }
.ftds-logo--lg .ftds-logo__mark { width: 44px; height: 44px; }
.ftds-logo--lg .ftds-logo__text { font-size: 26px; }
.ftds-logo--light .ftds-logo__text { color: #fff; }
.ftds-logo--light .ftds-logo__text b { color: var(--color-ft-primary); }
.ftds-logo--dark .ftds-logo__text { color: var(--color-ft-text); }

/* ---------- Button ---------- */
.ftds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ft-font-sans); font-weight: 600; line-height: 1;
  border-radius: var(--ft-radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.ftds-btn:active { transform: translateY(1px); }
.ftds-btn--sm { font-size: 14px; padding: 8px 14px; }
.ftds-btn--md { font-size: 15px; padding: 11px 18px; }
.ftds-btn--lg { font-size: 16px; padding: 14px 24px; }
.ftds-btn--full { width: 100%; }
.ftds-btn--primary {
  background: linear-gradient(135deg, var(--color-ft-primary), var(--color-ft-primary-strong));
  color: #06283d; box-shadow: var(--ft-shadow-glow);
}
.ftds-btn--primary:hover { box-shadow: 0 14px 34px rgba(56, 189, 248, 0.45); }
.ftds-btn--secondary {
  background: var(--color-ft-surface); color: var(--color-ft-text);
  border-color: var(--color-ft-border); box-shadow: var(--ft-shadow-sm);
}
.ftds-btn--secondary:hover { border-color: var(--color-ft-primary); }
.ftds-btn--ghost { background: transparent; color: var(--color-ft-text); }
.ftds-btn--ghost:hover { background: var(--color-ft-surface-alt); }
.ftds-btn:disabled, .ftds-btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; box-shadow: none; transform: none;
}
.ftds-btn__icon { display: inline-flex; }
.ftds-btn__icon svg { width: 1em; height: 1em; }

/* ---------- Badge ---------- */
.ftds-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ft-font-sans); font-weight: 600; line-height: 1;
  border-radius: var(--ft-radius-pill); border: 1px solid transparent;
}
.ftds-badge--sm { font-size: 11px; padding: 4px 9px; letter-spacing: .02em; }
.ftds-badge--md { font-size: 13px; padding: 6px 12px; }
.ftds-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ftds-badge--neutral { background: #f1f5f9; color: var(--color-ft-muted); border-color: var(--color-ft-border); }
.ftds-badge--primary { background: rgba(56,189,248,.14); color: var(--color-ft-primary-strong); border-color: rgba(56,189,248,.35); }
.ftds-badge--accent { background: rgba(167,139,250,.16); color: var(--color-ft-accent-strong); border-color: rgba(167,139,250,.4); }
.ftds-badge--success { background: rgba(34,197,94,.14); color: #15803d; border-color: rgba(34,197,94,.35); }
.ftds-badge--warning { background: rgba(245,158,11,.15); color: #b45309; border-color: rgba(245,158,11,.4); }
.ftds-badge--risk { background: rgba(251,113,133,.15); color: #be123c; border-color: rgba(251,113,133,.4); }

/* ---------- Card ---------- */
.ftds-card {
  background: var(--color-ft-surface);
  border: 1px solid var(--color-ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-sm);
}
.ftds-card--sm { padding: var(--ft-space-4); }
.ftds-card--md { padding: var(--ft-space-5); }
.ftds-card--lg { padding: var(--ft-space-6); }
.ftds-card--interactive { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; cursor: pointer; }
.ftds-card--interactive:hover { box-shadow: var(--ft-shadow-md); transform: translateY(-2px); border-color: var(--color-ft-primary); }

/* ---------- Stat ---------- */
.ftds-stat { display: flex; flex-direction: column; gap: 4px; }
.ftds-stat__value {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, var(--color-ft-primary-strong), var(--color-ft-accent-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ftds-stat--accent .ftds-stat__value { background: linear-gradient(135deg, var(--color-ft-accent-strong), var(--color-ft-primary-strong)); -webkit-background-clip: text; background-clip: text; }
.ftds-stat__label { font-size: 15px; font-weight: 600; color: var(--color-ft-text); }
.ftds-stat__desc { font-size: 13px; color: var(--color-ft-muted); }

/* ---------- Icon tile (shared) ---------- */
.ftds-icontile {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--ft-radius-md);
  background: var(--color-ft-surface-alt); color: var(--color-ft-accent-strong);
}
.ftds-icontile svg { width: 22px; height: 22px; }

/* ---------- FeatureCard ---------- */
.ftds-feature { display: flex; flex-direction: column; gap: var(--ft-space-3); }
.ftds-feature__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ft-space-3); }
.ftds-feature__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.ftds-feature__desc { font-size: 14.5px; line-height: 1.55; color: var(--color-ft-muted); margin: 0; }

/* ---------- StepCard ---------- */
.ftds-step { display: flex; gap: var(--ft-space-4); align-items: flex-start; }
.ftds-step__num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--ft-radius-pill); font-weight: 800; font-size: 16px; color: #06283d;
  background: linear-gradient(135deg, var(--color-ft-primary), var(--color-ft-accent));
  box-shadow: var(--ft-shadow-glow);
}
.ftds-step__body { display: flex; flex-direction: column; gap: 4px; }
.ftds-step__title { font-size: 16px; font-weight: 700; margin: 0; }
.ftds-step__text { font-size: 14.5px; line-height: 1.55; color: var(--color-ft-muted); margin: 0; }

/* ---------- TrustBadge ---------- */
.ftds-trust {
  display: flex; gap: var(--ft-space-3); align-items: flex-start;
  padding: var(--ft-space-4); border-radius: var(--ft-radius-md);
  background: var(--color-ft-surface); border: 1px solid var(--color-ft-border);
}
.ftds-trust__icon { flex: none; color: var(--color-ft-primary-strong); }
.ftds-trust__icon svg { width: 22px; height: 22px; }
.ftds-trust__title { font-size: 15px; font-weight: 700; margin: 0; }
.ftds-trust__desc { font-size: 13.5px; line-height: 1.5; color: var(--color-ft-muted); margin: 2px 0 0; }

/* ---------- Quote ---------- */
.ftds-quote {
  display: flex; flex-direction: column; gap: var(--ft-space-4);
  padding: var(--ft-space-6); border-radius: var(--ft-radius-lg);
  background: var(--color-ft-surface); border: 1px solid var(--color-ft-border);
  box-shadow: var(--ft-shadow-sm);
}
.ftds-quote__mark { font-size: 40px; line-height: .5; color: var(--color-ft-accent); font-weight: 800; }
.ftds-quote__text { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--color-ft-text); margin: 0; }
.ftds-quote__by { display: flex; align-items: center; gap: var(--ft-space-3); }
.ftds-quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--color-ft-primary), var(--color-ft-accent));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.ftds-quote__author { display: block; font-size: 14.5px; font-weight: 700; margin: 0; }
.ftds-quote__role { display: block; font-size: 13px; color: var(--color-ft-muted); margin: 1px 0 0; }

/* ---------- NavBar ---------- */
.ftds-nav {
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-ft-border);
}
.ftds-nav__inner {
  max-width: 1120px; margin-inline: auto; padding: 14px var(--ft-space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--ft-space-5);
}
.ftds-nav__links { display: flex; align-items: center; gap: var(--ft-space-5); }
.ftds-nav__link {
  font-size: 14.5px; font-weight: 500; color: var(--color-ft-muted);
  text-decoration: none; transition: color .12s ease;
}
.ftds-nav__link:hover { color: var(--color-ft-text); }
.ftds-nav__actions { display: flex; align-items: center; gap: var(--ft-space-3); }

/* ---------- Hero ---------- */
.ftds-hero { padding: var(--ft-space-8) 0; }
.ftds-hero__inner { max-width: 820px; display: flex; flex-direction: column; gap: var(--ft-space-4); }
.ftds-hero--center .ftds-hero__inner { margin-inline: auto; align-items: center; text-align: center; }
.ftds-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 600; color: var(--color-ft-primary-strong);
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3);
  padding: 6px 12px; border-radius: var(--ft-radius-pill);
}
.ftds-hero--center .ftds-hero__eyebrow { align-self: center; }
.ftds-hero__title { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.ftds-hero__title em { font-style: normal; background: linear-gradient(135deg, var(--color-ft-primary-strong), var(--color-ft-accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ftds-hero__subtitle { font-size: 19px; line-height: 1.55; color: var(--color-ft-muted); margin: 0; max-width: 620px; }
.ftds-hero__actions { display: flex; gap: var(--ft-space-3); flex-wrap: wrap; margin-top: var(--ft-space-3); }

/* ---------- Section ---------- */
.ftds-section { padding: var(--ft-space-8) 0; }
.ftds-section--muted { background: var(--color-ft-bg); }
.ftds-section--dark { background: var(--color-ft-ink); color: #e2e8f0; }
.ftds-section--dark .ftds-section__title { color: #fff; }
.ftds-section--dark .ftds-section__subtitle { color: #94a3b8; }
.ftds-section__head { display: flex; flex-direction: column; gap: var(--ft-space-3); max-width: 720px; margin-bottom: var(--ft-space-7); }
.ftds-section--center .ftds-section__head { margin-inline: auto; align-items: center; text-align: center; }
.ftds-section__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ft-accent-strong); }
.ftds-section__title { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 0; }
.ftds-section__subtitle { font-size: 17px; line-height: 1.55; color: var(--color-ft-muted); margin: 0; }

/* ---------- CTASection ---------- */
.ftds-cta {
  border-radius: var(--ft-radius-lg); padding: var(--ft-space-8) var(--ft-space-7);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56,189,248,.35), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(167,139,250,.4), transparent 55%),
    var(--color-ft-ink);
  color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--ft-space-4);
  box-shadow: var(--ft-shadow-lg);
}
.ftds-cta__title { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0; max-width: 640px; }
.ftds-cta__subtitle { font-size: 17px; line-height: 1.55; color: #cbd5e1; margin: 0; max-width: 560px; }
.ftds-cta__actions { display: flex; gap: var(--ft-space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--ft-space-2); }

/* ---------- Footer ---------- */
.ftds-footer { background: var(--color-ft-ink); color: #94a3b8; padding: var(--ft-space-8) 0 var(--ft-space-6); }
.ftds-footer__inner { max-width: 1120px; margin-inline: auto; padding-inline: var(--ft-space-5); }
.ftds-footer__top { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr)); gap: var(--ft-space-6); }
.ftds-footer__brandtext { font-size: 14px; line-height: 1.6; color: #94a3b8; margin: var(--ft-space-3) 0 0; max-width: 260px; }
.ftds-footer__col { display: flex; flex-direction: column; gap: var(--ft-space-3); }
.ftds-footer__coltitle { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.ftds-footer__link { font-size: 14px; color: #94a3b8; text-decoration: none; transition: color .12s ease; }
.ftds-footer__link:hover { color: #fff; }
.ftds-footer__bar { border-top: 1px solid var(--color-ft-ink-border); margin-top: var(--ft-space-7); padding-top: var(--ft-space-5); font-size: 13px; color: #64748b; }

/* ===========================================================================
   PART 2 — Site-wide overrides (shared by index.html + court-ready.html)
   =========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
a { color: var(--color-ft-primary-strong); text-decoration: none; }
a:hover { color: var(--color-ft-accent-strong); }
img, svg { max-width: 100%; }

#site { font-family: var(--ft-font-sans, system-ui, sans-serif); background: #ffffff; }

/* Sticky nav — the DS ships a blurred translucent bar, meant to float over
   content. Make it sticky and add anchor offset so in-page jumps clear it. */
#site .ftds-nav { position: sticky; top: 0; z-index: 50; }
.ft-anchor { position: relative; scroll-margin-top: 78px; }

/* brand mark — magnifier + $ + chart, white tile so it reads on light & dark chrome */
#site .ftds-logo__mark {
  background: #ffffff url("assets/ft-mark.svg") center / 80% no-repeat !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22) !important;
}
#site .ftds-logo__mark > svg { display: none !important; }

/* footer grid — the DS ships an auto-fit track list; pin it to 3 columns */
#site-footer .ftds-footer__top { grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; }

/* product window chrome (mockups) */
.ft-window { border-radius: 14px; overflow: hidden; border: 1px solid var(--color-ft-border); box-shadow: var(--ft-shadow-lg); background: #fff; }
.ft-window__bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--color-ft-surface-alt); border-bottom: 1px solid var(--color-ft-border); }
.ft-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.ft-window__url { margin-left: 10px; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-ft-muted); letter-spacing: .01em; }
.ft-shot { display: block; width: 100%; height: auto; }

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  #site .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  #site .reveal.is-in { opacity: 1; transform: none; }
}

/* ===========================================================================
   PART 3 — Responsive layer
   The design canvas was authored at a fixed 1280px width with inline grid
   templates. These rules collapse the multi-column layouts on smaller screens.
   Inline `grid-template-columns` beats a class selector, so overrides that
   target inline-styled wrappers must use !important.
   =========================================================================== */

/* Wide product mockups keep their designed proportions and scroll on narrow
   viewports instead of squashing. */
.ft-window-wrap { width: 100%; }
@media (max-width: 720px) {
  .ft-window-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ft-window-wrap > .ft-window { min-width: 660px; }
}

/* Tablet — 3-col grids relax to 2. */
@media (max-width: 960px) {
  .ft-r-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .ft-r-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .ft-r-split { grid-template-columns: 1fr !important; }
  .ftds-hero__title { font-size: 46px !important; }
}

/* Phone — everything collapses to a single column. */
@media (max-width: 680px) {
  .ft-r-2,
  .ft-r-3,
  .ft-r-4,
  .ft-r-steps { grid-template-columns: 1fr !important; }
  .ft-r-kpi { grid-template-columns: repeat(2, 1fr) !important; }
  #site-footer .ftds-footer__top { grid-template-columns: 1fr !important; gap: 32px; }
  /* Center links collapse here; drop the ghost "Client login" too so the logo
     + primary CTA always fit (login stays reachable from the footer). */
  .ftds-nav__links,
  .ftds-nav__actions .ft-nav-secondary { display: none; }
  .ftds-hero__title { font-size: 38px !important; }
  .ftds-hero__subtitle { font-size: 17px; }
  .ftds-section__title { font-size: 29px; }
  .ftds-cta__title { font-size: 27px; }
  .ftds-cta { padding: var(--ft-space-7) var(--ft-space-5); }
}

/* ===========================================================================
   PART 4 — Forms (demo.html / contact.html)
   Field styling on the ft-* tokens, plus anti-bot affordances.
   =========================================================================== */

/* Two-column form page: value prop on the left, form card on the right. */
.ft-formpage { padding: 72px 0 88px; }
.ft-formpage__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start;
  max-width: 1040px; margin-inline: auto;
}
.ft-formpage__aside { position: sticky; top: 104px; }
.ft-formpage__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ft-accent-strong); }
.ft-formpage__title { font-size: 38px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 0; color: var(--color-ft-text); }
.ft-formpage__lead { font-size: 17px; line-height: 1.6; color: var(--color-ft-muted); margin: 16px 0 0; max-width: 460px; }
.ft-checklist { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ft-checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--color-ft-text); line-height: 1.5; }
.ft-checklist svg { flex: none; width: 20px; height: 20px; color: var(--color-ft-success); margin-top: 1px; }
.ft-formpage__reassure { margin: 26px 0 0; font-size: 13.5px; color: var(--color-ft-muted); display: flex; gap: 9px; align-items: center; }
.ft-formpage__reassure svg { flex: none; width: 17px; height: 17px; color: var(--color-ft-primary-strong); }

@media (max-width: 900px) {
  .ft-formpage__grid { grid-template-columns: 1fr; gap: 34px; max-width: 620px; }
  .ft-formpage__aside { position: static; }
  .ft-formpage__title { font-size: 31px; }
}

/* Form primitives */
.ft-form { display: flex; flex-direction: column; gap: 17px; }
.ft-field { display: flex; flex-direction: column; gap: 7px; }
.ft-field--half { flex: 1 1 0; min-width: 0; }
.ft-field-row { display: flex; gap: 14px; }
@media (max-width: 480px) { .ft-field-row { flex-direction: column; gap: 17px; } }
.ft-label { font-size: 14px; font-weight: 600; color: var(--color-ft-text); }
.ft-label .ft-req { color: var(--color-ft-risk); margin-left: 2px; }
.ft-input, .ft-select, .ft-textarea {
  font-family: var(--ft-font-sans); font-size: 15px; color: var(--color-ft-text);
  background: #fff; border: 1px solid var(--color-ft-border); border-radius: var(--ft-radius-md);
  padding: 11px 13px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.ft-input::placeholder, .ft-textarea::placeholder { color: #9aa7b8; }
.ft-input:focus, .ft-select:focus, .ft-textarea:focus {
  outline: none; border-color: var(--color-ft-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}
.ft-textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.ft-select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.ft-field__hint { font-size: 12.5px; color: var(--color-ft-muted); }
.ft-field__error { font-size: 12.5px; font-weight: 600; color: var(--color-ft-risk); display: none; }
.ft-field.is-invalid .ft-field__error { display: block; }
.ft-field.is-invalid .ft-input,
.ft-field.is-invalid .ft-select,
.ft-field.is-invalid .ft-textarea {
  border-color: var(--color-ft-risk); box-shadow: 0 0 0 3px rgba(251, 113, 133, .15);
}
.ft-form__foot { margin-top: 4px; display: flex; flex-direction: column; gap: 14px; }
.ft-form__note { font-size: 12.5px; line-height: 1.5; color: var(--color-ft-muted); }
.ft-form__error {
  display: none; font-size: 14px; font-weight: 600; color: #be123c;
  background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35);
  border-radius: var(--ft-radius-md); padding: 11px 14px;
}
.ft-form__error.is-shown { display: block; }
.ft-btn-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(6, 40, 61, .35); border-top-color: #06283d;
  display: inline-block; animation: ft-spin .6s linear infinite;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* Honeypot — must be invisible to humans and assistive tech, but present in the
   DOM so bots that auto-fill every field trip it. Never use display:none (some
   bots skip those); pull it off-screen instead. */
.ft-hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* CAPTCHA slot — collapsed until a Turnstile widget is injected. */
.ft-captcha:empty { display: none; }
.ft-captcha { margin-top: 2px; }

/* Success panel (replaces the form on a good submit). */
.ft-form-success { display: none; text-align: center; padding: 8px 0 4px; }
.ft-form-success.is-shown { display: block; }
.ft-form-success__icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(34, 197, 94, .14); color: #15803d; display: grid; place-items: center;
}
.ft-form-success__icon svg { width: 28px; height: 28px; }
.ft-form-success__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--color-ft-text); margin: 0; }
.ft-form-success__text { font-size: 15px; line-height: 1.6; color: var(--color-ft-muted); margin: 10px auto 0; max-width: 360px; }
