/*
 * ScreenShow - præsentationssiden
 *
 * Opbygning (følger siden oppefra og ned):
 *   1. Skrifter og variabler
 *   2. Grundlag og typografi
 *   3. Knapper og links
 *   4. Header
 *   5. Hero
 *   6. Strimmel
 *   7. Sektioner (fælles)
 *   8. 01 Oplevelsen (demo-skærmen)
 *   9. 02 Indholdet (billeder, video, brochurer)
 *  10. 03 Flere showrooms (diagrammet)
 *  11. 04 Administrationen
 *  12. Afslutning og footer
 *  13. Produktdialog
 *
 * Breakpoints: 1000px (tablet), 760px (mobil), 420px (lille mobil).
 * Hvert afsnit har sine egne media queries lige under sig.
 */

/* 1. Skrifter og variabler
   ========================================================================== */

/*
 * Skrifterne ligger på vores egen server (fonts/), så besøgendes IP-adresser
 * ikke sendes til Google. Begge er variable fonte: én fil dækker alle vægte.
 * Kun latin-udsnittet (inkl. æøå); licenser i fonts/OFL-*.txt.
 */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  /* Flader og tekst */
  --bg: #101113;
  --bg-raised: #181a20;
  --text: #fafafa;
  --muted: #a7a9b1;
  --soft: #b8bbc4;
  --line: #303238;

  /* Blå */
  --blue: #446dff;
  --blue-hover: #6083ff;
  --blue-strong: #285cff;
  --blue-accent: #8aa4ff;
  --blue-closing: #2958e0;

  /* Diagrammets streger */
  --diagram-line: #485371;

  /* Skrifter */
  --font-body: "DM Sans", sans-serif;
  --font-heading: Manrope, sans-serif;

  /* Layout */
  --max-width: 1440px;
  --gutter: 5%;
}

/* 2. Grundlag og typografi
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

/* hidden skal vinde over komponenternes display (fx .product og img) */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -2px;
}

h1 {
  font-size: clamp(48px, 5.7vw, 82px);
}

h2 {
  font-size: clamp(34px, 3.4vw, 50px);
}

/* Fremhævet ord i overskrifter */
em {
  font-style: normal;
  color: #7391ff;
}

/* Den lille versaltekst over overskrifterne */
.eyebrow {
  margin: 0 0 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #9398a4;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 3. Knapper og links
   ========================================================================== */

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

button {
  font: inherit;
  cursor: pointer;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 5px;
}

.button {
  display: inline-block;
  padding: 14px 23px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  background: var(--blue);
}

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

.button-light {
  background: #f6f8ff;
  color: #244dc4;
}

.text-link {
  display: inline-block;
  margin-left: 22px;
  font-size: 14px;
}

.text-link:hover {
  color: #8fa7ff;
}

@media (max-width: 420px) {
  .button {
    padding: 13px 18px;
  }

  .text-link {
    margin-left: 13px;
  }
}

/* 4. Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max-width);
  height: 100px;
  margin: auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: var(--blue);
  font-size: 25px;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #c6c8cf;
}

.main-nav a:hover {
  color: #8fa7ff;
}

.small-button {
  padding: 10px 17px;
  border: 1px solid #595c66;
  border-radius: 5px;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 17px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 15px;
    height: 80px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    display: none;
  }

  .small-button {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* 5. Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: 45px;
  max-width: var(--max-width);
  margin: auto;
  padding: 45px var(--gutter) 72px;
}

.intro {
  max-width: 460px;
  margin: 28px 0 30px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.hero-note {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
}

.hero-note span {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #7f8591;
}

.hero-note p {
  margin: 0;
}

/* Billedet til højre med etiket, billedtekst og den svævende knap */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 575px;
  overflow: hidden;
  border: 1px solid #303239;
  border-radius: 8px;
  background: #1c1e22;
}

.hero-image {
  width: 100%;
  height: 515px;
  object-fit: cover;
}

.visual-label {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 2px;
  color: #bdc2d0;
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 22px;
  font-size: 12px;
  color: #a8adb9;
}

.visual-caption span:first-child {
  font-size: 10px;
  letter-spacing: 1px;
}

