:root {
  color-scheme: light;
  --ink: #322a2a;
  --muted: #6e6562;
  --line: rgba(50, 42, 42, 0.12);
  --background: #e0dfd4;
  --card: #f5f4ec;
  --surface: #ebe9de;
  --accent: #f85050;
  --accent-dark: #d93e42;
  --soft-accent: #f4d7d2;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(50, 42, 42, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 12%, rgba(248, 80, 80, 0.13), transparent 28rem),
    var(--background);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.compact {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 74px;
  height: auto;
  border-radius: 0;
}

.primary-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--card);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 52px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy {
  min-width: 0;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 48rem;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(248, 80, 80, 0.24);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
}

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone-frame {
  width: min(100%, 360px);
  border: 12px solid #191515;
  border-radius: 48px;
  overflow: hidden;
  background: #191515;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: min(250px, 48%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 244, 236, 0.94);
  box-shadow: 0 18px 48px rgba(50, 42, 42, 0.15);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.hero-note span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.relation-section {
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.relation-inner {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.relation-inner h2 {
  margin-bottom: 16px;
}

.relation-inner p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.safety-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.safety-grid article,
.screenshot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(50, 42, 42, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.feature-grid article:hover,
.safety-grid article:hover {
  box-shadow: 0 20px 48px rgba(50, 42, 42, 0.13);
  transform: translateY(-2px);
}

.feature-grid article,
.safety-grid article {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(248, 80, 80, 0.28);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-section > div p {
  margin-top: 6px;
  max-width: 36rem;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

.steps strong {
  font-size: 1.15rem;
}

.steps span {
  grid-column: 2;
}

.steps span,
figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.safety-section {
  padding-bottom: 52px;
}

.safety-footnote {
  margin-top: 28px;
  font-size: 0.98rem;
  color: var(--muted);
}

.safety-footnote a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.safety-footnote a:hover {
  text-decoration: underline;
}

/* ─── Trust / Erfaringer section ─────────────────────────────────────────── */

.trust-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.trust-copy p {
  max-width: 42rem;
}

.trust-list {
  margin: 20px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.trust-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 1px;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 56px rgba(50, 42, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-profile-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-profile-text strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.trust-profile-text span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trust-bar {
  height: 10px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.trust-fill {
  height: 100%;
  width: 80%;
  background: var(--accent);
  border-radius: 999px;
}

.trust-bar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-tags span {
  padding: 6px 12px;
  background: var(--soft-accent);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

/* ─── Screenshots ─────────────────────────────────────────────────────────── */

.screenshots-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.screenshot-grid figure {
  overflow: hidden;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

figcaption {
  padding: 14px 16px 16px;
  font-weight: 800;
}

.closing-band {
  width: min(860px, calc(100% - 32px));
  margin: 24px auto 96px;
  padding: 56px 0 12px;
  text-align: center;
}

.closing-band h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.closing-band p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-content {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.legal-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-content ul {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent-dark);
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .trust-inner {
    gap: 36px;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 32px;
  }

  .hero-media {
    justify-items: start;
  }

  .hero-note {
    right: 4%;
  }

  .safety-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid img {
    aspect-ratio: 16 / 11;
    object-position: top center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-content {
    padding: 28px;
  }

  .relation-inner {
    padding: 56px 0;
  }
}

/* Hamburger menu — under 760px */
@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
    flex-wrap: nowrap;
  }

  .brand img {
    width: 56px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 8px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 24px 48px rgba(50, 42, 42, 0.18);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.02rem;
    color: var(--ink);
  }

  .primary-nav a:hover {
    background: var(--surface);
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
    background: var(--accent);
    color: var(--white);
    border-color: transparent;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.4rem;
    line-height: 1.06;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 56px;
    gap: 28px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-media {
    justify-items: center;
  }

  .phone-frame {
    width: min(100%, 280px);
    border-width: 9px;
    border-radius: 40px;
  }

  .hero-note {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .relation-inner {
    padding: 48px 0;
  }

  .relation-inner p {
    font-size: 1.05rem;
  }

  .screenshot-grid img {
    aspect-ratio: 4 / 5;
  }

  .closing-band {
    padding-top: 36px;
    margin-bottom: 64px;
  }
}
