:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --panel: #14161c;
  --panel-strong: #1a1d25;
  --text: #f2f4f8;
  --muted: #b4bac7;
  --outline: rgba(255, 255, 255, 0.12);
  --max-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  background-image: url("assets/backgrounds/background.jpg");
  background-image: image-set(
    url("assets/backgrounds/background.heic") type("image/heic"),
    url("assets/backgrounds/background.jpg") type("image/jpeg")
  );
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 2000px auto;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.96rem;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}
html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.pro-page {
  background: #000;
}

.pro-page::before,
.pro-page.ios-fixed-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000 url("assets/backgrounds/background2.jpg") no-repeat center top;
  background-image: image-set(
    url("assets/backgrounds/background2.heic") type("image/heic"),
    url("assets/backgrounds/background2.jpg") type("image/jpeg")
  );
  background-size: 2000px auto;
  background-repeat: repeat-y;
  background-position: center top;
  pointer-events: none;
  z-index: -1;
}

.pro-page.ios-fixed-bg::before {
  background-attachment: scroll;
  height: calc(120vh + 200px + env(safe-area-inset-bottom, 0px));
}

.ios-fixed-bg body {
  background-attachment: scroll;
}

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

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

.container {
  width: min(var(--max-width), 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 7.5rem 0;
  position: relative;
}

.section.hero {
  padding-top: 6rem;
  padding-bottom: 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 32rem;
  margin-top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 68px;
  background: rgba(10, 11, 14, 0.28);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: none;
  padding: 0 2.5rem;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: auto;
  border-radius: 24%;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--outline);
  font-weight: 600;
  font-size: 0.9rem;
}

.button.primary {
  background: #ffffff;
  color: #0c0d10;
  border-color: transparent;
}

.button.ghost {
  background: transparent;
  color: var(--text);
}

.button.header-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
}

.app-store-badge img {
  height: 62px;
  width: auto;
  display: block;
}

.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  align-self: flex-end;
  z-index: 1010;
}

.lang-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.lang-menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 190px;
  max-width: 240px;
  padding: 8px 0;
  background: rgba(35, 34, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 2000;
  backdrop-filter: blur(14px);
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(1);
  transform-origin: center;
  will-change: transform, opacity;
}

.lang-menu.open {
  display: block;
  pointer-events: auto;
}

.lang-menu li {
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-menu li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu li.active {
  color: #b8e7ff;
  font-weight: 600;
}

.lang-picker.typing-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.lang-picker.typing-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
  overflow: visible;
  padding: 0;
  z-index: 1; /* keep below page-body/wave stack */
}
.hero-wave,
.hero-wave-chaos {
  display: block;
  position: absolute;
  transform: translate(-50%, 0);
  z-index: 3;
  margin-top: 0;
  left: 50%;
  right: auto;
  pointer-events: none;
}
.hero-wave svg,
.hero-wave-chaos svg {
  width: 1800px;
  max-width: none;
  height: 42px;
  display: block;
}

.hero-wave-back {
  display: block;
  position: absolute;
  transform: translate(-50%, 0);
  z-index: 1; /* furthest back */
  left: 50%;
  right: auto;
  pointer-events: none;
  opacity: 1;
}

.hero-wave-back svg {
  width: 1800px;
  max-width: none;
  height: 560px;
  display: block;
}

/* Home page wave positioning */
.home-hero-wave {
  bottom: 114px;
  z-index: 5; /* ensure it sits above the black section */
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 0 0 3rem;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

.hero-copy {
  margin-top: 0; /* default; page-specific overrides handle positioning */
}

.home-page .hero-copy {
  margin-top: -200px; /* lifted hero text/buttons further for home */
}

.hero-title-highlight {
  color: #C2A2B7;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 32rem;
  margin-top: 1.94rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.84rem;
  position: relative;
  align-items: flex-end;
}

.layout-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--outline);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.3; /* 30% opaque */
  letter-spacing: 0.02em;
}

.layout-tag {
  display: none;
}

.show-layout-tag .layout-tag {
  display: inline-flex;
}

.hero-screenshot-frame {
  max-width: 292px;
  width: 90%;
  border-radius: 44px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 10px 26px rgba(0, 0, 0, 0.32);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  opacity: 0.92;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  margin-top: -36px;
  margin-right: -12px;
  z-index: 1;
}

