/* FINESTRA public site — minimalist financial-services design system.
   All colour comes from CSS variables set by /theme.css; nothing here is brand-specific. */
:root {
  --radius: 14px; --radius-sm: 10px; --shadow-sm: 0 1px 2px rgba(16,33,43,.06), 0 1px 3px rgba(16,33,43,.05);
  --shadow: 0 10px 30px -12px rgba(16,33,43,.22), 0 2px 6px rgba(16,33,43,.05);
  --shadow-lg: 0 30px 60px -24px rgba(16,33,43,.28), 0 8px 16px -8px rgba(16,33,43,.1);
  --ease: cubic-bezier(.2,.7,.2,1);
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.js .calc-submit { display: none; }
body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.fine { font-size: .85rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.flash { padding-top: 16px; }

/* Buttons */
.btn { border-radius: 999px; padding: 12px 24px; transition: background .2s, transform .2s var(--ease), box-shadow .2s; box-shadow: 0 1px 2px rgba(16,33,43,.12); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(16,33,43,.35); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-ghost { background: transparent; box-shadow: none; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-mid); box-shadow: none; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.logo img { display: block; max-height: 34px; width: auto; }
.mark rect { fill: var(--brand); } .mark .m2 { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .96rem; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.site-nav a.btn { color: var(--on-brand); margin-left: 8px; }
.site-nav a.btn:hover { background: var(--brand-dark); color: var(--on-brand); }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; gap: 2px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .js .site-nav a.btn { margin: 10px 0 0; text-align: center; }
  .js .nav-sep { display: none; }
  .no-js .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .no-js .head-row { flex-wrap: wrap; padding-block: 8px; }
}

/* Hero */
.hero-home { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.hero-home::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); z-index: 0; }
.hero-home::after { content: ""; position: absolute; left: -15%; bottom: -35%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-grid h1 { margin-bottom: .4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.hero-card:hover { transform: rotate(0); }
.hero-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.hero-card .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; line-height: 1; }
.hero-card dl { margin: 18px 0 0; display: grid; gap: 10px; }
.hero-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 10px; }
.hero-card dt { color: var(--muted); } .hero-card dd { margin: 0; font-weight: 600; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { transform: none; } }
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--bg-alt), #fff); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }

/* Cards & grids */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-mid); }
.product-card .cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.product-card h3 { font-size: 1.35rem; margin: 8px 0 6px; }
.product-card .sum { color: var(--muted); flex: 1; margin-bottom: 18px; }
.mini-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.mini-facts dt { font-size: .78rem; color: var(--muted); } .mini-facts dd { margin: 2px 0 0; font-weight: 700; }
.more { font-weight: 700; color: var(--brand); } .product-card:hover .more { text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 40px 0 0; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: 6px; } .steps p { color: var(--muted); margin: 0; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; }
.trust > div { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trust h3::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/20px no-repeat; }
.trust p { color: var(--muted); margin: 0; }
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: 24px; padding: clamp(32px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .22; }
.cta-band h2, .cta-band p { color: var(--on-brand); position: relative; z-index: 1; } .cta-band p { opacity: .9; }
.cta-band .btn { position: relative; z-index: 1; }