.floating-label {
  position: absolute;
  bottom: 94px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  background: #15171dda;
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.4;
}

.floating-label small {
  font-size: 12px;
  color: #9da3b2;
}

.touch-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #6a7490;
  border-radius: 50%;
  font-size: 24px;
  color: var(--blue-accent);
}

@media (max-width: 1000px) {
  .hero {
    gap: 25px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-note {
    margin-top: 30px;
  }

  .hero-visual {
    min-height: 490px;
  }

  .hero-image {
    height: 430px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .intro,
  .hero-note {
    max-width: 500px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-image {
    height: 380px;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    min-height: 365px;
  }

  .hero-image {
    height: 315px;
  }

  .visual-caption {
    padding: 17px 14px;
    font-size: 10px;
  }

  .floating-label {
    bottom: 80px;
    left: 15px;
    padding: 10px 14px;
  }
}

/* 6. Strimmel (BILLEDER · VIDEO · ...)
   ========================================================================== */

.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 25px var(--gutter);
  border-block: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 2px;
  color: #969ba6;
}

.strip i {
  font-style: normal;
  color: var(--blue);
}

@media (max-width: 1000px) {
  .strip {
    gap: 25px;
  }
}

@media (max-width: 760px) {
  .strip {
    flex-wrap: wrap;
    gap: 17px;
    padding: 20px;
    font-size: 9px;
  }

  .strip i {
    display: none;
  }
}

/* 7. Sektioner (fælles)
   ========================================================================== */

.section {
  max-width: var(--max-width);
  margin: auto;
  padding: 100px var(--gutter);
}

/* Sektionens top: eyebrow over, overskrift til venstre, tekst til højre */
.section-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 65px;
  margin-bottom: 50px;
}

.section-top .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section-top > p:last-child {
  max-width: 390px;
  margin: 0 0 3px;
  font-size: 16px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .section {
    padding: 65px var(--gutter);
  }

  .section-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
  }

  .section-top > p:last-child {
    max-width: 550px;
  }
}

/* 8. 01 Oplevelsen (demo-skærmen)
   ========================================================================== */

.demo-wrap {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 50px;
  scroll-margin-top: 30px;
}

.tag {
  padding: 7px 10px;
  border-radius: 3px;
  background: #253050;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9db1ff;
}

.demo-intro h3 {
  margin: 25px 0 20px;
  font-size: 32px;
  letter-spacing: -1px;
}

.demo-intro p {
  max-width: 320px;
  color: var(--muted);
}

.demo-intro .demo-note {
  margin-top: 35px;
  font-size: 12px;
  color: #7c8290;
}

/* Den lyse "touchskærm" */
.screen {
  padding: 25px;
  border: 9px solid #282b32;
  border-radius: 15px;
  background: #e9eaf0;
  box-shadow: 0 25px 60px #0004;
  color: #141722;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
}

.screen-top strong {
  font-size: 15px;
  letter-spacing: 2px;
}

.screen-top > span {
  letter-spacing: 0;
  color: #6d7382;
}

.demo-controls {
  display: flex;
  gap: 8px;
  padding: 24px 0 20px;
}

.demo-controls button {
  padding: 6px 14px;
  border: 1px solid #c6cbd5;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  color: #535b6a;
}

.demo-controls button.active {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
  color: white;
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  min-height: 255px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0 15px;
  border: 0;
  border-radius: 5px;
  background: white;
  text-align: left;
  color: #1a2030;
}

.product:hover {
  outline: 2px solid var(--blue);
}

.product img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.product-category,
.product > strong,
.product > small {
  margin: 0 15px;
}

.product-category {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #7b8498;
}

.product > strong {
  margin-top: 3px;
  font-size: 16px;
}

.product > small {
  margin-top: 6px;
  font-size: 11px;
  color: #5b6a85;
}

/* Farveprøverne i produktet "Farver & finish" */
.swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 170px;
  background: #dddfe8;
}

.swatches b {
  width: 42px;
  height: 80px;
  border-radius: 2px;
  background: #345fec;
}

