/* ==========================================================================
   Tummy Tamer — site styles
   ========================================================================== */

:root {
  color-scheme: dark;
  --purple: #b36bff;
  --purple-deep: #d6adff;
  --purple-app: #cfa1ed;
  --green: #22c55e;
  --green-deep: #5ff08e;
  --ink: #f1eef9;
  --ink-soft: #c4bdd6;
  --muted: #aaa2bd;
  --line: rgba(255, 255, 255, 0.1);
  --bg: #08070d;
  --surface: #14111f;
  --surface-tint: #1c1830;
  --good: #5cc46a;
  --mild: #f5e66b;
  --rough: #d14b55;
  --gradient: linear-gradient(120deg, #7130b4 0%, #8532a4 35%, #14783b 100%);
  --gradient-text: linear-gradient(100deg, #c88bff 0%, #b387ff 40%, #5ff08e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(34, 197, 94, 0.12));
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--purple-deep);
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  color: var(--purple-deep);
}

.hero .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-deep);
  background: rgba(179, 107, 255, 0.12);
  border: 1px solid rgba(179, 107, 255, 0.28);
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin-top: 16px;
}

.section-head p {
  font-size: 19px;
  color: var(--muted);
}

/* Buttons & badges ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--surface-tint);
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(23, 18, 31, 0.45);
}

.btn--gradient {
  background: var(--gradient);
  background-size: 160% 100%;
  background-position: 0% 50%;
}

.btn--gradient:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 28px -10px rgba(138, 43, 226, 0.7);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  border-radius: 14px;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.store-badge img {
  height: 58px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 12px 18px rgba(23, 18, 31, 0.25));
}

/* Background blobs -------------------------------------------------------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.blob--purple { background: #8a3ff0; }
.blob--green { background: #2fcf6a; animation-delay: -6s; }
.blob--pink { background: #b04ad8; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* Navigation ------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(8, 7, 13, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(91, 26, 158, 0.6);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav__links a:not(.btn):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav__links .btn {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(20, 17, 31, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav.is-open {
    background: rgba(8, 7, 13, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav__links a:not(.btn) {
    padding: 12px 16px;
  }

  .nav__links .btn {
    margin: 6px 0 0;
    justify-content: center;
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}

.hero .blob--purple { width: 520px; height: 520px; top: -120px; right: -80px; }
.hero .blob--green { width: 420px; height: 420px; bottom: -120px; right: 260px; }
.hero .blob--pink { width: 360px; height: 360px; top: 80px; left: -160px; opacity: 0.12; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 22px 0 22px;
}

.hero__lead {
  font-size: 19px;
  max-width: 560px;
  color: var(--ink-soft);
}

.hero__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  max-width: 560px;
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.hero__checks i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: #7130b4;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 600px;
  perspective: 1400px;
}

.hero__phones {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 640px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.hero > .store-badges {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 48px);
  justify-content: center;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.hero__phones .phone-frame {
  position: absolute;
  --phone-width: 290px;
}

.hero__phones .phone-frame--front {
  right: 40px;
  top: 0;
  z-index: 2;
  animation: bob 7s ease-in-out infinite;
}

.hero__phones .phone-frame--back {
  left: 0;
  top: 70px;
  z-index: 1;
  --phone-width: 250px;
  transform: rotate(-8deg);
  opacity: 0.95;
  animation: bob-tilt 8s ease-in-out infinite;
  animation-delay: -2s;
}

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

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

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(20, 17, 31, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink-soft);
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
}

.float-card--ai {
  right: -10px;
  bottom: 120px;
  max-width: 250px;
  animation-delay: -3s;
}

.float-card--legend {
  left: -10px;
  top: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.legend {
  display: flex;
  gap: 6px;
}

.legend span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.legend .good { background: var(--good); }
.legend .mild { background: var(--mild); }
.legend .rough { background: var(--rough); }

@media (max-width: 980px) {
  .hero {
    padding-top: 130px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead,
  .hero__checks {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__checks {
    text-align: left;
  }

  .hero__visual {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 110px;
  }

  .hero .eyebrow {
    font-size: 13px;
  }

  .hero__checks {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .hero__phones {
    height: 520px;
  }

  .hero__phones .phone-frame { --phone-width: 230px; }
  .hero__phones .phone-frame--back { --phone-width: 200px; top: 60px; }
  .hero__phones .phone-frame--front { right: 10px; }
  .float-card--ai { right: 0; bottom: 60px; max-width: 220px; }
  .float-card--legend { left: 0; top: 10px; }

  .store-badge img {
    height: 50px;
  }
}

/* Phone frames ----------------------------------------------------------- */

