/* ============================================================
   Copl — Landningssida
   Frost-design som matchar appen: marin-svart canvas, vit text,
   aqua-glow på kort, turkos accent från logo-C.
   ============================================================ */

:root {
  --canvas: #061018;
  --surface: rgba(20,32,40,0.92);
  --surface-subtle: rgba(15,26,34,0.82);
  --border-light: rgba(184,232,232,0.12);
  --border-medium: rgba(184,232,232,0.22);
  --ink: #FFFFFF;
  --ink-muted: #D0E0E5;
  --accent: #B8E8E8;
  --logo-blue: #7BD4D0;
  --danger: #E53935;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ============================================================
   Top navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,16,24,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* ============================================================
   Generic layout
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
}

/* ============================================================
   Hero (landing page)
   ============================================================ */

.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  min-height: 880px;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(184,232,232,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(184,232,232,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Stage: ren container för loggan. Modulerna är inte längre här —
   de är absolut-positionerade i .hero och fylls över hela sektionen. */
.hero-stage {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(123,212,208,0.45));
  position: relative;
  z-index: 3;
}

/* (logo-glow borttagen — Pontus vill ha logga utan skimmer bakom) */

/* Svävande modul-kort fyller HELA hero-sektionen — INTE i centrum.
   Modulerna ligger i sido-zoner (vänster + höger), några i toppen,
   några i botten. Centrum (där logga + rubrik + tagline + buttons är)
   är helt fri. */
.floating-modules {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-mod {
  position: absolute;
  width: 86px;
  padding: 10px 6px 9px;
  background: rgba(20,32,40,0.88);
  border: 1px solid rgba(184,232,232,0.22);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Dämpat skimmer: inner logo-blå glow + outer aqua halo + dark drop */
  box-shadow:
    0 0 22px rgba(123,212,208,0.22),
    0 0 44px rgba(184,232,232,0.10),
    0 6px 14px rgba(0,0,0,0.45);
  opacity: 0;
  /* fade-in vid sidladdning + perpetual drift */
  animation:
    fade-in-mod 1s ease-out var(--delay, 0s) forwards,
    drift-a 6s ease-in-out var(--delay, 0s) infinite;
}

/* Pseudo-element bakom kortet — extra mjuk aqua-skimmer som pulserar.
   inset: -10px gör att skimret sträcker sig 10px utanför kortets kanter,
   blur(12px) ger mjuk diffus glöd. */
.float-mod::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(
    ellipse,
    rgba(123,212,208,0.18) 0%,
    rgba(184,232,232,0.07) 40%,
    transparent 70%
  );
  border-radius: 20px;
  filter: blur(7px);
  pointer-events: none;
  z-index: -1;
  animation: card-skimmer 5s ease-in-out infinite;
}

@keyframes card-skimmer {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.06); }
}

.float-icon {
  font-size: 26px;
  line-height: 1;
}

.float-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@keyframes fade-in-mod {
  to { opacity: 1; }
}

/* Sex olika drift-keyframes — varje med eget rörelsemönster.
   Större amplitud (±18-26px) + subtil rotation (±3-5°) ger mer tydlig
   och oregelbunden svävning. Olika antal stops + olika hastigheter så
   ingen modul synkar med någon annan. */
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(14px, -18px) rotate(2deg); }
  50%      { transform: translate(-8px, -24px) rotate(-3deg); }
  75%      { transform: translate(-16px, 10px) rotate(1deg); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(-20px, 14px) rotate(-3deg); }
  66%      { transform: translate(16px, -12px) rotate(4deg); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20%      { transform: translate(12px, 22px) rotate(2deg); }
  40%      { transform: translate(-16px, -8px) rotate(-4deg); }
  70%      { transform: translate(18px, -14px) rotate(3deg); }
}

@keyframes drift-d {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(-14px, -22px) rotate(-2deg); }
  60%      { transform: translate(22px, 10px) rotate(4deg); }
  85%      { transform: translate(6px, 16px) rotate(-1deg); }
}

