/* Shared page chrome, footer, theme toggle, logo, backgrounds */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--background);
}

.page--clip {
  overflow: hidden;
}

.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  color: var(--foreground);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 768px) {
  .theme-toggle {
    top: 1.5rem;
    right: 1.5rem;
  }
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Corner glows */
.glow {
  pointer-events: none;
  position: absolute;
}

.glow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.glow--mobile {
  top: 0;
  left: -0.75rem;
  width: 439px;
  height: 227px;
  max-width: 110vw;
}

.glow--mobile img {
  transform: scale(2.4);
  object-position: top;
}

.glow--left {
  top: -3.5rem;
  left: -76px;
  width: 334px;
  height: 284px;
  display: none;
}

.glow--left img {
  transform: scale(2.9);
}

.glow--right {
  top: -3rem;
  right: -63px;
  width: 334px;
  height: 284px;
  display: none;
  transform: scaleY(-1) rotate(180deg);
}

.glow--right img {
  transform: scale(2.9);
}

.glow--left-light,
.glow--right-light {
  top: -3.5rem;
  width: 334px;
  height: 284px;
}

.glow--left-light {
  left: -76px;
}

.glow--left-light img,
.glow--right-light img {
  transform: scale(2.6);
}

.glow--right-light {
  top: -3rem;
  right: -63px;
  transform: scaleY(-1) rotate(180deg);
}

@media (min-width: 768px) {
  .glow--mobile {
    display: none;
  }

  .glow--left,
  .glow--right {
    display: block;
  }
}

.spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% -10%,
    var(--glow-spotlight),
    transparent 55%
  );
}

.page-main {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-main--padded {
  padding-bottom: 2.5rem;
}

.logo {
  position: relative;
  display: block;
  text-decoration: none;
}

.logo-lockup {
  position: relative;
  display: block;
  height: 58px;
  width: 329px;
  max-width: 100%;
  background: transparent;
}

@media (min-width: 768px) {
  .logo-lockup {
    height: 5rem;
    width: 454px;
  }
}

.logo-lockup__mark,
.logo-lockup__wordmark,
.logo-lockup__tagline {
  position: absolute;
  overflow: hidden;
}

.logo-lockup__mark {
  inset-block: 0;
  left: 0;
  width: 15.3%;
}

.logo-lockup__wordmark {
  top: 16.29%;
  right: 0.09%;
  bottom: 44.35%;
  left: 18.26%;
}

.logo-lockup__tagline {
  top: 67.51%;
  right: 0;
  bottom: 12.88%;
  left: 41.18%;
}

.logo-lockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--foreground);
}

.hero-copy p,
.hero-copy .lede {
  margin: 0;
  /*max-width: 366px;*/
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-copy .lede--desktop {
  display: none;
}

@media (min-width: 768px) {
  .hero-copy .lede--mobile {
    display: none;
  }

  .hero-copy .lede--desktop {
    display: block;
  }

  .hero-copy .lede--desktop p {
    margin: 0;
    white-space: nowrap;
    max-width: none;
  }
}

.landing-footer {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 0 1rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-footer);
}

.landing-footer__copy {
  margin: 0;
  order: 3;
}

.landing-footer__privacy {
  order: 2;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--muted-footer);
}

.landing-footer__privacy:hover {
  color: var(--foreground);
}

.landing-footer__social {
  display: flex;
  order: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.landing-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--surface);
  color: #666666;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

.landing-footer__social-link:hover {
  opacity: 0.85;
  color: var(--foreground);
}

.landing-footer__social-icon {
  display: block;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.landing-footer__social-icon--facebook {
  -webkit-mask-image: url("../assets/images/social/facebook.svg");
  mask-image: url("../assets/images/social/facebook.svg");
}

.landing-footer__social-icon--instagram {
  -webkit-mask-image: url("../assets/images/social/instagram.svg");
  mask-image: url("../assets/images/social/instagram.svg");
}

.landing-footer__social-icon--x {
  -webkit-mask-image: url("../assets/images/social/x.svg");
  mask-image: url("../assets/images/social/x.svg");
}

.landing-footer__social-icon--tiktok {
  -webkit-mask-image: url("../assets/images/social/tiktok.svg");
  mask-image: url("../assets/images/social/tiktok.svg");
}

[data-theme="dark"] .landing-footer__social-link,
:root:not([data-theme]) .landing-footer__social-link {
  color: rgba(169, 160, 147, 0.85);
}

[data-theme="light"] .landing-footer__social-link {
  color: #666666;
}
@media (min-width: 768px) {
  .landing-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 1rem;
  }

  .landing-footer__copy {
    order: 1;
    text-align: left;
    flex: 1;
  }

  .landing-footer__social {
    order: 2;
    flex: 0 0 auto;
  }

  .landing-footer__privacy {
    order: 3;
    flex: 1;
    text-align: right;
  }
}

.footer-simple {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 0 1rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-footer);
}

.footer-simple p {
  margin: 0;
}

.footer-simple .landing-footer__social {
  order: 0;
}

@media (min-width: 768px) {
  .footer-simple {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 2rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
}

.back-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--surface);
}

.back-link__icon span {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  overflow: hidden;
}

.back-link__icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 12px;
  transform: translate(-50%, -50%);
}

/* Index (waitlist) layout */
.home-stack {
  display: flex;
  width: 100%;
  max-width: 512px;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 3rem;
}

.home-logo {
  display: flex;
  width: 100%;
  justify-content: center;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .home-logo {
    position: absolute;
    top: 5rem;
    left: 50%;
    width: auto;
    padding-top: 0;
    transform: translateX(-50%);
  }

  .home-stack {
    flex: 1;
    justify-content: center;
    padding-top: 0;
  }

  .hero-copy h1 {
    white-space: nowrap;
  }
}

/* Thank-you / free-lesson shared */
.content-top {
  display: flex;
  width: 100%;
  max-width: 512px;
  flex-direction: column;
  align-items: center;
  gap: 8rem;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .content-top {
    padding-top: 5rem;
  }
}

.video-block {
  display: flex;
  width: 100%;
  max-width: 390px;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.video-block p {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .video-block {
    max-width: 876px;
    margin-top: 3rem;
  }

  .video-block p {
    max-width: 624px;
  }
}

.comment-wrap {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .comment-wrap {
    margin-top: 3rem;
  }
}

/* Link expired */
.expired-stack {
  display: flex;
  width: 100%;
  max-width: 512px;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
}

.expired-stack .lede-split {
  max-width: 400px;
}

.expired-stack .lede-split p {
  margin: 0;
}

@media (min-width: 768px) {
  .expired-stack {
    gap: 4rem;
    padding-top: 5rem;
  }

  .expired-stack .lede-split {
    max-width: none;
  }
}

/* Privacy */
.privacy-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 824px;
  margin: 0 auto;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 4rem 1.5rem 2.5rem;
}

@media (min-width: 768px) {
  .privacy-wrap {
    padding-top: 5rem;
  }
}

.privacy-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: var(--foreground);
}

.privacy-section h2 {
  margin: 0;
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.23;
}

.privacy-section p,
.privacy-intro {
  margin: 0 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.privacy-section p + p {
  margin-top: 0;
}

.privacy-section ul {
  margin: 0;
  padding: 0;
}

.privacy-section li {
  margin-left: 1.5rem;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.5;
}

.privacy-section a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-note {
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 30%, transparent);
  padding-top: 0.75rem;
}

.privacy-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
