/* =========================================================================
   Freeliq landing — light, professional, finance-grade
   Navy (brand wordmark) + teal (brand mark) on a calm light surface.
   Self-contained: no Tailwind build required.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-mute: #f1f4f7;

  /* Ink / text — navy-leaning for trust */
  --navy: #0c2747;          /* deep brand navy (matches wordmark) */
  --navy-700: #143a64;
  --ink: #0f2443;           /* headings */
  --text: #33405a;          /* body */
  --muted: #66738c;         /* secondary */
  --faint: #93a0b4;         /* tertiary */

  /* Borders */
  --border: #e4e8ee;
  --border-strong: #d3dae3;

  /* Brand teal */
  --teal: #0d9488;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;
  --teal-100: #d6f3ef;

  /* Semantic */
  --green: #15803d;
  --green-bg: #ecfdf3;
  --amber: #b45309;
  --amber-bg: #fef6e7;
  --rose: #be123c;
  --rose-bg: #fef1f3;

  /* Elevation — neutral, no glow */
  --shadow-xs: 0 1px 2px rgba(12,39,71,.06);
  --shadow-sm: 0 2px 8px rgba(12,39,71,.06);
  --shadow: 0 8px 28px rgba(12,39,71,.09);
  --shadow-lg: 0 28px 70px rgba(12,39,71,.16);

  /* Radius — businesslike, not pill-everything */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace; /* @kind font */

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.eyebrow svg { width: 14px; height: 14px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--faint); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); transition: color .15s; }
.nav-links a:hover { color: var(--teal-700); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.lang-toggle:hover { color: var(--ink); background: var(--surface-mute); }
.nav-login { font-size: 14.5px; font-weight: 500; color: var(--text); }
.nav-login:hover { color: var(--teal-700); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }
#mobileMenu { display: none; background: var(--surface); border-top: 1px solid var(--border); }
#mobileMenu .mm-inner { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
#mobileMenu a { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 132px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(13,148,136,.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.03em; margin: 22px 0 20px;
}
.hero h1 .accent { color: var(--teal); }
.hero .lead { max-width: 30em; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 20px; margin-top: 30px;
  font-size: 13.5px; color: var(--muted); flex-wrap: wrap;
}
.hero-trust .t-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- App mockup (browser shell) ---------- */
.shell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.shell-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt);
}
.shell-dot { width: 11px; height: 11px; border-radius: 50%; background: #d6dce4; }
.shell-url {
  margin-left: 10px; font-size: 12px; color: var(--faint);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 12px; font-family: var(--mono);
}
.shell-body { padding: 22px; }

/* generic mini-card used in mockups */
.mini {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
}
.mini-alt { background: var(--surface-alt); }
.label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill);
}
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-teal { background: var(--teal-50); color: var(--teal-700); }

/* ---------- Logo strip ---------- */
.logostrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.logostrip .wrap { padding-top: 26px; padding-bottom: 26px; }
.logostrip-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logostrip .ls-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.ls-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
}
.ls-chip .soon { font-size: 10px; font-weight: 600; color: var(--faint); }
.ls-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.ls-dot.muted { background: var(--border-strong); }

