/* Skrifter ligger på siden selv, så ingen besøkende sendes til Google (GDPR).
   Variable filer: én fil dekker alle vektene. latin-ext lastes bare ved behov. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f5f0;
  --bg-alt: #edeae2;
  --surface: #ffffff;
  --text: #17222b;
  --muted: #55626d;
  --border: #ddd8cc;
  --accent: #1f5f6b;
  --accent-hover: #174a54;
  --accent-soft: #dcebec;
  --on-accent: #ffffff;
  --ridge: #edeae2;
  --hero-bg: #17323a;
  --hero-text: #f3f1ea;
  --hero-muted: #b9c8c9;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181d;
    --bg-alt: #172128;
    --surface: #1b262e;
    --text: #e8ebe9;
    --muted: #9aa8b0;
    --border: #2a3842;
    --accent: #6fb3bd;
    --accent-hover: #8cc6ce;
    --accent-soft: #1f3a40;
    --on-accent: #0d1a1e;
    --ridge: #172128;
    --hero-bg: #0c2027;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand-mark { width: 28px; height: 28px; fill: #8cc6ce; }

.nav { display: flex; align-items: center; gap: 24px; }

.nav a {
  color: var(--hero-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.nav a:hover { color: var(--hero-text); }

.nav .nav-lang {
  display: inline-flex;
  align-items: center;
  padding: 4px;
}
.nav .globe {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav .nav-cta {
  color: var(--hero-text);
  border: 1px solid color-mix(in srgb, var(--hero-text) 35%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 72px 0 150px;
  overflow: hidden;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: #8cc6ce;
}

.lead {
  font-size: 1.15rem;
  max-width: 54ch;
  color: var(--muted);
}

.hero .lead { color: var(--hero-muted); }

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

.ridge {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 110px;
  fill: var(--bg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary { background: #8cc6ce; color: #0d1a1e; }
.btn-primary:hover { background: #a7d5db; }

.btn-ghost {
  color: var(--hero-text);
  border: 1px solid color-mix(in srgb, var(--hero-text) 35%, transparent);
}
.btn-ghost:hover { border-color: var(--hero-text); }

.contact .btn-primary { background: var(--accent); color: var(--on-accent); }
.contact .btn-primary:hover { background: var(--accent-hover); }

.btn-lg { font-size: 1.1rem; padding: 14px 28px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card p { color: var(--muted); margin: 0; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  font-family: Inter, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.about p { font-size: 1.1rem; max-width: 60ch; }

.contact { text-align: center; }
.contact .lead { margin: 0 auto 28px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-lead { color: var(--muted); margin: -8px 0 40px; font-size: 1.1rem; }

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
}
.app + .app { margin-top: 72px; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin-bottom: 16px; }
.app h3 { margin: 0; font-size: 1.6rem; }
.app-tagline { color: var(--accent); font-weight: 600; margin: 4px 0 16px; }
.app-info p { max-width: 52ch; }
.app-meta { color: var(--muted); font-size: 0.95rem; }
.app .btn { margin-top: 0; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.app-site { font-weight: 600; text-decoration: none; }
.app-site:hover { text-decoration: underline; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
.store-badge img { height: 54px; width: auto; display: block; }
@media (max-width: 640px) { .store-badge img { height: 46px; } }
.app .btn-primary { background: var(--accent); color: var(--on-accent); }
.app .btn-primary:hover { background: var(--accent-hover); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
  justify-self: end;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Prices */
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin: -4px 0 12px;
}
.price-note { color: var(--muted); max-width: 70ch; margin: 28px 0 0; }

/* How it works */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* Contact form */
.form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; align-content: start; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
}
.form textarea { resize: vertical; }
.form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5f6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form select:invalid { color: var(--muted); }
.form select option { color: var(--text); background: var(--surface); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form .hp { position: absolute; left: -9999px; }
.form-alt { color: var(--muted); margin-top: 24px; font-size: .95rem; }

@media (prefers-color-scheme: dark) {
  .form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fb3bd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

.web-shots {
  display: grid;
  gap: 16px;
  max-width: 560px;
  justify-self: end;
}
.web-shots img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 860px) {
  .web-shots { justify-self: stretch; }
  .app { grid-template-columns: 1fr; gap: 28px; }
  .shots { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta):not(.nav-lang) { display: none; }
  .brand { font-size: 1rem; }
  .hero { padding: 48px 0 120px; }
  .section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 0; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -20px; padding-right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .shots img { flex: 0 0 44%; width: 44%; min-width: 0; scroll-snap-align: start; }
}

/* Animasjon: skjult til motion.js viser det. Se <head> og motion.js. */
.motion .hero-text > *,
.motion .hero-art,
.motion .site-card,
.motion .section h2,
.motion .section-lead,
.motion .contact .lead,
.motion .card,
.motion .price-note,
.motion .step,
.motion .about > div > p,
.motion .contact .form,
.motion .app-info,
.motion .shots img,
.motion .web-shots img { visibility: hidden; }

/* Hero: tekst til venstre, utvalg av arbeid til høyre */
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-art {
  position: relative;
  padding: 0 72px 56px 0;
}
.hero-art .browser {
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 29%;
  height: auto;
  border-radius: 22px;
  border: 5px solid #0d1a1e;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(4deg);
}

/* Nettleservindu rundt skjermbilder av nettsider */
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.browser-bar b {
  flex: 1;
  margin: 0 28px 0 10px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img { display: block; width: 100%; height: auto; }

/* Nettsider jeg har laget */
.sites { margin-top: 88px; }
.sites h3 { font-size: 1.6rem; }
.sites .section-lead { margin: 0 0 28px; max-width: 60ch; }
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 28px;
}
.site-card {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.site-card .browser {
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform .2s, box-shadow .2s;
}
.site-card:hover .browser,
.site-card:focus-visible .browser {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}
.site-name { color: var(--accent); font-weight: 600; }
.site-card:hover .site-name { text-decoration: underline; }
.site-desc { color: var(--muted); font-size: .95rem; }

/* Priser: titler, priser og tekst på samme linje i alle kortene */
@supports (grid-template-rows: subgrid) {
  .cards-4 .card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .cards-4 .card h3 { align-self: end; }
}
.card { position: relative; }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 28px;
}
.price-cta .price-note { margin: 0; }
.price-cta .btn-primary { background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.price-cta .btn-primary:hover { background: var(--accent-hover); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-art { padding: 0 44px 36px 0; }
  .hero-phone { border-width: 3px; border-radius: 14px; }
  .sites { margin-top: 64px; }
}

/* Personvernerklæring */
.legal { max-width: 720px; }
.legal h1 { max-width: none; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal dd { max-width: 65ch; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px 16px; margin: 12px 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
.footer a { color: inherit; }
@media (max-width: 480px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
