/* The Cube — AI Health Companion marketing site
   Premium health SaaS: teal accents ~#0d9488, light grey surfaces. */

:root {
  --primary: #0d9488;
  --primary-deep: #0f766e;
  --primary-mid: #14b8a6;
  --accent: #54B85B;
  --accent-soft: #5dd879;
  --app-bg: #f8fafc;
  --app-fg: #0f172a;
  --app-muted: #64748b;
  --app-border: #e2e8f0;
  --app-card: #ffffff;
  --teal-900: #134e4a;
  --teal-800: #0f766e;
  --teal-700: #0d9488;
  --teal-600: #14b8a6;
  --teal-500: #2dd4bf;
  --emerald-500: #54B85B;
  --emerald-400: #5dd879;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-warm: #e2e8f0;
  --bg: #f4f6f8;
  --bg-deep: #134e4a;
  --shadow-sm: 0 1px 2px rgba(13, 148, 136, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(13, 148, 136, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 6.25rem;
  --brand-logo-size: 72px;
  --max: 1120px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-copy > *,
  .hero-visual,
  .hero-pattern,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-floater {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

}

body {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

main,
.site-header,
.site-footer,
section {
  width: 100%;
  max-width: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-900); }
strong { font-weight: 600; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--teal-700);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
}
.container.narrow {
  max-width: var(--narrow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo,
.footer-logo {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text,
.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.05;
  width: max-content;
  max-width: 12.5rem;
}
.brand-name,
.footer-brand-name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: justify;
  text-align-last: justify;
}
.brand-name::after,
.footer-brand-name::after {
  content: "";
  display: inline-block;
  width: 100%;
}
.brand-sub,
.footer-brand-sub {
  display: block;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.045em;
}
.brand-sub {
  color: var(--muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.75rem;
}
.nav-toggle:hover { background: var(--surface-warm); }
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
}
.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--teal-800);
}
.site-nav .nav-muted { color: var(--muted); }
.site-nav .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  color: #fff !important;
}
.site-nav .nav-cta:hover { background: var(--teal-800); color: #fff !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
  }
  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover {
  background: var(--primary-deep);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.35);
  color: #fff !important;
}
.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  border-color: #cbd5e1;
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary-deep) !important;
}
.btn-ghost-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
}

/* Typography */
.eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
h1, h2, h3 {
  margin: 0 0 0.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead,
.section-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42rem;
}
.section-lead {
  font-size: 1.05rem;
  max-width: none;
  width: 100%;
}

.section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}
.section-alt {
  background: var(--surface-soft);
}
.section-head {
  max-width: none;
  width: 100%;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  max-width: none;
}
.section-head .section-lead {
  max-width: none;
  width: 100%;
}