.page-body {
  background: #000;
  position: relative;
  z-index: 4; /* ensure it layers above hero/screenshot */
  overflow: visible;
  margin-top: -118px; /* shifted up slightly */
  padding-top: 0;
  min-height: 1000px;
}

.page-body::before {
  display: none;
}

.black-lede {
  margin-top: 4px; /* reset base spacing */
  transform: translateY(40px); /* move only the label down */
  text-align: center;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 600;
}

.perks-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 3rem;
  margin-top: 60px; /* moved perks down */
}

.perk-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.perk-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
}

.perk-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-top: -4px;
  transform: translateY(-20px);
}

.perk-item p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
  margin-top: -2px;
  transform: translateY(-20px);
}

@media (max-width: 625px) {
  .perks-row {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .perk-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  display: grid;
  place-items: center;
}

.card h3 {
  font-size: 1.05rem;
}

.step-number {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mockup-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.split-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.split-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.mockup-frame {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 26px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 420px;
}

.mockup-frame img {
  border-radius: 18px;
  opacity: 0.9;
  max-width: 100%;
  height: auto;
}

.mockup-hidden {
  display: none;
}

.how-cards {
  display: grid;
  gap: 2rem;
}

.how-card {
  position: relative;
  background-image: url("assets/cards/card1.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  aspect-ratio: 2124 / 1086;
  overflow: hidden;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.how-card.is-revealed::before {
  opacity: 0;
}

.how-card-inner {
  position: absolute;
  inset: 0;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}

.how-card-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.how-step {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #7fd0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #7fd0ff;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1;
  flex-shrink: 0;
}

.how-text {
  display: grid;
  gap: 0.4rem;
}

.how-text h3 {
  font-size: 1.45rem;
}

.how-text p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.08rem;
}

.how-card-visual {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
  align-self: stretch;
}

.how-card-clip {
  position: relative;
  width: 100%;
  height: calc(105% + 140px);
  margin-bottom: -140px;
  overflow: hidden;
}

.how-card-clip img {
  position: absolute;
  right: 0;
  bottom: -35px;
  height: 105%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  /* keep desktop/tablet layout; no single-column shift here */
}

@media (max-width: 768px) {
  .how-card {
    background-image: url("assets/cards/card_small.jpg");
    aspect-ratio: 1426 / 1092;
  }

  .how-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 0.35rem 1rem 0.9rem;
    gap: 0;
  }

  .how-card-content {
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .how-card-visual {
    width: 100%;
    padding-right: 0;
    margin-top: 20px;
    align-self: stretch;
  }

  .how-card-clip {
    height: 125%;
    margin-bottom: -125px;
  }

  .how-card-clip img {
    right: 50%;
    transform: translateX(50%);
    height: 115%;
    top: 0;
    bottom: auto;
  }
}

@media (max-width: 640px) {
  .how-card {
    border-radius: 24px;
    aspect-ratio: 920 / 1146;
  }

  .how-card-inner {
    padding: 1rem;
    gap: 0.35rem;
  }

  .how-text h3 {
    font-size: 1.3rem;
  }

  .how-text p {
    font-size: 1.05rem;
  }

  .how-card-clip {
    height: 115%;
    margin-bottom: -115px;
  }

  .how-card-clip img {
    height: 95%;
    top: 0;
    bottom: auto;
  }
}

@media (max-width: 480px) {
  .how-card-inner {
    padding: 1.2rem;
    gap: 1rem;
  }

  .how-text h3 {
    font-size: 1.2rem;
  }

  .how-step {
    width: 50px;
    height: 50px;
    font-size: 1.05rem;
    line-height: 1;
  }

  .how-card-clip {
    height: 130%;
    margin-bottom: -130px;
  }

  .how-card-clip img {
    height: 108%;
    bottom: -40px;
    right: 50%;
    transform: translateX(50%);
    top: 0;
  }
}

.faq-section {
  position: relative;
  overflow: hidden;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex: 0 0 28px;
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  color: var(--muted);
  display: grid;
  gap: 0.6rem;
}

.faq-item.open .faq-answer {
  padding: 0 1.25rem 1.1rem;
  opacity: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer p {
  line-height: 1.55;
}

@media (max-width: 640px) {
  .faq-question {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1rem 1rem;
  }
}

/* Pro page */
.hero-pro {
  padding-top: 0;
  padding-bottom: 0;
}

.pro-hero-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pro-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.pro-black-section {
  background: #000;
  margin-top: -218px;
  padding: 4rem 0 5rem;
}

.wave-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 45vw, 560px);
  background: #000 url('assets/banners/banner_purpleWaves.png') center center / cover no-repeat;
  overflow: hidden;
}

.pro-hero {
  padding-top: 0;
  padding-bottom: 0;
}

.pro-hero .hero-grid {
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
}

.pro-hero .hero-copy {
  margin-top: -405px;
  margin-left: 72px;
}

.pro-hero-title-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 3.4rem; /* fixed to prevent vertical jumps */
  font-weight: 800;
}

.pro-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 14px;
  background: #c2f5c8;
  color: #0c3b14;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
}

