:root {
  --brand: #5cbac4;
  --brand-dark: #3f8fa5;
  --brand-light: #e7f6f8;
  --secondary-dark: #8f1c6b;
  --bg-top: #1e3d6e;
  --bg-mid: #53bcc3;
  --text-primary: #f5f8fa;
  --text-secondary: rgba(231, 246, 248, 0.84);
  --text-dark-primary: #1f2f3c;
  --text-dark-secondary: rgba(31, 47, 60, 0.78);
  --surface: rgba(16, 28, 40, 0.74);
  --surface-muted: rgba(28, 42, 56, 0.64);
  --border: rgba(92, 186, 196, 0.3);
  --shadow: rgba(10, 19, 30, 0.32);
  --mouse-x: 50vw;
  --mouse-y: 24vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 18%, rgba(92, 186, 196, 0.45) 0%, rgba(92, 186, 196, 0) 32%),
    radial-gradient(circle at 85% 12%, rgba(143, 28, 107, 0.24) 0%, rgba(143, 28, 107, 0) 38%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 24%, #ffffff 100%);
  overflow-x: hidden;
}

.pointer-glow {
  position: fixed;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(231, 246, 248, 0.2) 0%, rgba(231, 246, 248, 0) 60%);
  z-index: 1;
  transition: left 90ms linear, top 90ms linear;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--brand) 0%, var(--secondary-dark) 100%);
  box-shadow: 0 0 16px rgba(92, 186, 196, 0.8);
  z-index: 40;
  transition: width 90ms linear;
}

img {
  max-width: 100%;
  display: block;
}

.ambient {
  position: fixed;
  inset: auto auto 0 -10vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(231, 246, 248, 0.15) 0%, rgba(231, 246, 248, 0) 68%);
  filter: blur(2px);
  pointer-events: none;
  animation: ambientDriftA 16s ease-in-out infinite;
  z-index: 0;
}

.ambient-b {
  inset: 5vh -10vw auto auto;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(92, 186, 196, 0.2) 0%, rgba(92, 186, 196, 0) 64%);
  animation: ambientDriftB 20s ease-in-out infinite;
  z-index: 0;
}

.shell {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(14px);
  background: rgba(14, 27, 40, 0.62);
  border: 1px solid rgba(231, 246, 248, 0.2);
  border-radius: 16px;
  padding-inline: 1rem;
  margin-top: 0.45rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow);
}

.brand strong {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.015em;
  display: block;
}

.brand span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.88;
}

.top-nav a:hover {
  opacity: 1;
}

.mobile-nav {
  display: none;
}

.section {
  margin-top: 5.2rem;
}

#features,
#how-it-works,
#smart-rules,
#exercises,
#pricing,
#tour {
  scroll-margin-top: 120px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 2rem;
  align-items: center;
  min-height: 76vh;
  padding: 2.5rem 0 1.2rem;
}

.hero-copy h1,
.section h2,
.cta h2 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin: 0.4rem 0 1.2rem;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  max-width: 14ch;
}

.hero-copy p {
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.58;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--brand-light);
  font-weight: 700;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn,
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
}

.btn {
  background: linear-gradient(115deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #073039;
  box-shadow: 0 10px 26px rgba(31, 87, 100, 0.42);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px rgba(31, 87, 100, 0.5);
  filter: brightness(1.04);
}

.btn-small {
  padding: 0.62rem 0.96rem;
  font-size: 0.86rem;
}

.link-pill {
  border: 1px solid rgba(231, 246, 248, 0.42);
  color: var(--text-primary);
  background: rgba(12, 24, 37, 0.3);
}

.hero-stats {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stats li {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1rem;
}

.hero-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.hero-stats span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  perspective: 1200px;
}

.phone {
  position: absolute;
  width: min(330px, 88%);
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(231, 246, 248, 0.35);
  box-shadow: 0 24px 44px rgba(13, 21, 30, 0.4);
  background: #0f202f;
  transition: transform 360ms ease, box-shadow 360ms ease;
}

.phone img {
  width: 100%;
  height: auto;
}

.phone-front {
  right: 0;
  top: 0;
  z-index: 2;
  animation: floatFront 5.8s ease-in-out infinite;
}

.phone-back {
  left: 0;
  top: 120px;
  transform: rotate(-6deg);
  filter: saturate(0.92) brightness(0.95);
  animation: floatBack 6.8s ease-in-out infinite;
}

.hero-visual:hover .phone-front {
  box-shadow: 0 30px 58px rgba(13, 21, 30, 0.5);
}

.hero-visual:hover .phone-back {
  box-shadow: 0 20px 44px rgba(13, 21, 30, 0.42);
}

.section-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
}

