/* ==========================================================================
   FinComply — corporate design system
   Brand: indigo #2D3079  /  slate #8AA9B1
   ========================================================================== */

:root {
  --fc-indigo: #2d3079;
  --fc-indigo-700: #24275f;
  --fc-indigo-900: #181a40;
  --fc-slate: #8aa9b1;
  --fc-slate-200: #cdd9dd;
  --fc-slate-50: #eef2f3;
  --fc-ink: #1a1c2e;
  --fc-muted: #5b5f73;
  --fc-bg: #ffffff;
  --fc-bg-alt: #f6f7fb;
  --fc-border: #e6e8f0;
  --fc-radius: 14px;
  --fc-radius-sm: 9px;
  --fc-shadow: 0 1px 2px rgba(24, 26, 64, .04), 0 12px 32px -12px rgba(24, 26, 64, .18);
  --fc-shadow-sm: 0 1px 2px rgba(24, 26, 64, .06), 0 4px 14px -8px rgba(24, 26, 64, .14);
  --fc-maxw: 1180px;
  --fc-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--fc-font);
  color: var(--fc-ink);
  background: var(--fc-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--fc-indigo-900); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--fc-indigo); text-decoration: none; }
a:hover { color: var(--fc-indigo-700); }
img { max-width: 100%; display: block; }

/* ---- layout helpers ---- */
.fc-container { width: 100%; max-width: var(--fc-maxw); margin: 0 auto; padding: 0 24px; }
.fc-section { padding: 88px 0; }
.fc-section--tight { padding: 64px 0; }
.fc-bg-alt { background: var(--fc-bg-alt); }
.fc-center { text-align: center; }
.fc-lead { font-size: 1.2rem; color: var(--fc-muted); max-width: 46rem; }
.fc-center .fc-lead { margin-left: auto; margin-right: auto; }

.fc-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fc-indigo); margin-bottom: 1rem;
}
.fc-eyebrow--light { color: var(--fc-slate); }

.fc-section-head { max-width: 42rem; margin-bottom: 56px; }
.fc-section-head.fc-center, .fc-center .fc-section-head { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.fc-btn {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--fc-radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  line-height: 1; white-space: nowrap;
}
.fc-btn:hover { transform: translateY(-1px); }
.fc-btn--primary { background: var(--fc-indigo); color: #fff; }
.fc-btn--primary:hover { background: var(--fc-indigo-700); color: #fff; box-shadow: var(--fc-shadow-sm); }
.fc-btn--light { background: #fff; color: var(--fc-indigo); }
.fc-btn--light:hover { background: var(--fc-slate-50); color: var(--fc-indigo); }
.fc-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.fc-btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.fc-btn--ghost { background: transparent; color: var(--fc-indigo); border-color: var(--fc-border); }
.fc-btn--ghost:hover { border-color: var(--fc-slate); background: var(--fc-slate-50); color: var(--fc-indigo); }
.fc-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fc-center .fc-btn-row, .fc-cta-band .fc-btn-row, .fc-quote .fc-btn-row { justify-content: center; }

/* ---- header / nav ---- */
.fc-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--fc-border);
}
.fc-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.fc-logo img { height: 34px; width: auto; }
.fc-nav-links { display: flex; align-items: center; gap: 34px; }
.fc-nav-links a { position: relative; color: var(--fc-muted); font-weight: 500; font-size: .98rem; padding: 6px 0; transition: color .15s ease; }
.fc-nav-links a:hover { color: var(--fc-indigo); }
.fc-nav-links a.is-active { color: var(--fc-indigo); font-weight: 700; }
.fc-nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px; background: var(--fc-indigo);
}
.fc-nav-right { display: flex; align-items: center; gap: 22px; }
.fc-menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--fc-indigo-900); cursor: pointer; }
.fc-mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 0 20px; border-top: 1px solid var(--fc-border); }
.fc-mobile-menu a { padding: 10px 4px; color: var(--fc-ink); font-weight: 500; }
.fc-mobile-menu a.is-active { color: var(--fc-indigo); font-weight: 700; }
.fc-mobile-menu .fc-btn { margin-top: 8px; justify-content: center; }

@media (max-width: 860px) {
  .fc-nav-links, .fc-nav-right .fc-btn { display: none; }
  .fc-menu-btn { display: inline-flex; }
  .fc-mobile-menu.is-open { display: flex; }
}

