/* ===== Alltidfaktura – felles stilark ===== */
:root {
  --blue: #1f5eff;
  --blue-dark: #1442c4;
  --ink: #0f1729;
  --slate: #475467;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: #e6e9f0;
  --green: #18a957;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 33, 80, 0.08);
  --shadow-sm: 0 2px 10px rgba(16, 33, 80, 0.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #4f86ff);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 9px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 40px;
  cursor: pointer; font-size: 20px; color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--slate); margin: 0 0 26px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--slate); font-size: 18px; margin: 0; }

/* ===== Hero ===== */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(31,94,255,0.10), transparent 60%),
    radial-gradient(700px 350px at 0% 10%, rgba(24,169,87,0.07), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.hero .lead { font-size: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { color: var(--muted); font-size: 14px; }
.hero-trust strong { color: var(--ink); }

/* Hero illustration: a stylised invoice card */
.invoice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.invoice-card .ic-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.invoice-card .ic-title { font-weight: 800; font-size: 17px; }
.invoice-card .ic-sub { color: var(--muted); font-size: 13px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.pill-green { background: #e7f7ee; color: var(--green); }
.pill-amber { background: #fff3e0; color: #c97a07; }
.invoice-row {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--slate);
}
.invoice-row.total { border-top: 2px solid var(--line); font-weight: 800; color: var(--ink); font-size: 16px; }
.invoice-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--slate); margin-top: 14px;
}
.invoice-step .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.invoice-step .dot.amber { background: #e8a020; }

/* ===== Logo strip ===== */
.logostrip { padding: 26px 0; border-bottom: 1px solid var(--line); }
.logostrip p { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }

/* ===== Feature grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 22px;
  margin-bottom: 16px;
}
.card p { color: var(--slate); margin: 0; font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 26px; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step p { color: var(--slate); margin: 0; }

/* ===== CTA banner ===== */
.cta {
  background: linear-gradient(135deg, var(--blue), #3f74ff);
  color: #fff;
  border-radius: 22px;
  padding: 54px 44px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 540px; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: var(--blue); }
.cta .btn-primary:hover { background: #eef3ff; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(31,94,255,0.18);
  position: relative;
}
.price-card.featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 22px; }
.price-card .desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.price {
  font-size: 42px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px;
}
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.feat-list li {
  padding: 8px 0 8px 28px; position: relative; color: var(--slate); font-size: 15px;
}
.feat-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--green); font-weight: 800;
}
.feat-list li.off { color: var(--muted); }
.feat-list li.off::before { content: "–"; color: var(--muted); }

/* ===== Comparison / addon note ===== */
.note-band {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 30px; display: flex; gap: 18px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.note-band .ico {
  flex: none; width: 50px; height: 50px; border-radius: 12px;
  background: #e7f7ee; color: var(--green); display: grid; place-items: center; font-size: 24px;
}
.note-band p { margin: 0; color: var(--slate); }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 20px; margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--slate); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .ico {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; font-size: 20px;
}
.contact-info .info-item h3 { margin: 0 0 2px; font-size: 16px; }
.contact-info .info-item p { margin: 0; color: var(--slate); font-size: 15px; }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,94,255,0.12);
}
form textarea { resize: vertical; min-height: 130px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; box-shadow: var(--shadow-sm);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none; background: #e7f7ee; color: #11784a; border: 1px solid #bde8cd;
  border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 18px;
}

/* ===== Page hero (sub pages) ===== */
.page-hero { padding: 64px 0 20px; text-align: center; }
.page-hero h1 { font-size: 42px; }
.page-hero p { color: var(--slate); font-size: 19px; max-width: 620px; margin: 0 auto; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.post-card .thumb {
  height: 150px;
  background: linear-gradient(135deg, #e9f0ff, #f3f6ff);
  display: grid; place-items: center; font-size: 40px;
}
.post-card .thumb.g2 { background: linear-gradient(135deg, #e7f7ee, #f0fbf4); }
.post-card .thumb.g3 { background: linear-gradient(135deg, #fff3e0, #fff8ee); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 18px; }
.post-card p { color: var(--slate); font-size: 15px; flex: 1; margin: 0 0 14px; }
.post-card a.read { font-weight: 700; font-size: 14px; }

.blog-placeholder {
  text-align: center; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 16px;
  padding: 40px; margin-top: 40px; color: var(--slate);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: #cdd5e4;
  padding: 56px 0 28px; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #9aa6bd; font-size: 14px; margin: 0 0 8px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .02em; }
.footer-col a { display: block; color: #9aa6bd; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #7e8aa3; font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid, .grid-2, .steps, .pricing, .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  section { padding: 54px 0; }
  .cta { padding: 40px 24px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
