/* ==========================================================================
   components.css
   Byggblock som återanvänds på flera sidor: sektioner, taggar, flödessteg,
   bildramar, informationskort och citat.

   Alla komponenter läser --accent från sin sida, så samma klass får rätt
   färg på varje projektsida utan att koden dupliceras.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Sektioner
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: 90px var(--page-padding);
  overflow: hidden;
}

.section--tall {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section--tallest {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section--center {
  text-align: center;
}

/* Textblock som centreras och begränsas i bredd. */
.section__intro {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.section__label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* Etikett med ram runt — används som "Live idag"-märke. */
.section__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-35);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

/* Streckad ram markerar innehåll som är vision, inte färdig produkt. */
.section__badge--vision {
  border-style: dashed;
  border-color: var(--accent-2-50);
  color: var(--accent-2);
  padding: 6px 16px;
  letter-spacing: 1.8px;
  margin-bottom: 26px;
}

.section__heading {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 0 auto 20px;
  color: oklch(0.95 0.014 75);
  max-width: 640px;
}

.section__heading--large {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 680px;
}

.section__text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 auto 24px;
  max-width: 660px;
}

.section__text:last-child {
  margin-bottom: 0;
}

/* Kort, framhävd mening i projektets accentfärg. */
.section__highlight {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 auto 40px;
  max-width: 600px;
}

/* Liten grå fotnot under en bild eller ett flöde. */
.section__note {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  line-height: 1.7;
  color: oklch(0.55 0.02 235);
  margin: 20px auto 0;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   2. Taggar
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid oklch(0.5 0.03 235 / 0.35);
  color: oklch(0.82 0.02 235);
}

.tag--small {
  font-size: 12px;
  padding: 6px 14px;
}

.tag--dashed {
  border-style: dashed;
  border-color: oklch(0.5 0.04 235 / 0.4);
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   3. Flöden (steg med pilar emellan)
   Pilen ligger som ett ::after på varje steg. Det sista steget får ingen pil.
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.flow__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent-35);
  background: oklch(0.15 0.02 258 / 0.6);
  color: oklch(0.85 0.02 235);
  white-space: nowrap;
}

.flow__step::after {
  content: '\2192'; /* pil högerut */
  color: oklch(0.4 0.02 235);
  font-size: 13px;
  margin-left: 4px;
}

.flow__step:last-child::after {
  content: none;
}

/* Lodrätt flöde, används på Omnira-sidan för Atlas-kedjan. */
.flow--vertical {
  flex-direction: column;
  gap: 14px;
}

.flow--vertical .flow__step {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 12px 22px;
  border-radius: 10px;
  border-color: oklch(0.6 0.06 220 / 0.4);
  backdrop-filter: blur(10px);
  color: oklch(0.9 0.02 235);
}

.flow--vertical .flow__step::after {
  content: none;
}

/* --------------------------------------------------------------------------
   4. Bildramar
   Den glasiga ramen runt alla skärmbilder och visionsbilder.
   -------------------------------------------------------------------------- */
