:root {
  --cream: #fff8f1;
  --card: #ffffff;
  --ink: #2b2230;
  --muted: #7a6f68;
  --line: #f1e4da;
  --coral: #f4606a;
  --coral-soft: #ff9a80;
  --peach: #ffd8c7;
  --mint: #cdefd9;
  --lavender: #e0d6ff;
  --sky: #cbe7ff;
  --butter: #fff0b8;
  --pink: #ffd3e4;
  --shadow: 0 18px 50px rgba(150, 70, 60, 0.14);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17151c;
    --card: #24212b;
    --ink: #f6eef0;
    --muted: #a79faf;
    --line: #332e3b;
    --peach: #5a3a30;
    --mint: #2e4a3a;
    --lavender: #3f3760;
    --sky: #2c4559;
    --butter: #55492a;
    --pink: #5a3346;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Topp ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px rgba(244, 96, 106, 0.3); }

.nav-links { display: flex; gap: 22px; font-weight: 700; font-size: 16px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--coral); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--butter);
  font-weight: 800;
  font-size: 15px;
}

h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
  font-weight: 900;
}

h1 .highlight {
  position: relative;
  white-space: nowrap;
  color: var(--coral);
}

h1 .highlight::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.04em;
  height: 0.28em;
  background: var(--pink);
  border-radius: 999px;
  z-index: -1;
}

.lead { font-size: 21px; color: var(--muted); max-width: 30em; margin: 0 0 30px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
}

.store-badge small { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; }

.pill-note { font-size: 15px; font-weight: 700; color: var(--muted); }

/* Telefon */

.phone-stage { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 330px;
  padding: 14px;
  border-radius: 54px;
  background: #1d1a22;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3542;
  transform: rotate(3deg);
  animation: bob 6s ease-in-out infinite;
}

.screen {
  border-radius: 42px;
  background: #fff8f1;
  color: #2b2230;
  padding: 54px 16px 22px;
  /* iPhone 16 Pro Max: 440 × 956 punkter */
  aspect-ratio: 440 / 956;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Innholdet tones ut nederst i stedet for å strekke telefonen. */
.screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 248, 241, 0), #fff8f1 75%);
}

.screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #1d1a22;
}

