/* Fintelect site styles */
:root {
  --ink: #14181B;
  --body: #4E575D;
  --muted: #636B71;
  --line: #DDE1E3;
  --soft: #F4F5F6;
  --night: #0E1417;
  --night-line: #2A3337;
  --night-text: #A9B4B8;
  --teal: #1F7A72;
  --mint: #7FD1C4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--ink); }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 80px; }

/* Type */
.h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 300; letter-spacing: -0.01em; margin: 0; }
.h4 { font-size: 22px; line-height: 1.3; font-weight: 400; margin: 0; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 300; color: var(--muted); margin: 0; }
.body { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0; }
.small { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; font-weight: 600; color: var(--teal); margin: 0; text-transform: uppercase; }
.big { font-size: 48px; font-weight: 300; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #DDF2EE; color: var(--ink); }
.btn-ghost { border-color: #5C6A70; color: #fff; }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #ECEEEF; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
.nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; color: #2B3236; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 500; }

/* Sections */
.pad { padding: 112px 0; }
.wrap.pad { padding: 112px 32px; }
.soft { background: var(--soft); }
.night { background: var(--night); color: #fff; }
.night .h2, .night .h3 { color: #fff; }
.night .body { color: var(--night-text); }
.dots { background-color: var(--night); background-image: radial-gradient(#3A474D 1.2px, transparent 1.2px); background-size: 56px 56px; border-radius: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .a { flex: 1 1 360px; min-width: 0; }
.split > .b { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.soft-card { background: var(--soft); border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.line-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.line-card.pick { background: var(--ink); border-color: var(--ink); color: #fff; }
.line-card.pick .small { color: #C9D0D3; }
.line-card.pick .eyebrow { color: var(--mint); }

/* Hero */
.hero { padding: 96px 0 72px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.hero .main { flex: 1 1 560px; max-width: 700px; display: flex; flex-direction: column; gap: 28px; }
.hero .side { flex: 0 1 330px; padding-top: 120px; }

/* Principles */
.prin { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 36px 0; border-top: 1px solid var(--night-line); }
.prin:last-child { border-bottom: 1px solid var(--night-line); }
.prin .h3 { flex: 1 1 380px; }
.prin .body { flex: 1 1 420px; }

/* Mock dashboard */
.mock { max-width: 980px; margin: 0 auto; background: #fff; border-radius: 12px 12px 0 0; display: flex; flex-wrap: wrap; overflow: hidden; }
.mock .side { flex: 0 0 200px; background: var(--ink); padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.mock .side p { margin: 0; color: #A9B4B8; font-size: 13px; }
.mock .main { flex: 1 1 520px; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi { border: 1px solid #ECEEEF; border-radius: 8px; padding: 12px; }
.kpi p { margin: 0; font-size: 12px; color: var(--muted); }
.kpi strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 400; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.bars i { display: block; border-radius: 2px; }
.bars .f { background: #C8D2D5; }
.bars .r { background: var(--teal); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--body); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 14px; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.hl td { background: #E7F3F0; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--body); }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "0" counter(s); font-size: 14px; font-weight: 600; color: var(--teal); letter-spacing: 0.08em; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 20px; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 14px 0 0; max-width: 760px; }

/* Form */
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C7CDD0; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hidden { display: none; }
.note { font-size: 14px; color: var(--muted); margin: 0; }

/* CTA + footer */
.cta { padding: 112px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta .body { color: #C9D0D3; max-width: 560px; }
.site-footer { background: var(--night); padding: 72px 0 40px; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer .col { display: flex; flex-direction: column; gap: 12px; flex: 0 1 180px; }
.site-footer .col p { margin: 0; color: #7E8B90; font-size: 12px; letter-spacing: 0.12em; }
.site-footer a { text-decoration: none; color: #C9D0D3; font-size: 15px; }
.site-footer a:hover { color: var(--mint); }
.site-footer .bottom { border-top: 1px solid var(--night-line); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #7E8B90; font-size: 13px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .pad { padding: 80px 0; }
  .wrap.pad { padding: 80px 20px; }
  .mock .side { display: none; }
  .hero { padding-top: 64px; }
  .hero .side { padding-top: 0; }
  .card, .line-card { padding: 24px; }
}
