/* Forside for byggtegner.no – ingen eksterne avhengigheter (fonter, skript) */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --line: #dde2e8;
  --text: #17202b;
  --muted: #566170;
  --accent: #1f5fd6;
  --accent-text: #ffffff;
  --shadow: 0 18px 50px rgba(20, 32, 48, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12161b;
    --surface: #1a1f26;
    --surface-alt: #161a20;
    --line: #2a313a;
    --text: #e8ecf1;
    --muted: #9aa5b2;
    --accent: #4c8dff;
    --accent-text: #ffffff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #12161b;
  --surface: #1a1f26;
  --surface-alt: #161a20;
  --line: #2a313a;
  --text: #e8ecf1;
  --muted: #9aa5b2;
  --accent: #4c8dff;
  --accent-text: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* Topp */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}
.nav a:not(.btn):hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  filter: brightness(1.07);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
.nav a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-shot {
  margin: 0;
}
.hero-shot img,
.gallery img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Seksjoner */
.section {
  padding: 72px 0;
}
.section.alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Bilder */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Steg */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  position: relative;
  padding-top: 52px;
}
.step-no {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Spørsmål */
.faq {
  max-width: 780px;
}
.faq h2 {
  margin-bottom: 24px;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 6px;
}
details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Avslutning og bunn */
.final-inner {
  text-align: center;
}
.final-inner h2 {
  margin-bottom: 22px;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Innlogging i menyen */
.nav .nav-login {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 720px) {
  .nav .nav-login {
    display: inline;
  }
}

/* Eksempler med bilder */
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ex {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ex img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.ex-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.ex-wide img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}
.ex figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.ex figcaption b {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 2px;
}
@media (max-width: 900px) {
  .examples {
    grid-template-columns: repeat(2, 1fr);
  }
  .ex-wide {
    grid-row: auto;
  }
  .ex-wide img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 620px) {
  .examples {
    grid-template-columns: 1fr;
  }
  .ex-wide {
    grid-column: auto;
  }
}

/* Eksportformater */
.exports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.exports-label {
  color: var(--muted);
  font-size: 14.5px;
  margin-right: 4px;
}
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
}

/* Gratis / konto / Claude */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan-main {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.plan h3 {
  margin: 0 0 12px;
  font-size: 19px;
}
.plan ul {
  margin: 0 0 22px;
  padding-left: 20px;
  flex: 1;
}
.plan li {
  margin-bottom: 6px;
  font-size: 15px;
}
.plan li.muted {
  color: var(--muted);
}
@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.cta-center {
  justify-content: center;
}