.screen h3 { margin: 0 0 12px; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #efe7df;
  border-radius: 12px;
  padding: 3px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.segmented span { padding: 6px; border-radius: 10px; }
.segmented span:first-child { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.today {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: #f4606a;
  color: #fff;
  margin-bottom: 12px;
}

.today .label { font-size: 11px; font-weight: 900; opacity: 0.85; letter-spacing: 0.04em; }
.today strong { display: block; font-size: 18px; line-height: 1.2; }
.today .who { font-size: 13px; opacity: 0.85; }
.today .cake { position: absolute; right: 12px; top: 8px; font-size: 28px; rotate: 12deg; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  color: rgba(43, 34, 48, 0.75);
}

.next {
  padding: 14px;
  border-radius: 20px;
  background: #fff0b8;
  margin-bottom: 14px;
}

.next .label { font-size: 11px; font-weight: 900; opacity: 0.6; letter-spacing: 0.04em; }
.next .row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.next strong { font-size: 20px; }
.next .count { margin-left: auto; text-align: center; line-height: 1; }
.next .count b { display: block; font-size: 32px; font-weight: 900; }
.next .count span { font-size: 11px; font-weight: 700; }
.next p { margin: 0; font-size: 13px; font-weight: 700; }

.month { font-size: 13px; font-weight: 800; color: #7a6f68; margin: 0 0 6px 4px; }
.month-gap { margin-top: 14px; }

.list { background: #fff; border-radius: 20px; padding: 4px 12px; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.list .item + .item { border-top: 1px solid #f1e4da; }
.list .item .avatar { width: 36px; height: 36px; font-size: 15px; }
.list .item b { display: block; }
.list .item small { color: #7a6f68; }
.list .item .when { margin-left: auto; text-align: right; font-size: 12px; color: #7a6f68; }
.list .item .when b { color: #2b2230; font-size: 13px; }

/* Konfetti */

.confetti { position: absolute; inset: -40px -20px; pointer-events: none; z-index: -1; }
.confetti i {
  position: absolute;
  display: block;
  border-radius: 999px;
  animation: float 7s ease-in-out infinite;
}

.c1 { width: 34px; height: 34px; background: var(--butter); top: 4%; left: 8%; }
.c2 { width: 22px; height: 22px; background: var(--mint); top: 18%; right: 4%; animation-delay: -2s !important; }
.c3 { width: 60px; height: 18px; background: var(--lavender); bottom: 22%; left: 0; rotate: -30deg; animation-delay: -4s !important; }
.c4 { width: 18px; height: 18px; background: var(--coral-soft); bottom: 8%; right: 12%; animation-delay: -1s !important; }
.c5 { width: 54px; height: 16px; background: var(--sky); top: 46%; right: -2%; rotate: 40deg; animation-delay: -3s !important; }
.c6 { width: 14px; height: 14px; background: var(--pink); top: 0; right: 30%; animation-delay: -5s !important; }

.blob {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.75;
}

.blob.one { width: 520px; height: 520px; background: radial-gradient(circle, var(--peach), transparent 68%); top: -120px; right: -160px; }
.blob.two { width: 420px; height: 420px; background: radial-gradient(circle, var(--lavender), transparent 68%); bottom: -120px; left: -180px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes bob {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

/* ---------- Seksjoner ---------- */

section { padding: 70px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 900; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.step .num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--ink);
}

.step:nth-child(1) .num { background: var(--peach); rotate: -6deg; }
.step:nth-child(2) .num { background: var(--mint); rotate: 4deg; }
.step:nth-child(3) .num { background: var(--lavender); rotate: -3deg; }

.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.feature { padding: 26px 22px; border-radius: var(--radius); }
.feature .emoji { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; }
.feature p { margin: 0; font-size: 16px; opacity: 0.85; }

.feature:nth-child(1) { background: var(--pink); }
.feature:nth-child(2) { background: var(--butter); }
.feature:nth-child(3) { background: var(--sky); }
.feature:nth-child(4) { background: var(--mint); }

.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 40px;
  background: var(--ink);
  color: var(--cream);
}

.privacy h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.privacy p { margin: 0 0 20px; opacity: 0.8; }
.privacy a { color: var(--coral-soft); font-weight: 800; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}
.checks li::before { content: "✓"; color: var(--coral-soft); font-weight: 900; }

.final { text-align: center; }
.final .icon { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 22px; box-shadow: var(--shadow); rotate: -6deg; }
.final h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.05; }
.final p { color: var(--muted); margin: 0 0 26px; }

footer {
  padding: 36px 0 48px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); font-weight: 700; margin-left: 18px; }

/* ---------- Tekstsider ---------- */

.page { padding: 30px 0 80px; }

.page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 48px;
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.page-card h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 8px; }
.page-card .updated { color: var(--muted); font-size: 15px; font-weight: 700; margin: 0 0 30px; }
.page-card h2 { font-size: 24px; margin: 34px 0 10px; }
.page-card p, .page-card li { color: var(--ink); }
.page-card ul { padding-left: 22px; }
.page-card li { margin: 6px 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 10px 0; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.contact-box { padding: 22px; border-radius: 22px; background: var(--butter); }
.contact-box:nth-child(2) { background: var(--mint); }
.contact-box h3 { margin: 0 0 6px; }
.contact-box p { margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 19px; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Invitasjon */

.invite {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}

.invite .card {
  max-width: 460px;
  padding: 40px 32px;
  border-radius: 40px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.invite .icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 20px; rotate: -6deg; }
.invite h1 { font-size: 36px; margin: 0 0 10px; }
.invite p { color: var(--muted); margin: 0 0 24px; }
.invite .code {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--butter);
  margin-bottom: 24px;
}
.invite ol { text-align: left; color: var(--muted); padding-left: 22px; margin: 22px 0 0; }

/* ---------- Mobil ---------- */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 32px 24px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-links { gap: 14px; font-size: 15px; }
  .nav-links .hide-sm { display: none; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .phone { width: 300px; }
  .features { grid-template-columns: 1fr; }
  .page-card { padding: 30px 22px; border-radius: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; }
  footer a { margin: 0 18px 0 0; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