.feature-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem 1.2rem;
  min-height: 200px;
  box-shadow: 0 9px 20px rgba(16, 26, 38, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -130%;
  width: 70%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    rgba(231, 246, 248, 0) 0%,
    rgba(231, 246, 248, 0.24) 50%,
    rgba(231, 246, 248, 0) 100%
  );
  transition: transform 420ms ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 186, 196, 0.62);
  box-shadow: 0 16px 34px rgba(13, 23, 34, 0.34);
}

.feature-card:hover::after {
  transform: translateX(360%) rotate(20deg);
}

.feature-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0.85rem 0 0;
  line-height: 1.58;
}

.feature-card-accent {
  background: linear-gradient(140deg, rgba(143, 28, 107, 0.32) 0%, rgba(31, 60, 84, 0.75) 100%);
}

.flow-steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 0.9rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 47, 60, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(31, 47, 60, 0.14);
}

.flow-step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #073039;
  background: linear-gradient(130deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.flow-step h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

.flow-step p {
  margin: 0.45rem 0 0;
  line-height: 1.58;
}

.rules-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.rule-card {
  border-radius: 18px;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 47, 60, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(31, 47, 60, 0.14);
}

.rule-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
}

.rule-card p {
  margin: 0.6rem 0 0;
  line-height: 1.56;
}

#how-it-works .flow-steps {
  max-width: 980px;
  margin-inline: auto;
}

#how-it-works,
#smart-rules,
#pricing {
  color: var(--text-dark-primary);
}

#how-it-works h2,
#how-it-works h3,
#smart-rules h2,
#smart-rules h3,
#pricing h2,
#pricing h3,
#pricing strong {
  color: var(--text-dark-primary);
}

#how-it-works p,
#how-it-works li,
#how-it-works span,
#smart-rules p,
#smart-rules li,
#smart-rules span,
#pricing p,
#pricing li,
#pricing span {
  color: var(--text-dark-secondary);
}

#how-it-works .flow-step {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(231, 246, 248, 0.7) 100%);
  border: 1px solid rgba(31, 47, 60, 0.14);
}

#how-it-works .flow-step > div {
  border-left: 2px solid rgba(92, 186, 196, 0.45);
  padding-left: 0.9rem;
}

#smart-rules .rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#smart-rules .rule-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(231, 246, 248, 0.68) 100%);
  min-height: 150px;
}

#smart-rules .rule-card h3 {
  margin-bottom: 0.2rem;
}

.tour-wrap {
  padding-bottom: 0.4rem;
}

.tour-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(9, minmax(220px, 1fr));
  gap: 0.95rem;
  padding: 0 1.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.tour-strip::-webkit-scrollbar {
  height: 10px;
}

.tour-strip::-webkit-scrollbar-thumb {
  background: rgba(30, 61, 110, 0.5);
  border-radius: 999px;
}

.tour-card {
  margin: 0;
  scroll-snap-align: start;
  background: rgba(14, 25, 38, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.55rem;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.tour-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(92, 186, 196, 0.75);
  box-shadow: 0 14px 28px rgba(10, 20, 30, 0.35);
}

.tour-card img {
  border-radius: 12px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.tour-card figcaption {
  font-size: 0.88rem;
  color: var(--brand-light);
  margin-top: 0.62rem;
  padding: 0 0.22rem 0.26rem;
}

.result-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: stretch;
}

.light-zone {
  color: var(--text-dark-primary);
}

.light-zone p,
.light-zone li {
  color: var(--text-dark-secondary);
}

.light-zone .eyebrow {
  color: var(--bg-top);
}

.light-zone h2,
.light-zone h3,
.light-zone strong {
  color: var(--text-dark-primary);
}

.light-zone .result-panel {
  color: var(--text-primary);
}

.light-zone .result-panel span {
  color: var(--text-secondary);
}

.light-zone .result-panel strong {
  color: var(--brand-light);
}

.integration-list {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.integration-chip {
  border-radius: 999px;
  padding: 0.62rem 0.92rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 47, 60, 0.18);
  color: var(--text-dark-primary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.integration-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(31, 47, 60, 0.15);
}

.result-copy p {
  max-width: 56ch;
  color: var(--text-secondary);
  line-height: 1.56;
}

.light-zone .result-copy p {
  color: var(--text-dark-secondary);
}

.checklist {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(231, 246, 248, 0.26);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

.result-panel {
  background: linear-gradient(155deg, rgba(12, 23, 36, 0.86) 0%, rgba(62, 130, 148, 0.62) 100%);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.86rem 0.8rem;
  border-radius: 12px;
  background: rgba(245, 248, 250, 0.08);
}

.panel-row span {
  color: var(--text-secondary);
}

.panel-row strong {
  color: var(--brand-light);
}

.use-case-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.use-case-card {
  border-radius: 20px;
  padding: 1.15rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 47, 60, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(31, 47, 60, 0.14);
}

.use-case-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.use-case-card p {
  margin: 0.55rem 0 0;
  line-height: 1.58;
}

.pricing-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.price-card {
  border-radius: 20px;
  padding: 1.2rem 1.05rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 47, 60, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 186, 196, 0.64);
  box-shadow: 0 14px 28px rgba(31, 47, 60, 0.16);
}

.price-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.24rem;
}

.price-card ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  margin: 0.48rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.price-card-featured {
  border-color: rgba(92, 186, 196, 0.72);
  box-shadow: 0 12px 24px rgba(31, 87, 100, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7) 0%, rgba(231, 246, 248, 0.78) 100%);
}