.image-frame {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(165deg, var(--accent-frame), oklch(0.09 0.02 258 / 0.65));
  border: 1px solid var(--accent-28);
  box-shadow:
    0 0 55px -10px var(--accent-22),
    0 40px 90px -20px oklch(0.02 0.02 258 / 0.85);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.image-frame--wide {
  max-width: 1180px;
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.image-frame--narrow {
  max-width: 760px;
}

.image-frame--portrait {
  max-width: 520px;
}

.image-frame--tiny {
  max-width: 340px;
}

/* Streckad ram markerar att bilden visar en vision, inte nuvarande produkt. */
.image-frame--vision {
  border-style: dashed;
  border-color: var(--accent-2-40);
  box-shadow: 0 40px 90px -20px oklch(0.02 0.02 258 / 0.85);
}

/* Liten versal etikett ovanför en bildram. */
.image-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   5. Kort
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
}

.card-grid--tight {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.info-card {
  padding: 26px;
  border-radius: 16px;
  background: oklch(0.14 0.02 258 / 0.5);
  border: 1px solid var(--accent-22);
}

.info-card__title {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.info-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: oklch(0.75 0.025 235);
}

/* Enklare kort med rubrik och underrubrik. */
.simple-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: oklch(0.17 0.02 258 / 0.4);
  border: 1px solid oklch(0.4 0.02 258 / 0.3);
}

/* Liten versal etikett överst i kortet. */
.simple-card__tag {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.simple-card__title {
  font-size: 15px;
  color: oklch(0.93 0.012 75);
  font-weight: 600;
  margin-bottom: 6px;
}

.simple-card__sub {
  font-size: 13px;
  color: oklch(0.65 0.02 235);
}

/* Streckade kort som visar framtida steg. */
.stage-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.stage-card {
  min-width: 190px;
  flex: 1;
  padding: 22px;
  border-radius: 14px;
  border: 1px dashed var(--accent-2-40);
  text-align: left;
}

.stage-card__title {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.stage-card__sub {
  font-size: 13.5px;
  color: oklch(0.8 0.02 235);
}

/* --------------------------------------------------------------------------
   6. Citat
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.35;
  color: oklch(0.94 0.014 75);
  font-weight: 500;
  margin: 0 0 30px;
}

.quote--accent {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Knappar
   -------------------------------------------------------------------------- */
.button {
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button--outline {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 12px 24px;
  font-size: 14px;
  color: oklch(0.93 0.004 258);
}

.button--outline:hover {
  border-color: oklch(0.78 0.19 152 / 0.7);
  color: var(--accent);
}

.button--accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: oklch(0.95 0.012 75);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

.button--accent:hover {
  box-shadow: 0 0 24px -6px var(--accent);
}

/* Runda pilknappar till karusellen. */
.button--round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--background-panel);
  color: oklch(0.85 0.008 258);
  font-size: 16px;
}

.button--round:hover {
  border-color: oklch(0.78 0.19 152 / 0.6);
  color: var(--accent);
}

/* ==========================================================================
   8. DEKORATIVA LJUS PÅ PROJEKTSIDORNA
   Mjuka färgade ljus som ligger bakom innehållet. De fångar aldrig klick.
   Färgen kommer från sidans accentfärg, så samma klass fungerar på alla
   fem projektsidor.
   ========================================================================== */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

/* Brett ljus som ligger som en gloria över sektionens överkant. */
.glow--halo {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 700px);
  height: 340px;
  border-radius: 0;
  background: radial-gradient(ellipse, var(--accent-12) 0%, transparent 70%);
}

.glow--halo-wide {
  width: min(95vw, 800px);
  height: 400px;
}

/* Runda ljus i sektionens hörn. */
.glow--top-left {
  top: -10%;
  left: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-12) 0%, transparent 70%);
}

.glow--top-right {
  top: -10%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-2-12) 0%, transparent 70%);
}

.glow--bottom-left {
  bottom: -15%;
  left: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-12) 0%, transparent 70%);
}

.glow--bottom-right {
  bottom: -15%;
  right: -8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--accent-2-12) 0%, transparent 70%);
}

/* ==========================================================================
   9. LISTOR MED NUVARANDE LÄGE OCH NÄSTA STEG
   Används på Omnira-sidan för "Idag / Nästa".
   ========================================================================== */
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid oklch(0.3 0.02 258 / 0.35);
}

.status-row dt {
  font-size: 13.5px;
  color: oklch(0.62 0.02 235);
}

.status-row dd {
  margin: 0;
  font-size: 13.5px;
  color: oklch(0.9 0.014 75);
  text-align: right;
}

.next-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-list li {
  padding: 13px 0;
  border-bottom: 1px dashed oklch(0.3 0.02 258 / 0.3);
  font-size: 13.5px;
  color: oklch(0.68 0.025 235);
}

/* ==========================================================================
   10. JÄMFÖRELSE MELLAN TVÅ GRÄNSSNITT
   Nuvarande gränssnitt till vänster, vision till höger, pil emellan.
   ========================================================================== */
.ui-comparison {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ui-comparison__item {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.ui-comparison__arrow {
  align-self: center;
  font-size: 22px;
  color: oklch(0.5 0.02 235);
}

/* ==========================================================================
   11. IDAG / VISION
   Två spalter sida vid sida: vad som finns idag och vad visionen är.
   Används på StudieOS-sidan.
   ========================================================================== */
.today-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid oklch(0.4 0.03 258 / 0.3);
}

.today-vision__column {
  padding: 44px 40px;
  background: oklch(0.14 0.02 258 / 0.6);
}

.today-vision__column--vision {
  background: oklch(0.1 0.018 292 / 0.5);
  border-left: 1px solid oklch(0.4 0.03 258 / 0.3);
}

.today-vision__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: oklch(0.6 0.03 235);
  margin-bottom: 22px;
}

