/* ==========================================================================
   Wallboard page — real widget screenshots, fly-in + float animations
   Uses root vars from styles.css
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------- */
.wb-hero { padding: 96px 0 120px; position: relative; overflow: hidden; }
.wb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(234,91,12,0.14) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(116,165,168,0.22) 0, transparent 50%);
  pointer-events: none;
}
.wb-hero__inner {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.wb-hero__text h1 {
  font-size: 52px;
  line-height: 62px;
  letter-spacing: -1.3px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
}
.wb-hero__text p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
}
.wb-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.wb-hero__pills {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.wb-hero__pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wb-hero__pills svg { color: #10b981; }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%     { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* Light hero variant — white/teal-tint background, dark text */
.wb-hero--light .wb-hero__text h1 { color: var(--teal-dark); }
.wb-hero--light .wb-hero__text p { color: var(--body); }

/* ---- Hero stage: real widgets layered + floating ------------------- */
.wb-stage {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}
.wb-stage__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(234,91,12,0.2), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.wb-float {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 10px 20px rgba(0,0,0,0.35);
  display: block;
  max-width: none;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation:
    flyIn 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards,
    floatY 6s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes flyIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatY {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -8px; }
}
/* Three layered widgets */
.wb-float--1 {
  width: 88%;
  top: 0;
  left: 0;
  z-index: 3;
  animation-delay: 0.25s, 1.2s;
  transform: translateY(40px) scale(0.95) rotate(-1deg);
}
.wb-float--1 { animation-name: flyIn, floatY1; }
@keyframes floatY1 { 0%,100% { translate: 0 0 } 50% { translate: 0 -6px } }

.wb-float--2 {
  width: 62%;
  top: 160px;
  right: -6%;
  z-index: 2;
  animation-delay: 0.45s, 1.4s;
  transform: translateY(40px) scale(0.92) rotate(2deg);
}
.wb-float--2 { animation-name: flyIn, floatY2; }
@keyframes floatY2 { 0%,100% { translate: 0 0 } 50% { translate: 0 8px } }

.wb-float--3 {
  width: 78%;
  bottom: -28px;
  left: 6%;
  z-index: 1;
  animation-delay: 0.65s, 1.6s;
  transform: translateY(40px) scale(0.9) rotate(-2deg);
}
.wb-float--3 { animation-name: flyIn, floatY3; }
@keyframes floatY3 { 0%,100% { translate: 0 0 } 50% { translate: 0 -10px } }

/* ---- Sections ------------------------------------------------------ */
.wb-section { padding: 96px 0; }
.wb-section--mint { background: var(--teal-soft); }

/* Cloud variant — ljus bakgrund så widget-screenshots sticker ut */
.wb-section--cloud { background: var(--offwhite); }
.wb-section--cloud .bento__cell {
  background: #fff;
  border: 1px solid rgba(8,85,90,0.10);
  box-shadow: 0 4px 14px rgba(8,85,90,0.06);
}
.wb-section--cloud .bento__cell:hover {
  border-color: rgba(234,91,12,0.40);
  box-shadow: 0 18px 36px rgba(8,85,90,0.12);
}
.wb-section--cloud .bento__cell img {
  box-shadow: 0 8px 22px rgba(8,85,90,0.12);
}
.wb-section--cloud .bento__cell h3 { color: var(--teal-dark); }
.wb-section--cloud .bento__cell p { color: var(--body); }
.wb-section--cloud .wb-feature-split__text h2 { color: var(--teal-dark); }
.wb-section--cloud .wb-feature-split__text p { color: var(--body); }
.wb-section--cloud .wb-feature-split__text .bullet-list li { color: var(--body); }
.wb-section--cloud .wb-feature-split__text .bullet-list li strong { color: var(--teal-dark); }

.wb-section--ink {
  background: linear-gradient(180deg, #0a3438 0%, #061f22 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wb-section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(234,91,12,0.08) 0, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(16,185,129,0.08) 0, transparent 45%);
  pointer-events: none;
}
.wb-section--ink > .container { position: relative; }

.section-title-center--light { color: #fff; }
.section-title-center--light::after { background: var(--orange); }
.section-intro-center--light { color: rgba(255,255,255,0.8); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ---- Bento grid for widget showcase -------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.bento--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.bento--two .bento__cell { grid-column: span 1; }
@media (max-width: 720px) {
  .bento--two { grid-template-columns: 1fr; }
}
.bento__cell {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  grid-column: span 2;
}
.bento__cell:hover {
  transform: translateY(-4px);
  border-color: rgba(234,91,12,0.45);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.bento__cell img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.bento__cell figcaption { padding: 0 6px 6px; }
.bento__cell h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.bento__cell p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0;
}

/* Extra-wide cell (tidslinje / historik) */
.bento__cell--xl { grid-column: span 3; }

/* ---- Feature split (text + visual) --------------------------------- */
.wb-feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.wb-feature-split--reverse .wb-feature-split__visual { order: -1; }
.wb-feature-split__text h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 20px;
}
.wb-feature-split__text p {
  line-height: 1.8;
  margin-bottom: 18px;
}
.wb-feature-split__text--light h2 { color: #fff; }
.wb-feature-split__text--light p { color: rgba(255,255,255,0.8); }
.wb-feature-split__text--light strong { color: #fff; }

.wb-real-shot {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 10px 24px rgba(0,0,0,0.3);
}

/* ---- Video frames (16:9) ------------------------------------------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.wb-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .wb-hero__inner { grid-template-columns: 1fr; padding: 0 24px; gap: 48px; }
  .wb-hero__text h1 { font-size: 36px; line-height: 1.2; }
  .wb-stage { min-height: 420px; }
  .wb-feature-split { grid-template-columns: 1fr; gap: 40px; }
  .wb-feature-split--reverse .wb-feature-split__visual { order: 0; }
  .wb-videos { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell { grid-column: span 2; }
  .bento__cell--lg { grid-column: span 2; grid-row: span 1; }
  .bento__cell--xl { grid-column: span 4; }
}
@media (max-width: 640px) {
  .wb-stage { min-height: 360px; }
  .wb-float--1 { width: 92%; }
  .wb-float--2 { width: 78%; top: 140px; right: -14%; }
  .wb-float--3 { width: 72%; left: 4%; bottom: -20px; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--lg, .bento__cell--xl { grid-column: span 1; grid-row: span 1; }
}

/* Reduced motion: kill float loops */
@media (prefers-reduced-motion: reduce) {
  .wb-float { animation: flyIn 0.4s ease forwards !important; }
  .pulse-dot { animation: none !important; }
}