/* ---------- Flow steps ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.flow::before {
  content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--teal-100) 30%, var(--teal-100) 70%, var(--border));
  z-index: 0;
}
.step { position: relative; z-index: 1; background: transparent; }
.step-num {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--teal); position: relative;
}
.step-num svg { width: 24px; height: 24px; }
.step-num .n {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Navy band (bookkeeping) ---------- */
.band-navy {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(13,148,136,.16), transparent 60%),
    var(--navy);
  color: #c7d2e0;
}
.band-navy h2 { color: #fff; }
.band-navy .lead { color: #9fb0c6; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: #d4dde9; line-height: 1.5; }
.check-list .ck {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(13,148,136,.18); color: #2dd4bf;
  display: flex; align-items: center; justify-content: center;
}
.check-list .ck svg { width: 13px; height: 13px; }

/* invoice mock (on navy) */
.invoice {
  background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.invoice-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.invoice-head .ino { font-size: 13px; color: var(--muted); }
.invoice-head .amt { font-size: 20px; font-weight: 700; color: var(--ink); }
.invoice-body { padding: 8px 22px 18px; }
.iline { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.iline:last-child { border-bottom: none; }
.iline .d { color: var(--text); }
.iline .h { color: var(--muted); font-variant-numeric: tabular-nums; }
.iline .m { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.invoice-foot { padding: 14px 22px; background: var(--surface-alt); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.invoice-foot .lbl { font-size: 13px; color: var(--muted); }
.invoice-foot .syncing { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--teal-700); }
.invoice-foot .syncing svg { width: 14px; height: 14px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px 24px; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.feat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feat-ico {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feat-ico svg { width: 21px; height: 21px; }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Pricing ---------- */
.toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow-xs);
}
.toggle button {
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border: none; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  transition: all .15s;
}
.toggle button.active { background: var(--navy); color: #fff; }
.toggle .save { color: var(--teal); font-size: 12px; margin-left: 5px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: var(--r-pill);
}
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .pdesc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.plan .price { margin: 22px 0; }
.plan .price .num { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan .price .per { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text); }
.plan li svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--teal); margin-top: 1px; }

/* ---------- About ---------- */
.about-card { max-width: 720px; margin: 0 auto; text-align: center; }
.about-sig { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; }
.about-sig .mark { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.about-sig .who { text-align: left; }
.about-sig .who .n { font-size: 14px; font-weight: 700; color: var(--ink); }
.about-sig .who .l { font-size: 12.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.contact-ok { display: none; text-align: center; color: var(--green); font-size: 14px; font-weight: 600; margin-top: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-logo img { height: 26px; }
.foot-copy { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.foot-links { display: flex; gap: 26px; font-size: 14px; }
.foot-links a { color: var(--muted); cursor: pointer; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Legal document panel (slide-over) ---------- */
.doc-overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.doc-overlay.open { visibility: visible; }
.doc-scrim {
  position: absolute; inset: 0; background: rgba(12,39,71,.42);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease;
}
.doc-overlay.open .doc-scrim { opacity: 1; }

.doc-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(580px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.4, 0, .1, 1);
}
.doc-overlay.open .doc-panel { transform: none; }

.doc-head {
  flex: 0 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 30px 34px 22px;
  border-bottom: 1px solid var(--border);
}
.doc-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: 11px;
}
.doc-head h3 { font-size: 25px; letter-spacing: -.022em; color: var(--ink); margin: 0; line-height: 1.18; }
.doc-updated {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
}
.doc-updated::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.doc-x {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.doc-x:hover { background: var(--surface-mute); color: var(--ink); border-color: var(--border-strong); }

.doc-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 34px 10px; }
.doc-lead { font-size: 15.5px; line-height: 1.62; color: var(--text); margin: 0; }

.doc-section { padding: 22px 0; border-top: 1px solid var(--border); }
.doc-section:first-of-type { border-top: none; padding-top: 16px; }
.doc-section h4 {
  display: flex; align-items: center; gap: 11px;
  font-size: 15.5px; color: var(--ink); margin: 0 0 11px; line-height: 1.3;
}
.doc-section h4 .num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
}
.doc-section p { font-size: 14.5px; line-height: 1.66; color: var(--text); margin: 0 0 10px; }
.doc-section p:last-child { margin-bottom: 0; }

.doc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.doc-list li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--text); }
.doc-list li::before {
  content: ''; position: absolute; left: 5px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50);
}

.doc-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--r-md); padding: 14px 16px; margin: 14px 0 0;
}
.doc-callout svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--teal-700); margin-top: 1px; }
.doc-callout p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--navy-700); }

.doc-foot {
  flex: 0 0 auto; padding: 18px 34px 24px;
  border-top: 1px solid var(--border); background: var(--surface-alt);
}
.doc-foot p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.doc-foot a { color: var(--teal-700); font-weight: 600; text-decoration: none; }
.doc-foot a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .doc-head { padding: 24px 22px 18px; }
  .doc-head h3 { font-size: 22px; }
  .doc-body { padding: 18px 22px 8px; }
  .doc-foot { padding: 16px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-panel { transition: none; }
  .doc-scrim { transition: none; }
}

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 70; display: none; }
.cookie.show { display: block; }
.cookie-inner {
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; flex-wrap: wrap; }
.cookie-row p { font-size: 14px; color: var(--text); max-width: 38em; }
.cookie-row a { color: var(--teal-700); font-weight: 600; }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-actions .link { background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 4px; }

/* ---------- Reveal animation (subtle, accessible) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s 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; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .flow::before { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 680px) {
  .nav-links, .nav-login { display: none; }
  .menu-btn { display: block; }
  #mobileMenu.open { display: block; }
  .feat-grid, .price-grid, .stat-row { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .hero-cta .btn { flex: 1; }
}