.pro-hero .hero-subtitle {
  max-width: 880px;
  margin-top: 30px;
  color: #efe8ff;
  font-size: 1.8rem;
}

.pro-hero-meta-text {
  margin-top: 30px;
  font-weight: 500;
  color: #efe8ff;
  font-size: 1.8rem;
}

.pro-hero .hero-visual {
  display: none;
}

.pro-pricing {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  max-width: 1100px;
}

.pro-pricing-title {
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0;
}

.pro-pricing-title.secondary {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.pro-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0 1rem;
}

.pro-plan-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
}

.pro-plan-row.two-up {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
}

.pro-plan-row.two-up .plan-card {
  flex: 0 0 auto;
  width: clamp(140px, 45vw, 220px);
  max-width: 220px;
  min-width: 140px;
}

.pro-plan-row.three-up {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: nowrap;
}

.pro-plan-row.three-up .plan-card {
  flex: 1 1 180px;
  max-width: 220px;
}

.pro-plan-row.three-up .plan-card:nth-child(2) {
  flex: 0 0 200px; /* center card fixed width to hold midpoint */
}

@media (max-width: 768px) {
  .pro-plan-row.two-up {
    flex-wrap: nowrap;
  }

  .pro-plan-row.two-up .plan-card {
    width: clamp(130px, 45vw, 200px);
    max-width: 200px;
    min-width: 130px;
  }

  .pro-plan-row.three-up {
    gap: 30px;
    flex-wrap: nowrap;
  }

  .pro-plan-row.three-up .plan-card {
    flex: 1 1 150px;
    max-width: 200px;
  }

  .pro-plan-row.three-up .plan-card:nth-child(2) {
    flex: 0 0 180px;
  }
}

@media (max-width: 640px) {
  .pro-plan-row.three-up .plan-card {
    flex: 1 1 130px;
    max-width: 180px;
  }

  .pro-plan-row.three-up .plan-card:nth-child(2) {
    flex: 0 0 160px;
  }
}

@media (max-width: 540px) {
  .pro-plan-row.three-up {
    gap: 24px;
  }

  .pro-plan-row.three-up .plan-card {
    flex: 1 1 110px;
    max-width: 160px;
    min-width: 90px;
  }

  .pro-plan-row.three-up .plan-card:nth-child(2) {
    flex: 0 0 140px;
  }
}

@media (max-width: 480px) {
  /* Force three-up to compress without overlap on tiny screens */
  .pro-plan-row.three-up {
    gap: 16px;
  }

  .pro-plan-row.three-up .plan-card {
    flex: 1 1 90px;
    max-width: 150px;
    min-width: 80px;
  }

  .pro-plan-row.three-up .plan-card:nth-child(2) {
    flex: 0 0 120px;
  }
}

