/* Hurratavla – nettsiden. Samme farger og skrift som appen. Ingen sporing, ingen skrifter hentet fra andre. */

@font-face {
  font-family: 'Lexend';
  src: url('/fonter/lexend.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F4F3F0;
  --ink: #1A1F2B;
  --muted: #5B6170;
  --card: #FFFFFF;
  --navy: #262C4F;
  --navy-soft: #C9CEE6;
  --yellow: #FFCB47;
  --yellow-soft: #FFDF8A;
  --blue: #CFE3F7;
  --green: #D7EBC9;
  --coral: #FF7A59;
  --mint: #4CC79A;
  --focus: #2F6BDE;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { max-width: 68rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

/* Toppen */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand img { width: 2.75rem; height: 2.75rem; }
.top nav { display: flex; gap: 1.25rem; font-weight: 500; font-size: 1rem; }
.top nav a { text-decoration: none; padding-block: 0.5rem; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Åpningen */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; padding-block: 2.5rem 4rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 span { display: inline-block; background: var(--yellow); border-radius: 0.3em; padding: 0 0.22em 0.06em; transform: rotate(-2deg); }
.lead { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; color: #333948; max-width: 34rem; }
.lead.second { margin-top: 0.9rem; font-weight: 600; color: var(--ink); }
.soon { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.25rem; }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; border-radius: 999px; padding: 0.8rem 1.4rem; font-weight: 600; }
.pill::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--yellow); }
.soon p { font-size: 1rem; color: var(--muted); }
.soon a { font-weight: 600; color: var(--ink); }

.phone { position: relative; justify-self: center; width: min(100%, 19rem); }
.phone img.screen { border-radius: 2.2rem; border: 0.55rem solid var(--navy); background: var(--bg); box-shadow: 0 1.5rem 3rem rgba(38, 44, 79, 0.22); }
.phone .confetti { position: absolute; inset: -2.2rem -2.6rem auto auto; width: 8.5rem; height: 8.5rem; }

/* Felles for avsnittene */
section { padding-block: 3.5rem; }
.kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
.intro { margin-top: 1rem; max-width: 40rem; color: #333948; font-size: 1.125rem; }

/* Tre steg */
.steps { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; }
.step { border-radius: 1.75rem; padding: 1.75rem; display: grid; gap: 0.6rem; align-content: start; }
.step:nth-child(1) { background: var(--yellow-soft); }
.step:nth-child(2) { background: var(--blue); }
.step:nth-child(3) { background: var(--navy); color: #fff; }
.step b { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.step h3 { font-size: 1.4rem; margin-top: 0.4rem; }
.step p { font-size: 1.03rem; }
.step:nth-child(3) p { color: var(--navy-soft); }

/* Skjermbildet av tavla */
.show { background: var(--navy); color: #fff; border-radius: 2.25rem; padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.show h2 { margin-top: 0.5rem; }
.show .kicker { color: var(--navy-soft); }
.show p { margin-top: 1rem; color: var(--navy-soft); font-size: 1.1rem; }
.show img { border-radius: 1.1rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35); }

/* Det appen kan */
.grid { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; }
.item { background: var(--card); border-radius: 1.5rem; padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.item svg { width: 2.75rem; height: 2.75rem; padding: 0.6rem; border-radius: 0.9rem; background: var(--green); stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.item:nth-child(3n + 2) svg { background: var(--blue); }
.item:nth-child(3n) svg { background: var(--yellow-soft); }
.item h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.item p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Dette får du: en rolig liste, uten ikoner */
.list { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.list div { padding: 1.4rem 0; border-top: 2px solid var(--ink); }
.list dt { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.list dd { margin: 0.4rem 0 0; color: #333948; font-size: 1.05rem; line-height: 1.55; max-width: 30rem; }

/* Hvem som står bak */
.about { background: var(--green); border-radius: 2.25rem; padding: clamp(1.75rem, 5vw, 3.25rem); }
.about h2 { margin: 0; }
.about p { margin-top: 1rem; max-width: 44rem; font-size: 1.15rem; line-height: 1.6; }

/* Feiringen */
.cheer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; align-items: center; }
.cheer img { border-radius: 1.5rem; border: 1px solid #E2E0DA; }
.cheer ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.cheer li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; font-size: 1.08rem; }
.cheer li::before { content: ''; width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Si fra når den er klar */
.ready { background: var(--yellow); border-radius: 2.25rem; padding: clamp(1.75rem, 5vw, 3.5rem); text-align: center; display: grid; gap: 1rem; justify-items: center; }
.ready h2 { margin: 0; }
.ready p { max-width: 36rem; font-size: 1.125rem; }
.mail { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; border-radius: 999px; padding: 0.9rem 1.75rem; margin-top: 0.25rem; user-select: all; }

/* Bunnen */
footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer a { font-weight: 600; color: var(--ink); }

/* Personvernsiden */
.doc { max-width: 44rem; padding-block: 1.5rem 4rem; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; }
.doc h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.doc p, .doc ul { margin-top: 0.9rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-top: 0.4rem; }
.draft { margin-top: 1.5rem; background: var(--yellow-soft); border-radius: 1.25rem; padding: 1.1rem 1.4rem; font-weight: 500; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 1.5rem 3rem; }
  .phone { width: min(78%, 17rem); }
  .phone .confetti { inset: -1.6rem -1.8rem auto auto; width: 6.5rem; height: 6.5rem; }
  .steps, .grid, .list { grid-template-columns: 1fr; }
  .show, .cheer { grid-template-columns: 1fr; gap: 1.75rem; }
  .top nav a.hide-small { display: none; }
  section { padding-block: 2.5rem; }
}
@media (min-width: 36rem) and (max-width: 56rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Liten linje under et bilde, f.eks. «Bildet viser den norske utgaven». */
.caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.show .caption { color: var(--navy-soft); font-size: 0.9rem; margin-top: 0.75rem; }