.swatches b:nth-child(2) {
  background: #7d8390;
}

.swatches b:nth-child(3) {
  background: #17222f;
}

.screen-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 10px;
  color: #7b8498;
}

@media (max-width: 1000px) {
  .demo-wrap {
    gap: 30px;
  }

  .screen {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .demo-wrap {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .demo-intro h3 {
    font-size: 30px;
  }

  .demo-intro h3 br {
    display: none;
  }

  .demo-intro p {
    max-width: 500px;
  }

  .demo-intro .demo-note {
    margin-top: 15px;
  }
}

@media (max-width: 420px) {
  .screen {
    padding: 14px;
    border-width: 6px;
  }

  .screen-top {
    flex-wrap: wrap;
    gap: 8px;
  }

  .screen-top > span {
    font-size: 10px;
  }

  .products {
    gap: 10px;
    min-height: 220px;
  }

  .product img,
  .swatches {
    height: 135px;
  }

  .product > strong {
    font-size: 14px;
  }

  .swatches b {
    width: 25px;
    height: 65px;
  }

  .screen-bottom {
    gap: 10px;
    font-size: 9px;
  }
}

/* 9. 02 Indholdet (billeder, video, brochurer)
   ========================================================================== */

.content {
  border-top: 1px solid var(--line);
}

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

.feature {
  position: relative;
}

.feature h3 {
  font-size: 23px;
  letter-spacing: -0.7px;
}

.feature p {
  min-height: 108px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.feature-number {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  font-size: 12px;
  color: #b8c4e3;
}

.feature-type {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #8994ae;
}

/* Illustrationen øverst i hvert kort */
.feature-art {
  position: relative;
  height: 270px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 6px;
  background: #1d2027;
}

/* Kort 1: udsnit af stolen */
.crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  transform: scale(1.3);
}

/* Kort 2: video */
.video-art {
  display: grid;
  place-items: center;
  background: #171f39;
}

.video-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 35px,
    #3a559133 36px 38px
  );
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding-left: 4px;
  border: 1px solid #6885d8;
  border-radius: 50%;
  font-size: 22px;
  color: #b4c7ff;
}

.video-time {
  position: absolute;
  bottom: 23px;
  left: 22px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a6b9e8;
}

/* Kort 3: brochure */
.brochure-art {
  display: grid;
  place-items: center;
  background: #dce1f0;
}

.pdf-cover {
  display: flex;
  flex-direction: column;
  width: 156px;
  height: 215px;
  padding: 15px 17px;
  background: #335fe5;
  box-shadow: 10px 15px 20px #0b183340;
  color: white;
  transform: rotate(-8deg);
}

.pdf-cover small {
  font-size: 8px;
  letter-spacing: 1px;
}

.pdf-cover strong {
  margin-top: 25px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.7px;
}

.pdf-cover > span {
  margin-top: auto;
  font-size: 8px;
  letter-spacing: 1px;
}

.pdf-label {
  position: absolute;
  right: 25px;
  bottom: 35px;
  padding: 5px 12px;
  border-radius: 4px;
  background: white;
  font-size: 12px;
  color: #335fe5;
}

@media (max-width: 1000px) {
  .feature-art {
    height: 230px;
  }

  .feature p {
    min-height: 140px;
  }
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-art {
    height: 310px;
  }

  .feature p {
    min-height: 0;
    max-width: 550px;
  }
}

/* 10. 03 Flere showrooms (diagrammet)
   ========================================================================== */

/* Fuld bredde baggrund, men indholdet holdes på linje med resten af siden */
.showrooms {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - 1296px) / 2));
  background: var(--bg-raised);
}

.showroom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

.showroom-layout p {
  max-width: 480px;
  color: var(--muted);
}

.showroom-layout .large-copy {
  margin-top: 0;
  font-size: 21px;
  line-height: 1.6;
  color: #e1e4ed;
}

/* Diagrammet: det fælles katalog øverst, tre showrooms nedenunder, forbundet med streger */
.catalog-diagram {
  margin: 55px 0 0;
}

.catalog-source {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: auto;
  padding: 20px;
  border: 1px solid #4c5e96;
  border-radius: 6px;
  background: #202942;
}

