/* ISLES static landing page (HTML + Tailwind CDN + small CSS) */

:root {
  --ink: #121a2f;
  --muted: #556070;
  --green: #18c58b;
  --mint: #aee8d7;
  --mint-light: #ddf7ef;
  --cream: #fffdf8;

  --wrap: 1180px;
  --pad-x: 24px;
  --section-y: clamp(40px, 4.8vw, 86px);

  --shadow-soft: 0 10px 26px rgba(18, 26, 47, 0.06);
  --shadow-nav: 0 6px 22px rgba(18, 26, 47, 0.08);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--section-y) var(--pad-x);
}

.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
}

@media (max-width: 640px) {
  .topbar {
    height: 74px;
  }
}

/* HERO: hard containment so artwork cannot spill into next section */
.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero-grid--noart {
  grid-template-columns: 1fr;
}

.hero-art {
  position: relative;
  height: clamp(440px, 42vw, 560px);
  min-height: 440px;
  overflow: hidden; /* critical containment */
}

.hero-blob {
  position: absolute;
  width: clamp(420px, 40vw, 620px);
  right: -40px;
  top: clamp(130px, 16vw, 220px);
  z-index: 1;
}

.hero-phone {
  position: absolute;
  width: clamp(260px, 23vw, 340px);
  right: clamp(40px, 6vw, 95px);
  bottom: 0;
  max-height: 95%;
  object-fit: contain;
  z-index: 2;
}

.hero-lady {
  position: absolute;
  width: clamp(145px, 13vw, 210px);
  right: clamp(10px, 3vw, 50px);
  top: clamp(60px, 8vw, 120px);
  z-index: 3;
}

.hero-art--device {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  min-height: clamp(420px, 40vw, 560px);
  overflow: visible;
}

.hero-phone--device {
  position: relative;
  right: auto;
  bottom: auto;
  width: clamp(234px, 28.8vw, 360px);
  max-height: none;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-shell {
    min-height: auto;
    align-items: flex-start;
    overflow: visible;
  }
  .hero-grid {
    padding-bottom: 28px;
  }
  .hero-art {
    height: 420px;
    min-height: 420px;
  }
  .hero-phone:not(.hero-phone--device) {
    right: 50%;
    transform: translateX(50%);
    width: min(300px, 72vw);
  }
  .hero-lady {
    right: 50%;
    transform: translateX(85%);
  }
  .hero-blob {
    right: 50%;
    transform: translateX(55%);
  }
  .hero-art--device {
    justify-content: center;
  }
  .hero-phone--device {
    width: min(270px, 64.8vw);
    margin-left: auto;
    margin-right: auto;
    right: auto;
    transform: none;
  }
}

/* fluid type */
.h1-fluid {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-h1 {
  font-size: 70px;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-h2 {
  font-size: 55px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-body {
  font-size: calc(clamp(18px, 1.4vw, 22px) - 5px);
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 78%, white);
}

@media (max-width: 640px) {
  .hero-h1 {
    font-size: 51px;
  }
  .hero-h2 {
    font-size: 35px;
  }

  /* Mobile hero: keep the whole hero visible and centered */
  .hero-shell {
    /* 74px matches the small-screen topbar height */
    min-height: calc(100svh - 74px);
    align-items: center;
    overflow: visible;
  }

  .hero-grid {
    padding: 18px var(--pad-x) 26px;
    gap: 22px;
    text-align: center;
    justify-items: center;
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art--device {
    min-height: auto;
    justify-content: center;
  }

  .hero-phone--device {
    width: min(240px, 72vw);
    max-height: 52vh;
    margin-left: auto;
    margin-right: auto;
  }

  .float-phone {
    animation: none;
  }
}

.h2-fluid {
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.body-fluid {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 78%, white);
}

.small-fluid {
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.45;
  color: var(--muted);
}

/* subtle motion */
@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
@keyframes floatySlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.float-phone { animation: floaty 6.5s ease-in-out infinite; }
.float-lady { animation: floatySlow 8.5s ease-in-out infinite; }

/* app store badge placeholder (if no asset exists) */
.badge {
  width: 165px;
  height: 52px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.badge small { display: block; font-size: 10px; opacity: 0.9; line-height: 1.05; }
.badge strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

/* feature cards */
.feature-card {
  border: 1px solid rgba(18, 26, 47, 0.10);
  border-radius: 24px;
  background: #fff;
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  text-align: left;
  width: 100%;
}
.feature-card.is-active {
  border-color: rgba(24, 197, 139, 0.55);
  background: #f2fff9;
  transform: translateX(-6px);
}
.feature-card.is-active .feature-title {
  color: var(--green);
}

.feature-preview {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.feature-screen {
  width: clamp(280px, 32vw, 400px);
  background: transparent;
  transition: opacity 160ms ease;
}

.feature-screen.is-fading {
  opacity: 0.55;
}

/* premium stars wash */
.stars-wash {
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 253, 248, 0.85) 0 10px, transparent 11px),
    radial-gradient(circle at 32% 58%, rgba(255, 253, 248, 0.65) 0 7px, transparent 8px),
    radial-gradient(circle at 58% 24%, rgba(255, 253, 248, 0.75) 0 9px, transparent 10px),
    radial-gradient(circle at 78% 46%, rgba(255, 253, 248, 0.70) 0 8px, transparent 9px),
    radial-gradient(circle at 86% 22%, rgba(255, 253, 248, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 66% 74%, rgba(255, 253, 248, 0.55) 0 6px, transparent 7px);
  opacity: 0.42;
}

/* PREMIUM: visible waves (top + bottom) */
.premium-section {
  position: relative;
  overflow: hidden;
  background: #b4e0cf;
  padding: clamp(80px, 8vw, 120px) var(--pad-x) clamp(72px, 7vw, 110px);
}

.premium-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* prevent accidental horizontal overflow */
img, svg { max-width: 100%; height: auto; }

