/* FeelingFlexi marketing site
   Cosmos-inspired showcase. Inter, warm clay light, dark liquid glass.
   Light canvas #F7F5F2 · Dark #0B0B0F */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F5F2;
  --fg: #0B0B0F;
  --muted: #8A8680;
  --muted2: #A39E96;
  --line: rgba(11, 11, 15, 0.12);
  --pill-bg: #0B0B0F;
  --pill-fg: #F7F5F2;
  --card-shadow: 0 18px 50px rgba(11, 11, 15, 0.10), 0 4px 14px rgba(11, 11, 15, 0.06);
  --card-edge: rgba(255, 255, 255, 0.55);
  --edge-fade: rgba(247, 245, 242, 0.94);
  --panel: #e6e1d9;
  --panel-2: #ddd6cc;
  --shot-bg: #e8e4de;
  --hover: rgba(11, 11, 15, 0.045);
  --glass: rgba(247, 245, 242, 0.82);
  --chip: rgba(247, 245, 242, 0.88);
  --dialog-backdrop: rgba(11, 11, 15, 0.38);
  --shot-shadow: 0 12px 32px rgba(11, 11, 15, 0.14);
  --blur-opacity: 0.55;
  --blur-more-opacity: 0.38;
  --dim-opacity: 0.7;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0F;
  --fg: #F7F5F2;
  --muted: #8B8790;
  --muted2: #6A6670;
  --line: rgba(247, 245, 242, 0.16);
  --pill-bg: #F7F5F2;
  --pill-fg: #0B0B0F;
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.28);
  --card-edge: rgba(247, 245, 242, 0.14);
  --edge-fade: rgba(11, 11, 15, 0.94);
  --panel: #16161c;
  --panel-2: #121218;
  --shot-bg: #14141a;
  --hover: rgba(247, 245, 242, 0.06);
  --glass: rgba(11, 11, 15, 0.78);
  --chip: rgba(11, 11, 15, 0.78);
  --dialog-backdrop: rgba(0, 0, 0, 0.62);
  --shot-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --blur-opacity: 0.5;
  --blur-more-opacity: 0.32;
  --dim-opacity: 0.65;
}

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

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

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; }

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

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--pill-bg);
  color: var(--pill-fg);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.skip:focus { top: 12px; }

[data-theme="light"] .for-dark { display: none !important; }
[data-theme="dark"] .for-light { display: none !important; }

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 36px;
  background: linear-gradient(to bottom, var(--bg) 62%, transparent);
}

.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 -1px 0 var(--line);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-right { gap: 10px; }

.logo-link {
  display: flex;
  align-items: center;
  flex: none;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.92;
}

[data-theme="dark"] .logo { filter: invert(1); }

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.25px var(--line);
}

.nav-burger:hover { background: var(--hover); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.25px var(--line);
  flex: none;
}

.theme-toggle:hover { background: var(--hover); }

.theme-toggle svg { width: 16px; height: 16px; display: block; }

.icon-sun { display: none; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.site-menu[hidden] { display: none !important; }

.site-menu { display: none; }

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.pill:hover { transform: translateY(-1px); }
.pill:active { transform: scale(0.98); }

.pill-solid { background: var(--pill-bg); color: var(--pill-fg); }
.pill-solid:hover { opacity: 0.92; }

.pill-outline {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.25px var(--line);
}

.pill-outline:hover { background: var(--hover); }

.pill-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.pill-xl { height: 56px; padding: 0 36px; font-size: 16px; }

/* Hero */

.hero, .page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  min-height: 100dvh;
  padding: 120px 24px 80px;
}

.page-hero {
  min-height: 620px;
  padding: 148px 24px 72px;
}

.cloud {
  position: absolute;
  inset: -40px -60px -80px;
  pointer-events: none;
  z-index: 0;
}