.price-amount {
  margin: 0.55rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.85rem;
  color: var(--text-dark-primary);
}

.price-amount span {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--text-dark-secondary);
}

.price-copy {
  margin: 0.55rem 0 0;
  line-height: 1.5;
}

.trial-note {
  margin-top: 0.95rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 47, 60, 0.16);
}

.trial-note h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.trial-note p {
  margin: 0.45rem 0 0;
}

#pricing .pricing-grid {
  align-items: stretch;
}

#pricing .price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8) 0%, rgba(231, 246, 248, 0.68) 100%);
}

#pricing .price-card ul {
  margin-top: 0.9rem;
}

#pricing .price-card > *:last-child {
  margin-bottom: 0;
}

#pricing .price-amount {
  color: var(--text-dark-primary);
}

#pricing .price-amount span {
  color: var(--text-dark-secondary);
}

#pricing .price-card-featured {
  transform: translateY(-6px);
}

#pricing .price-card-featured:hover {
  transform: translateY(-10px);
}

#pricing .trial-note {
  margin-top: 1rem;
  background: linear-gradient(120deg, rgba(92, 186, 196, 0.2) 0%, rgba(143, 28, 107, 0.12) 100%);
}

.cta {
  background: linear-gradient(145deg, rgba(92, 186, 196, 0.28) 0%, rgba(143, 28, 107, 0.22) 100%);
  border: 1px solid rgba(231, 246, 248, 0.34);
  border-radius: 28px;
  padding: 2.2rem 1.6rem;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
}

.cta p {
  color: var(--text-secondary);
  margin: 0.8rem auto 1.2rem;
  max-width: 50ch;
}

.light-zone.cta p {
  color: var(--text-dark-secondary);
}

.site-footer {
  margin: 2rem auto 2.6rem;
  padding: 1.2rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(31, 47, 60, 0.28);
  color: var(--text-dark-primary);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

@keyframes ambientDriftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(36px, -24px, 0) scale(1.06);
  }
}

@keyframes ambientDriftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-34px, 22px, 0) scale(1.08);
  }
}

@keyframes floatFront {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatBack {
  0%,
  100% {
    transform: translateY(0px) rotate(-6deg);
  }
  50% {
    transform: translateY(10px) rotate(-7deg);
  }
}

@keyframes moduleOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(-26px, -24px, 0) scale(1.08);
    opacity: 0.74;
  }
}

