/* Entrén (docs/ENTRE.md): the same night design as the Genomain OS face (OS/layer/face/genomain_face/static/face.css):
   night sky #07080f → #1a1f4a, stars, glass rgba(255,255,255,.07) with a 1 px hairline, text #f2f3f7 / #9a9db0, one accent
   #8fa9ff, the white pill = primary, the butterfly = the only picture. Phone first (390), then desktop (1280). */
:root {
  --bg: #07080f; --bg-2: #0b0d1f; --bg-3: #1a1f4a; --fg: #f2f3f7; --mut: #9a9db0; --dim: #6f7390;
  --acc: #8fa9ff; --acc-2: #4f7cff; --acc-wash: rgba(143, 169, 255, .14); --acc-line: rgba(143, 169, 255, .55);
  --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .08); --glass: rgba(255, 255, 255, .07); --glass-2: rgba(12, 14, 34, .7); --glass-3: rgba(255, 255, 255, .05);
  --ink: #0b0d1f; --danger: #ff8fb1; --warn: #f2b36b;
  --blur: blur(30px) saturate(1.3); --shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .18);
  --r: 26px; --r-s: 14px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --fast: 150ms; --slow: 400ms;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tw { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- the sky ---------------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 15px/1.5 var(--font); color: var(--fg); min-height: 100vh; -webkit-font-smoothing: antialiased; background: #07080f radial-gradient(900px 600px at 50% 110%, #1a1f4a 0%, #0b0d1f 55%, #07080f 100%) fixed; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px 400px at 85% 0%, rgba(122, 59, 156, .22), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(59, 176, 200, .12), transparent 70%); }
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .4; } .stars i.tw { animation: tw 4s ease-in-out infinite; }
a { color: var(--acc); text-decoration: none; }
h1 { font-size: clamp(30px, 24px + 2vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; text-align: center; }
p { margin: 6px 0; } .muted { color: var(--mut); } .small { font-size: 13px; }
.lede { font-size: 17px; color: var(--mut); text-align: center; margin: 0 0 8px; }
.notice { display: block; max-width: 460px; width: 100%; text-align: center; color: var(--warn); border: 1px solid rgba(242, 179, 107, .4); border-radius: var(--r-s); padding: 10px 14px; margin: 0; }
.notice:empty { display: none; }
.error { color: var(--danger); background: rgba(255, 143, 177, .1); border: 1px solid rgba(255, 143, 177, .35); border-radius: var(--r-s); padding: 10px 14px; margin: 14px 0 0; }
.banner { position: relative; z-index: 2; margin: 0; padding: 10px 16px; text-align: center; font: 600 13px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--warn); }

/* ---- the butterfly, alive ---------------------------------------------------------------------------------------- */
.fj { display: block; overflow: visible; animation: breathe 4.5s ease-in-out infinite; }
.fj-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fj-hero { width: min(62vw, 260px); height: auto; aspect-ratio: 840 / 640; filter: drop-shadow(0 0 30px rgba(120, 140, 255, .6)); margin: 0 auto -14px; }
.fj-small { width: 34px; height: 26px; filter: drop-shadow(0 0 8px rgba(120, 140, 255, .6)); }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13.5px; margin: 0 auto 8px; }

/* ---- one column, one thing per screen ---------------------------------------------------------------------------- */
main.door { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 40px 16px 56px; display: grid; justify-items: center; gap: 14px; animation: rise var(--slow) var(--ease) both; }
.card { width: 100%; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); padding: 22px 22px 24px; }
.links { margin: 6px 0 0; font-size: 15px; } .foot { margin: 18px 0 0; font-size: 13px; } .foot a { color: var(--dim); } .foot a:hover { color: var(--mut); }

