/* v70 brighter ambient star drift. The v69.2 comparison is /before-product-studio.html.
   Product images keep their colors. All motion honors the existing pause control. */
:root, html[data-theme="black"] {
  --night-surface: #1b1c1f;
  --night-raised: #222326;
  --night-ink: #f5f5f6;
  --night-muted: #b4b5ba;
  --night-line: #37383d;
  --soft-bg: #111214;
  --section-bg: #111214;
  --final-bg: #111214;
  --final-ink: var(--night-ink);
  --shell: min(1120px, calc(100% - 64px));
}

body { isolation: isolate; }
main, .site-footer { position: relative; z-index: 1; }
main > section:is(.hero, .client-experience, .switch-section, .stories, .fit-section, .pricing-section),
.fit-sticky-head, .site-footer {
  background: transparent;
  color: var(--night-ink);
}
.night-sky { position: fixed; inset: 0 0 -96px; z-index: 0; }
.night-sky span {
  background: transparent; opacity: 1;
  animation: star-float calc(var(--star-duration) * 2 + 12s) ease-in-out var(--star-delay) infinite paused;
}
.night-sky span::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #f5f5f7;
  opacity: .4; animation: marlo-shimmer var(--star-duration) ease-in-out var(--star-delay) infinite paused;
}
.night-sky span:nth-child(11n + 1) {
  width: 6px; height: 6px;
}
.night-sky span:nth-child(11n + 1)::before {
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.night-sky.sky-running span, .night-sky.sky-running span::before { animation-play-state: running; }
@keyframes marlo-shimmer {
  0%, 100% { opacity: .3; scale: .9; }
  32% { opacity: .5; scale: 1; }
  44% { opacity: 1; scale: 1.2; }
  55% { opacity: .47; scale: 1; }
  63% { opacity: .75; scale: 1.08; }
  78% { opacity: .35; scale: .94; }
}
/* Reuse the same tiny points: 24–36 second loops, no extra nodes or JS frame loop.
   Matching endpoints and staggered phases keep the drift continuous and unhurried. */
@keyframes star-float {
  0%, 100% { translate: 0 0; }
  25% { translate: calc(var(--drift-x) * 1.3) calc(var(--drift-y) * 1.3); }
  50% { translate: calc(var(--drift-x) * -.65) calc(var(--drift-y) * -1.3); }
  75% { translate: calc(var(--drift-x) * -1.3) calc(var(--drift-y) * .65); }
}
/* The optional whole-sky scroll drift stays independent of the ambient movement. */
@supports (animation-timeline: scroll()) {
  .night-sky {
    animation: sky-drift 1s linear both paused;
    animation-timeline: scroll(root block);
  }
  .night-sky.sky-running { animation-play-state: running; }
  @keyframes sky-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -96px, 0); } }
}