/* Hero — phone mock split layout */
.hero {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 4.5vw, 3.25rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 88% 42%, rgba(13, 148, 136, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 55% at 72% 78%, rgba(84, 184, 91, 0.06), transparent 55%),
    radial-gradient(ellipse 45% 50% at 8% 20%, rgba(13, 148, 136, 0.05), transparent 50%),
    var(--bg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.hero-copy {
  max-width: 36rem;
}
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero .lead {
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.hero-benefits {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 26rem;
}
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.35;
}
.hero-benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  max-width: 28rem;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-800);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.hero-grid > *,
.purpose-grid > *,
.feature-grid > *,
.steps > *,
.family-grid > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}
.hero .btn {
  border-radius: 0.65rem;
}
.hero .btn-lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
}
.store-downloads {
  margin: 0;
}
.store-downloads-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: #111;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.9;
  line-height: 1.2;
}
.store-pill-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
/* Legacy store-badge (CTA section) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 10.8rem;
  min-height: 3.35rem;
  padding: 0.48rem 0.7rem;
  color: #fff !important;
  background: #111;
  border: 1px solid #333;
  border-radius: 0.65rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.store-badge:hover,
.store-badge:focus-visible {
  color: #fff !important;
  background: #1f1f1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}
.store-badge:focus-visible {
  outline: 3px solid rgba(84, 184, 91, 0.55);
  outline-offset: 3px;
}
.store-badge-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
}
.store-badge-play { width: 1.7rem; height: 1.7rem; }
.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  white-space: nowrap;
}
.store-badge-copy small {
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.store-badge-copy strong {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.store-badge-soon {
  align-self: flex-start;
  margin: -0.12rem -0.35rem 0 auto;
  padding: 0.18rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.3rem;
  color: #d8f5dd;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Phone mock — Insights screen (matches Flutter Insights) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0.75rem 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob-a {
  width: min(320px, 85%);
  height: min(320px, 85%);
  background: rgba(13, 148, 136, 0.18);
  top: 8%;
  right: 5%;
}
.hero-blob-b {
  width: min(220px, 60%);
  height: min(220px, 60%);
  background: rgba(84, 184, 91, 0.12);
  bottom: 10%;
  left: 8%;
}
.hero-blob-c {
  width: min(160px, 45%);
  height: min(160px, 45%);
  background: rgba(148, 163, 184, 0.22);
  top: 42%;
  left: 18%;
}

/* Soft floating theme objects around the phone mock */
.hero-floaters {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.hero-floater {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--teal-800);
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  opacity: 1 !important;
  will-change: transform;
  pointer-events: none;
}
.hero-floater-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  flex-shrink: 0;
}
.hero-floater-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.hero-floater-icon-rupee {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
.hero-floater-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-800);
  white-space: nowrap;
  line-height: 1.2;
}

