/* ============================================================
   Sigge marketing — palette + typography från Expo-klienten:
     bg:        #f4eee2   beige
     bgSoft:    #faf6ed
     surface:   #ffffff
     surfaceAlt #f5e8de
     border:    #e3d7c4
     text:      #2b1d12   varm svart
     textSoft:  #5a4632
     muted:     #9b8870
     primary:   #7a2f00   rost
     accent:    #c9a961   guld
   ============================================================ */

:root {
  --bg: #f4eee2;
  --bg-soft: #faf6ed;
  --surface: #ffffff;
  --surface-alt: #f5e8de;
  --border: #e3d7c4;
  --border-strong: #c9b89c;

  --text: #2b1d12;
  --text-soft: #5a4632;
  --muted: #9b8870;

  --primary: #7a2f00;
  --primary-hover: #5e2400;
  --primary-soft: #f5e8de;
  --primary-dark: #833500;
  --accent: #c9a961;

  --danger: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(43, 29, 18, 0.06);
  --shadow-md: 0 6px 24px rgba(43, 29, 18, 0.08);
  --shadow-lg: 0 12px 40px rgba(43, 29, 18, 0.10);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin-top: 0;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.accent { color: var(--primary); }
.muted { color: var(--muted); }
.center { text-align: center; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 760px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 1em 0;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: rgba(255,255,255,0.7); }

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 56ch;
}
.center .lead { margin-left: auto; margin-right: auto; }

/* ─── Nav ─── */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-size: 1.7rem;
  color: var(--primary);
}
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 600px at 90% -10%, var(--surface-alt) 0%, transparent 60%),
    var(--bg);
}
.hero-small {
  padding: 60px 0 40px;
  text-align: center;
}
.hero-small .lead { margin: 0 auto; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}
.hero-trust {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-stack {
  position: relative;
  width: 380px;
  max-width: 100%;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
}
.stack-card + .stack-card { margin-top: -20px; }
.stack-1 { transform: translateX(0) rotate(-2deg); }
.stack-2 { transform: translateX(40px) rotate(1deg); margin-top: -10px; }
.stack-3 { transform: translateX(-15px) rotate(-1deg); margin-top: -10px; }
.stack-row {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-rost { background: var(--primary); }
.dot-gold { background: var(--accent); }
.dot-text { background: var(--text-soft); }

/* ─── Sections ─── */
.section {
  padding: 80px 0;
}
.section-light {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}
.section-dark {
  background: var(--text);
  color: var(--bg);
}
.section-dark h2,
.section-dark h3 { color: var(--bg); }
.section-dark p { color: rgba(244, 238, 226, 0.85); }
.section-cta {
  background:
    radial-gradient(600px 400px at 50% 0%, var(--surface-alt) 0%, transparent 70%),
    var(--bg);
  text-align: center;
}

/* ─── Features grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.feature h3 {
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  margin-bottom: 8px;
  color: var(--bg);
}
.section-dark .step h3 { color: var(--bg); }

/* ─── Long feature blocks (funktioner-sida) ─── */
.long-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.long-feature.reverse {
  direction: rtl;
}
.long-feature.reverse > * {
  direction: ltr;
}
.long-feature-text h2 {
  margin-top: 0;
}
.long-feature-text ul {
  padding-left: 1.2em;
  margin: 1em 0 0 0;
}
.long-feature-text li {
  color: var(--text-soft);
  margin-bottom: 6px;
}
.long-feature-visual {
  display: flex;
  justify-content: center;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 4px 0;
  color: var(--text-soft);
}
.mock-row span { width: 18px; text-align: center; }
.mock-row.checked { color: var(--text); }
.mock-quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.mock-cite {
  font-size: 0.78rem;
  color: var(--muted);
}
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
}
.chip-progress {
  background: #d1fae5;
  color: #065f46;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

/* ─── Footer ─── */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 60px 0 24px;
  margin-top: 80px;
}
.footer a {
  color: rgba(244, 238, 226, 0.75);
}
.footer a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.footer-brand .brand-mark { color: var(--accent); }
.footer-brand .brand-name { color: var(--bg); font-size: 1.8rem; }
.footer-tagline {
  margin-top: 8px;
  color: rgba(244, 238, 226, 0.6);
  font-size: 0.9rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.92rem;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 238, 226, 0.12);
  color: rgba(244, 238, 226, 0.5);
  font-size: 0.84rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { padding: 50px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-illustration { order: -1; }
  .card-stack { width: 100%; max-width: 360px; }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .long-feature,
  .long-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    margin-bottom: 60px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
