/* Una — mørkt, rolig, premium. Følger designmanualen (jmsandberg.se):
   dark teal-gradient som toner ut, ingen harde kontraster, Whisper-tekst,
   Seagull/Curious Blue som aksent, Helvetica Neue. «Gi plass, ikke krev.» */

:root {
  --bg-top: #163f4d;
  --bg-mid: #0b2029;
  --bg-bottom: #071319;
  --ink: #F2F1F7;          /* Whisper */
  --ink-soft: #AEB9BE;
  --ink-dim: #7C8A90;
  --accent: #83D0F5;       /* Seagull */
  --accent-2: #26A3DD;     /* Curious Blue */
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --surface: rgba(255,255,255,0.045);
  --radius: 16px;
  --font: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -8%, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%)
    var(--bg-bottom);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #A6DEF8; text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(14px);
  background: rgba(7,19,25,0.55);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 25px; height: 26px; display: block; opacity: 0.95; }
.brand:hover { text-decoration: none; opacity: 0.8; }
.header-nav { display: flex; gap: 24px; font-size: 15px; }
.header-nav a { color: var(--ink-soft); }
.header-nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Layout ── */
main { max-width: 720px; margin: 0 auto; padding: 52px 24px 40px; }
main.wide { max-width: 960px; }

h1 { font-size: 33px; font-weight: 400; letter-spacing: 0.2px; margin: 0 0 8px; line-height: 1.25; color: var(--ink); }
h2 { font-size: 20px; font-weight: 500; margin: 38px 0 12px; color: var(--ink); }
h3 { font-size: 16.5px; font-weight: 600; margin: 24px 0 6px; color: var(--ink); }
p, li { font-size: 16.5px; color: var(--ink-soft); }
.lead { font-size: 19px; color: var(--ink); opacity: 0.92; margin: 0 0 8px; font-weight: 300; }
.updated { font-size: 14px; color: var(--ink-dim); margin: 0 0 8px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 600; color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.note {
  background: rgba(131,208,245,0.08);
  border: 1px solid rgba(131,208,245,0.22);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: #BFE6F8;
}

/* ── Hero (landing) ── */
.hero { text-align: center; padding: 30px 0 10px; }
/* «UNA»-ordmerket alene — ekte transparent PNG hentet ut av splashen */
.wordmark-una {
  display: block; width: 216px; max-width: 60%; height: auto;
  margin: 16px auto 10px;
}

/* Om Una */
.about { max-width: 620px; margin: 8px auto 0; text-align: center; }
.about h2 { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.about p { font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); }
.about .big { font-size: 21px; color: var(--ink); font-weight: 300; margin-bottom: 14px; }

/* iPhone-mockups i stilig vinkel — ekte CSS-rammer med skjermbilder */
.stage {
  display: flex; justify-content: center; align-items: center;
  perspective: 1700px;
  margin: 6px 0 36px; padding: 30px 0;
  position: relative;
}
.stage::before { /* mykt lys bak telefonene */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(131,208,245,0.14), transparent 70%);
  pointer-events: none;
}
.phone {
  flex: none; width: 216px; aspect-ratio: 1206 / 2622;
  background: #060809; border-radius: 32px; padding: 5px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.55), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; }
.phone.left  { transform: rotateY(24deg) scale(0.84); z-index: 1; margin-right: -36px; }
.phone.center { transform: translateY(-16px); z-index: 3; }
.phone.right { transform: rotateY(-24deg) scale(0.84); z-index: 1; margin-left: -36px; }
@media (max-width: 600px) {
  .stage { perspective: none; }
  .phone.left, .phone.right { display: none; }
  .phone.center { transform: none; width: 232px; }
}
.hero .tagline { font-size: 19px; font-weight: 300; color: var(--ink-soft); max-width: 500px; margin: 0 auto 30px; }

.testers { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tester-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); min-width: 210px;
}
.tester-btn:hover { text-decoration: none; background: rgba(255,255,255,0.08); border-color: var(--accent); }
.tester-btn.primary { border-color: rgba(131,208,245,0.45); background: rgba(131,208,245,0.10); }
.tester-btn .glyph { width: 24px; height: 24px; flex: none; color: var(--ink); display: flex; }
.tester-btn .glyph svg { width: 100%; height: 100%; }
.tester-btn .txt { text-align: left; line-height: 1.25; }
.tester-btn .txt b { font-weight: 500; font-size: 15.5px; }
.tester-btn .txt small { display: block; font-size: 11.5px; color: var(--ink-dim); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { margin-top: 0; }
.tile p { margin-bottom: 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; background: rgba(255,255,255,0.02); }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
  font-size: 14.5px;
}
.footer-inner .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner a { color: var(--ink-soft); }
.footer-inner a:hover { color: var(--ink); }
.footer-inner .copy { color: var(--ink-dim); margin-left: auto; }

@media (max-width: 560px) {
  .header-nav { gap: 16px; font-size: 14px; }
  main { padding-top: 38px; }
  h1 { font-size: 27px; }
  .footer-inner .copy { margin-left: 0; width: 100%; }
}
