html.i18n-pending body { visibility: hidden; }
:root {
  /* Bold Headspace/Buck-inspired palette */
  --coral: #F28B6E;
  --coral-light: #FFB59A;
  --coral-soft: #FFF0EB;
  --navy: #1E2A5E;
  --navy-light: #2B4570;
  --teal: #5BBFB5;
  --teal-light: #B8E8E0;
  --teal-soft: #E8F8F5;
  --yellow: #FFB627;
  --yellow-light: #FFD470;
  --yellow-soft: #FFF7E0;
  --pink: #F28BAE;
  --pink-light: #FFCCD5;
  --pink-soft: #FFF0F3;
  --cream: #FFF5F0;
  --warm-dark: #1E2A3A;
  --warm-mid: #5A6577;
  --warm-light: #94A0B0;
  --white: #FFFFFF;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --header-bar: 71px;
}

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

body {
  font-family: 'Noto Sans TC', 'Quicksand', -apple-system, sans-serif;
  color: var(--warm-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== LANG TOGGLE ===== */
.lang-toggle {
  position: fixed;
  top: 0;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-bar);
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 2px 20px rgba(61,43,51,0.08);
}
.lang-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 36px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-light);
  transition: all 0.3s ease;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--coral);
  color: var(--white);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-bar);
  padding: 0 168px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,250,245,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 2px 30px rgba(61,43,51,0.06);
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--warm-mid);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--coral);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--coral-soft) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
}
.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-light);
  color: var(--coral);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--warm-dark);
}
.hero h1 .accent {
  color: var(--coral);
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--warm-mid);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-key-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
}

.hero-illustration {
  margin: 48px auto 0;
  max-width: 360px;
}
.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(242,139,110,0.35);
}
.btn-primary:hover {
  background: #E07A5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242,139,110,0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--coral);
  border: 2px solid var(--coral);
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: inherit;
}
.btn-secondary:hover {
  background: var(--pink-soft);
  border-color: #E07A5F;
}
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 40px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--warm-mid);
  line-height: 1.8;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.about-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease;
}
.about-card:hover {
  transform: translateY(-4px);
}
.about-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--pink-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card .icon svg {
  width: 40px;
  height: 40px;
}
.about-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.about-card p {
  font-size: 15px;
  color: var(--warm-mid);
  line-height: 1.7;
}

/* ===== JOURNEY ===== */
.journey {
  position: relative;
  overflow: hidden;
  background: #FFF8F4;
}
.journey::before,
.journey::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.journey::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 181, 154, 0.38) 0%, transparent 70%);
}
.journey::after {
  width: 240px;
  height: 240px;
  bottom: -70px;
  left: -60px;
  background: radial-gradient(circle, rgba(184, 232, 224, 0.5) 0%, transparent 70%);
}
.journey .section-header,
.journey-timeline {
  position: relative;
  z-index: 1;
}
.journey .section-header {
  margin-bottom: 28px;
}
#journey .section-label,
#journey .phase-content .weeks {
  color: var(--navy);
}
.journey-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.journey-phase {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  transition: transform 0.3s ease;
}
.journey-phase:hover {
  transform: translateY(-2px);
}
.phase-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.phase-1 .phase-badge { background: #FDE4DA; }
.phase-2 .phase-badge { background: #D8F3EF; }
.phase-3 .phase-badge { background: #FFF1C9; }
.phase-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.phase-content .trimester {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--warm-mid);
  margin-bottom: 4px;
}
.phase-content .weeks {
  font-size: 14px;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 12px;
}
.phase-content p {
  font-size: 15px;
  color: var(--warm-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.phase-tag {
  background: var(--coral-soft);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== WEEKLY MOVEMENT ===== */
.movement {
  background: var(--teal-soft);
}
.movement .section-header {
  margin-bottom: 28px;
}
.movement-figure {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  background: none;
}
.movement-lang--en { display: none; }
html[lang="en"] .movement-lang--zh { display: none; }
html[lang="en"] .movement-lang--en { display: block; }
.movement-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  aspect-ratio: 1600 / 298;
}
.movement-note {
  max-width: 36em;
  margin: 22px auto 0;
  text-align: center;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .movement-figure img { aspect-ratio: 800 / 1257; }
}

/* ===== MINI-DIARY ===== */
.diary { background: var(--white); }
.diary .section-header { margin-bottom: 28px; }
.diary .section-header p + p { margin-top: 14px; }
.diary-show {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.85fr);
  gap: 36px;
  max-width: 920px;
  margin: 0 auto 8px;
  align-items: center;
}
.diary-frame {
  margin: 0;
  padding: 14px;
  background: var(--cream);
  border-radius: 28px;
  box-shadow: 0 10px 36px rgba(30, 42, 94, 0.06);
}
.diary-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--white);
  aspect-ratio: 578 / 905;
}
.diary-lang--en { display: none; }
html[lang="en"] .diary-lang--zh { display: none; }
html[lang="en"] .diary-lang--en { display: block; }
.diary-example {
  margin: 12px 4px 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--warm-mid);
}
.diary-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.diary-points li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.diary-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.diary-fine {
  max-width: 36em;
  margin: 18px auto 22px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--warm-mid);
}
.week-page .diary { background: transparent; margin-top: 36px; }
.week-page .diary-frame { background: var(--white); }
@media (max-width: 768px) {
  .diary-show { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .diary-frame img { aspect-ratio: 350 / 933; }
  html[lang="en"] .diary-frame img { aspect-ratio: 350 / 991; }
}
.week-page .diary .section-header { margin-bottom: 24px; }

/* ===== PRICING ===== */
.pricing {
  background: var(--white);
}
#pricing,
#journey {
  scroll-margin-top: 88px;
}