/* Lodret streg ned fra kataloget */
.catalog-source::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 1px;
  height: 30px;
  background: var(--diagram-line);
}

.diagram-icon {
  font-size: 28px;
  color: #8ca5ff;
}

.catalog-source strong {
  font-size: 18px;
  font-weight: 500;
}

.catalog-source > span:last-child {
  font-size: 12px;
  color: #a1adc8;
}

.diagram-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 60px;
}

/* Vandret streg på tværs af de tre showrooms */
.diagram-branches::before {
  content: "";
  position: absolute;
  top: -30px;
  right: 16.7%;
  left: 16.7%;
  height: 1px;
  background: var(--diagram-line);
}

.diagram-branches > div {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 14px;
  border: 1px solid #343a4b;
  border-radius: 5px;
  text-align: center;
}

/* Lodret streg op til hvert showroom */
.diagram-branches > div::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 30px;
  background: var(--diagram-line);
}

.diagram-branches span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8e9ab4;
}

.diagram-branches strong {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
}

.diagram-branches small {
  margin-top: 5px;
  font-size: 12px;
  color: #8993a6;
}

@media (max-width: 760px) {
  .showroom-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .diagram-branches {
    gap: 12px;
  }

  .diagram-branches span {
    font-size: 8px;
  }

  .diagram-branches strong {
    font-size: 14px;
  }

  .diagram-branches small {
    font-size: 11px;
  }
}

/* Under 420px stables showrooms, og den vandrette streg forsvinder */
@media (max-width: 420px) {
  .diagram-branches {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 45px;
  }

  .diagram-branches::before {
    display: none;
  }

  .diagram-branches > div::before {
    height: 15px;
  }

  .diagram-branches span {
    font-size: 10px;
  }

  .diagram-branches strong {
    font-size: 18px;
  }

  .diagram-branches small {
    font-size: 12px;
  }
}

/* 11. 04 Administrationen
   ========================================================================== */

.studio-list article {
  display: grid;
  grid-template-columns: 55px 1fr 1fr;
  align-items: start;
  gap: 25px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.studio-list article > span {
  padding-top: 4px;
  font-size: 13px;
  color: #6e8ef6;
}

.studio-list h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
}

.studio-list p {
  max-width: 440px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .studio-list article {
    grid-template-columns: 25px 1fr;
    gap: 15px;
  }

  .studio-list h3 {
    font-size: 21px;
  }

  .studio-list p {
    grid-column: 2;
  }
}

/* 12. Afslutning og footer
   ========================================================================== */

.closing {
  max-width: none;
  padding: 80px var(--gutter);
  background: var(--blue-closing);
  text-align: center;
}

.closing .eyebrow {
  color: #b3c5ff;
}

.closing h2 {
  font-size: clamp(36px, 4.5vw, 64px);
}

.closing em {
  color: #afc4ff;
}

.closing p {
  margin: 25px 0;
  color: #c9d5ff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: var(--max-width);
  margin: auto;
  padding: 35px var(--gutter);
}

.site-footer p,
.site-footer > a:last-child {
  font-size: 12px;
  color: #8b929f;
}

@media (max-width: 760px) {
  .closing {
    padding: 65px var(--gutter);
  }

  .closing h2 br {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer p {
    flex-basis: 100%;
    order: 3;
    margin: 0;
  }
}

/* 13. Produktdialog
   ========================================================================== */

.product-dialog {
  position: fixed;
  width: calc(100% - 32px);
  max-width: 650px;
  max-height: 90dvh;
  overflow: auto;
  padding: 35px;
  border: 1px solid #495269;
  border-radius: 12px;
  background: #191c24;
  color: var(--text);
}

.product-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}

.product-dialog h2 {
  margin-bottom: 25px;
  font-size: 32px;
}

.product-dialog img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 6px;
}

.product-dialog p {
  color: #b5bece;
}

.detail-note {
  padding: 15px;
  border-radius: 5px;
  background: #252c3d;
  font-size: 14px;
  color: #9bb2fb;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 3px 10px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: white;
}
