:root {
  --bg: #f7f8fc;
  --ink: #1a1f36;
  --muted: #6b7289;
  --line: rgba(26, 31, 54, 0.08);
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --orange: #ff8a3d;
  --pink: #ec4899;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
  --radius: 22px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.blob-a {
  width: 420px;
  height: 420px;
  background: #93c5fd;
  top: -80px;
  left: -60px;
}

.blob-b {
  width: 380px;
  height: 380px;
  background: #fde68a;
  top: 40px;
  right: -80px;
  animation-delay: -4s;
}

.blob-c {
  width: 460px;
  height: 460px;
  background: #fbcfe8;
  bottom: 10%;
  left: 30%;
  animation-delay: -8s;
}

.blob-d {
  width: 300px;
  height: 300px;
  background: #c4b5fd;
  bottom: -40px;
  right: 10%;
  animation-delay: -12s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.06);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active {
  position: relative;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.lang-switch {
  position: relative;
  z-index: 60;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.lang-btn:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.lang-current {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(16rem, 80vw);
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 0.55rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26, 31, 54, 0.14);
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-group {
  margin: 0.35rem 0.4rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: start;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(26, 31, 54, 0.12);
  box-shadow: 0 8px 24px rgba(26, 31, 54, 0.06);
}

.btn-play {
  background: #111827;
  color: var(--white);
  padding: 0.85rem 1.5rem 0.85rem 1.1rem;
  gap: 0.75rem;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.25);
}

.btn-play small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.btn-play span {
  text-align: left;
  line-height: 1.15;
  font-size: 1.15rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - 72px);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 31, 54, 0.08);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.gradient-text {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 35%, #fb923c 70%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
}

.stats {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.stats-center {
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.stat-blue {
  color: var(--blue);
}
.stat-orange {
  color: var(--orange);
}
.stat-pink {
  color: var(--pink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
  filter: blur(10px);
}

.hero-icon {
  position: relative;
  width: min(100%, 420px);
  border-radius: 28%;
  box-shadow: var(--shadow), 0 0 0 10px rgba(255, 255, 255, 0.55);
}

.float {
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.85rem;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.howto h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.howto-steps li {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: white;
  font-weight: 800;
}

.howto-steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.howto-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 31, 54, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 14%, white);
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.mid-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(249, 115, 22, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.mid-cta h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.mid-cta p {
  margin: 0;
  color: var(--muted);
}

.screenshots {
  max-width: 1200px;
}

.shot-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-track::-webkit-scrollbar {
  height: 8px;
}

.shot-track::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 999px;
}

.shot {
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(26, 31, 54, 0.12);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #fff;
}

.shot figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-band {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.download-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.download-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.download-inner > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.download-inner .stats {
  margin-bottom: 1.5rem;
}

.download-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
}

.footer-brand strong {
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-lead,
  .section-lead {
    margin-inline: auto;
  }

  .stats,
  .hero-actions {
    justify-content: center;
  }

  .scroll-hint {
    display: none;
  }

  .about-grid,
  .howto-steps,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-media img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(26, 31, 54, 0.12);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: rgba(59, 130, 246, 0.08);
  }

  .site-header .btn-sm {
    display: none;
  }

  .lang-current {
    display: none;
  }

  .lang-btn {
    padding: 0.55rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .about-grid,
  .howto-steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mid-cta {
    text-align: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }
}

/* —— Studio home & catalogs —— */
.studio-hero,
.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) 3rem;
  min-height: calc(100svh - 80px);
}

.studio-logo-hero {
  width: min(100%, 280px);
  margin-inline: auto;
  border-radius: 28px;
  background: #111;
  box-shadow: var(--shadow);
}

.studio-hero h1,
.app-hero h1,
.catalog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-links {
  display: flex;
  gap: 1.25rem;
}

.section-links a {
  font-weight: 800;
  color: var(--blue-deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.featured-grid {
  grid-template-columns: 1fr 1fr;
}

.catalog-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(26, 31, 54, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 31, 54, 0.1);
}

.product-tile img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15);
}

.product-tile h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.25rem;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-tag {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-app {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.tag-soon {
  background: rgba(107, 114, 137, 0.12);
  color: var(--muted);
}

.product-tile-soon {
  opacity: 0.85;
}

.product-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
}

.product-icon-health {
  background: linear-gradient(145deg, #0d9488, #14b8a6 55%, #5eead4);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

.product-icon-soon {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #334155;
  font-size: 2rem;
}

.product-row {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.product-tile-wide {
  flex-direction: column;
}

.tile-cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.catalog-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 4rem;
}

.catalog-hero {
  margin-bottom: 2rem;
}

.studio-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-studio .feature {
  background: rgba(255, 255, 255, 0.78);
}

/* —— Health Calculator page —— */
.page-health .health-blobs .blob-a {
  background: #99f6e4;
}
.page-health .health-blobs .blob-b {
  background: #a5f3fc;
}
.page-health .health-blobs .blob-c {
  background: #bbf7d0;
}

.health-badge-large {
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 32px;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(145deg, #0f766e, #14b8a6 50%, #5eead4);
  box-shadow: 0 22px 50px rgba(13, 148, 136, 0.28);
}

.health-badge-large span {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
}

.health-badge-large small {
  opacity: 0.9;
  font-weight: 700;
}

.health-badge-large.small {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 24px;
  margin-bottom: 1rem;
}

.health-badge-large.small span {
  font-size: 1.5rem;
}

.play-note,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tool-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tool-tab.is-active {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: transparent;
  color: white;
}

.tool-panels {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.08);
}

.tool-panel[hidden] {
  display: none;
}

.tool-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.bmi-scale {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.55rem;
}

.bmi-scale li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.underweight { background: #42a5f5; }
.dot.normal { background: #66bb6a; }
.dot.overweight { background: #ffa726; }
.dot.obese { background: #ef5350; }

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.mini-feature-grid div {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(13, 148, 136, 0.06);
}

.mini-feature-grid p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calc-form {
  display: grid;
  gap: 0.9rem;
  max-width: 420px;
}

.calc-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.calc-form input,
.calc-form select {
  width: 100%;
  border: 1px solid rgba(26, 31, 54, 0.12);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: white;
}

.calc-result {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(13, 148, 136, 0.07);
}

.result-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0;
  line-height: 1.1;
}

.result-value small {
  font-size: 1rem;
  color: var(--muted);
}

.result-category {
  margin: 0.35rem 0 0.75rem;
  font-weight: 800;
}

.bmi-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 31, 54, 0.08);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.result-range {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.play-store-link[aria-disabled="true"] {
  opacity: 0.92;
}

/* —— Breadcrumb —— */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 3rem) 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue-deep);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.45;
}

.breadcrumb-current {
  color: var(--ink);
}

.guide-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 800;
  color: #0f766e;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pillar-card {
  display: block;
  padding: 1.4rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 31, 54, 0.1);
}

.pillar-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* —— BMI blog + modal —— */
.blog-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.blog-hero {
  margin-bottom: 2.25rem;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.blog-body {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.08);
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.blog-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.blog-body p,
.blog-body li {
  color: #3a4158;
  line-height: 1.75;
}

.blog-body ul {
  padding-left: 1.2rem;
}

.formula-box {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

.example-box {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #f3f4f8;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.bmi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.bmi-table th,
.bmi-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: start;
}

.bmi-table th {
  background: rgba(13, 148, 136, 0.1);
  font-weight: 800;
}

.bmi-table tr:nth-child(even) td {
  background: rgba(247, 248, 252, 0.8);
}

.blog-cta-inline,
.blog-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(59, 130, 246, 0.08));
}

.blog-footer-actions {
  justify-content: center;
}

.faq h3 {
  margin-bottom: 0.35rem;
}

.faq p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none !important;
}

.modal-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.modal-dialog h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f3f4f8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 0.75rem;
}

.modal-more {
  display: inline-block;
  margin: 0.85rem 0 0.75rem;
  font-weight: 800;
  color: #0f766e;
}

.page-blog .site-header .btn-sm {
  display: inline-flex;
}

@media (max-width: 720px) {
  .page-blog .site-header .btn-sm {
    display: none;
  }
}

@media (max-width: 980px) {
  .studio-hero,
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .studio-hero .hero-actions,
  .app-hero .hero-actions {
    justify-content: center;
  }

  .product-grid,
  .studio-points,
  .mini-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-row {
    flex-direction: column;
    text-align: center;
  }

  .product-tile,
  .product-tag {
    align-items: center;
  }

  .nav a.is-active::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blob,
  .float,
  .scroll-hint,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