.phone-frame {
  --phone-width: 300px;
  --screen-top: 2.5%;
  --screen-side: 5%;
  --screen-radius: 9%;
  position: relative;
  width: min(100%, var(--phone-width));
  line-height: 0;
  filter: drop-shadow(0 30px 40px rgba(60, 20, 110, 0.28)) drop-shadow(0 8px 12px rgba(23, 18, 31, 0.12));
}

.phone-frame__screen {
  position: absolute;
  z-index: 1;
  top: var(--screen-top);
  left: var(--screen-side);
  width: calc(100% - 2 * var(--screen-side));
  height: auto;
  border-radius: var(--screen-radius);
}

.phone-frame__mask {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

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

.phones figure {
  margin: 0;
  flex: 1 1 0;
  max-width: 270px;
  text-align: center;
  transition: transform 0.5s var(--ease);
}

.phones figure:nth-child(2) {
  margin-top: 48px;
}

.phones figure:hover {
  transform: translateY(-8px);
}

.phones .phone-frame {
  width: 100%;
  margin: 0 auto;
}

.phones figcaption {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--purple-deep);
  background: rgba(138, 43, 226, 0.08);
}

.phones--single figure {
  max-width: 320px;
}

/* Feature cards ---------------------------------------------------------- */

.features {
  padding-top: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  font-size: 22px;
  color: var(--purple-deep);
  background: var(--surface-tint);
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Video ------------------------------------------------------------------ */

.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
}

.video-frame__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Why -------------------------------------------------------------------- */

.why {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why .blob--purple { width: 380px; height: 380px; top: -140px; left: -120px; opacity: 0.12; }
.why .blob--green { width: 340px; height: 340px; bottom: -140px; right: -100px; opacity: 0.12; }

.why .container {
  position: relative;
  z-index: 1;
}

.diet-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 900px;
}

.diet-pills span {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.diet-pills span:hover {
  transform: translateY(-3px) rotate(-2deg);
  color: #fff;
  background: #7130b4;
}

.why__question {
  font-size: clamp(26px, 3.4vw, 40px);
  text-align: center;
  margin-bottom: 18px;
}

.why__lead {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 19px;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-card i {
  flex: 0 0 auto;
  font-size: 26px;
  color: var(--purple-deep);
}

.why-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1024px), (max-width: 420px) {
  .why-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .why-card h3 {
    font-size: 18px;
  }
}

/* Showcase rows ---------------------------------------------------------- */

.showcases {
  overflow-x: clip;
}

.showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.showcase:nth-child(even)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  bottom: -70px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.showcase + .showcase {
  margin-top: 140px;
}

.showcase--reverse .showcase__media {
  order: -1;
}

.showcase__media {
  position: relative;
}

.showcase__media::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 48px;
  background: var(--gradient-soft);
  transform: rotate(-3deg);
}

.showcase--reverse .showcase__media::before {
  transform: rotate(3deg);
}

.showcase__text h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 16px 0 10px;
}

.showcase__text .eyebrow {
  padding: 8px 16px;
  font-size: clamp(18px, 2vw, 20px);
  letter-spacing: 0.02em;
  text-transform: none;
}

.showcase__tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 30px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.check-list li {
  position: relative;
  padding-left: 40px;
  font-size: 17px;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--purple);
  background: rgba(138, 43, 226, 0.1);
}

.check-list strong {
  color: var(--purple-app);
  font-weight: 700;
}

