/* ============================================================================
   Firm24 landing — design system
   Palette: deep navy ink + confident indigo-blue brand + teal accent.
   Self-hosted system font stack (no CDN). Hand-written, dependency-free CSS.
   ========================================================================== */

:root {
  /* Neutrals / ink */
  --ink:        #0B1220;
  --ink-2:      #131D33;
  --bg:         #ffffff;
  --bg-soft:    #f5f7fb;
  --bg-softer:  #eef2f9;
  --border:     #e4e9f2;
  --border-2:   #d4dbea;
  --muted:      #56627a;
  --muted-2:    #8b94a8;

  /* Brand (indigo-blue) */
  --brand:      #2c4bff;
  --brand-600:  #1f3ae0;
  --brand-700:  #1730b8;
  --brand-50:   #eef1ff;
  --brand-100:  #dee4ff;

  /* Accent (teal) */
  --accent:     #12b5a8;
  --accent-50:  #e6faf7;

  --success:    #16a34a;
  --success-50: #e9f8ef;
  --warn:       #b8780b;
  --warn-50:    #fdf4e3;
  --danger:     #dc2626;
  --danger-50:  #fef2f2;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 22, 47, .06), 0 1px 3px rgba(13, 22, 47, .05);
  --shadow:    0 8px 24px -10px rgba(13, 22, 47, .18);
  --shadow-lg: 0 28px 60px -24px rgba(13, 22, 47, .35);

  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "Liberation Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8.5vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Eyebrow + section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-600);
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.section--ink .section-head p { color: #b9c2d6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 650; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(44, 75, 255, .6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--muted-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; font-size: 14px; color: var(--muted);
  padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--r-pill);
}
.lang-switch:hover { color: var(--ink); border-color: var(--muted-2); }
.lang-switch .icon { width: 16px; height: 16px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(44, 75, 255, .35), transparent 60%),
              radial-gradient(900px 500px at 0% 0%, rgba(18, 181, 168, .18), transparent 55%),
              linear-gradient(160deg, #0b1220 0%, #101a36 60%, #16245a 100%);
  color: #fff;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #d7deff; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(18, 181, 168, .25); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); margin: 22px 0 0; }
.hero h1 .grad { background: linear-gradient(90deg, #8aa2ff, #38e0d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); color: #c4cce0; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat-v { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats .stat-l { font-size: 13.5px; color: #9aa6c2; max-width: 150px; }

/* ---------- Dashboard mockup ---------- */
.mock-wrap { position: relative; }
.mock {
  background: #fff; color: var(--ink); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .5);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f1f4fa; border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cfd6e6; }
.mock-dots i:nth-child(1) { background: #ff6159; } .mock-dots i:nth-child(2) { background: #ffbd2e; } .mock-dots i:nth-child(3) { background: #28c840; }
.mock-url { margin-left: 8px; flex: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12px; color: var(--muted-2); padding: 5px 12px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.mock-head h3 { font-size: 17px; }
.mock-pill { font-size: 12px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 5px 11px; border-radius: var(--r-pill); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mock-table thead th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 12px 20px; }
.mock-table tbody td { padding: 13px 20px; border-top: 1px solid var(--border); vertical-align: middle; }
.mock-member { display: flex; align-items: center; gap: 11px; }
.mock-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); flex: none; }
.mock-name { font-weight: 650; }
.mock-role { color: var(--muted); }
.mock-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg-softer); border: 1px solid var(--border); padding: 3px 9px; border-radius: var(--r-pill); }
.badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.badge--active { color: var(--success); background: var(--success-50); }
.badge--cand { color: var(--warn); background: var(--warn-50); }

.mock-float {
  position: absolute; left: -22px; bottom: -26px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
}
.mock-float .mf-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-50); }
.mock-float .mf-v { font-weight: 800; font-size: 16px; color: var(--ink); }
.mock-float .mf-l { font-size: 12px; color: var(--muted); }

/* ---------- Trusted strip ---------- */
.trusted { border-bottom: 1px solid var(--border); }
.trusted .container { padding-top: 36px; padding-bottom: 36px; text-align: center; }
.trusted p { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.trusted-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; margin-top: 20px; }
.trusted-row span { font-size: 18px; font-weight: 800; color: #aab2c6; letter-spacing: -.01em; }

/* ---------- Generic card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-2); }

.feature-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: var(--brand-600); background: var(--brand-50); margin-bottom: 18px; }
.feature-icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 18px; }
.card p { margin-top: 9px; color: var(--muted); font-size: 14.5px; }

/* ---------- Features grid (7 → balanced) ---------- */
.features-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Audiences ---------- */
.audience-card { display: flex; flex-direction: column; }
.audience-card .feature-icon { color: var(--accent); background: var(--accent-50); }
.audience-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.audience-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.audience-points .icon { width: 18px; height: 18px; color: var(--success); margin-top: 3px; }

/* ---------- How it works ---------- */
.steps { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; }
.step-num { font-size: 14px; font-weight: 800; color: #fff; background: var(--brand); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 17px; }
.step p { margin-top: 9px; color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill); }
.plan h3 { font-size: 22px; }
.plan-tag { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 40px; }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan li .icon { width: 18px; height: 18px; color: var(--brand-600); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.pricing-note { max-width: 680px; margin: 34px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Team ---------- */
.team-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.member { display: flex; gap: 18px; align-items: flex-start; }
.member-avatar { position: relative; width: 92px; height: 92px; border-radius: 20px; flex: none; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: var(--shadow-sm); }
.member-initials { font-size: 30px; font-weight: 800; color: #fff; }
/* When a photo is present it covers the initials; if it fails to load it is removed and the initials show. */
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 18px; }
.member .role { color: var(--brand-600); font-weight: 650; font-size: 14px; margin-top: 2px; }
.member p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Final CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.cta-band p { margin: 14px auto 28px; color: #c4cce0; max-width: 560px; }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(26px, 3.4vw, 38px); }
.contact-intro p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 11px; align-items: center; font-weight: 550; }
.contact-list .icon { width: 20px; height: 20px; color: var(--success); }
.contact-email { margin-top: 26px; font-size: 15px; }
.contact-email a { font-weight: 650; }
.contact-email-icon { display: inline-block; vertical-align: -7px; margin-right: 5px;}

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 7px; color: var(--ink); }
.field .opt { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--border-2); border-radius: var(--r); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field input.input-error, .field select.input-error, .field textarea.input-error { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 6px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.consent a { font-weight: 600; }

.honeypot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-banner { padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 18px; }
.form-banner--error { background: var(--danger-50); color: #b21f1f; border: 1px solid #f5cccc; }

.form-success { text-align: center; padding: 18px 8px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 22px; }
.form-success p { margin-top: 10px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab2c6; padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #8b94a8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; color: #aab2c6; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #8b94a8; }

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal .updated { color: var(--muted-2); margin-top: 8px; font-size: 14px; }
.legal .intro { margin-top: 20px; font-size: 17px; color: var(--muted); }
.legal section { margin-top: 30px; }
.legal section h2 { font-size: 20px; }
.legal section p { margin-top: 8px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .features-grid, .pricing-grid, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .site-header .container { gap: 12px; }
  /* mobile nav panel */
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 12px 24px 18px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px; font-size: 16px; }
  .nav.open .btn { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 620px) {
  .grid-3, .features-grid, .pricing-grid, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .mock-float { left: 8px; bottom: -18px; }
  .mock-table .col-hide { display: none; }
  .hero-stats { gap: 22px; }
}

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