/* Orbit the phone mock (positions are inside .hero-visual) */
.hero-floater-ai {
  top: 10%;
  left: 0;
  animation: hero-float-a 9s ease-in-out infinite;
}
.hero-floater-record {
  top: 18%;
  right: 0;
  left: auto;
  animation: hero-float-b 10s ease-in-out infinite;
  animation-delay: -2.5s;
}
.hero-floater-insights {
  bottom: 18%;
  top: auto;
  left: 0;
  animation: hero-float-c 11s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-floater-expense {
  bottom: 10%;
  top: auto;
  right: 0;
  left: auto;
  animation: hero-float-d 9.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes hero-float-a {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(20px, -28px, 0); }
  50% { transform: translate3d(36px, 8px, 0); }
  75% { transform: translate3d(8px, 24px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes hero-float-b {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-24px, 16px, 0); }
  50% { transform: translate3d(-36px, -20px, 0); }
  75% { transform: translate3d(10px, -28px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes hero-float-c {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(26px, 18px, 0); }
  50% { transform: translate3d(-14px, 28px, 0); }
  75% { transform: translate3d(-28px, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes hero-float-d {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(18px, -22px, 0); }
  50% { transform: translate3d(-22px, -30px, 0); }
  75% { transform: translate3d(14px, 12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 959px) {
  .hero-visual { overflow: visible; }
  .hero-floater-ai { top: 6%; left: 0; }
  .hero-floater-record { top: 14%; left: auto; right: 0; }
  .hero-floater-insights { top: auto; bottom: 22%; left: 0; }
  .hero-floater-expense { top: auto; bottom: 12%; left: auto; right: 0; }
}

@media (max-width: 480px) {
  .hero-floater-label { display: none; }
  .hero-floater {
    padding: 0.45rem;
    border-radius: 50%;
  }
}


.phone-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 272px);
  background: #111;
  border-radius: 2.25rem;
  padding: 0.75rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}
.phone-screen {
  background: #e8e7e4;
  border-radius: 1.75rem;
  padding: 0.85rem 0.7rem 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  font-family: var(--font);
  line-height: 1.3;
}
.mock-insights {
  font-size: 0.7rem;
  color: var(--app-fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mock-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.1rem 0.25rem;
}
.mock-appbar-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--app-fg);
  line-height: 1.2;
}
.mock-appbar-actions {
  display: flex;
  gap: 0.35rem;
}
.mock-icon-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--app-muted);
  opacity: 0.7;
}
.mock-chips {
  display: flex;
  gap: 0.35rem;
  overflow: hidden;
}
.mock-chip {
  flex: 0 0 auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--app-fg);
  line-height: 1.2;
}
.mock-chip.on {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.mock-quicklinks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  align-items: stretch;
}
.mock-ql {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 0.7rem;
  padding: 0.5rem 0.45rem;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}
.mock-ql-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.mock-ql b {
  display: block;
  font-family: var(--font);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--app-fg);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-ql-text > span {
  display: block;
  font-family: var(--font);
  font-size: 0.48rem;
  font-weight: 500;
  color: var(--app-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
.mock-ql-icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  margin-top: 0.05rem;
}
.mock-ql-teal { background: rgba(13, 148, 136, 0.15); }
.mock-ql-red { background: rgba(192, 57, 43, 0.12); }
.mock-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 0.85rem;
  padding: 0.55rem 0.6rem 0.6rem;
}
.mock-card-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--app-fg);
  margin-bottom: 0.45rem;
}
.mock-card-icon {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  background: rgba(13, 148, 136, 0.35);
  flex: 0 0 auto;
}
.mock-card-icon-chart {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.55), rgba(84, 184, 91, 0.55));
  clip-path: polygon(0 70%, 35% 40%, 60% 55%, 100% 15%, 100% 100%, 0 100%);
  border-radius: 0;
}
.mock-count {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--app-muted);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font);
}
.mock-score-body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.mock-score-ring {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 3px solid rgba(13, 148, 136, 0.3);
  border-top-color: #0d9488;
  border-right-color: #0d9488;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1.05;
}
.mock-score-ring b {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d9488;
  font-variant-numeric: tabular-nums;
}
.mock-score-ring span {
  font-family: var(--font);
  font-size: 0.48rem;
  font-weight: 500;
  color: var(--app-muted);
}
.mock-score-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.mock-score-factors li {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.58rem;
  padding: 0.12rem 0;
  color: var(--ink-soft);
}
.mock-score-factors em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.55rem;
  font-family: var(--font);
}
.mock-score-factors em.ok { color: #0d9488; }
.mock-score-factors em.warn { color: #b45309; }
.mock-metric {
  background: rgba(232, 231, 228, 0.55);
  border: 1px solid var(--app-border);
  border-radius: 0.65rem;
  padding: 0.5rem 0.5rem 0.35rem;
}
.mock-metric-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.mock-metric-name {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-fg);
  line-height: 1.2;
}
.mock-metric-meta {
  font-family: var(--font);
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--app-muted);
  line-height: 1.3;
  margin-top: 0.15rem;
}
.mock-metric-right {
  text-align: right;
  flex: 0 0 auto;
}
.mock-metric-value {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--app-fg);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.mock-metric-value span {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--app-muted);
}
.mock-badge {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: lowercase;
}
.mock-badge.ok {
  background: #dcfce7;
  color: #0d9488;
}
.mock-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.15rem;
}
.mock-chart-line {
  stroke: #54B85B;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.mock-chart-dot {
  fill: #54B85B;
  stroke: #fff;
  stroke-width: 1.5;
}
.mock-chart-axis,
.mock-chart-label {
  fill: #64748b;
  font-size: 8px;
  font-family: var(--font);
  font-weight: 500;
}
 .mock-tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.7rem 0.5rem 0.85rem;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--app-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-left: -0.7rem;
  margin-right: -0.7rem;
}
.mock-tabs span {
  display: block;
  padding: 0.15rem 0;
  font-family: var(--font);
}
.mock-tabs .on {
  color: var(--primary);
  font-weight: 700;
}

/* Purpose */
.purpose-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) {
  .purpose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.purpose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.purpose-card h3 {
  color: var(--teal-800);
  margin-bottom: 0.4rem;
}
.purpose-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Features */
.feature-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.14), rgba(84, 184, 91, 0.1));
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.feature-icon svg { width: 1.35rem; height: 1.35rem; }
.feature-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

