/* Homepage + sign-in pages (uses the tokens from styles.css) */
.site { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 20px; }
.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px 70px; }

.special-bar { text-align: center; padding: 9px 16px; font-size: .9rem; color: #fff; background: var(--grad); font-weight: 600; }

/* flowing waves behind the top of the homepage */
body.home { position: relative; overflow-x: hidden; }
body.home > *:not(.hero-waves) { position: relative; z-index: 1; }
.hero-waves {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* a soft lavender wash: starts under the hero waves and fades out gently down the page */
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(124, 58, 237, .10), transparent 70%),
    radial-gradient(700px 380px at 0% 10%, rgba(37, 99, 235, .07), transparent 70%),
    linear-gradient(to bottom, #fff 0, #fff 520px, #efe9fe 760px, #f4f0ff 55%, #fff 92%);
}
/* The hero waves; each one dissolves downward into the wash, so there are no hard edges. */
.wave-band { position: absolute; left: 0; right: 0; top: 360px; height: 420px; }
/* Each wave is twice the screen width and its pattern repeats at the halfway point,
   so sliding it left by half loops seamlessly. */
.wave { position: absolute; left: 0; width: 200%; height: 420px; bottom: 0; animation: waveDrift linear infinite; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.wave.w1 { opacity: .38; animation-duration: 26s; }
.wave.w2 { opacity: .30; animation-duration: 38s; animation-delay: -12s; }
.wave.w3 { opacity: .42; animation-duration: 19s; animation-delay: -6s; }
/* thin lines that keep drifting further down */
.wave-line { position: absolute; left: 0; width: 200%; height: 200px; fill: none; stroke: #7c3aed; stroke-width: 2; vector-effect: non-scaling-stroke; animation: waveDrift linear infinite; will-change: transform; }
.wave-line path { vector-effect: non-scaling-stroke; }
.wave-line path + path { stroke: #2563eb; opacity: .7; }
.wave-line.l1 { top: 36%; opacity: .16; animation-duration: 34s; }
.wave-line.l2 { top: 58%; opacity: .13; animation-duration: 46s; animation-delay: -20s; }
.wave-line.l3 { top: 80%; opacity: .14; animation-duration: 40s; animation-delay: -8s; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .hero-waves { background: linear-gradient(to bottom, #fff 0, #fff 760px, #efe9fe 980px, #f4f0ff 55%, #fff 92%); }
  .wave-band { top: 640px; height: 300px; }
  .wave { height: 300px; }
  .wave-line { height: 140px; }
  .wave.w1 { animation-duration: 20s; } .wave.w2 { animation-duration: 28s; } .wave.w3 { animation-duration: 15s; }
}
@media (prefers-reduced-motion: reduce) { .wave, .wave-line { animation: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 28px; align-items: center; padding: 34px 0 40px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--violet); background: #f1ecfe; border-radius: 999px; padding: 6px 13px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; margin: 18px 0 16px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 540px; margin: 0 0 26px; line-height: 1.6; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; color: var(--muted); font-size: .86rem; max-width: 480px; }
.hero-art img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; } /* blends the image's off-white into the page */
.btn.ghost.big { border-color: var(--line-2); }

/* how it works */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 10px; scroll-margin-top: 20px; }
.step4 { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.step4:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.step4 img { width: 76px; height: 76px; display: block; margin-bottom: 12px; mix-blend-mode: multiply; }
.step4 .n { font: 800 .8rem var(--display); color: var(--violet); letter-spacing: .08em; }
.step4 h3 { font: 800 1.3rem var(--display); color: var(--ink); text-transform: none; letter-spacing: -.01em; margin: 4px 0 6px; display: block; }
.step4 p { color: var(--ink-2); font-size: .93rem; margin: 0; line-height: 1.6; }

.section-title { text-align: center; font: 800 clamp(1.8rem, 3.2vw, 2.4rem) var(--display); letter-spacing: -.03em; margin: 76px 0 10px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 30px; max-width: 580px; }

.price-card { position: relative; max-width: 440px; margin: 0 auto; text-align: center; border-radius: 24px; padding: 34px 28px; background: #fff; box-shadow: 0 30px 70px rgba(79, 70, 229, .16); }
.price-card::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 24px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card .amount { font: 800 3.4rem/1 var(--display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .per { color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; display: grid; gap: 10px; }
.price-card li { padding-left: 30px; position: relative; color: var(--ink-2); }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--grad); }

.affiliate-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 900px; margin: 70px auto 0; padding: 30px 32px; border-radius: 24px; background: linear-gradient(135deg, #f5f0ff 0%, #eef3ff 100%); border: 1px solid #e2dbfb; }
.affiliate-cta h2 { font: 800 clamp(1.4rem, 2.6vw, 1.9rem) var(--display); letter-spacing: -.02em; margin: 12px 0 8px; }
.affiliate-cta h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.affiliate-cta p { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.affiliate-cta .eyebrow { background: #fff; }
@media (max-width: 760px) { .affiliate-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; } .affiliate-cta .btn { width: 100%; } }
/* skip link (keyboard users) + header links */
body.site > a.skip { position: absolute; left: 12px; top: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; transform: translateY(-200%); }
body.site > a.skip:focus { transform: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav-links a:hover { color: var(--violet); }
@media (max-width: 900px) { .nav-links { display: none; } }
section[id] { scroll-margin-top: 20px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.feature h3 { font: 800 1.12rem var(--display); color: var(--ink); text-transform: none; letter-spacing: -.01em; margin: 0 0 8px; display: block; }
.feature h3::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 14px; }
.feature p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: .95rem; }

/* audit showcase */
.audit-showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-top: 90px; }
.audit-showcase h2 { font: 800 clamp(1.7rem, 3vw, 2.3rem) var(--display); letter-spacing: -.03em; margin: 14px 0 10px; line-height: 1.15; }
.audit-copy > p { color: var(--ink-2); line-height: 1.65; margin: 0 0 18px; }
.audit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.audit-list li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.audit-list b { color: var(--ink); }
.audit-list span { color: var(--muted); font-size: .9rem; }
.say-card { margin: 0; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 30px 70px rgba(79, 70, 229, .16); border: 1px solid #e2dbfb; }
.say-score { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.say-num { font: 800 2.6rem/1 var(--display); color: var(--red); }
.say-of { color: var(--muted); font-weight: 700; }
.say-name { margin-left: auto; color: var(--muted); font-size: .85rem; }
.say-issue { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; }
.say-issue span { color: var(--muted); font-size: .88rem; }
.say-card blockquote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--violet); background: rgba(124, 58, 237, .07); border-radius: 0 12px 12px 0; line-height: 1.6; color: var(--ink); }
.say-card figcaption { margin-top: 12px; color: var(--muted); font-size: .82rem; }

/* comparison */
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 800 .95rem var(--display); color: var(--ink); background: var(--surface-2); }
.compare thead th:nth-child(2) { color: var(--violet); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare td.yes { color: var(--ink); font-weight: 700; background: rgba(124, 58, 237, .05); }
.compare td.no { color: var(--muted); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.65; }
.site-foot nav { margin-bottom: 8px; }
.site-foot p { margin: 0; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .audit-showcase { grid-template-columns: 1fr; gap: 26px; margin-top: 70px; }
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* legal pages */
.legal { max-width: 780px; padding-top: 20px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 4px; }
.legal-date { color: var(--muted); margin: 0 0 24px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 16px 18px; margin-bottom: 30px; background: var(--surface-2); border-radius: 14px; font-size: .86rem; }
.legal-toc a { color: var(--link); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal section { scroll-margin-top: 20px; margin-bottom: 26px; }
.legal h2 { font: 800 1.25rem var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--link); }
.legal-summary { padding: 16px 18px; margin: 0 0 18px; border-radius: 14px; background: linear-gradient(135deg, #f5f0ff, #eef3ff); border: 1px solid #e2dbfb; color: var(--ink-2); line-height: 1.65; }
.legal-h3 { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 14px 0 6px; display: block; }
.site-foot a { color: var(--link); text-decoration: none; }
.terms-note { margin-top: 4px; }
.terms-note a { color: var(--link); }
.price-note { margin: 12px 0 0; font-size: .68rem; line-height: 1.45; color: #a3a0c2; }
.site-foot { border-top: 1px solid var(--line); padding: 26px 20px; text-align: center; color: var(--muted); font-size: .85rem; }

/* sign-in pages: form on the left, art on the right */
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 20px 16px 50px; }
body.site:has(.auth-wrap) { background: #5b3fd6; position: relative; overflow-x: hidden; }
/* Animated background: the purple/blue art slowly drifts and breathes, with soft lights floating over it. */
body.site:has(.auth-wrap)::before {
  content: ""; position: fixed; inset: -8%; z-index: 0; pointer-events: none;
  background: #ece9fb url('/img/auth-bg.jpg') center / cover no-repeat;
  animation: authDrift 28s ease-in-out infinite alternate; will-change: transform;
}
body.site:has(.auth-wrap)::after {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(28% 32% at 22% 30%, rgba(236, 179, 255, .55), transparent 70%),
    radial-gradient(30% 34% at 78% 68%, rgba(125, 211, 252, .45), transparent 70%),
    radial-gradient(22% 26% at 60% 18%, rgba(167, 139, 250, .40), transparent 70%);
  animation: authGlow 18s ease-in-out infinite alternate; will-change: transform, opacity;
}
body.site:has(.auth-wrap) > .site-nav, body.site:has(.auth-wrap) > .auth-wrap { position: relative; z-index: 1; }
@keyframes authDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: scale(1.10) translate3d(-2.5%, 1.5%, 0) rotate(.6deg); }
  100% { transform: scale(1.06) translate3d(2%, -2%, 0) rotate(-.4deg); }
}
@keyframes authGlow {
  0% { transform: translate3d(-4%, 2%, 0) rotate(0deg); opacity: .75; }
  50% { transform: translate3d(3%, -3%, 0) rotate(8deg); opacity: 1; }
  100% { transform: translate3d(5%, 4%, 0) rotate(-6deg); opacity: .8; }
}

/* Sign-in card: rises in, contents follow one by one, logo floats, button shimmers. */
.auth-card { animation: cardIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card > * { animation: itemIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card > *:nth-child(1) { animation-delay: .15s; }
.auth-card > *:nth-child(2) { animation-delay: .22s; }
.auth-card > *:nth-child(3) { animation-delay: .29s; }
.auth-card > *:nth-child(4) { animation-delay: .34s; }
.auth-card > *:nth-child(5) { animation-delay: .38s; }
.auth-card > *:nth-child(6) { animation-delay: .44s; }
.auth-card > *:nth-child(n+7) { animation-delay: .5s; }
.auth-card .pw-mark { animation: itemIn .6s cubic-bezier(.2, .8, .2, 1) .15s both, markFloat 5s ease-in-out 1s infinite; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes markFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(91, 79, 240, .35); }
  50% { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(91, 79, 240, .5); }
}
/* switching between Sign in / Create account / Forgot password */
.auth-card .auth-form:not(.hidden) { animation: formIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes formIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
/* tab highlight slides between the two tabs */
.auth-tabs { position: relative; }
.auth-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(22, 19, 58, .12); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.auth-tabs:has([data-tab="signup"].active)::before { transform: translateX(calc(100% + 4px)); }
.auth-tabs button { position: relative; z-index: 1; transition: color .25s; }
.auth-tabs button.active { background: transparent; box-shadow: none; }
/* inputs glow softly when focused */
.auth-card input { transition: border-color .2s, box-shadow .25s; }
.auth-card input:focus { box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
/* light sweep across the main button every few seconds */
.auth-card .btn.primary { position: relative; overflow: hidden; }
.auth-card .btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: shimmer 4.5s ease-in-out 1.4s infinite; pointer-events: none; }
@keyframes shimmer { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.auth-card .btn { transition: transform .15s, box-shadow .2s, filter .2s; }
.auth-card .btn:hover { transform: translateY(-1px); }
.auth-card .btn:active { transform: translateY(1px) scale(.99); }
@media (prefers-reduced-motion: reduce) {
  body.site:has(.auth-wrap)::before, body.site:has(.auth-wrap)::after, .auth-card, .auth-card > *, .auth-card .pw-mark,
  .auth-card .auth-form:not(.hidden), .auth-card .btn.primary::after { animation: none !important; }
  .auth-tabs::before { transition: none; }
}
.auth-card { width: min(430px, 100%); background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; box-shadow: 0 30px 70px rgba(22, 19, 58, .14); text-align: center; backdrop-filter: blur(8px); }
.auth-card h1 { font-size: 1.9rem; margin: 14px 0 6px; }
.auth-card form { text-align: left; margin-top: 18px; }
.whop-btn { width: 100%; padding: 13px; font-size: 1rem; margin-top: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin: 22px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 20px 0 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.auth-tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(22, 19, 58, .12); }
.auth-form { margin-top: 16px; }
.btn.wide { width: 100%; }
.forgot { display: block; margin: 12px auto 0; }
.whop-alt { margin-top: 10px; }
#err:empty, #ok:empty { display: none; }
.dev-tag { display: inline-block; margin-top: 4px; font-size: .74rem; color: var(--amber); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; text-align: center; }
  .hero p.lead, .hero .fine { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .hero-art { order: -1; max-width: 560px; margin: 0 auto; }
  .steps4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps4 { grid-template-columns: 1fr; }
  .site-nav .btn.ghost { display: none; }
  .hero .btn.ghost.big { display: none; }
}