@keyframes drift-e {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  18%      { transform: translate(-10px, 16px) rotate(3deg); }
  45%      { transform: translate(18px, -8px) rotate(-4deg); }
  72%      { transform: translate(-12px, -18px) rotate(2deg); }
  90%      { transform: translate(8px, 12px) rotate(-2deg); }
}

@keyframes drift-f {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  22%      { transform: translate(8px, -16px) rotate(-3deg); }
  48%      { transform: translate(-22px, 8px) rotate(2deg); }
  75%      { transform: translate(14px, 20px) rotate(-1deg); }
}

/* 13 moduler i HALVCIRKEL ovanför + sidor nedanför.
   Topp-cluster (5 moduler) bildar en lätt båge ovanför loggan.
   Sidor (4 vänster + 4 höger) ligger nedanför stage-mitten.
   Centrum-kolumnen (30-70% left, top 28-58%) är fri för logga + content. */

/* TOPP-HALVCIRKEL — 5 moduler i tight båge ovanför loggan */
.float-mod.m1  { top: 14%; left: 16%; animation-name: fade-in-mod, drift-a; animation-duration: 1s, 7s;   }
.float-mod.m2  { top:  4%; left: 30%; animation-name: fade-in-mod, drift-d; animation-duration: 1s, 9s;   }
.float-mod.m3  { top:  6%; left: 50%; margin-left: -43px; animation-name: fade-in-mod, drift-b; animation-duration: 1s, 8s;   }
.float-mod.m4  { top:  4%; left: 56%; animation-name: fade-in-mod, drift-e; animation-duration: 1s, 6.5s; }
.float-mod.m5  { top: 14%; left: 72%; animation-name: fade-in-mod, drift-c; animation-duration: 1s, 8.5s; }

/* VÄNSTERSIDA NEDANFÖR — 4 moduler tight mot loggan, alternerande jitter */
.float-mod.m6  { top: 38%; left: 18%; animation-name: fade-in-mod, drift-f; animation-duration: 1s, 7.5s; }
.float-mod.m7  { top: 52%; left: 12%; animation-name: fade-in-mod, drift-a; animation-duration: 1s, 9.5s; }
.float-mod.m8  { top: 66%; left: 18%; animation-name: fade-in-mod, drift-d; animation-duration: 1s, 8s;   }
.float-mod.m9  { top: 80%; left: 12%; animation-name: fade-in-mod, drift-b; animation-duration: 1s, 6s;   }

/* HÖGERSIDA NEDANFÖR — 4 moduler tight mot loggan, speglar vänster */
.float-mod.m10 { top: 38%; left: 75%; animation-name: fade-in-mod, drift-e; animation-duration: 1s, 8.5s; }
.float-mod.m11 { top: 52%; left: 82%; animation-name: fade-in-mod, drift-f; animation-duration: 1s, 7s;   }
.float-mod.m12 { top: 66%; left: 75%; animation-name: fade-in-mod, drift-c; animation-duration: 1s, 9s;   }
.float-mod.m13 { top: 80%; left: 82%; animation-name: fade-in-mod, drift-a; animation-duration: 1s, 6.5s; }

/* På mellanstora skärmar (<1100px) trycker vi ut modulerna till kanten
   så de inte korsar hero-inner-content som är 720px centerat. */
@media (max-width: 1100px) {
  .float-mod.m1  { left:  4%; }
  .float-mod.m2  { left: 22%; }
  .float-mod.m4  { left: 64%; }
  .float-mod.m5  { left: 84%; }
  .float-mod.m6  { left:  6%; }
  .float-mod.m7  { left:  2%; }
  .float-mod.m8  { left:  6%; }
  .float-mod.m9  { left:  2%; }
  .float-mod.m10 { left: 88%; }
  .float-mod.m11 { left: 94%; }
  .float-mod.m12 { left: 88%; }
  .float-mod.m13 { left: 94%; }
}

@media (max-width: 1100px) {
  /* På medel-bred skärm: skala ner modulerna lite */
  .float-mod { width: 78px; padding: 8px 4px 7px; }
  .float-icon { font-size: 22px; }
  .float-label { font-size: 9.5px; }
}

