/* GlobalInvoice website — one stylesheet, no framework. */
:root {
  --ink: #0f1b2d;
  --ink-2: #3b4a5f;
  --muted: #64748b;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fd;
  --brand: #1565c0;
  --brand-2: #1e88e5;
  --brand-ink: #0b3f80;
  --accent: #c2570c;
  --good: #1b7f3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 27, 45, 0.06), 0 24px 60px rgba(15, 27, 45, 0.16);
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8em;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.35em;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(21, 101, 192, 0.32); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3e0; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 0.88rem; color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 550; font-size: 0.97rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { padding: 0.6em 1.05em; font-size: 0.95rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(1000px 420px at 85% -10%, #dcebff 0%, rgba(220, 235, 255, 0) 70%),
    radial-gradient(700px 300px at 0% 10%, #fff1e6 0%, rgba(255, 241, 230, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.hero-copy { max-width: 760px; }
.hero h1 .hl { color: var(--brand); }
.country-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  font-size: 0.93rem;
  color: var(--ink-2);
}
.country-pick select {
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  border: 0;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231565c0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px;
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--ink-2); font-size: 0.95rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--good); }
.shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d5dbe4; }
.shot-bar i:first-child { background: #f17a6f; }
.shot-bar i:nth-child(2) { background: #f6c453; }
.shot-bar i:nth-child(3) { background: #5cc87a; }

/* Sections */
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
}
.card p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--brand);
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

/* Country section */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.tab[aria-selected='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.region { display: none; }
.region.active { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.region h3 { font-size: 1.45rem; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-2); }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e3f4e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b7f3b'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.flags span { font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--brand-ink); font-weight: 600; }
.note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
.showcase.reverse .showcase-copy { order: 2; }
.invoice-shot { max-width: 460px; margin: 0 auto; transform: rotate(-1.2deg); }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e3f4e8; color: var(--good); letter-spacing: 0.02em; }
.badge.in { background: #fff1e6; color: var(--accent); }
.module-list { list-style: none; padding: 0; margin: 14px 0 0; }
.module-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.module-list li:first-child { border-top: 0; }
.module-list b { display: block; }
.module-list span { color: var(--ink-2); font-size: 0.95rem; }

/* Security */
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #0b3f80 0%, #1565c0 55%, #1e88e5 100%);
  color: #fff;
  border-radius: 22px;
  padding: 56px 40px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #dbe9ff; }
.cta .btn-row { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* Footer */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-2); }

/* Text pages */
.page { padding: 60px 0 80px; }
.page .wrap { max-width: 800px; }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page li { margin-bottom: 0.4em; color: var(--ink-2); }

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: repeat(2, 1fr); }
  .region.active, .showcase { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-copy { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .nav-links, .nav > .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .features, .modules, .security { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .cta { padding: 40px 22px; border-radius: 16px; }
  .country-pick { flex-wrap: wrap; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Demo request */
.cta.demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; text-align: left; align-items: start; }
.demo-copy .fine a { color: #fff; text-decoration: underline; }
.checks.light li { color: #e6efff; }
.checks.light li::before { background-color: rgba(255, 255, 255, 0.92); }
.demo-form {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 26px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}
.demo-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.demo-form input, .demo-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid #cdd6e2;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  width: 100%;
}
.demo-form textarea { resize: vertical; min-height: 84px; }
.demo-form input:focus, .demo-form textarea:focus { outline: 3px solid rgba(21, 101, 192, 0.18); border-color: var(--brand); }
.demo-form [aria-invalid='true'] { border-color: #c62828; }
.demo-form .btn-primary { justify-content: center; background: var(--brand); color: #fff; }
.demo-form .btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.demo-form .fine { margin: 0; }
.form-note { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: var(--good); }
.form-note.err { color: #c62828; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.demo-sent { text-align: center; padding: 30px 10px; }
.demo-sent h3 { font-size: 1.4rem; }
@media (max-width: 980px) { .cta.demo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .demo-form .two { grid-template-columns: 1fr; } .demo-form { padding: 20px; } }
.cta .demo-form p { color: var(--ink-2); }
.cta .demo-form .fine { color: var(--muted); }
.cta .demo-form .form-note.ok { color: var(--good); }
.cta .demo-form .form-note.err { color: #c62828; }
section[id], [id='contact'] { scroll-margin-top: 76px; }
.after-plans { margin-top: 22px; }
.nav .push-right { margin-left: auto; display: inline-flex; }
.module-list li.bundle { background: var(--bg-tint); border-radius: 10px; padding: 12px 14px; margin: 0 -14px 4px; border-top: 0; }
.module-list li.bundle + li { border-top: 0; }
.module-list li.bundle b { display: flex; align-items: center; gap: 8px; }