/* ---- the three plans ------------------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.plan { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 16px 8px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-3); cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.plan:hover { background: var(--glass); } .plan.on { border-color: var(--acc); background: var(--acc-wash); }
.plan input { position: absolute; opacity: 0; width: 0; height: 0; } .plan b { font-size: 16px; font-weight: 600; }
.plan .price { font-size: 15px; color: var(--fg); } .plan .price small { color: var(--mut); font-size: 12px; } .plan .line { font-size: 12px; color: var(--mut); line-height: 1.3; margin-top: 4px; }

/* ---- fields and the one button ------------------------------------------------------------------------------------ */
form label { display: block; margin: 14px 0 0; font-size: 12.5px; color: var(--mut); } form label small { color: var(--dim); }
input, textarea { width: 100%; margin-top: 4px; height: 46px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--fg); font: inherit; font-size: 16px; }
textarea { height: auto; padding: 10px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); } input:hover, textarea:hover { border-color: rgba(255, 255, 255, .26); }
input:focus, textarea:focus { outline: none; border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--acc-wash); }
button.primary, .button.primary { width: 100%; margin-top: 20px; height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--fg); color: var(--ink); font: 600 16px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform var(--fast) var(--ease); }
button.primary:hover, .button.primary:hover { background: #fff; transform: translateY(-1px); } button.primary:disabled { opacity: .6; transform: none; cursor: default; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 6px; font-size: 15px; } .facts dt { color: var(--mut); } .facts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.thanks { text-align: center; } .thanks .big { font-size: 22px; font-weight: 600; margin: 6px 0 2px; }

/* ---- Er dator byggs: four lines, ticks as they come ------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); } .steps li:last-child { border: 0; }
.steps .mark { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.steps li.done .mark { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 12px rgba(143, 169, 255, .5); }
.steps li.now .mark { border-color: var(--acc-line); animation: pulse 1.6s ease-in-out infinite; }
.steps .mark svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.steps .what { display: grid; min-width: 0; } .steps .what b { font-size: 16px; font-weight: 500; } .steps .what span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li.wait .what b, .steps li:not(.done):not(.now) .what b { color: var(--mut); font-weight: 400; }
#done { margin-top: 8px; text-align: center; } #done .small { margin-top: 12px; }
body.ready .fj-hero { filter: drop-shadow(0 0 48px rgba(143, 169, 255, .85)); }

/* ---- desktop (1280): more air, the same column ------------------------------------------------------------------- */
@media (min-width: 761px) {
  main.door { max-width: 560px; padding: 28px 24px 48px; gap: 10px; } .fj-hero { width: 200px; margin-bottom: -10px; }
  h1 { font-size: 34px; } .lede { font-size: 16px; margin-bottom: 4px; }
  .card { padding: 20px 30px 24px; } .plan { padding: 14px 10px 12px; } .plan b { font-size: 16px; }
  form label { margin-top: 10px; } input { height: 44px; } button.primary { margin-top: 18px; height: 48px; }
  button.primary, .button.primary { width: auto; min-width: 240px; margin-left: auto; margin-right: auto; display: flex; }
  .foot { margin-top: 10px; }
}
@media (max-width: 400px) { .plans { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .plan { padding: 14px 4px 12px; } .plan b { font-size: 15px; } .plan .price { font-size: 14px; } }

/* ---- phone (QA 2026-10-16, docs/QA-WEBKIT.md): every tap target at least 44 px, as the iPhone wants ----------------- */
@media (max-width: 760px) {
  .back { min-height: 44px; padding: 0 6px; } .foot a, .links a { display: inline-block; padding: 12px 8px; margin: -12px -8px; }
}

/* ---- spår 1.3: four account types (2 × 2) and the one-time setup code on "Din dator är klar" -------------------------- */
.plans.types4 { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 761px) { .plans.types4 { grid-template-columns: repeat(4, 1fr); } .plans.types4 .plan { padding: 14px 6px 12px; } .plans.types4 .plan b { font-size: 15px; } }
.links { text-align: center; color: var(--mut); }
.setup { margin-top: 18px; padding: 16px 14px; border-radius: var(--r-s); border: 1px solid var(--acc-line); background: var(--acc-wash); text-align: center; }
.setup .kicker { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.setup .code { margin: 8px 0 4px; font: 600 24px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--fg); overflow-wrap: anywhere; }