/* ---- hero ---- */
.fc-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(138,169,177,.30), transparent 60%),
    linear-gradient(160deg, var(--fc-indigo-900) 0%, var(--fc-indigo) 62%, var(--fc-indigo-700) 100%);
}
.fc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 70% 0%, #000, transparent 75%);
}
.fc-hero .fc-container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 100px; }
.fc-hero h1 { color: #fff; max-width: 18ch; }
.fc-hero-grid h1 { max-width: 13ch; }
.fc-hero-lead, .fc-hero .fc-eyebrow, .fc-hero-note, .fc-hero .fc-btn-row { max-width: 600px; }
.fc-hero .fc-eyebrow { color: #bcd3d9; }
.fc-hero-lead { font-size: 1.25rem; color: rgba(255,255,255,.88); max-width: 42rem; margin-bottom: 2rem; }
.fc-hero-note { margin-top: 1.6rem; font-size: .92rem; color: rgba(255,255,255,.78); }

/* ---- generic cards & grids ---- */
.fc-grid { display: grid; gap: 24px; }
.fc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fc-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .fc-grid-3, .fc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fc-grid-2, .fc-grid-3, .fc-grid-4 { grid-template-columns: 1fr; } }

.fc-card {
  background: #fff; border: 1px solid var(--fc-border); border-radius: var(--fc-radius);
  padding: 30px; box-shadow: var(--fc-shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.fc-card:hover { transform: translateY(-3px); box-shadow: var(--fc-shadow); }
.fc-card h3 { margin-bottom: .4rem; }
.fc-card p { color: var(--fc-muted); margin: 0; font-size: .98rem; }

.fc-icon {
  width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--fc-slate-50); color: var(--fc-indigo); margin-bottom: 18px;
}
.fc-icon svg { width: 24px; height: 24px; }

/* ---- problem consequence cards ---- */
.fc-consequence { border-left: 3px solid var(--fc-slate); padding-left: 20px; }
.fc-consequence h3 { color: var(--fc-indigo); }
.fc-consequence p { color: var(--fc-muted); margin: 0; }

/* ---- quote band ---- */
.fc-quote { background: var(--fc-indigo); color: #fff; }
.fc-quote .fc-container { max-width: 880px; text-align: center; }
.fc-quote blockquote { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.fc-quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 500; color: #bcd3d9; letter-spacing: .04em; }

/* Legal/long-form prose pages */
.fc-prose { max-width: 760px; }
.fc-prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.fc-prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.fc-prose p, .fc-prose li { color: var(--fc-muted); }
.fc-prose ul { padding-left: 1.2rem; }
.fc-prose li { margin-bottom: .5rem; }
.fc-prose a { text-decoration: underline; }
.fc-prose .fc-tag { margin-bottom: 1rem; }

/* ---- platform modules ---- */
.fc-module {
  background: #fff; border: 1px solid var(--fc-border); border-radius: var(--fc-radius); overflow: hidden;
  box-shadow: var(--fc-shadow-sm); display: flex; flex-direction: column;
}
.fc-module-chrome {
  background: var(--fc-indigo-900); padding: 12px 16px; display: flex; align-items: center; gap: 7px;
}
.fc-module-chrome span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.fc-module-canvas {
  background: linear-gradient(160deg, var(--fc-slate-50), #fff);
  border-bottom: 1px solid var(--fc-border); aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; color: var(--fc-indigo); padding: 24px;
}
.fc-module-canvas svg { width: 44px; height: 44px; opacity: .9; }
.fc-module-canvas .fc-module-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fc-slate); font-weight: 700; }
.fc-module-body { padding: 24px 26px 28px; }
.fc-module-body h3 { margin-bottom: .35rem; }
.fc-module-body p { color: var(--fc-muted); margin: 0; font-size: .96rem; }

/* ---- metrics ---- */
.fc-metric { text-align: center; }
.fc-metric .fc-metric-num { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; color: var(--fc-indigo); letter-spacing: -0.03em; line-height: 1; }
.fc-metric .fc-metric-label { display: block; margin-top: .7rem; color: var(--fc-muted); font-size: .98rem; }

/* ---- keyword strip ---- */
.fc-keywords { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fc-keyword {
  border: 1px solid var(--fc-border); border-radius: 999px; padding: .5rem 1.1rem;
  font-size: .92rem; font-weight: 600; color: var(--fc-indigo); background: #fff;
}

/* ---- feature list (checks) ---- */
.fc-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fc-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--fc-ink); }
.fc-checklist svg { flex: none; width: 22px; height: 22px; color: var(--fc-slate); margin-top: 2px; }
.fc-checklist strong { color: var(--fc-indigo-900); }

/* ---- split layout ---- */
.fc-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .fc-split { grid-template-columns: 1fr; gap: 36px; } }

/* ---- CTA band ---- */
.fc-cta-band {
  background: linear-gradient(150deg, var(--fc-indigo) 0%, var(--fc-indigo-900) 100%);
  color: #fff; border-radius: 0;
}
.fc-cta-band .fc-container { text-align: center; max-width: 760px; }
.fc-cta-band h2 { color: #fff; }
.fc-cta-band p { color: rgba(255,255,255,.8); }

/* ---- panel (light callout) ---- */
.fc-panel { background: var(--fc-slate-50); border: 1px solid var(--fc-border); border-radius: var(--fc-radius); padding: 40px; }

/* ---- forms ---- */
.fc-form { display: grid; gap: 18px; }
.fc-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--fc-indigo-900); margin-bottom: .4rem; }
.fc-field input, .fc-field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--fc-ink);
  padding: .8rem .9rem; border: 1.5px solid var(--fc-border); border-radius: var(--fc-radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fc-field input:focus, .fc-field textarea:focus {
  outline: none; border-color: var(--fc-indigo); box-shadow: 0 0 0 3px rgba(45,48,121,.12);
}
.fc-field textarea { resize: vertical; min-height: 130px; }

/* ---- info rows ---- */
.fc-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.fc-info-row .fc-icon { margin-bottom: 0; flex: none; }
.fc-info-row h4 { margin: 0 0 2px; font-size: 1rem; color: var(--fc-indigo-900); }
.fc-info-row p { margin: 0; color: var(--fc-muted); font-size: .96rem; }

/* ---- footer ---- */
.fc-footer { background: var(--fc-indigo-900); color: rgba(255,255,255,.7); }
.fc-footer .fc-container { padding-top: 64px; padding-bottom: 32px; }
.fc-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .fc-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.fc-footer img { height: 30px; margin-bottom: 18px; }
.fc-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.fc-footer a { color: rgba(255,255,255,.7); }
.fc-footer a:hover { color: #fff; }
.fc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.fc-footer-about { max-width: 30ch; font-size: .95rem; }
.fc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ---- misc ---- */
.fc-tag { display:inline-block; font-size:.8rem; font-weight:700; letter-spacing:.04em; color: var(--fc-slate); }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Polish pass — accessibility, focus, motion, product-preview tiles
   ========================================================================== */

/* Skip link for keyboard / screen-reader users */
.fc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fc-indigo); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.fc-skip:focus { left: 0; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--fc-slate); outline-offset: 3px; border-radius: 4px;
}
.fc-hero a:focus-visible, .fc-cta-band a:focus-visible, .fc-quote a:focus-visible { outline-color: #fff; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fc-btn:hover, .fc-card:hover, .fc-module:hover { transform: none; }
}

