/* Memoize — premium single-page, Apple-level */

:root {
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --yt-red: #ff0000;
  --gradient: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 100%);
  --gradient-glance: linear-gradient(120deg, #0d9488 0%, var(--teal) 35%, var(--cyan) 75%, #22d3ee 100%);
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  /* 8pt scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s8: 6rem;
  --s10: 8rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  max-width: 72rem;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav--scrolled .nav__logo-text { color: var(--text); }
.nav--scrolled .nav__links a { color: var(--text-muted); }
.nav--scrolled .nav__links a:hover { color: var(--text); }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  transition: opacity 0.2s;
}

.nav__logo:hover { opacity: 0.88; }

.nav__logo-icon {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.nav__logo-img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1.5rem;
  width: auto;
  display: block;
}

.nav__logo-img--dark {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.nav--scrolled .nav__logo-img--light { opacity: 0; pointer-events: none; }
.nav--scrolled .nav__logo-img--dark { opacity: 1; pointer-events: auto; }

.nav__logo-text {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: inherit;
}

.nav__links {
  display: flex;
  gap: var(--s4);
  align-items: center;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.nav__links a:hover::after { width: 100%; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s8) var(--s3) var(--s6);
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg {
    animation: hero-bg 14s var(--ease) infinite alternate;
  }
}

@keyframes hero-bg {
  0%   { filter: saturate(1); }
  100% { filter: saturate(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__headline {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 var(--s4);
  color: #fff;
}

.hero__verb-line {
  display: block;
  min-width: 11ch;
}

.hero__verb,
.hero__tail {
  display: inline;
}

.hero__tail {
  display: block;
  margin-top: 0.12em;
}

.hero__yt {
  color: var(--yt-red);
  font-weight: 700;
}

.hero__cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  margin: 0 0.04em 0 0.02em;
  vertical-align: -0.08em;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__cursor {
    animation: cursor-blink 1.1s step-end infinite;
  }
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cursor {
    animation: none;
    opacity: 0;
  }
}

.hero__support {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--s5);
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s2) var(--s4);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--teal);
  background: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.hero__cta:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero__cta:active {
  transform: scale(0.98);
}

.hero__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.hero__link:hover {
  color: #fff;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-bar {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-bar {
    animation: scroll-pulse 2.2s var(--ease) infinite;
  }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ——— Value ——— */
.value {
  padding: var(--s10) var(--s3) var(--s10);
  background: var(--bg);
  overflow: visible;
}

.value__inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.value__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--s2);
}

.value__headline {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.15em 0;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 0 0 var(--s2);
  padding-bottom: 0.2em;
  min-height: 1.2em;
}

.value__headline > * {
  white-space: nowrap;
}

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

.value__headline-word--magic {
  background: linear-gradient(110deg, var(--teal) 0%, var(--cyan) 20%, #67e8f9 40%, var(--cyan) 60%, var(--teal) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-reduced-motion: no-preference) {
  .value__headline-word--magic {
    animation: value-magic-shine 2.5s ease-in-out infinite;
  }
}

@keyframes value-magic-shine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.value__headline-rotate-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.35em;
  min-width: 10ch;
  overflow: hidden;
  line-height: 1.25;
}

.value__headline-rotate {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
  text-align: center;
}

.value__headline-rotate--out {
  transform: translateY(-100%);
}

.value__headline-rotate--in {
  transform: translateY(100%);
}

.value__headline-arrow {
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.8;
  line-height: 1;
}

.value__tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 var(--s6);
  line-height: 1.65;
  padding-bottom: 0.05em;
}

.value__steps {
  list-style: none;
  padding: 0 0 0.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  text-align: left;
  max-width: 28rem;
}

@media (max-width: 480px) {
  .value__headline {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    gap: 0.2em 0;
  }
}

.value__step {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}

.value__step-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
}

.value__step-icon svg {
  display: block;
}

.value__step-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  padding-top: 0.35rem;
}

/* ——— Reveal ——— */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.value__eyebrow[data-reveal] { transition-delay: 0s; }
.value__headline[data-reveal] { transition-delay: 0.05s; }
.value__tagline[data-reveal] { transition-delay: 0.1s; }
.value__step[data-reveal]:nth-child(1) { transition-delay: 0.15s; }
.value__step[data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.value__step[data-reveal]:nth-child(3) { transition-delay: 0.25s; }
.pricing__headline[data-reveal] { transition-delay: 0s; }
.plan[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.plan[data-reveal]:nth-child(2) { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Pricing ——— */
.pricing {
  padding: var(--s6) var(--s3) var(--s8);
  background: var(--bg);
}

.pricing__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.pricing__headline {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 var(--s5);
  color: var(--text);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  align-items: stretch;
}

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

/* ——— Plans ——— */
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.plan:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.plan--pro {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 4px 20px rgba(20, 184, 166, 0.12);
}

.plan--pro:hover {
  box-shadow: 0 0 0 1px var(--teal), 0 8px 32px rgba(20, 184, 166, 0.15);
}

.plan__name {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 var(--s1);
  color: var(--text);
}

.plan__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 var(--s3);
  min-height: 2.5em;
}

.plan__price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 var(--s3);
  color: var(--text);
}

.plan__price .plan__period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s3);
  font-size: 0.9375rem;
  color: var(--text);
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s1);
}

.plan__features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--s2) var(--s3);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.plan__cta:hover {
  transform: translateY(-1px);
}

.plan__cta--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.plan__cta--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.plan__cta--primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.plan__cta--primary:hover {
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45);
}

/* ——— Legal / Privacy page ——— */
.legal-page {
  padding-top: 4rem;
}

.legal {
  padding: var(--s6) var(--s3) var(--s8);
  background: var(--bg);
}

.legal__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--s2);
  color: var(--text);
}

.legal__updated {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 var(--s5);
}

.legal__section {
  margin-bottom: var(--s5);
}

.legal__heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s2);
  color: var(--text);
}

.legal__section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 var(--s2);
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__list {
  margin: 0 0 var(--s2);
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.legal__list li {
  margin-bottom: 0.5rem;
}

.legal__link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.legal__link:hover {
  border-bottom-color: var(--teal);
  color: #0d9488;
}

.legal__back {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

/* ——— Footer ——— */
.footer {
  padding: var(--s4) var(--s3) var(--s6);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--teal);
}