.page-hero .cloud { inset: -20px -40px -40px; }

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.cloud::before {
  background:
    radial-gradient(ellipse 52% 46% at 50% 48%, transparent 18%, var(--edge-fade) 76%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 16%, transparent 74%, var(--bg) 100%);
}

.cloud::after {
  background: linear-gradient(to right, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}

.float {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--shot-bg);
}

.float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--card-edge);
  pointer-events: none;
  z-index: 1;
}

.float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.float.wide img { object-position: center; }

.float.blur { filter: blur(1.2px) saturate(0.95); opacity: var(--blur-opacity); }
.float.blur-more { filter: blur(3px) saturate(0.9); opacity: var(--blur-more-opacity); }
.float.dim { opacity: var(--dim-opacity); }

.hero-inner { position: relative; z-index: 3; max-width: 760px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 22px;
}

.hero h1, .page-hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 480px;
  margin: -6px auto 0;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.chevron {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted2);
  opacity: 0.75;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chevron svg { width: 22px; height: 22px; }

/* Hero cloud positions — match the approved showcase */

.f1 { width: 168px; height: 300px; left: 6%; top: 14%; transform: rotate(-11deg); }
.f2 { width: 150px; height: 268px; right: 7%; top: 12%; transform: rotate(9deg); }
.f3 { width: 220px; height: 128px; left: 16%; top: 58%; transform: rotate(7deg); }
.f4 { width: 140px; height: 250px; right: 14%; top: 52%; transform: rotate(-8deg); }
.f5 { width: 130px; height: 232px; left: 2%; top: 42%; transform: rotate(-16deg); }
.f6 { width: 132px; height: 236px; right: 3%; top: 38%; transform: rotate(13deg); }
.f7 { width: 190px; height: 110px; left: 28%; top: 8%; transform: rotate(4deg); }
.f8 { width: 110px; height: 196px; right: 26%; top: 72%; transform: rotate(-5deg); }
.f9 { width: 120px; height: 214px; left: 40%; top: 70%; transform: rotate(6deg); }
.f10 { width: 160px; height: 93px; right: 32%; top: 6%; transform: rotate(-7deg); }

.c1 { width: 150px; height: 268px; left: 8%; top: 10%; transform: rotate(-10deg); }
.c2 { width: 140px; height: 250px; right: 10%; top: 16%; transform: rotate(8deg); }
.c3 { width: 200px; height: 116px; left: 22%; top: 55%; transform: rotate(5deg); }
.c4 { width: 130px; height: 232px; right: 18%; top: 48%; transform: rotate(-6deg); }
.c5 { width: 120px; height: 214px; left: 4%; top: 40%; transform: rotate(-14deg); }
.c6 { width: 120px; height: 214px; right: 4%; top: 36%; transform: rotate(12deg); }

/* Sections */

.feature-stack { padding: 28px 0 8px; }

.feature {
  padding: 88px 48px;
  max-width: 980px;
  margin: 0 auto;
}

.feature.centered { text-align: center; }

.feature h2, .block h2, .cta-band h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.15;
  margin-bottom: 36px;
}

.step {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.feature .body, .block .body {
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 440px;
}

.feature.centered .body { margin-left: auto; margin-right: auto; }

.demo-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 32px;
  position: relative;
}

.demo-panel.alt { background: var(--panel-2); }

.shot {
  height: 92%;
  width: auto;
  aspect-ratio: 448 / 897;
  max-width: 32%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shot-shadow);
  flex: 0 0 auto;
  background: var(--shot-bg);
}

.shot img, .phone-frame img, .wide-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.chip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chip);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}

.phone-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--shot-bg);
  position: relative;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--card-edge);
  pointer-events: none;
}

.phone-solo {
  width: min(280px, 72%);
  aspect-ratio: 448 / 897;
  margin: 0 auto;
}

.wide-shot {
  width: min(860px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--shot-bg);
  aspect-ratio: 1024 / 594;
  position: relative;
}

.wide-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--card-edge);
  pointer-events: none;
}

.wide-shot img { object-position: center top; }

