@import url("fonts/fonts.css");

:root {
  --blue: #2563EB; --blue-dark: #1D4ED8; --navy: #0B1B3F; --navy-glow: #1B3A73;
  --ink: #0F172A; --ink-soft: #64748B; --line: #E2E8F0; --tint: #EAF2FC;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--navy); color: var(--ink); font-family: var(--body);
       position: relative; overflow-x: hidden; }
/* Bakgrund som SveaPeptids navy-banner: gradient, prickar, sken, ringar */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
      background: linear-gradient(135deg, #0B1B3F 0%, #13294F 50%, #1B3A73 100%); }
.bg .dots { position: absolute; inset: 0; opacity: .15;
            background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 28px 28px; }
.bg .glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(64px); }
.bg .g1 { top: -96px; right: -96px; background: rgba(37,99,235,.40); }
.bg .g2 { bottom: -128px; left: 25%; background: rgba(37,99,235,.25); }
.bg .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.10); }
.bg .r1 { top: 50%; right: 25%; width: 160px; height: 160px; }
.bg .r2 { top: 33%; right: 33%; width: 96px; height: 96px; }
@media (max-width: 600px) { .bg .r1 { right: 4%; } .bg .r2 { right: 12%; top: 12%; } }
header, main { position: relative; z-index: 1; }
header { z-index: 5; }
header { display: flex; justify-content: flex-end; width: 100%; max-width: 460px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 8px; }
.langsel { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 13px; font-weight: 600;
            letter-spacing: .04em; text-transform: uppercase; color: #fff; cursor: pointer;
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 12px; }
.lang-btn .chev { transition: transform .15s; opacity: .7; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag { width: 20px; height: 14px; border-radius: 2px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 190px; background: #fff; border: 1px solid var(--line);
             border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; z-index: 10; display: none; }
.lang-menu.open { display: block; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: #fff;
            font-family: var(--body); font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.lang-opt + .lang-opt { border-top: 1px solid var(--line); }
.lang-opt[aria-current="true"] { color: var(--blue); font-weight: 600; }
.lang-opt .check { margin-left: auto; }
.lang-opt:active { background: var(--tint); }
body { display: flex; flex-direction: column; }
main { flex: 1; display: grid; place-items: center; padding: 16px 16px 32px; }
footer { position: relative; z-index: 1; text-align: center; padding: 0 16px max(20px, env(safe-area-inset-bottom));
         font-size: 13px; color: rgba(255,255,255,.55); }
footer a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }
footer .sep { margin: 0 6px; }
.card { width: 100%; max-width: 460px; background: #fff; border-radius: 16px; padding: 32px 24px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,.45); }
.progress { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.bar { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .35s ease; }
.step { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
        color: var(--blue); margin-bottom: 8px; }
h1 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; margin: 0 0 20px; }
.opt { display: block; width: 100%; text-align: left; padding: 14px 18px; margin-bottom: 10px;
       font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--ink);
       border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s; }
.opt.selected { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
select { width: 100%; padding: 14px 18px; font-family: var(--body); font-size: 16px; color: var(--ink);
         border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 14px; }
select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cta { display: block; width: 100%; text-align: center; padding: 15px 24px; border: 0; border-radius: 999px;
       background: var(--blue); color: #fff; font-family: var(--body); font-size: 16px; font-weight: 600;
       text-decoration: none; cursor: pointer; transition: background .15s; }
.cta:disabled { opacity: .35; cursor: default; background: var(--blue); }
p.lead { color: var(--ink-soft); margin: -8px 0 22px; line-height: 1.5; }
.back { display: block; margin: 12px auto 0; background: none; border: 0; font-family: var(--body);
        color: var(--ink-soft); font-size: 14px; cursor: pointer; padding: 6px; }
/* Hover bara på enheter med mus — annars fastnar markeringen efter tryck på mobil */
@media (hover: hover) {
  .lang-btn:hover { background: rgba(255,255,255,.16); }
  .lang-opt:hover { background: var(--tint); }
  .opt:hover { border-color: var(--blue); background: var(--tint); }
  .cta:hover { background: var(--blue-dark); }
  .back:hover { color: var(--blue); }
}
.opt:active { background: var(--tint); }
.cta:active { background: var(--blue-dark); }
@media (max-width: 420px) {
  .card { padding: 26px 20px; }
  h1 { font-size: 23px; }
}
