/* Amber Insights — varm charcoal + seriff (design v4) */

:root {
  --ink: #16120d;            /* nästan svart, varm */
  --ink-soft: #221c15;
  --cream: #f4efe6;
  --cream-soft: #ede7db;
  --card: #fffdf8;
  --line-dark: rgba(255, 255, 255, 0.11);
  --line-light: rgba(40, 32, 22, 0.13);
  --text-dark: #2b241b;
  --muted-dark: #75695a;
  --text-light: #f1ece3;
  --muted-light: #a89d8d;
  --amber: #d9a154;
  --amber-deep: #9c7020;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }

/* ---------- Nav ---------- */

nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
}

.brand { display: flex; align-items: center; }

.brand img { height: 104px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; }

.nav-links a { color: var(--muted-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-light); }

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

.btn-amber { background: var(--amber); color: #241703; }
.btn-amber:hover { background: #c8913f; }

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.5); }

.btn-outline-amber {
  border: 1px solid rgba(217, 161, 84, 0.55);
  color: var(--amber);
  background: transparent;
}
.btn-outline-amber:hover { border-color: var(--amber); background: rgba(217, 161, 84, 0.08); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #33291d; }

nav .btn { padding: 10px 22px; font-size: 14px; }

/* ---------- Hero (mörk, varm) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 82% 18%, rgba(217, 161, 84, 0.14), transparent 60%),
    radial-gradient(800px 500px at 70% 90%, rgba(150, 96, 35, 0.10), transparent 65%),
    linear-gradient(112deg, #141009 0%, #1a140c 48%, #241a0f 100%);
  color: var(--text-light);
  padding: 190px 0 130px;
}

.hero::after {
  /* varmt ljusstråk, som fönsterljus */
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 46%;
  height: 150%;
  background: linear-gradient(103deg, transparent 42%, rgba(228, 180, 108, 0.07) 50%, rgba(228, 180, 108, 0.13) 56%, rgba(228, 180, 108, 0.05) 64%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-strap {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  margin-bottom: 20px;
}

.hero-body {
  font-size: 16px;
  color: var(--muted-light);
  max-width: 46ch;
  margin-bottom: 40px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Glaspaneler ---------- */

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.glass {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.055);
  backdrop-filter: blur(10px);
  padding: 20px 22px;
  font-size: 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.glass h4 {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--text-light);
}

.glass p { color: var(--muted-light); line-height: 1.5; }

.glass .g-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--amber);
  font-weight: 600;
  font-size: 12.5px;
}

.glass.offset-down { transform: translateY(34px); }

.g-q, .g-a {
  border-radius: 10px;
  padding: 9px 13px;
  line-height: 1.5;
  margin-top: 9px;
}

.g-q {
  background: rgba(255, 253, 248, 0.09);
  color: var(--text-light);
  margin-right: 22px;
}

.g-a {
  background: rgba(217, 161, 84, 0.13);
  border: 1px solid rgba(217, 161, 84, 0.22);
  color: var(--muted-light);
  margin-left: 22px;
}

.g-a::before {
  content: 'Amber';
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}

.g-table { width: 100%; border-collapse: collapse; }

.g-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(168, 157, 141, 0.75);
  padding: 4px 10px 6px 0;
  border-bottom: 1px solid var(--line-dark);
}

.g-table td {
  padding: 7px 10px 7px 0;
  color: var(--muted-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.g-table tr:last-child td { border-bottom: none; }

.g-status { color: #b7c9a8; }

.g-rows { list-style: none; }

.g-rows li {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  color: var(--muted-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g-rows li:last-child { border-bottom: none; }

.g-rows .knr { color: var(--text-light); font-variant-numeric: tabular-nums; }

/* ---------- Sektioner (ljusa) ---------- */

section { padding: 120px 0; }

.kicker {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.sub { font-size: 17px; color: var(--muted-dark); max-width: 52ch; margin-top: 20px; }

/* ---------- Trio ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.trio-item .icon { color: var(--amber-deep); margin-bottom: 20px; }

.trio-item h3 { font-size: 26px; margin-bottom: 8px; }

.trio-item .tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-deep);
  margin-bottom: 12px;
}

.trio-item p { font-size: 15px; color: var(--muted-dark); }

.photo {
  margin-top: 26px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(228, 180, 108, 0.35), transparent 55%),
    radial-gradient(100% 100% at 85% 90%, rgba(120, 80, 35, 0.5), transparent 60%),
    linear-gradient(135deg, #3a2e20 0%, #241c12 55%, #171209 100%);
}

.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 45%, rgba(240, 200, 130, 0.10) 52%, transparent 62%);
}

.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Handbyggda produktbilder i .photo-ytorna */

.ui-slot, .quote-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}

.photo.ui-slot, .photo.quote-slot { aspect-ratio: auto; min-height: 285px; }

.mini {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.45;
}

.mini-bar {
  padding: 8px 14px;
  font-weight: 650;
  font-size: 11px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-dark);
  background: var(--cream);
}

.mini-body { padding: 12px 14px 14px; color: var(--muted-dark); }

.mini-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--line-light);
  border-radius: 7px;
  padding: 7px 10px;
  margin-bottom: 10px;
}

.mini-check { color: #4e7c46; font-weight: 700; }

.mini-list { list-style: none; }

.mini-list li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.mini-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4e7c46;
}

.mini-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line-light);
  font-weight: 650;
  color: var(--text-dark);
}