/* How it works — HTML flow + steps */
.how-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}
.how-head {
  margin-bottom: 0;
}
.how-flow {
  margin: 0;
  width: 100%;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(84, 184, 91, 0.05), transparent 50%),
    var(--surface-soft);
  box-shadow: var(--shadow-sm);
}
.how-flow-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.how-flow-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.how-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem 0.35rem;
}
.how-flow-card {
  flex: 1 1 140px;
  min-width: 132px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.how-flow-title {
  margin: 0;
  padding-left: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  min-height: 2.4em;
  display: flex;
  align-items: center;
}
.how-flow-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.how-flow-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.how-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}
.how-flow-pill svg {
  flex-shrink: 0;
  color: var(--ink);
}
.how-flow-field {
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.how-flow-btn {
  padding: 0.48rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}
.how-flow-bullets {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.how-flow-bullets li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}
.how-flow-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
.how-flow-avatars {
  display: flex;
  align-items: center;
  gap: 0;
}
.how-flow-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  margin-left: -0.35rem;
}
.how-flow-avatar:first-child { margin-left: 0; }
.how-flow-avatar-a { background: var(--primary); }
.how-flow-avatar-b { background: var(--accent); }
.how-flow-avatar-c { background: #64748b; }
.how-flow-avatar-add {
  background: var(--surface-soft);
  color: var(--primary);
  border-color: var(--line-strong);
  font-size: 1rem;
  font-weight: 600;
}
.how-flow-note {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.35;
}
.how-flow-actions {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.how-flow-actions li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
}
.how-flow-action-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}
.how-flow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex: 0 0 auto;
  align-self: center;
  opacity: 0.85;
}
@media (min-width: 900px) {
  .how-flow {
    padding: 1.4rem 1.35rem 1.5rem;
  }
  .how-flow-steps {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .how-flow-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  .how-flow-arrow {
    display: flex;
    width: 1.35rem;
  }
  .how-flow-title {
    font-size: 0.92rem;
    min-height: 2.5em;
  }
}
@media (max-width: 639px) {
  .how-flow-card {
    flex: 1 1 calc(50% - 0.4rem);
    max-width: none;
  }
  .how-flow-title {
    min-height: 0;
    padding-left: 1.4rem;
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 0.85rem; }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.05rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.85;
}
.step-num {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--primary);
  line-height: 1;
  opacity: 0.9;
}
.step h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Family */
.family-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .family-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}
.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--primary), var(--accent))
    center / cover no-repeat;
  box-shadow: inset 0 0 0 3px #fff;
  outline: 1.5px solid rgba(13, 148, 136, 0.25);
}
.family-panel {
  background: linear-gradient(155deg, var(--primary), var(--bg-deep) 55%, #0f3d3a);
  color: #e8f4f3;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg);
}
.family-panel blockquote {
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
}
.family-panel blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: #fff;
}
.family-panel footer {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.7;
  font-style: normal;
  font-family: var(--font);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #dff5f2;
}