/* A single canvas; tone separates the content, never whole chapters. */
.section-intro > p:last-child,
.switch-heading > p:last-child,
.fit-intro > p:last-child,
.pricing-section .section-intro > p,
.stories .member-intro > .review-placeholder-note:last-child,
.client-pages-showcase .showcase-heading,
.client-pages-showcase .showcase-heading p,
.showcase-disclosure,
.switch-disclosure,
.review-motion-control {
  color: var(--night-muted);
}
.experience-card,
.switch-panel,
.switch-panel:nth-child(n),
.fit-stage,
.fit-copy,
.review-card,
.price-card,
.price-card.featured {
  background: var(--night-surface);
  color: var(--night-ink);
  border-color: var(--night-line);
  box-shadow: none;
}
.experience-card { border: 1px solid var(--night-line); }
.experience-card.is-active { border-color: #55565c; }
.switch-copy { background: transparent; color: var(--night-ink); }
.experience-copy p,
.experience-black .experience-copy p,
.switch-copy p,
.switch-panel:nth-child(n) .switch-copy p,
.fit-copy > p:not(:first-child),
.review-card p,
.review-card small span { color: var(--night-muted); }
.review-card small strong { color: var(--night-ink); }
.review-stars { filter: grayscale(1) brightness(0) invert(1); }
.review-card { border: 1px solid #303136; }
.fit-product { background: #17181b; }
.fit-copy li { color: #d2d2d6; border-color: var(--night-line); }
.fit-copy li::before { background: var(--night-ink); }
.fit-copy .button-dark { background: #f5f5f6; color: #111214; }

.switch-tabs { border-color: var(--night-line); }
.switch-tabs button { color: var(--night-muted); }
.switch-tabs button[aria-selected="true"] { color: #fff; }
.switch-tabs button::after { background: #fff; }
.fit-tabs button { background: #1b1c1f; color: var(--night-muted); border-color: var(--night-line); }
.fit-tabs button[aria-selected="true"] { background: #f5f5f6; color: #111214; border-color: #f5f5f6; }
.fit-tabs { background: #17181a; border: 1px solid #303136; border-radius: 16px; box-shadow: none; gap: 4px; }
.fit-tabs button, .fit-tabs button[aria-selected="true"] { box-shadow: none; border-radius: 11px; }
.client-experience .swipe-dots { color: #fff; }
.swipe-dot { color: inherit; }

.price-card, .price-card.featured { border: 1px solid var(--night-line); }
.price-card.featured { background: var(--night-raised); border-color: #66676e; }
.price-card .plan-description,
.price-card .billing-note,
.price-card .plan-top h3 small,
.price-card .plan-includes,
.price-card .plan-more summary,
.price-card .plan-more li { color: var(--night-muted); }
.price-card .plan-highlights li { color: #e2e2e5; border-color: var(--night-line); }
.price-card li::before { color: #e2e2e5; }
.price-card .button.button-outline { background: transparent; color: #fff; border-color: #74757c; }
.price-card.featured .button.button-light { background: #f5f5f6; color: #111214; border-color: #f5f5f6; }
.popular-badge { background: #e2e2e7; color: #1b1c1f; }
.billing-toggle { background: #1b1c1f; border-color: var(--night-line); }
.billing-toggle button { color: var(--night-muted); }
.billing-toggle button[aria-pressed="true"] { background: #f5f5f6; color: #111214; }
.billing-toggle span { color: inherit; }
.faq-list details { border-color: var(--night-line); }
.faq-list summary { color: var(--night-ink); }
.faq-section .faq-list p { color: var(--night-muted); }
.footer-column a, .footer-column button { color: var(--night-muted); }
.price-grid { width: var(--shell); }
.footer-grid { align-items: start; }
.footer-column h2 { margin: 0 0 12px; }
.faq-list a, .auth-legal a { color: var(--night-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Keep the header on the same ground even when content moves beneath it. */
.site-header.is-scrolled { border-bottom-color: #ffffff0c; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline-color: #ededf0; }
.faq-list { border-top-color: var(--night-line); }
.site-header.is-scrolled .mobile-scroll-cta { width: 120px; min-width: 120px; padding-inline: 10px; font-size: 13px; }

/* Give the second action enough presence while the trial remains the first read. */
.hero-actions .hero-secondary { background: #303136; color: #f5f5f6; border: 1px solid #53545b; border-radius: 12px; }
.hero-actions .hero-primary { border-radius: 12px; }
.hero-reassurance { margin: 14px auto 0; color: var(--night-muted); font-size: 12px; line-height: 1.5; }
.hero-actions .hero-secondary:hover { background: #3b3c42; border-color: #777880; }
.hero-actions .hero-primary:hover { background: #e5e5e8; }
.hero-actions .button:active { transform: translateY(1px); }

/* Quiet, consistent frames let the actual website previews do the talking. */
.client-pages-showcase .showcase-page-preview,
.client-pages-showcase .showcase-page-preview:hover { border: 1px solid #414248; box-shadow: none; border-radius: 14px; }
.experience-card { border-color: #34353a; }
.experience-card.is-active { border-color: #4c4d54; }
.browser-bar { background: #e9e9e9; color: #47474b; border-bottom: 1px solid #d5d5d8; }
.browser-bar i { background: #aaabb0; width: 6px; height: 6px; }
.browser-mock, .bio-card { border-radius: 12px 12px 0 0; }
.fit-copy { border-color: var(--night-line); }

/* The real app's centered wordmark and restrained fields, inside native dialogs. */
.auth-dialog {
  width: min(448px, calc(100% - 32px)); padding: 58px 36px 28px;
  border: 1px solid #38393f; border-radius: 16px;
  background: #17181b; color: var(--night-ink); box-shadow: none;
  color-scheme: dark;
}
.auth-dialog::backdrop { background: #000b; backdrop-filter: none; }
.auth-wordmark { display: block; width: 164px; height: auto; margin: 0 auto 28px; }
.auth-dialog h2 { font-size: 24px; font-weight: 550; line-height: 1.25; letter-spacing: -.025em; text-align: center; }
.auth-dialog > p.auth-subtitle { margin-top: 12px; color: var(--night-muted); font-size: 14px; line-height: 1.6; text-align: center; }
.auth-dialog form { margin-top: 28px; gap: 18px; }
.auth-dialog label { font-size: 12px; font-weight: 550; gap: 8px; color: #d7d7dc; }
.auth-dialog input { height: 48px; padding: 0 14px; border: 1px solid #4c4d54; border-radius: 10px; background: #222326; color: #fff; font-size: 16px; }
.auth-dialog input::placeholder { color: #a3a4ab; opacity: 1; }
.auth-dialog .button-dark { min-height: 48px; margin-top: 6px; background: #f5f5f6; color: #111214; }
.auth-dialog .button-dark:hover { background: #dfdfe4; }
.auth-dialog .dialog-close { top: 8px; right: 8px; border-radius: 10px; }
.auth-dialog .dialog-close span { background: #b4b5ba; width: 18px; left: 15px; }
.auth-dialog .dialog-close:hover { background: #ffffff0a; }
.auth-password { display: block; position: relative; }
.auth-password input { padding-right: 64px; }
.password-toggle { position: absolute; right: 2px; top: 2px; height: 44px; min-width: 56px; border: 0; border-radius: 8px; background: transparent; color: #d7d7dc; font-size: 12px; }
.auth-dialog > p.auth-switch { margin-top: 18px; color: var(--night-muted); font-size: 13px; text-align: center; }
.auth-dialog > p.auth-legal { margin-top: 18px; color: var(--night-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.auth-switch button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.auth-dialog > p.auth-preview-note { margin-top: 14px; padding-top: 16px; border-top: 1px solid #303136; color: #a3a4ab; font-size: 11px; line-height: 1.6; text-align: center; }
.app-store-link { display: inline-block; border-radius: 8px; }
.app-store-link img { display: block; width: 144px; height: 48px; }

@media (min-width: 960px) {
  .header-shell { grid-template-columns: 208px minmax(0, 1fr) 208px; }
  .phone-fan { --fan-height: clamp(344px, 43.5svh, 500px); --fan-spread: clamp(123px, 14.8svh, 170px); }
  .hero-actions { width: 370px; }
  .desktop-actions { gap: 12px; }
  .desktop-actions > * { white-space: nowrap; flex-shrink: 0; }
  /* Match the live site's 11px phone float; resting left/right poses stay mirrored. */
  .fan-phone img { animation: desktop-phone-float var(--float) ease-in-out 1.1s infinite paused; }
  .stars-running .fan-phone img { animation-play-state: running; }
  @keyframes desktop-phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .desktop-nav { gap: 12px; }
}
@media (max-width: 959px) {
  :root, html[data-theme="black"] { --shell: calc(100% - 40px); }
  .site-header:not(.is-scrolled) .brand { left: 50%; transform: translateX(-50%); }
}
@media (min-width: 960px) and (max-height: 800px) {
  .phone-fan { --fan-height: clamp(246px, 37.5svh, 300px); --fan-spread: clamp(88px, 12.7svh, 102px); }
  .hero-reassurance { margin-top: 10px; }
}
@media (max-width: 699px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: min(350px, 100%); margin-inline: auto; gap: 10px; }
  .hero-actions .button { padding-inline: 10px; }
  .auth-dialog { padding: 52px 24px 24px; }
  .hero-reassurance { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-phone img { animation: none; translate: none; }
  .night-sky { animation: none; transform: none; }
  .night-sky span { animation: none; opacity: 1; translate: none; }
  .night-sky span::before { animation: none; opacity: .38; scale: none; }
}

/* Linktree-inspired organization in Marlo's charcoal world. */
.site-closing { padding: 64px 0 32px; }
.site-closing .faq-section { padding: 0; background: transparent; color: var(--night-ink); }
.site-closing .faq-shell {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 64px;
  width: var(--shell); margin-inline: auto; align-items: start;
}
.site-closing .section-intro { width: auto; margin: 0; text-align: left; }
.site-closing .section-intro h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.08; }
.site-closing .section-intro > p { font-size: 14px; line-height: 1.6; }
.site-closing .faq-list { width: 100%; margin: 0; border-top: 0; }
.site-closing .faq-list summary { min-height: 64px; padding-block: 18px; font-size: 16px; line-height: 1.5; }
.site-closing .faq-list details:first-child summary { padding-top: 0; min-height: 48px; }
.site-closing .faq-list p { line-height: 1.65; }
.footer-panel { width: var(--shell); margin: 56px auto 0; padding: 36px 40px 24px; background: #1b1c1f; border: 1px solid #34353a; border-radius: 24px; }
.footer-masthead { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 30px; }
.site-closing .footer-brand { flex-shrink: 0; width: 136px; }
.site-closing .footer-grid { width: 100%; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-closing .footer-column { gap: 0; }
.site-closing .footer-column h2 { margin-bottom: 10px; font-size: 13px; font-weight: 650; }
.site-closing .footer-column a, .site-closing .footer-column button { display: block; align-content: center; min-height: 44px; padding-block: 10px; font-size: 13px; line-height: 1.5; }
.site-closing .footer-column a:hover, .site-closing .footer-column button:hover { color: #fff; }
.footer-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-top: 32px; }
.footer-account-buttons, .footer-download-actions { display: flex; align-items: center; gap: 12px; }
.footer-account-buttons .button { min-height: 48px; padding-inline: 24px; }
.footer-account p { margin-top: 10px; color: var(--night-muted); font-size: 11px; line-height: 1.5; }
.footer-account .button-outline { border-color: #616269; color: var(--night-ink); }
.footer-account .button-outline:hover { background: #ffffff0a; }
.site-closing .footer-socials { gap: 8px; }
.site-closing .footer-socials a { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #2c2d32; color: #d7d7db; transition: background-color .2s ease, color .2s ease; }
.site-closing .footer-socials a:hover { background: #3c3d42; color: #fff; }
.footer-fineprint { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #ffffff10; }
.footer-fineprint p { margin: 0; color: var(--night-muted); font-size: 10px; line-height: 1.6; }
@media (min-width: 700px) and (max-width: 959px) {
  .site-closing .faq-shell { gap: 32px; }
  .footer-panel { padding-inline: 28px; }
  .site-closing .footer-grid { gap: 20px; }
  .site-closing .footer-column a { font-size: 12px; overflow-wrap: anywhere; }
  .footer-account-buttons .button { padding-inline: 16px; font-size: 13px; }
}
@media (max-width: 699px) {
  .site-closing { padding: 40px 0 20px; }
  .site-closing .faq-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-closing .section-intro h2 { font-size: 36px; }
  .site-closing .faq-list summary { font-size: 15px; }
  .footer-panel { margin-top: 36px; padding: 28px 22px 22px; border-radius: 20px; }
  .footer-masthead { display: grid; gap: 14px; padding-bottom: 30px; }
  .site-closing .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .site-closing .footer-column a { font-size: 12px; overflow-wrap: anywhere; }
  .footer-actions { flex-direction: column; gap: 24px; }
  .footer-account { width: 100%; }
  .footer-account-buttons { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }
  .footer-account-buttons .button { padding-inline: 8px; font-size: 12px; }
  .footer-download-actions { flex-wrap: wrap; gap: 16px; }
  .site-closing .footer-socials a { width: 44px; height: 44px; }
  .footer-fineprint { flex-direction: column; gap: 8px; margin-top: 24px; }
}