@media (max-width: 860px) {
  .hero { min-height: 800px; }
  .hero-stage { width: 320px; height: 320px; }
  .hero-logo { width: 280px; height: 280px; }
  .float-mod { width: 70px; padding: 7px 3px 6px; }
  .float-icon { font-size: 19px; }
  .float-label { font-size: 9px; }
}

@media (max-width: 640px) {
  /* På mobil: dölj sido-modulerna helt — för smal skärm för utspridning.
     Behåll bara topp- och botten-modulerna för subtilt liv. */
  .hero { min-height: 720px; }
  .hero-stage { width: 240px; height: 240px; }
  .hero-logo { width: 220px; height: 220px; }
  .floating-modules { display: none; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 0 0 24px rgba(184,232,232,0.30);
}

.hero p.subtitle {
  font-size: 19px;
  color: var(--ink-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-logo { width: 110px; height: 110px; }
  .hero h1 { font-size: 36px; }
  .hero p.subtitle { font-size: 16px; }
}

/* ============================================================
   App Store-knappar
   ============================================================ */

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #000;
  color: #fff !important;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,232,232,0.18);
  color: #fff !important;
}

.store-btn.disabled {
  opacity: 0.6;
  cursor: default;
}

.store-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.store-icon {
  font-size: 22px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-text .small {
  font-size: 11px;
  opacity: 0.7;
}

.store-text .big {
  font-size: 16px;
  font-weight: 600;
}

/* ============================================================
   Feature-block (3 säljpunkter)
   ============================================================ */

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

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 0 20px rgba(184,232,232,0.18);
}

.feature .icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ============================================================
   Sub-section (Funktioner-sidan etc.)
   ============================================================ */

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(184,232,232,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(184,232,232,0.22);
}

.page-header p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .page-header { padding: 40px 0 30px; }
  .page-header h1 { font-size: 30px; }
  .page-header p { font-size: 15px; }
}

/* ============================================================
   Feature-list (Funktioner-sidan)
   ============================================================ */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 40px 0;
}

@media (max-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 18px rgba(184,232,232,0.15);
  /* Anchor-scroll: lämna luft till nav-baren när man landar via #anchor */
  scroll-margin-top: 90px;
}

/* När feature-item är en <a> (klickbar modul på startsidan) — ta bort
   default-länkstyling så det fortfarande ser ut som ett kort. */
a.feature-item {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature-item .icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-item p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Highlight modul-kortet när man landar på det via #anchor */
.feature-item:target {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(184,232,232,0.45);
  animation: target-pulse 1.4s ease-out 1;
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 0 rgba(184,232,232,0);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 48px rgba(184,232,232,0.55);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 32px rgba(184,232,232,0.45);
    transform: scale(1);
  }
}

/* ============================================================
   Trust block (sekretess m.m.)
   ============================================================ */

.trust {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 0 22px rgba(184,232,232,0.18);
  margin: 60px 0;
}

.trust h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.trust p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  text-align: center;
}

.trust-item .icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.trust-item .text {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ============================================================
   Long-form content (Privacy / Terms)
   ============================================================ */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 80px;
}

.prose h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}

.prose .version {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}

.prose p,
.prose ul,
.prose ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(184,232,232,0.4);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink);
  vertical-align: top;
}

.prose th {
  font-weight: 600;
  color: var(--ink);
  background: rgba(184,232,232,0.05);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--ink-muted);
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 0 28px;
  text-align: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.7;
  margin: 0 auto 12px;
  display: block;
}

.footer-tagline {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
  opacity: 0.7;
}

/* ============================================================
   Diverse utilities
   ============================================================ */

.center { text-align: center; }
.mt-l { margin-top: 32px; }
.mb-l { margin-bottom: 32px; }
.accent { color: var(--accent); }

/* ============================================================
   SHOWCASE — videospel i iPhone-mockup
   ============================================================ */

.showcase {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(184,232,232,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
}

/* iPhone-mockup: rundad frame, notch, glow */
.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #050a10;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(184,232,232,0.25),
    0 0 50px rgba(184,232,232,0.20),
    0 25px 60px rgba(0,0,0,0.55);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--canvas);
  border-radius: 32px;
  overflow: hidden;
}

.phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Platshållare — visas innan video laddats / om video saknas */
.phone-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  gap: 12px;
  z-index: 0;
}