@keyframes headingShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes exerciseSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .top-nav {
    display: none;
  }

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(96vw, 780px);
    display: flex;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(231, 246, 248, 0.35);
    background: linear-gradient(140deg, rgba(14, 27, 40, 0.78) 0%, rgba(31, 60, 84, 0.72) 100%);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(8, 16, 26, 0.34);
    overflow-x: auto;
    z-index: 45;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    text-decoration: none;
    color: rgba(243, 251, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(231, 246, 248, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a.is-active {
    color: #0a313c;
    background: linear-gradient(110deg, rgba(92, 186, 196, 0.95) 0%, rgba(231, 246, 248, 0.92) 100%);
    border-color: rgba(92, 186, 196, 0.74);
    transform: translateY(-1px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    min-height: unset;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-visual {
    min-height: 540px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-grid,
  .use-case-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #smart-rules .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(1140px, calc(100% - 1.25rem));
  }

  .site-header {
    position: static;
  }

  .hero {
    padding-top: 1rem;
  }

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

  .hero-visual {
    min-height: 430px;
  }

  .phone {
    width: min(250px, 86%);
    border-radius: 26px;
  }

  .phone-front {
    right: 4%;
  }

  .phone-back {
    left: 3%;
    top: 80px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .rules-grid,
  .use-case-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  #how-it-works .flow-step > div {
    border-left: 0;
    padding-left: 0;
  }

  #smart-rules .rules-grid {
    grid-template-columns: 1fr;
  }

  #pricing .price-card-featured {
    transform: translateY(0);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress {
    display: none;
  }

  .pointer-glow,
  .module-section::after {
    display: none;
  }

  .exercise-loader::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Strong section-specific design overrides */
.module-section {
  position: relative;
  margin-top: 3.6rem;
  padding: clamp(1.8rem, 3.2vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid rgba(231, 246, 248, 0.38);
  background: linear-gradient(160deg, rgba(30, 61, 110, 0.62) 0%, rgba(83, 188, 195, 0.46) 100%);
  box-shadow: 0 16px 32px rgba(8, 16, 26, 0.22);
}

.module-section .section-head {
  margin-bottom: 1rem;
}

.module-section .section-head .eyebrow {
  color: #ffffff !important;
}

.module-section .section-head h2 {
  margin-top: 0.42rem;
  color: #ffffff !important;
}

.module-section .section-head p {
  color: rgba(243, 251, 255, 0.82);
}

.module-how .flow-steps {
  max-width: none;
  gap: 0.95rem;
}

.module-how .flow-step,
.module-smart .rule-card,
.module-pricing .price-card,
.module-pricing .trial-note {
  background: #f7fdff;
  border: 1px solid rgba(43, 79, 92, 0.2);
  box-shadow: 0 8px 18px rgba(12, 22, 34, 0.12);
}

.module-how .flow-step > div {
  border-left: 2px solid rgba(92, 186, 196, 0.74);
  padding-left: 0.95rem;
}

.module-how .section-head .eyebrow,
.module-how .section-head h2,
.module-how .section-head p {
  color: #ffffff;
}

#smart-rules .section-head .eyebrow,
#smart-rules .section-head h2,
#smart-rules .section-head p {
  color: #ffffff !important;
}

#pricing .trial-note h3,
#pricing .trial-note p {
  color: #ffffff !important;
}

.module-how .flow-step h3,
.module-how .flow-step p,
.module-smart .rule-card h3,
.module-smart .rule-card p,
.module-pricing .price-card h3,
.module-pricing .price-card p,
.module-pricing .price-card li,
.module-pricing .trial-note h3,
.module-pricing .trial-note p {
  color: #1f2f3c;
}

.module-how .flow-step span {
  color: #ffffff;
  background: linear-gradient(130deg, #3f8fa5 0%, #2d6f86 100%);
}

.module-smart .rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.module-smart .rule-card {
  min-height: 160px;
}

.module-pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.module-pricing .price-card-featured {
  border-color: rgba(92, 186, 196, 0.9);
  box-shadow: 0 18px 28px rgba(31, 87, 100, 0.26);
}

.module-pricing .price-amount {
  color: #16303b;
}

.module-pricing .price-amount span {
  color: #3a5560;
}

.module-pricing .trial-note {
  background: linear-gradient(120deg, rgba(92, 186, 196, 0.3) 0%, rgba(231, 246, 248, 0.9) 100%);
}

.module-exercises .section-head .eyebrow,
.module-exercises .section-head h2 {
  color: #ffffff !important;
}

.module-exercises .section-head p {
  color: rgba(243, 251, 255, 0.9);
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.exercise-card {
  margin: 0;
  width: min(100%, 180px);
  justify-self: center;
  background: #f7fdff;
  border: 1px solid rgba(43, 79, 92, 0.2);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: 0 8px 18px rgba(12, 22, 34, 0.12);
  overflow: hidden;
}

.exercise-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #f0fafc 0%, #deeff3 65%, #cde6eb 100%);
}

.exercise-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 340ms ease, transform 340ms ease;
}

.exercise-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #1f2f3c;
}

.exercise-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.58) 0%, rgba(217, 236, 242, 0.85) 100%);
  transition: opacity 280ms ease;
}

.exercise-loader::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(63, 143, 165, 0.2);
  border-top-color: rgba(63, 143, 165, 0.92);
  border-right-color: rgba(92, 186, 196, 0.82);
  animation: exerciseSpin 0.95s linear infinite;
}

.exercise-media.is-loaded img {
  opacity: 1;
  transform: scale(1);
}

.exercise-media.is-loaded .exercise-loader {
  opacity: 0;
  pointer-events: none;
}

.js .module-section .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-copy h1 {
  background: linear-gradient(100deg, #ffffff 0%, #c9f2f7 35%, #ffffff 72%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: headingShimmer 5.6s ease-in-out infinite;
}

.module-section::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -62px;
  bottom: -92px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(92, 186, 196, 0.34) 0%, rgba(92, 186, 196, 0) 66%);
  filter: blur(10px);
  animation: moduleOrbFloat 8.4s ease-in-out infinite;
}

.js-tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.js-tilt:hover {
  --lift: -6px;
}

@media (max-width: 1000px) {
  .module-smart .rules-grid,
  .module-pricing .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exercise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .module-section {
    margin-top: 2.6rem;
    padding: 1.4rem;
    border-radius: 18px;
  }

  .module-how .flow-step > div {
    border-left: 0;
    padding-left: 0;
  }

  .module-smart .rules-grid,
  .module-pricing .pricing-grid {
    grid-template-columns: 1fr;
  }

  .exercise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