/* Disclaimer */
.disclaimer-section {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.disclaimer-card {
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.disclaimer-card h2 { margin-bottom: 1rem; }
.disclaimer-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.disclaimer-note {
  margin-bottom: 0 !important;
  font-size: 0.875rem !important;
  color: var(--muted) !important;
}

/* CTA */
.cta-section {
  background:
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(84, 184, 91, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 70% at 90% 0%, rgba(13, 148, 136, 0.22), transparent 50%),
    linear-gradient(165deg, var(--primary), var(--bg-deep));
  color: #eef7f6;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-inner { max-width: 560px; }
.cta-logo {
  margin: 0 auto 0.9rem;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-section > .container > p,
.cta-inner > p {
  color: rgba(255,255,255,0.78);
  margin: 0 auto 1.15rem;
  max-width: 36em;
}
.cta-actions {
  justify-content: center;
  margin-bottom: 1.25rem;
}
.cta-downloads {
  margin-bottom: 1.25rem;
}
.cta-downloads .store-downloads-label {
  color: rgba(255,255,255,0.72);
}
.cta-downloads .store-badges {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #0f3d3a;
  color: rgba(255,255,255,0.65);
  padding: 1.75rem 0 1.5rem;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-logo {
  opacity: 0.95;
  filter: brightness(1.05);
}
.footer-brand-name {
  color: #fff;
}
.footer-brand-sub {
  color: rgba(255, 255, 255, 0.72);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; }
.footer-legal {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  opacity: 0.65;
}

@media (min-width: 700px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1rem 2rem;
    align-items: center;
  }
  .footer-nav { justify-content: flex-end; }
  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* Demos / See The Cube */
.demo-card {
  width: 100%;
  margin: 0 0 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.demo-card:last-child { margin-bottom: 0; }
.demo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.demo-featured {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.18);
}
.demo-player {
  background: #0a1416;
  aspect-ratio: 16 / 9;
}
.demo-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1416;
}
.demo-card figcaption {
  padding: 0.95rem 1.15rem 1.1rem;
}
.demo-featured figcaption {
  padding: 1.05rem 1.2rem 1.2rem;
}
.demo-card figcaption h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}
.demo-featured figcaption h3 {
  font-size: 1.25rem;
}
.demo-card figcaption p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 40em;
}


/* —— Page-load & scroll-reveal patterns (calm healthcare SaaS) —— */

/* Soft geometric dot field in hero — fades in gently on load */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.11) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  transition: opacity 1.1s var(--ease);
}
body.is-loaded .hero-pattern {
  opacity: 1;
}

/* Hero entrance: soft fade + slide-up, staggered */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.hero-visual {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}
body.is-loaded .hero-copy > *:nth-child(1) { transition-delay: 0.05s; }
body.is-loaded .hero-copy > *:nth-child(2) { transition-delay: 0.12s; }
body.is-loaded .hero-copy > *:nth-child(3) { transition-delay: 0.18s; }
body.is-loaded .hero-copy > *:nth-child(4) { transition-delay: 0.24s; }
body.is-loaded .hero-copy > *:nth-child(5) { transition-delay: 0.30s; }
body.is-loaded .hero-copy > *:nth-child(6) { transition-delay: 0.36s; }
body.is-loaded .hero-copy > * {
  opacity: 1;
  transform: translateY(0);
}
body.is-loaded .hero-visual {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}
body.is-loaded .hero-pattern {
  transition-delay: 0.15s;
}

/* Scroll reveals — sections & cards */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children sharing a common parent grid/list */
.purpose-grid .reveal.is-visible:nth-child(1),
.feature-grid .reveal.is-visible:nth-child(1),
.steps .reveal.is-visible:nth-child(1) { transition-delay: 0.04s; }
.purpose-grid .reveal.is-visible:nth-child(2),
.feature-grid .reveal.is-visible:nth-child(2),
.steps .reveal.is-visible:nth-child(2) { transition-delay: 0.12s; }
.purpose-grid .reveal.is-visible:nth-child(3),
.feature-grid .reveal.is-visible:nth-child(3),
.steps .reveal.is-visible:nth-child(3) { transition-delay: 0.20s; }
.feature-grid .reveal.is-visible:nth-child(4),
.steps .reveal.is-visible:nth-child(4) { transition-delay: 0.28s; }
.feature-grid .reveal.is-visible:nth-child(5),
.steps .reveal.is-visible:nth-child(5) { transition-delay: 0.36s; }
.feature-grid .reveal.is-visible:nth-child(6) { transition-delay: 0.44s; }

/* Legal pages (Privacy / Terms) */
.legal-page {
  padding: 2.5rem 0 3.5rem;
}
.legal-page .legal-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem 1.75rem;
}
@media (min-width: 640px) {
  .legal-prose {
    padding: 2rem 2.25rem 2.25rem;
  }
}
.legal-prose h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal-prose h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-900);
}
.legal-prose p,
.legal-prose li {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.98rem;
}
.legal-prose p { margin: 0 0 0.85rem; }
.legal-prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}
.legal-prose li { margin-bottom: 0.35rem; }
.legal-prose a { font-weight: 500; }
.legal-note {
  margin-top: 1.5rem !important;
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.9rem !important;
}
.nav-current {
  color: var(--teal-800) !important;
  font-weight: 700;
}