.plan-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: center;
  min-width: 140px;
  max-width: 220px;
  min-height: 220px;
  height: 220px; /* fixed height, slightly more square */
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.plan-card:hover,
.plan-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  outline: none;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at center, rgba(202, 126, 253, 0.12) 0%, rgba(94, 39, 159, 0.08) 55%, rgba(94, 39, 159, 0.04) 75%, rgba(94, 39, 159, 0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card:hover::before,
.plan-card:focus-visible::before {
  opacity: 1;
}

.plan-card .plan-price {
  transition: transform 0.2s ease;
}

.plan-card:hover .plan-price,
.plan-card:focus-visible .plan-price {
  transform: scale(1.14);
}

.plan-name {
  font-weight: 700;
  font-size: 1rem;
}

.plan-price {
  font-weight: 800;
  font-size: 1.6rem;
}

.plan-renew {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}

.pro-pricing-subhead {
  display: grid;
  gap: 0.2rem;
  margin-top: 3.5rem; /* add more separation below first row */
}

.pro-pricing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-wave-chaos {
  z-index: 2; /* sits behind the primary wave */
  opacity: 1;
}

.hero-wave-chaos svg {
  height: 560px;
}

/* Pro page wave positioning and colors */
.pro-page .hero-wave,
.pro-page .hero-wave-chaos,
.pro-page .hero-wave-back {
  bottom: 217px;
}

.pro-page .hero-wave path {
  fill: #000;
}

.pro-page .hero-wave-chaos path {
  fill: #1a1a1a; /* lighten to sit closer to back row for better front contrast */
}

.pro-page .hero-wave-back path {
  fill: #1c1c1c; /* lightest of the three, still near-black */
}

@media (max-width: 900px) {
  .pro-black-section {
    margin-top: -120px; /* reduce overlap at tablet */
  }
}

@media (max-width: 768px) {
  .pro-black-section {
    margin-top: -80px; /* further reduce overlap on mobile large and below */
  }
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.service {
  padding: 1.2rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.service-spotify::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(30, 215, 96, 0.28) 0%, rgba(30, 215, 96, 0.16) 35%, rgba(30, 215, 96, 0.08) 60%, rgba(30, 215, 96, 0) 100%);
  z-index: 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 0.5rem;
  position: relative;
  z-index: 1;
  border-radius: 16px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.service-name {
  display: block;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.pro-features {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  background: #000;
}

.pro-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pro-features .section-heading {
  text-align: center;
}

.pro-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.pro-feature-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
  display: block;
}

.pro-feature-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.pro-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.95rem;
}

.pro-cta-footer {
  background: #000;
  text-align: center;
  padding: 1.5rem 0 3rem;
}

.pro-cta-footer h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.pro-cta-footer .app-store-badge img {
  height: 62px;
}

@media (max-width: 500px) {
  .pro-features {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .pro-feature-grid {
    gap: 1.1rem;
  }

  .pro-cta-footer {
    padding-top: 1rem;
    padding-bottom: 2.4rem;
  }
}

.service-youtube::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(244, 45, 69, 0.28) 0%, rgba(244, 45, 69, 0.16) 35%, rgba(244, 45, 69, 0.08) 60%, rgba(244, 45, 69, 0) 100%);
  z-index: 0;
}

.service-apple::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(244, 45, 69, 0.28) 0%, rgba(252, 59, 113, 0.16) 35%, rgba(252, 59, 113, 0.08) 60%, rgba(252, 59, 113, 0) 100%);
  z-index: 0;
}

/* Mask shadows to icon shapes so transparent corners don't show */
.service-spotify .service-icon,
.service-youtube .service-icon {
  -webkit-mask-image: radial-gradient(circle at center, #000 72%, transparent 74%);
  mask-image: radial-gradient(circle at center, #000 72%, transparent 74%);
  border-radius: 50%;
}

.service-apple .service-icon {
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: inset(0 round 24%);
  border-radius: 24%;
}

.pricing-section {
  background: #000;
  padding: 0;
}

.perk-container {
  width: min(100%, 1922px);
  height: 392px;
  margin: 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px clamp(1.4rem, 3vw, 2.4rem);
}

.pricing-section .section-heading {
  margin-bottom: 2rem;
}

.perk-content {
  width: min(100%, 1320px);
  display: grid;
  grid-template-rows: auto auto 140px auto;
  row-gap: 16px;
  text-align: center;
  height: 100%;
}

.perk-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-top: 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 24%, #ca7efd 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.perk-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  margin-top: -8px;
}

.perk-animation-row {
  display: flex;
  align-items: center;
  height: 140px;
  overflow: hidden;
  border-radius: 24px;
}

.perk-animation-track {
  display: flex;
  align-items: center;
  gap: 24px;
  will-change: transform;
}

.perk-animation-track img {
  width: 87px;
  height: 87px;
  object-fit: cover;
  flex: 0 0 auto;
  border-radius: 18px;
}

.perk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  max-width: 350px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.perk-cta:hover,
.perk-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.perk-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.perk-cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(202, 126, 253, 0.12) 0%, rgba(94, 39, 159, 0.08) 55%, rgba(94, 39, 159, 0.04) 75%, rgba(94, 39, 159, 0) 100%);
  z-index: 0;
}