.mini-inv {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.mini-badge {
  background: rgba(192, 91, 69, 0.14);
  color: #a4442f;
  border: 1px solid rgba(192, 91, 69, 0.3);
  border-radius: 99px;
  padding: 1px 9px;
  font-size: 10.5px;
  font-weight: 650;
}

.mini-ai {
  background: rgba(217, 161, 84, 0.10);
  border-left: 2px solid var(--amber);
  border-radius: 0 7px 7px 0;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.mini-actions { display: flex; gap: 8px; }

.mini-actions span {
  background: var(--ink);
  color: var(--cream);
  border-radius: 7px;
  padding: 5px 13px;
  font-weight: 600;
  font-size: 10.5px;
}

.mini-actions .ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--line-light);
}

.photo-quote {
  position: relative;
  z-index: 1;
  padding: 0 6%;
  text-align: center;
}

.photo-quote p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--text-light);
  margin-bottom: 12px;
}

.photo-quote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- Produktguide-panel ---------- */

.guide-section { background: var(--cream-soft); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.split .lead-strong { font-size: 17px; font-weight: 600; margin-top: 22px; }

.split .sub { margin-top: 14px; margin-bottom: 36px; }

.guide-panel {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(40, 32, 22, 0.16);
  overflow: hidden;
  font-size: 12.5px;
}

.gp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
  font-weight: 650;
  font-size: 13px;
}

.gp-search {
  font-size: 11.5px;
  color: var(--muted-dark);
  border: 1px solid var(--line-light);
  border-radius: 7px;
  padding: 4px 12px;
}

.gp-body { display: grid; grid-template-columns: 168px 1fr; }

.gp-side {
  border-right: 1px solid var(--line-light);
  padding: 14px 0;
  list-style: none;
}

.gp-side li { padding: 7px 18px; color: var(--muted-dark); }

.gp-side li.active {
  color: var(--text-dark);
  font-weight: 600;
  background: rgba(217, 161, 84, 0.13);
  border-right: 2px solid var(--amber);
}

.gp-main { padding: 22px 24px; }

.gp-main h5 { font-size: 15px; font-weight: 650; margin-bottom: 6px; }

.gp-main > p { color: var(--muted-dark); margin-bottom: 18px; }

.gp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.gp-card {
  border: 1px solid var(--line-light);
  border-radius: 9px;
  padding: 12px;
  background: var(--cream);
}

.gp-card strong { display: block; font-size: 11.5px; margin-bottom: 4px; }

.gp-card span { font-size: 10.5px; color: var(--muted-dark); line-height: 1.4; display: block; }

/* ---------- Energi ---------- */

.energy { padding: 0; }

.energy-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }

.energy-photo {
  position: relative;
  background:
    radial-gradient(110% 80% at 75% 20%, rgba(228, 180, 108, 0.4), transparent 55%),
    linear-gradient(160deg, #4a3a24 0%, #2c2214 50%, #191307 100%);
}

.energy-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(240, 200, 130, 0.12) 50%, transparent 60%);
}

.energy-photo img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.energy-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8% 90px 70px;
  background: var(--cream);
}

.energy-copy .serif-strap { font-family: var(--serif); font-size: 19px; margin-top: 18px; }

.energy-copy .sub { margin-top: 12px; margin-bottom: 36px; }

/* ---------- Manifest (mörk) ---------- */

.dark-section {
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: var(--text-light);
}

.dark-section .kicker { color: var(--amber); text-align: center; }

.manifest { list-style: none; margin-top: 60px; }

.manifest li {
  display: flex;
  align-items: baseline;
  gap: 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 29px);
}

.manifest li:last-child { border-bottom: none; }

.manifest .nr {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--amber);
  flex-shrink: 0;
  width: 30px;
}

/* ---------- Lead-formulär ---------- */

.lead-form {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(56, 46, 36, 0.10);
}

.intent { display: flex; gap: 10px; margin-bottom: 26px; }

.intent-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-light);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.intent-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #241703;
}

.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.lead-form label span { font-weight: 400; color: var(--muted-dark); }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--line-light);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 161, 84, 0.18);
}

.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.lead-form button[type="submit"] {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.lead-status { margin-top: 14px; font-size: 14px; color: var(--muted-dark); text-align: center; min-height: 20px; }

.lead-success { text-align: center; padding: 26px 8px; }

.lead-success h3 { font-size: 30px; margin-bottom: 10px; }

.lead-success p { color: var(--muted-dark); line-height: 1.6; }

/* ---------- Footer ---------- */

.foot-main { background: var(--cream); border-top: 1px solid var(--line-light); padding: 70px 0 60px; }

.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }

.foot-grid h5 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 16px;
}

.foot-grid p { font-size: 13.5px; color: var(--muted-dark); margin-bottom: 14px; }

.foot-grid a { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.foot-grid a:hover { color: var(--amber-deep); }

.foot-bar { background: var(--ink); color: var(--muted-light); padding: 20px 0; font-size: 12.5px; }

.foot-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.foot-bar .brand img { height: 40px; }

/* ---------- Animation ---------- */

html.anim .fade { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.anim .fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.anim .fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivt ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding: 150px 0 100px; }
  .glass.offset-down { transform: none; }
}

@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .energy-grid { grid-template-columns: 1fr; }
  .energy-photo { min-height: 300px; }
  .energy-copy { padding: 70px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 90px 0; }
  .nav-links a:not(.btn) { display: none; }
  .brand img { height: 64px; }
  .nav-inner { height: 96px; }
  .hero-cards { grid-template-columns: 1fr; }
  .gp-body { grid-template-columns: 1fr; }
  .gp-side { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line-light); }
  .gp-side li { white-space: nowrap; }
  .gp-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .manifest li { gap: 20px; }
}