section.block {
  position: relative;
  padding: 80px 48px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.asym {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px) 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.asym .headline {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-align: right;
  margin: 0;
}

.asym .phone { width: 100%; aspect-ratio: 448 / 897; }

.asym .caption {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 260px;
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 48px 24px;
}

.fact {
  padding: 8px 8px 0;
}

.fact h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.fact p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}

.pair figure { margin: 0; width: min(240px, 42vw); }

.pair .phone-frame { width: 100%; aspect-ratio: 448 / 897; }

.pair figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Closing */

.closing {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.closing .cloud { inset: -20px -40px 8%; }

.closing-inner { position: relative; z-index: 3; }

.closing h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.closing .hero-ctas { flex-direction: column; align-items: center; gap: 14px; }

.depth-blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

.cta-band {
  text-align: center;
  padding: 40px 24px 100px;
}

.cta-band h2 { margin-bottom: 28px; }

/* Footer */

.foot {
  position: relative;
  z-index: 4;
  padding: 12px 36px 32px;
}

.foot-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 auto;
  padding: 4px 16px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.foot-links a:hover,
.foot-links a[aria-current="page"] { color: var(--fg); }

.wordmark {
  font-size: clamp(42px, 13.2vw, 168px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-align: center;
  width: 100%;
  color: var(--fg);
  padding: 8px 10px 18px;
  user-select: none;
  white-space: nowrap;
}

/* Dialog */

dialog {
  margin: auto;
  border: none;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: var(--bg);
  color: var(--fg);
  width: min(420px, calc(100vw - 32px));
  box-shadow: var(--card-shadow);
}

dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 8px 0 12px;
}

dialog p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Prose */

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 148px 24px 96px;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 8px;
}

.prose .eyebrow { margin-bottom: 16px; }

.prose h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 36px;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 14px;
}

.prose ul { padding-left: 18px; }

.prose a { color: var(--fg); box-shadow: inset 0 -1px 0 var(--line); }

/* Responsive */

@media (max-width: 860px) {
  .nav { padding: 14px 16px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-left { gap: 0; }

  .site-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 60;
    top: 64px;
    left: 12px;
    right: 12px;
    padding: 8px;
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
  }

  .site-menu a {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--fg);
  }

  .site-menu a:hover { background: var(--hover); }

  .feature, section.block { padding-left: 20px; padding-right: 20px; }
  .facts { grid-template-columns: 1fr; padding: 0 24px 12px; gap: 22px; }
  .foot { padding: 8px 20px 28px; }

  .f3, .f7, .f8, .f9, .f10, .c3 { display: none; }
  .f1 { width: 108px; height: 192px; left: -8%; top: 18%; }
  .f2 { width: 100px; height: 178px; right: -6%; top: 14%; }
  .f4 { width: 92px; height: 164px; right: -10%; top: 62%; }
  .f5 { width: 84px; height: 150px; left: -12%; top: 52%; }
  .f6 { width: 96px; height: 172px; right: 2%; top: 36%; }
  .c1 { width: 100px; height: 178px; left: -8%; }
  .c2 { width: 96px; height: 170px; right: -6%; }
  .c4, .c5, .c6 { width: 88px; height: 156px; }
}

@media (max-width: 800px) {
  .asym {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }
  .asym .headline, .asym .caption { text-align: center; }
  .asym .phone { width: min(260px, 72vw); }
  .asym .caption { max-width: 340px; }
}

@media (max-width: 720px) {
  .hero h1, .page-hero h1 { font-size: 40px; }
  .demo-panel {
    aspect-ratio: auto;
    height: auto;
    gap: 10px;
    padding: 18px 12px;
    overflow: hidden;
  }
  .shot {
    height: 230px;
    width: calc(230px * 448 / 897);
    max-width: none;
  }
  .pair { gap: 14px; }
  .wordmark { letter-spacing: -0.05em; }
  .pill-lg { height: 46px; padding: 0 22px; }
}

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