/* Grundstilar för hela sajten: färger, typsnitt, knappar, formulärfält och popupfönster. */

:root {
  --navy: #16148f;
  --navy-2: #0f0d6e;
  --accent: #2340e0;
  --accent-dark: #1a32c2;
  --accent-soft: #eef0ff;
  --cta: #00f5a3;
  --cta-hover: #00de93;
  --cta-text: #0b0a3d;
  --tint: #f5f6fc;
  --text: #11113a;
  --muted: #5d6280;
  --border: #e2e4f0;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(22, 20, 143, 0.09);
  --shadow-lg: 0 28px 60px rgba(22, 20, 143, 0.16);
  --head: 'Poppins', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.015em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hl { color: var(--accent); }
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: 999px;
  padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--cta); color: var(--cta-text); box-shadow: 0 6px 18px rgba(0, 222, 147, .35); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 8px 18px; font-size: .92rem; }
.btn-large { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(19,27,49,.6); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: 22px; padding: 38px 32px 26px; max-width: 450px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .2s ease-out; }
.modal-card h3 { font-size: 1.6rem; margin: 8px 0; }
.modal-card > p { color: var(--muted); margin: 0 0 16px; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}
.btn-outline:hover { background: var(--navy); border-color: var(--navy); }
.btn-primary { font-weight: 700; }
.input-wrap input {
  width: 100%; height: 52px; border: 1.5px solid #b9bdd6; border-radius: 4px; background: #fff; padding: 15px 14px;
  font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.input-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35,64,224,.15); }
.input-wrap { position: relative; }
.input-ok { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; font-size: .8rem; font-weight: 800; display: none; place-items: center; }
.input-wrap.valid .input-ok { display: grid; }
/* Mallval i byggaren – helbredd galleri */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
