/* FINCOREKS — Landing + Auth (inspired by FinecoreOnline design system) */
:root {
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --bg: #f4f7fb;
  --bg-alt: #e8eef6;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0369a1;
  --accent-hover: #0284c7;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--text-muted); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1120px, 100% - 2rem); margin-inline: auto; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.03em; }
.logo__accent { color: var(--accent); }
.nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text-muted); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.nav__list a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.65rem 1.25rem; font-weight: 600; font-size: 0.9375rem; font-family: inherit; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, filter .2s; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--primary { background: linear-gradient(180deg, var(--accent-hover), var(--accent)); color: #fff; box-shadow: 0 2px 12px -2px rgba(3,105,161,.45); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface2); }

.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 2rem 0 4rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 15% 20%, rgba(3,105,161,.08), transparent), radial-gradient(ellipse 60% 50% at 90% 80%, rgba(14,165,233,.06), transparent), var(--bg); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero__lead { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1.5rem; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.hero__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.dash-mock__top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.dash-mock__dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.dash-mock__dot:first-child { background: #ef4444; }
.dash-mock__dot:nth-child(2) { background: #f59e0b; }
.dash-mock__dot:nth-child(3) { background: #22c55e; }
.dash-mock__title { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.dash-mock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dash-mock__card { padding: 0.85rem; background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.dash-mock__card small { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-mock__card strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); }
.dash-mock__card--wide { grid-column: 1 / -1; }
.dash-mock__bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 0.5rem; }
.dash-mock__bars i { flex: 1; display: block; height: var(--h, 50%); background: linear-gradient(180deg, var(--accent-hover), var(--accent)); border-radius: 3px 3px 0 0; opacity: 0.85; }

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section__title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin: 0 0 0.75rem; }
.section__subtitle { margin: 0; color: var(--text-muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; }
.feature h3 { margin: 0.75rem 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.feature__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: rgba(3,105,161,.1); color: var(--accent); font-weight: 700; }

.cta { text-align: center; padding: 4rem 0; background: linear-gradient(180deg, #fff, var(--bg-alt)); border-top: 1px solid var(--border); }
.cta h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 0.75rem; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.875rem; color: var(--text-muted); }

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .28s var(--ease), opacity .28s var(--ease); }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: -1; }
}

/* Auth split layout */
.fx-auth { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.fx-auth-brand { position: relative; padding: 2rem; background: linear-gradient(165deg, #0c4a6e 0%, #0369a1 45%, #0f172a 100%); color: #f8fafc; display: flex; flex-direction: column; overflow: hidden; }
.fx-auth-brand-grid { position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 32px 32px; }
.fx-auth-brand-top { position: relative; display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.fx-logo-mark { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 10px; }
.fx-auth-brand-copy { position: relative; margin: auto 0; max-width: 28rem; }
.fx-auth-brand-copy h1 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; margin: 0 0 1rem; }
.fx-auth-brand-list { margin: 1rem 0 0; padding-left: 1.2rem; color: rgba(248,250,252,.85); }
.fx-auth-brand-foot { position: relative; font-size: 0.75rem; color: rgba(248,250,252,.6); }
.fx-auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.fx-auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.fx-auth-card h1 { font-family: var(--font-display); font-size: 1.5rem; margin: 0.35rem 0 0.75rem; }
.fx-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; display: block; }
.fc-login-pro-lead { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem; }
.fc-login-pro-label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.35rem; }
.fc-login-pro-input, .fx-field input { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; margin-bottom: 0.85rem; }
.fc-login-pro-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.25rem; font-weight: 600; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.fx-btn-primary { background: var(--accent); color: #fff; }
.fx-btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.fx-btn-block { width: 100%; }
.fx-btn-lg { padding: 0.75rem 1.25rem; }
.fx-auth-foot { margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.fx-auth-foot .fx-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.fx-auth-foot .fx-link:hover { text-decoration: underline; }
@media (max-width: 900px) { .fx-auth { grid-template-columns: 1fr; } .fx-auth-brand { min-height: 40vh; } }

/* ============================================================================
   fx-landing design system (bento marketing pages)
   Restores layout for pages using .fx-landing / .fx-bento markup
   (pos-software, services, pricing, about, faq, terms, privacy, cookies,
   accounting-integration). Without these rules the inline SVG icons — which
   carry only a viewBox and no width/height — expand to full width and make
   the page extremely long on desktop.
   ============================================================================ */
.fx-landing { margin: 0; }

/* Top scroll-progress bar (width driven by JS via --fx-progress) */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.fx-progress > span { display: block; height: 100%; width: var(--fx-progress, 0%); background: linear-gradient(90deg, var(--accent-hover), var(--accent)); }

/* Header */
.fx-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.fx-header.is-scrolled { box-shadow: var(--shadow); }
.fx-header-inner { display: flex; align-items: center; gap: 1rem; width: min(1120px, 100% - 2rem); margin-inline: auto; height: var(--header-h); }
.fx-logo { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.fx-logo-mark { background: rgba(3,105,161,.12); color: var(--accent); }
.fx-logo-mark svg { width: 22px; height: 22px; }
.fx-nav { display: flex; align-items: center; gap: 1.5rem; }
.fx-nav a { color: var(--text-muted); font-weight: 500; font-size: .9375rem; text-decoration: none; transition: color .15s; }
.fx-nav a:hover, .fx-nav a.is-current { color: var(--text); }
.fx-header-cta { display: flex; align-items: center; gap: .5rem; }
.fx-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.fx-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.fx-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fx-burger.is-open span:nth-child(2) { opacity: 0; }
.fx-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Layout container */
.fx-container { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* Hero — compact so the top of the page fits the viewport */
.fx-page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.fx-page-hero .fx-container { max-width: 44rem; }
.fx-page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: .5rem 0 1rem; }
.fx-page-hero p { font-size: 1.075rem; color: var(--text-muted); margin: 0 auto; max-width: 40rem; }

/* Sections */
.fx-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.fx-section--soft { background: var(--bg-alt); }
.fx-section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); padding-inline: 1rem; }
.fx-section-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.15rem); margin: .35rem 0 0; }

/* Bento grid — multi-column on desktop keeps the page short */
.fx-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.fx-bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.fx-bento-card--wide { grid-column: span 2; }
.fx-bento-card h3 { margin: .85rem 0 .4rem; font-size: 1.075rem; }
.fx-bento-card p { margin: 0; font-size: .925rem; color: var(--text-muted); }
.fx-bento-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(3,105,161,.1); color: var(--accent); }
.fx-bento-icon svg { width: 24px; height: 24px; }

/* CTA */
.fx-cta { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; width: min(1000px, 100% - 2rem); border-radius: calc(var(--radius) * 1.5); background: linear-gradient(160deg, #0c4a6e, #0369a1 55%, #0f172a); color: #f8fafc; }
.fx-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.15rem); margin: 0 0 .6rem; }
.fx-cta p { margin: 0 auto 1.5rem; color: rgba(248,250,252,.82); max-width: 34rem; }
.fx-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.fx-btn-white { background: #fff; color: var(--accent); }
.fx-btn-white:hover { filter: brightness(.97); }

/* Footer */
.fx-footer { background: #0f172a; color: rgba(248,250,252,.68); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.fx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; width: min(1120px, 100% - 2rem); margin: 0 auto 1.5rem; }
.fx-footer-grid > div { display: flex; flex-direction: column; gap: .5rem; }
.fx-footer-grid strong { color: #f8fafc; font-size: .9rem; margin-bottom: .15rem; }
.fx-footer-grid a { color: rgba(248,250,252,.66); text-decoration: none; font-size: .9rem; }
.fx-footer-grid a:hover { color: #fff; }
.fx-footer-copy { width: min(1120px, 100% - 2rem); margin: 0 auto; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: rgba(248,250,252,.5); }

/* Reveal-on-scroll (JS toggles .is-visible; it also force-adds it as a fallback) */
.fx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fx-reveal.is-visible { opacity: 1; transform: none; }
.fx-reveal-d1 { transition-delay: .08s; }
.fx-reveal-d2 { transition-delay: .16s; }

/* Mobile */
@media (max-width: 860px) {
  .fx-burger { display: flex; }
  .fx-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1rem 1.5rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .28s var(--ease), opacity .28s var(--ease); }
  .fx-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .fx-header-cta .fx-btn-ghost { display: none; }
  .fx-bento-card--wide { grid-column: auto; }
  .fx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fx-footer-grid { grid-template-columns: 1fr; }
}