/* Make the platform module canvases read as intentional UI previews */
.fc-module-canvas { position: relative; aspect-ratio: 16 / 10; gap: 10px; }
.fc-module-canvas svg { width: 38px; height: 38px; }
.fc-module-canvas::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 16px; width: 66%; height: 30px; opacity: .5; border-radius: 3px;
  background:
    linear-gradient(var(--fc-slate), var(--fc-slate)) 0 0    / 100% 5px no-repeat,
    linear-gradient(var(--fc-slate), var(--fc-slate)) 0 11px / 82%  5px no-repeat,
    linear-gradient(var(--fc-slate), var(--fc-slate)) 0 22px / 46%  5px no-repeat;
}

/* Form feedback message */
.fc-form-status { margin: 4px 0 0; font-size: .95rem; font-weight: 600; color: var(--fc-indigo); }

/* Offset anchored sections below the sticky header */
[id] { scroll-margin-top: 92px; }

/* Hero two-column layout with product preview */
.fc-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.fc-hero-grid .fc-hero-lead, .fc-hero-grid .fc-hero-note, .fc-hero-grid .fc-btn-row { max-width: none; }
.fc-hero-visual { display: flex; justify-content: flex-end; }
.fc-kidcard {
  width: 100%; max-width: 410px; background: #fff; color: var(--fc-ink);
  border-radius: 16px; overflow: hidden; transform: rotate(-1.4deg);
  box-shadow: 0 40px 70px -28px rgba(10, 12, 40, .65), 0 8px 20px -12px rgba(10,12,40,.4);
}
.fc-kidcard-top {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px;
  background: var(--fc-bg-alt); border-bottom: 1px solid var(--fc-border);
  font-size: .82rem; font-weight: 600; color: var(--fc-indigo-900);
}
.fc-kidcard-doticon { width: 10px; height: 10px; border-radius: 50%; background: var(--fc-slate); flex: none; }
.fc-kidcard-badge {
  margin-left: auto; background: #e7f3ec; color: #1f7a44; border-radius: 999px;
  padding: 4px 11px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.fc-kidcard-body { padding: 22px 22px 24px; }
.fc-kidcard-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-slate); font-weight: 700; margin-bottom: 11px; }
.fc-kidcard-label + .fc-kidline { margin-top: 0; }
.fc-sri { display: flex; gap: 6px; margin-bottom: 22px; }
.fc-sri span {
  flex: 1; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; background: var(--fc-slate-50); color: var(--fc-slate); border: 1px solid var(--fc-border);
}
.fc-sri span.on { background: var(--fc-indigo); color: #fff; border-color: var(--fc-indigo); transform: scale(1.14); box-shadow: 0 8px 16px -5px rgba(45,48,121,.55); }
.fc-kidline { height: 9px; border-radius: 5px; background: var(--fc-slate-50); margin-bottom: 11px; }
.fc-kidline.s { width: 62%; }
.fc-kidcard-foot {
  display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--fc-border); font-size: .78rem; color: var(--fc-muted); font-weight: 500;
}
.fc-kidcard-foot svg { width: 20px; height: 20px; color: var(--fc-slate); flex: none; }
@media (max-width: 960px) {
  .fc-hero-grid { grid-template-columns: 1fr; }
  .fc-hero-visual { display: none; }
}