.footer__note a,
.price-note a {
  color: var(--purple-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .showcase--reverse .showcase__media {
    order: 0;
  }

  .showcase__text {
    order: -1;
  }

  .showcase + .showcase {
    margin-top: 100px;
  }

  .showcase:nth-child(even)::before {
    top: -50px;
    bottom: -50px;
  }
}

@media (max-width: 480px) {
  .phones {
    gap: 12px;
  }

  .phones figure:nth-child(2) {
    margin-top: 28px;
  }
}

/* Story ------------------------------------------------------------------ */

.story-card {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 64px 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-card::before,
.story-card::after {
  content: "\201C";
  position: absolute;
  font-size: 240px;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.18;
  pointer-events: none;
}

.story-card::before {
  top: -40px;
  left: 30px;
}

.story-card::after {
  right: 30px;
  bottom: -40px;
  transform: rotate(180deg);
}

.story-card p {
  position: relative;
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-tint);
}

.author strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.author span {
  font-size: 14px;
  color: var(--muted);
}

.story-card .author {
  justify-content: center;
}

@media (max-width: 640px) {
  .story-card {
    padding: 48px 26px;
  }

  .story-card::before,
  .story-card::after {
    font-size: 160px;
  }

  .story-card::before {
    top: -26px;
    left: 16px;
  }

  .story-card::after {
    right: 16px;
    bottom: -26px;
  }

  .story-card p {
    font-size: 17px;
  }
}

/* Pricing ---------------------------------------------------------------- */

.pricing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}

.price-card {
  padding: 40px;
}

.price-card--pro {
  background: rgba(179, 107, 255, 0.05);
  border-left: 1px solid var(--line);
}

.price-card__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.price-card h3 {
  font-size: 22px;
  margin: 0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
  line-height: 1;
}

.price small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card__description {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 15.5px;
}

.price-card__includes {
  margin: 0 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
}

.price-list li::before {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--purple-deep);
}

.price-note {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    padding: 32px 28px;
  }

  .price-card--pro {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 360px) {
  .price-card {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Testimonials ----------------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quote-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
}

.quote-card .author {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quote-card .author img {
  width: 48px;
  height: 48px;
}

@media (max-width: 900px) {
  .quote-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* CTA -------------------------------------------------------------------- */

.cta {
  padding: 24px 0 64px;
}

.cta__card {
  position: relative;
  padding: 40px 32px;
  border-radius: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(130deg, #46167f 0%, #602583 45%, #11552d 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

.cta__card::before,
.cta__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  animation: float 16s ease-in-out infinite;
}

.cta__card::before {
  width: 360px;
  height: 360px;
  top: -160px;
  left: -80px;
}

.cta__card::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -60px;
  animation-delay: -8s;
}

.cta__card img.cta__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5);
}

.cta__card h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 14px;
}

.cta__card p {
  font-size: 19px;
  max-width: 520px;
  margin: 0 auto 34px;
}

.cta__card .store-badges {
  justify-content: center;
}

/* Footer ----------------------------------------------------------------- */

.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.footer__links a {
  color: var(--ink-soft);
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--purple);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.footer__social a:hover {
  color: #fff;
  background: #7130b4;
  transform: translateY(-3px);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.footer__note + .footer__bottom {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

/* Legal / content pages -------------------------------------------------- */

.page-header {
  position: relative;
  padding: 140px 0 60px;
  overflow-x: clip;
}

.page-header .blob--purple { width: 420px; height: 420px; top: -180px; right: -60px; opacity: 0.14; }
.page-header .blob--green { width: 320px; height: 320px; top: -60px; left: -140px; opacity: 0.12; }

.page-header .container,
.legal {
  max-width: 820px;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  margin: 0;
}

.legal {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.legal h2,
.legal h3,
.legal h4 {
  margin-top: 2em;
}

.legal h2 { font-size: 28px; }
.legal h3 { font-size: 23px; }
.legal h4 { font-size: 19px; }

.legal ul,
.legal ol {
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal a {
  text-decoration: underline;
  text-decoration-color: rgba(138, 43, 226, 0.35);
  text-underline-offset: 3px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.legal th,
.legal td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-tint);
  color: var(--ink);
}

/* Reveal animations ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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