.perk-cta span,
.perk-cta img,
.perk-cta svg {
  position: relative;
  z-index: 1;
}

/* Typewriter hero */
.type-cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 0.8s steps(1, end) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-subtitle.typing-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.hero-subtitle.typing-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-visual.typing-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.hero-visual.typing-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-download.typing-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.hero-download.typing-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.note-plume {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translate(0, 0);
  opacity: 0;
  animation-name: float-note;
  animation-timing-function: linear;
  pointer-events: none;
  animation-fill-mode: forwards;
  --note-rot: 8deg;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.24)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
}

.note-plume.typing-note {
  animation-name: typing-note-float;
  animation-duration: 1s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float-note {
  0% {
    opacity: 0;
    transform: translate(-20px, -30px) scale(0.1) rotate(-6deg) rotateY(-10deg);
  }
  20% {
    opacity: 0.68;
    transform: translate(0px, -120px) scale(0.4) rotate(-2deg) rotateY(6deg);
  }
  50% {
    opacity: 0.68;
    transform: translate(60px, -220px) scale(0.75) rotate(1deg) rotateY(3deg);
  }
  80% {
    opacity: 0.5;
    transform: translate(110px, -320px) scale(0.95) rotate(var(--note-rot)) rotateY(2deg);
  }
  100% {
    opacity: 0;
    transform: translate(150px, -420px) scale(1.05) rotate(calc(var(--note-rot) + 3deg)) rotateY(2deg);
  }
}

@keyframes typing-note-float {
  0% {
    opacity: 1;
    transform: translate(-20px, -30px) scale(0.9) rotate(-6deg) rotateY(-6deg);
    filter: var(--typing-shadow, drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22))) blur(0px);
  }
  50% {
    opacity: 0.9;
    transform: translate(10px, -160px) scale(6) rotate(-2deg) rotateY(0deg);
    filter: var(--typing-shadow, drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2))) blur(0px);
  }
  70% {
    opacity: 0.55;
    transform: translate(40px, -260px) scale(12) rotate(4deg) rotateY(2deg);
    filter: var(--typing-shadow, drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18))) blur(10px);
  }
  100% {
    opacity: 0;
    transform: translate(-20px, -30px) scale(24) rotate(8deg) rotateY(4deg);
    filter: var(--typing-shadow, drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18))) blur(22px);
  }
}
/* Scroll reveal helpers */
.will-reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1), transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.final-cta {
  text-align: center;
  padding-top: 3rem;
}

.final-cta .app-store-badge {
  margin-top: 10px;
  display: inline-flex;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.gradient-hero {
  --section-gradient: var(--gradient-hero);
}

.gradient-auto-sync {
  --section-gradient: var(--gradient-auto-sync);
  background-image: none;
}

.gradient-monitor {
  --section-gradient: var(--gradient-monitor);
  background-image: none;
}

.gradient-final-cta {
  --section-gradient: var(--gradient-final-cta);
}

.gradient-bg {
  background-image: var(--section-gradient);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.gradient-glow {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.gradient-glow::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background-image: var(--section-gradient);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.35;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

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

.ios-fixed-bg body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000 url("assets/backgrounds/background.jpg") no-repeat center top;
  background-image: image-set(
    url("assets/backgrounds/background.heic") type("image/heic"),
    url("assets/backgrounds/background.jpg") type("image/jpeg")
  );
  background-size: 2000px auto;
  background-repeat: repeat-y;
  background-position: center top;
  height: calc(120vh + 200px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: -1;
}

.ios-fixed-bg body {
  background: transparent;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    background-attachment: scroll;
  }

  .pro-page .hero {
    min-height: 100vh; /* maximize space on short viewports */
  }

  .pro-hero-title-line {
    font-size: 3.1rem; /* gentle step down for tablet */
  }

  /* Keep Pro hero copy at the same Y offset as desktop */
  .pro-hero .hero-copy {
    margin-top: -80px;
  }

  .pro-page .hero-wave,
  .pro-page .hero-wave-chaos,
  .pro-page .hero-wave-back {
    bottom: 80px; /* push waves down on short viewports */
  }

  .home-hero-wave {
    bottom: 114px; /* keep home wave visible at this breakpoint */
  }

  .page-body {
    margin-top: -118px; /* match desktop alignment to keep wave flush */
  }

  .pro-page .pro-black-section {
    margin-top: -80px; /* reduce overlap on tablet */
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), 100% - 2rem);
  }

  .section {
    padding: 5rem 0;
  }

  .perk-container {
    height: 392px;
    padding: 1.2rem;
  }
}