/* Reveal-on-scroll (only when JS is running; respects reduced motion) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn, .product-card, .hero-card { transition: none; } }

/* Product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.sticky { position: sticky; top: 92px; }
@media (max-width: 980px) { .product-layout { grid-template-columns: 1fr; } .sticky { position: static; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.fact { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 18px; }
.fact dt { font-size: .8rem; color: var(--muted); font-weight: 600; } .fact dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.block { margin-top: 44px; } .block h2 { font-size: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0 8px 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks .opt { color: var(--muted); font-size: .9rem; }
.simple-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.simple-table th, .simple-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.simple-table th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.simple-table td.num, .simple-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; } .prose h3 { margin-top: 1.4em; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }

/* Calculator */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.calc h2 { font-size: 1.25rem; margin-bottom: 18px; }
.field-row { margin-bottom: 20px; }
.field-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.field-row label { margin: 0; font-weight: 600; }
.field-row .val { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.field-row .num-in { width: 120px; margin: 0; padding: 7px 10px; text-align: right; }
input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--brand); cursor: pointer; }
.range-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.result { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; margin-top: 8px; transition: opacity .2s; }
.result.loading { opacity: .55; }
.result .label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.result .headline { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px; }
.result dl { margin: 16px 0 0; display: grid; gap: 9px; }
.result dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.result dt { color: var(--muted); } .result dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.result .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.02rem; }
.calc-error { color: var(--err); font-weight: 600; }
.calc details { margin-top: 14px; } .calc summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.schedule { max-height: 280px; overflow: auto; margin-top: 8px; }
.calc .btn { margin-top: 16px; }
.est { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* Application wizard */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: st; overflow-x: auto; }
.stepper li { flex: 1; min-width: 92px; counter-increment: st; font-size: .82rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; font-weight: 600; }
.stepper li::before { content: counter(st) ". "; }
.stepper li.done { border-color: var(--brand-mid); color: var(--ink); } .stepper li.current { border-color: var(--brand); color: var(--brand-dark); }
.stepper a { color: inherit; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.5rem; } .form-card .sub { color: var(--muted); margin-bottom: 24px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.form-card label { font-weight: 600; font-size: .95rem; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card input[type=date], .form-card input[type=number], .form-card select, .form-card textarea { border-radius: 12px; padding: 12px 14px; border-color: #c9d3da; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 0; }
.field-error { display: block; color: var(--err); font-size: .88rem; font-weight: 600; margin-top: 5px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err) !important; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.summary-box { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.summary-box dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; }
.summary-box dt { font-size: .78rem; color: var(--muted); font-weight: 600; } .summary-box dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.review-block h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.review-block h3 a { font-size: .88rem; font-weight: 600; }
.review-block dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.review-block dt { font-size: .78rem; color: var(--muted); } .review-block dd { margin: 0; font-weight: 600; word-break: break-word; }
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.doc-row.ok { border-color: var(--brand-mid); background: var(--brand-soft); }
.doc-row .name { font-weight: 700; } .doc-row .req { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.doc-row .file { color: var(--muted); font-size: .9rem; word-break: break-all; }
.doc-row form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.doc-row input[type=file] { max-width: 230px; font-size: .88rem; }
@media (max-width: 640px) { .doc-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.consents label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consents input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

/* Confirmation, tracking */
.confirm { text-align: center; }
.code-box { display: inline-block; background: var(--bg-alt); border: 2px dashed var(--brand-mid); border-radius: var(--radius); padding: 18px 28px; margin: 8px; }
.code-box .k { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.code-box .v { font-size: 1.9rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.status-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; background: var(--brand-soft); color: var(--brand-dark); }
.status-pill.s-rejected, .status-pill.s-withdrawn { background: #fdecea; color: var(--err); }
.status-pill.s-info_requested { background: var(--accent-soft); color: var(--ink); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 18px; } .timeline li::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline .when { color: var(--muted); font-size: .85rem; }

/* FAQ, contact, legal */
.faq-group { margin-bottom: 36px; } .faq-group h2 { font-size: 1.2rem; color: var(--brand); }
details.faq { border-bottom: 1px solid var(--line); } details.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--brand); transition: transform .25s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); } details.faq .ans { padding: 0 0 18px; color: #3a4a55; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; } .contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); } .contact-list b { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.review-banner { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 24px; font-weight: 600; }

/* Footer */
.site-foot { background: var(--ink); color: #c9d4db; padding: 56px 0 28px; margin-top: 0; }
.site-foot a { color: #e8eef2; text-decoration: none; display: block; padding: 4px 0; } .site-foot a:hover { text-decoration: underline; }
.site-foot strong { display: block; color: #fff; margin-bottom: 10px; } .site-foot span { display: block; padding: 4px 0; }
.foot-brand { font-size: 1.1rem; letter-spacing: .06em; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; } .site-foot .fine { color: #aebbc4; margin: 0 0 6px; }

/* Utilities (inline styles are blocked by our Content-Security-Policy) */
.pt-sm { padding-top: 32px; } .mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mx-auto { margin-inline: auto; }
