/* Tildel — nettside. Samme palett og type som appen (lib/palette.json). */
:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-alt: #efefec;
  --ink: #161616;
  --text: #161616;
  --text-2: #6e6e6e;
  --text-3: #a3a3a0;
  --border: #e4e4e1;
  --border-light: #eeeeeb;
  --primary: #9cb98e;
  --primary-dark: #5f7454;
  --primary-soft: #e3ecdc;
  --danger: #c4574b;
  --logo-deep: #0d3325;
  --radius-card: 24px;
  --radius-control: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 243, 241, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--logo-deep); letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links .cta { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.nav-links .cta:hover { color: #fff; background: #2a2a2a; }
@media (max-width: 720px) { .nav-links a:not(.cta) { display: none; } }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.light { color: var(--text-2); font-weight: 800; }
.lead { font-size: 19px; color: var(--text-2); max-width: 520px; margin: 22px 0 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }

/* ---------- Badges ---------- */
.badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.badges a { display: inline-block; transition: transform 0.15s ease; }
.badges a:hover { transform: translateY(-1px); }
.badges img { height: 52px; width: auto; }
.badges .soon { position: relative; opacity: 0.55; pointer-events: none; }
.badges .soon::after {
  content: "Kommer snart";
  position: absolute; right: -6px; top: -10px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { padding-block: 32px; }
.hero-phone { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-phone { order: 2; }
}

/* ---------- iPhone-ramme ---------- */
.phone {
  width: 320px; aspect-ratio: 320 / 660;
  background: #0f0f0f;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2c2c2c,
    0 30px 60px -20px rgba(0, 0, 0, 0.35),
    0 60px 120px -40px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: rotate(-2deg);
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0f0f0f; border-radius: 999px; z-index: 3;
}
.screen {
  background: var(--bg);
  border-radius: 42px;
  height: 100%;
  overflow: hidden;
  position: relative;
  font-size: 12px;
  display: flex; flex-direction: column;
}
.s-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-weight: 700; font-size: 12px; }
.s-icons { display: flex; gap: 5px; align-items: center; }
.s-body { padding: 18px 16px 0; flex: 1; overflow: hidden; }
.s-head { display: flex; justify-content: space-between; align-items: flex-start; }
.s-head .t { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.s-head .t span { color: var(--text-2); display: block; }
.s-head .sub { font-size: 10px; color: var(--text-3); margin-top: 6px; font-weight: 600; }
.s-avatars { display: flex; margin: 10px 0 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -9px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.av:first-child { margin-left: 0; }
.s-section { font-size: 13px; font-weight: 700; margin: 12px 4px 7px; display: flex; justify-content: space-between; }
.s-section .a { color: var(--primary-dark); font-size: 11px; }
.card { background: var(--surface); border-radius: 18px; padding: 12px 14px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-light); font-weight: 700; font-size: 12px; }
.row:first-child { border-top: 0; padding-top: 2px; }
.row .chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.row .chk.on { background: var(--primary); border-color: var(--primary); position: relative; }
.row .chk.on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.row.done { opacity: 0.45; text-decoration: line-through; }
.tile { width: 34px; height: 34px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary-dark); flex-shrink: 0; }
.bal { display: flex; justify-content: space-between; align-items: center; }
.bal .l { font-size: 10px; color: var(--text-2); font-weight: 600; }
.bal .n { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.bal .c { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt); display: grid; place-items: center; color: var(--text-2); }
.exp { border-top: 1px solid var(--border-light); margin-top: 10px; padding-top: 8px; display: grid; gap: 6px; font-size: 11px; }
.exp div { display: flex; justify-content: space-between; }
.exp b { font-weight: 600; }
.s-tab {
  background: var(--surface); border-radius: 26px 26px 0 0;
  height: 68px; display: flex; align-items: center; justify-content: space-around; padding: 0 12px 6px;
  color: #b0b0ad; position: relative;
}
.s-tab svg { width: 22px; height: 22px; }
.s-tab .on { color: var(--ink); position: relative; }
.s-tab .on::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.s-tab .plus { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(160deg, #3a3a3a, #161616 55%); color: #fff; display: grid; place-items: center; margin-top: -4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px -8px rgba(0,0,0,0.5); }
.s-tab .plus svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .art { order: -1; }
.feature .art { display: flex; justify-content: center; }
.feature .art img { width: min(100%, 420px); }
.feature p { color: var(--text-2); font-size: 17px; max-width: 460px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 12px; }
  .feature:nth-child(even) .art { order: 0; }
  .feature .art img { width: min(80%, 320px); }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { background: var(--surface); border-radius: var(--radius-card); padding: 28px; }
.step .n { width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.step p { color: var(--text-2); margin: 8px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cta-box {
  background: var(--ink); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center;
  background-image: radial-gradient(60% 80% at 20% 0%, rgba(255,255,255,0.08), transparent);
}
.cta-box h2 { color: #fff; }
.cta-box .light { color: rgba(255,255,255,0.55); }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 17px; margin: 16px auto 0; max-width: 460px; }
.cta-box .badges { justify-content: center; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 56px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer nav a:hover { color: var(--text); }

/* ---------- Tekstsider (personvern) ---------- */
.prose { max-width: 720px; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.prose .meta { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose p, .prose li { color: #3a3a3a; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .box { background: var(--surface); border-radius: var(--radius-card); padding: 20px 24px; margin: 16px 0; }