.phone-placeholder-logo {
  width: 100px;
  height: 100px;
  opacity: 0.5;
  animation: heart-pulse 5s ease-in-out infinite;
}

.phone-placeholder-text {
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Säljtext-kolumn */
.showcase-text h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}

.showcase-text > p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

@media (max-width: 860px) {
  .showcase-text > p { margin-left: auto; margin-right: auto; }
}

.showcase-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

@media (max-width: 860px) {
  .showcase-bullets { margin: 0 auto; text-align: left; }
}

.showcase-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bullet-icon {
  font-size: 22px;
  line-height: 1.4;
  flex-shrink: 0;
}

.bullet-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   ANIMATIONER — rörligt material för premium-känsla
   ============================================================ */

/* Bakgrundsglow rör sig sakta i hero */
@keyframes float-glow-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(40px, -30px) scale(1.1); opacity: 0.85; }
}

@keyframes float-glow-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate(-30px, 40px) scale(1.15); opacity: 1; }
}

.hero::before {
  animation: float-glow-1 14s ease-in-out infinite;
}

.hero::after {
  animation: float-glow-2 18s ease-in-out infinite;
}

/* Hero-logga som ett vilande hjärta — långsam lub-DUB med lång paus.
   Dämpad amplitud + 5s-cykel ger ~12 BPM = meditativ rytm, inget hetsigt.
   Illustrerar ett förhållande i god vila — inte i panik. */
@keyframes heart-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(123,212,208,0.32));
  }
  8% {
    transform: scale(1.015);
    filter: drop-shadow(0 0 28px rgba(123,212,208,0.42));
  }
  18% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(123,212,208,0.32));
  }
  28% {
    transform: scale(1.035);
    filter: drop-shadow(0 0 36px rgba(123,212,208,0.55));
  }
  42% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(123,212,208,0.32));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(123,212,208,0.32));
  }
}

.hero-logo {
  animation: heart-pulse 5s ease-in-out infinite;
  transform-origin: center center;
}

/* Hero-rubrik glider in från undertill vid sidladdning */
@keyframes slide-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  animation: slide-in-up 0.8s ease-out 0.2s backwards;
}

.hero p.subtitle {
  animation: slide-in-up 0.8s ease-out 0.4s backwards;
}

.hero .store-buttons {
  animation: slide-in-up 0.8s ease-out 0.6s backwards;
}

/* Feature-kort lyfts vid hover */
.feature,
.feature-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover,
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(184,232,232,0.28);
}

/* App Store-knapp har subtil shimmer-puls för att dra uppmärksamhet */
@keyframes shimmer-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(184,232,232,0);
  }
  50% {
    box-shadow: 0 0 24px rgba(184,232,232,0.35);
  }
}

.store-btn:not(.disabled) {
  animation: shimmer-pulse 3s ease-in-out infinite;
}

/* Nav-länkar har glide-underline vid hover */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Trust block — pulserande glow på ikoner */
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(184,232,232,0)); }
  50% { filter: drop-shadow(0 0 12px rgba(184,232,232,0.5)); }
}

.trust-item .icon {
  display: inline-block;
  animation: icon-glow 3.5s ease-in-out infinite;
}

.trust-item:nth-child(2) .icon { animation-delay: 0.5s; }
.trust-item:nth-child(3) .icon { animation-delay: 1s; }
.trust-item:nth-child(4) .icon { animation-delay: 1.5s; }

/* Scroll-baserade animationer — element fader in när de syns */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-effekt för grid-items */
.feature-list .feature-item.reveal {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* Footer-logo har långsam puls */
@keyframes footer-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(184,232,232,0.0)); opacity: 0.7; }
  50% { filter: drop-shadow(0 0 14px rgba(184,232,232,0.35)); opacity: 0.9; }
}

.footer-logo {
  animation: footer-glow 5s ease-in-out infinite;
}

/* Respektera användarens reduced-motion-inställning */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-logo,
  .hero h1,
  .hero p.subtitle,
  .hero .store-buttons,
  .feature,
  .feature-item,
  .store-btn,
  .trust-item .icon,
  .footer-logo,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