.about-page h1 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--warm-dark);
}
.about-hero { text-align: center; }
.about-orb {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(255, 182, 39, 0.28);
}
.about-orb img { width: 118px; height: auto; }
.about-page .lede {
  font-size: 17px;
  color: var(--warm-mid);
  line-height: 1.75;
  margin: 0 0 12px;
  text-align: left;
}
.about-page h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 36px 0 14px;
  color: var(--navy);
}
.moment-stack { display: grid; gap: 10px; }
.moment {
  margin: 0;
  background: var(--white);
  border-radius: 1.2em;
  padding: 14px 16px;
  color: var(--warm-dark);
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(30, 42, 94, 0.05);
}
.about-mascots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.about-mascots .orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.about-mascots img { width: 64px; height: auto; }
.orb-coral { background: var(--coral-soft); }
.orb-teal { background: var(--teal-soft); }
.orb-yellow { background: var(--yellow-soft); }
.about-links { display: grid; gap: 4px; margin-top: 8px; }
.about-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-links a:hover { color: var(--coral); }
.about-end { text-align: center; margin-top: 36px; }
.about-end .quiet-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--warm-mid);
  font-weight: 600;
}
.about-faq { margin-top: 12px; }
.about-faq h2 { text-align: left; }
.pricing .section-header .btn-secondary {
  margin-top: 8px;
}
.pricing-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.popular {
  background: var(--white);
  border-color: var(--coral);
  box-shadow: 0 16px 40px rgba(242,139,110,0.18);
  transform: translateY(-10px);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-card .price-desc {
  font-size: 14px;
  color: var(--warm-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 4.8em;
}
.week-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}
.price-block {
  margin-bottom: 8px;
}
.price-was {
  color: var(--warm-light);
  text-decoration: line-through;
  font-size: 14px;
  min-height: 1.4em;
  margin-bottom: 4px;
}
.early-pill {
  display: inline-block;
  background: var(--yellow-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.1;
}
.price-features {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--warm-mid);
  line-height: 1.55;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.price-card.popular .price-features li::before {
  background: var(--coral);
}
.price-card .btn-primary,
.plan-link {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}
.plan-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 8px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
}
.plan-link:hover { color: var(--coral); }
/* Gumroad's overlay script appends an empty logo span to product links. */
.price-card .btn-primary > .logo-full,
.price-card a[data-plan] > .logo-full,
.price-card a[data-plan] .logo-full {
  display: none;
}
.pricing-currency {
  text-align: center;
  font-size: 13px;
  color: var(--warm-light);
  margin: -28px auto 28px;
}
.pricing-note {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--warm-mid);
}
.faq {
  max-width: 760px;
  margin: 64px auto 0;
}
.faq h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
}
.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
  color: var(--warm-mid);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: var(--warm-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 40px;
  text-align: center;
}
footer .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 16px;
}
footer p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 32px;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
footer .footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
footer .footer-links a:hover {
  color: var(--coral);
}
footer .footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
footer .footer-contact a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
}
footer .footer-contact a:hover {
  text-decoration: underline;
}
footer .footer-disclaimer {
  margin: 0 auto 20px;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
footer .copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===== FLOATING ELEMENTS ===== */
.float-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 2s; }
.float-delay-3 { animation-delay: 4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  nav { padding-left: 16px; }
  .nav-logo { font-size: 15px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 480px) {
  footer { padding: 40px 16px 28px; }
  footer .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    justify-items: stretch;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  footer .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    line-height: 1.3;
    text-align: center;
  }
}
@media (max-width: 768px) {
  :root { --header-bar: 58px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .journey-phase {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card.popular { transform: none; }
  .price-card .price-desc { min-height: 0; }
  .lang-toggle { right: 16px; }
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card.popular { order: -1; transform: none; }
  .price-card .price-desc { min-height: 0; }
}

/* ===== ANIMATIONS ===== */
/* Visible without scroll-reveal. Opacity 0 hid the stages when
   IntersectionObserver did not run (slow load, iOS, reduced motion). */
.fade-in,
.fade-in.visible,
#journey,
#journey .section-header,
#journey .journey-phase {
  opacity: 1;
  transform: none;
  visibility: visible;
}