.today-vision__label--vision {
  color: var(--accent-2);
}

.today-vision__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Varje rad inleds med ett tankstreck i accentfärgen. */
.today-vision__list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid oklch(0.4 0.02 258 / 0.18);
  font-size: 14.5px;
  line-height: 1.5;
  color: oklch(0.85 0.015 75);
}

.today-vision__list li::before {
  content: '\2014';
  color: var(--accent);
}

.today-vision__list--vision li {
  color: oklch(0.7 0.02 235);
}

.today-vision__list--vision li::before {
  color: var(--accent-2);
}

/* ==========================================================================
   12. OM-SEKTIONEN (startsidan)
   ========================================================================== */
.about-section {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: oklch(0.12 0.02 258);
  padding: 70px clamp(24px, 4vw, 64px);
  /* Ljuseffekterna sticker ut utanför sektionen — klipp dem så att sidan
     inte går att scrolla i sidled. */
  overflow: hidden;
}

.about-section__glow--top {
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  border-radius: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, oklch(0.76 0.14 55 / 0.06) 0%, transparent 75%);
}

.about-section__glow--green {
  top: 10%;
  left: 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, oklch(0.72 0.2 152 / 0.1) 0%, transparent 70%);
  animation: glowBreathe 9s ease-in-out infinite;
}

.about-section__glow--cyan {
  bottom: 5%;
  right: 10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, oklch(0.75 0.15 195 / 0.07) 0%, transparent 70%);
}

.about-section__inner {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  position: relative;
  z-index: 1;
}

.about-section__media {
  flex: 0 1 47%;
  min-width: 280px;
  width: 100%;
  max-width: 620px;
  position: relative;
}

/* Mjukt ljus bakom porträttet. */
.about-section__media::before {
  content: '';
  position: absolute;
  inset: -36px;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, oklch(0.75 0.15 195 / 0.16) 0%, transparent 70%);
  pointer-events: none;
  animation: glowBreathe 8s ease-in-out infinite;
}

.about-section__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(66vh, 660px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px oklch(0.04 0.02 258 / 0.88),
    0 0 0 1px oklch(0.72 0.09 190 / 0.22);
  border: 1px solid oklch(0.5 0.04 200 / 0.32);
}

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

/* Två färgade lager ovanpå porträttet. */
.about-section__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px 16px oklch(0.72 0.2 152 / 0.14);
  background: linear-gradient(
    135deg,
    oklch(0.75 0.15 195 / 0.12) 0%,
    transparent 35%,
    transparent 70%,
    oklch(0.68 0.14 302 / 0.08) 100%
  );
}

.about-section__text {
  flex: 0 1 47%;
  min-width: 280px;
  max-width: 620px;
}

.about-section__kicker {
  margin-bottom: 18px;
}

.about-section__title {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 22px;
  line-height: 1.13;
}

.about-section__text p {
  font-size: 16.5px;
  line-height: 1.8;
  color: oklch(0.74 0.025 235);
  margin-bottom: 16px;
  max-width: 560px;
}

.about-section__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   9. KONTAKT OCH SIDFOT (startsidan)
   ========================================================================== */
.contact-section {
  position: relative;
  min-height: 78svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  background: linear-gradient(180deg, oklch(0.12 0.02 258) 0%, oklch(0.1 0.018 258) 100%);
  padding: 70px var(--page-padding) 28px;
  overflow: hidden;
}

.contact-section__glow--top {
  top: -90px;
  left: 0;
  right: 0;
  height: 180px;
  border-radius: 0;
  background: radial-gradient(ellipse 55% 100% at 50% 100%, oklch(0.72 0.2 152 / 0.08) 0%, transparent 75%);
}

.contact-section__glow--purple {
  bottom: 10%;
  right: 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, oklch(0.68 0.14 302 / 0.06) 0%, transparent 70%);
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section__kicker {
  margin-bottom: 18px;
}

.contact-section__title {
  font-size: clamp(28px, 4.6vw, 50px);
  margin-bottom: 24px;
}

.contact-section__text {
  font-size: 15px;
  color: oklch(0.7 0.022 235);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-section__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--text-faint);
}

.site-footer__separator {
  color: oklch(0.35 0.014 258);
}