@media (max-width: 900px) {
  .perk-container {
    width: min(100%, 1662px);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    background-size: 2600px auto; /* keep background tall enough at mobile-wide */
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 2rem;
  }

  .pro-hero-title-line {
    font-size: 2.8rem; /* step down for mobile large */
  }

  /* Keep Pro hero copy at the same Y offset as desktop */
  .pro-hero .hero-copy {
    margin-top: -40px;
  }

  .pro-page .hero-wave,
  .pro-page .hero-wave-chaos,
  .pro-page .hero-wave-back {
    bottom: 40px; /* lower waves further on mobile large */
  }

  .pro-page .pro-black-section {
    margin-top: -40px; /* reduce overlap on mobile large */
  }

  .home-hero-wave {
    bottom: 136px; /* raised 22px for mobile large */
  }

  .page-body {
    margin-top: -144px; /* keep black section aligned with wave */
  }

  .nav-shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    padding: 0 1rem;
  }

  .nav-links {
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    flex-wrap: nowrap;
    text-align: center;
    font-size: 0.9rem;
  }

   .logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .logo-icon {
    width: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left; /* prevent upward jump alignment shift */
    padding-bottom: 2rem;
  }

  .hero-copy {
    margin-top: 60px; /* default at this breakpoint; page-specific overrides below */
    align-items: flex-start;
  }

  .home-page .hero-copy {
    margin-top: -70px; /* blended offset to reduce drop on mobile large */
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 0;
    margin-right: 0;
  }

  .hero-screenshot {
    margin: 0 auto;
  }

  .ios-fixed-bg body::before {
    background-size: 2200px auto;
    height: calc(125vh + 240px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 700px) {
  /* Home hero labels: drop slightly to avoid jump at ~695px; scoped away from pro */
  .home-page .hero-copy {
    margin-top: -30px;
  }

  /* Pro hero: ease the upward jump around ~695px */
  .pro-hero .hero-copy {
    margin-top: -30px;
  }
}

@media (max-width: 560px) {
  /* Pro hero: continue easing up but keep titles in view */
  .pro-hero .hero-copy {
    margin-top: -60px; /* reduce downward jump */
    margin-left: 32px;
  }
}

@media (max-width: 520px) {
  /* Keep Pro hero text in view on very small screens */
  .pro-hero .hero-copy {
    margin-top: -40px; /* align with 560px breakpoint to prevent drop */
    margin-left: 24px;
  }
}

@media (max-width: 480px) {
  .nav-shell {
    width: 100%;
    padding: 0 0.6rem;
    gap: 0.3rem;
    overflow: hidden;
    max-width: 100vw;
  }

  .site-header {
    height: auto;
    padding-bottom: 10px; /* extra breathing room for the buttons */
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.3rem;
  }

  .logo-icon {
    width: 30px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .button.header-cta {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    align-self: center;
  }

  .layout-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.45rem;
  }

  .nav-shell {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 540px) {
  body {
    background-size: 2400px auto; /* ensure background still covers under wave on narrow screens */
  }

  .layout-tag {
    font-size: 0.78rem;
  }

  .ios-fixed-bg body::before {
    background-size: 2400px auto;
    height: calc(130vh + 280px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  /* Pro-only tiny layout adjustments */
  .pro-page .pro-black-section {
    margin-top: -105px; /* down 75px from -180 */
    background: #000;
  }

  .pro-page .hero-wave,
  .pro-page .hero-wave-chaos,
  .pro-page .hero-wave-back {
    bottom: 80px; /* drop waves down to sit on the section */
  }

  .pro-hero-title-line {
    font-size: 2.2rem; /* scale down title */
  }

  .pro-hero .hero-subtitle,
  .pro-hero-meta-text {
    font-size: 1.4rem; /* scale down subtitle/meta */
  }

  .pro-hero .hero-copy {
    margin-top: -250px; /* move hero labels down ~50px from -300 */
  }
}
