/* ============================================================
   global.css — InnerTally Affirmation Counter
   Shared styles for ALL pages (homepage uses inline CSS,
   sub-pages load this file)
   Design system extracted from index.html by design-system-expert
   ============================================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Background Gradient */
  --bg-gradient: linear-gradient(160deg, #FFF5F0 0%, #FFE8DC 30%, #FFDCCB 60%, #FFCFE0 100%);

  /* Brand / Primary Colors */
  --color-peach: #FFC372;
  --color-blossom: #FF8EB3;
  --color-berry: #C05070;
  --color-mauve: #AD7D9E;
  --color-light-pink: #FDA4CE;

  /* Text Colors */
  --text-dark: #3D2B2B;
  --text-body: #6B4E4E;
  --text-muted: #8B6B6B;

  /* Surface / Glassmorphism */
  --surface-header: rgba(255, 245, 240, 0.85);
  --surface-section-alt: rgba(255, 255, 255, 0.4);
  --surface-card: rgba(255, 255, 255, 0.7);
  --surface-card-bright: rgba(255, 255, 255, 0.75);
  --surface-badge: rgba(255, 255, 255, 0.6);
  --surface-button-sec: rgba(255, 255, 255, 0.7);
  --surface-mobile-nav: rgba(255, 245, 240, 0.95);
  --surface-footer-top: rgba(255, 245, 240, 0.5);
  --surface-footer-bottom: rgba(255, 232, 220, 0.8);

  /* CTA Card Gradient */
  --cta-gradient: linear-gradient(135deg, rgba(255, 195, 114, 0.15) 0%, rgba(255, 142, 179, 0.15) 100%);

  /* Primary Button Gradient */
  --btn-primary-gradient: linear-gradient(135deg, #FFC372 0%, #FF8EB3 100%);

  /* Logo Dot Gradient */
  --logo-dot-gradient: radial-gradient(circle, #FFC372 0%, #FF8EB3 100%);

  /* Hero H1 Gradient Text */
  --hero-text-gradient: linear-gradient(135deg, #FFC372 0%, #C05070 100%);

  /* Borders */
  --border-subtle: rgba(192, 80, 112, 0.08);
  --border-light: rgba(192, 80, 112, 0.1);
  --border-card: rgba(255, 195, 114, 0.15);
  --border-card-warm: rgba(255, 195, 114, 0.2);
  --border-badge: rgba(255, 195, 114, 0.25);
  --border-button-sec: rgba(192, 80, 112, 0.15);
  --border-dashed: rgba(192, 80, 112, 0.3);

  /* Shadows */
  --shadow-button: 0 8px 28px rgba(255, 142, 179, 0.35);
  --shadow-button-hover: 0 12px 36px rgba(255, 142, 179, 0.45);
  --shadow-nav-cta: 0 4px 16px rgba(255, 142, 179, 0.3);
  --shadow-nav-cta-hover: 0 6px 20px rgba(255, 142, 179, 0.4);
  --shadow-card-hover: 0 12px 40px rgba(192, 80, 112, 0.1);
  --shadow-feature-hover: 0 8px 28px rgba(192, 80, 112, 0.08);
  --shadow-faq-hover: 0 4px 20px rgba(192, 80, 112, 0.06);
  --shadow-logo-dot: 0 0 12px rgba(255, 142, 179, 0.6);
  --shadow-badge-dot: 0 0 8px rgba(255, 142, 179, 0.8);

  /* Theme Color */
  --theme-color: #FFC372;

  /* Font Stack */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-berry); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-mauve); }

/* ===== Layout ===== */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-berry);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--logo-dot-gradient);
  box-shadow: var(--shadow-logo-dot);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-berry); }
.nav-links a[aria-current="page"],
.nav-links a.active {
  color: var(--color-berry);
  font-weight: 600;
}
.nav-cta {
  background: var(--btn-primary-gradient);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-nav-cta);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-nav-cta-hover);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-body);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-berry); }
.breadcrumb span { margin: 0 6px; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-primary-gradient);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-button);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-button-sec);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-berry);
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid var(--border-button-sec);
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(192, 80, 112, 0.3);
  color: var(--color-berry);
}

/* ===== Section Base ===== */
section { padding: 72px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-berry);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===== Page Content ===== */
.page-content { padding: 56px 0 80px; }

/* ===== Landing / practice preview ===== */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: 72px 0 52px;
}
.landing-hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0 20px;
}
.landing-hero-copy .lead { max-width: 590px; font-size: 1.18rem; line-height: 1.7; color: var(--text-body); }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin-top: 34px;
  max-width: 620px;
}
.landing-trust li { color: var(--text-body); font-size: .88rem; line-height: 1.4; }
.landing-trust strong { display: block; color: var(--text-dark); font-size: .95rem; margin-bottom: 3px; }
.practice-preview-card {
  display: block;
  color: var(--text-dark);
  padding: 16px;
  border: 1px solid rgba(255, 195, 114, .34);
  border-radius: 28px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 24px 60px rgba(125, 54, 85, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.practice-preview-card:hover { color: var(--text-dark); transform: translateY(-4px); box-shadow: 0 30px 72px rgba(125, 54, 85, .2); }
.practice-preview-card:focus-visible { outline: 3px solid rgba(145,58,96,.72); outline-offset: 5px; }
.practice-preview-visual {
  min-height: 250px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(70,24,70,.06), rgba(70,24,70,.18)), url('/assets/manifestation-background-v2.webp') center/cover;
}
.practice-preview-visual::before {
  content: "";
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.96), rgba(255,196,208,.64) 35%, rgba(120,42,101,.9) 76%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.16), 0 0 48px rgba(255,176,202,.7);
}
.practice-preview-visual::after {
  content: "";
  position: absolute;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 0 26px rgba(255,255,255,.28);
}
.practice-preview-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--color-berry);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.practice-preview-example {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(61,43,43,.7);
  color: #fff;
  font-size: .78rem;
}
.practice-preview-meta { padding: 18px 6px 6px; }
.practice-preview-meta h2 { font-size: 1.35rem; margin: 0 0 6px; }
.practice-preview-meta p { color: var(--text-body); margin: 0 0 14px; line-height: 1.5; }
.practice-preview-meta .preview-link { font-weight: 700; color: var(--color-berry); }

/* ===== Practice preview animation =====
   This is a decorative, local-only explanation of the interaction. It never
   reads practice state, affirmation text, IDs, or saved counts. */
.practice-preview-animation { isolation: isolate; pointer-events: none; }
.preview-demo {
  position: relative;
  width: min(100%, 320px);
  height: 218px;
  color: #fff;
}
.preview-demo-input {
  position: absolute;
  inset: 4px 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 12px;
  background: rgba(63, 33, 66, .48);
  box-shadow: 0 8px 20px rgba(55, 25, 65, .14);
  font-size: .79rem;
  letter-spacing: .01em;
}
.preview-demo-input-text { display: block; width: 0; overflow: hidden; white-space: nowrap; animation: previewType 7s steps(24, end) infinite; }
.preview-demo-caret { width: 2px; height: 16px; flex: 0 0 2px; border-radius: 2px; background: rgba(255,255,255,.9); animation: previewCaret 7s steps(1, end) infinite; }
.preview-demo-energy {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 112px;
  height: 112px;
  overflow: hidden;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: radial-gradient(circle at 31% 22%, rgba(255,255,255,.98), rgba(255,201,215,.78) 29%, rgba(186,78,123,.87) 67%, rgba(91,29,79,.94) 100%);
  box-shadow: 0 0 0 8px rgba(255,255,255,.14), 0 0 38px rgba(255,177,205,.7), inset 0 0 24px rgba(255,255,255,.36);
}
.preview-demo-energy::before { content: ""; position: absolute; inset: 10px 16px auto 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.52); filter: blur(4px); z-index: 3; }
.preview-demo-liquid { position: absolute; inset: auto 0 0; height: 100%; transform-origin: bottom; transform: scaleY(.12); background: linear-gradient(180deg, rgba(255,174,205,.88), rgba(133,37,102,.96)); animation: previewLiquid 7s ease-in-out infinite; }
.preview-demo-liquid::before { content: ""; position: absolute; left: -12%; right: -12%; top: -4px; height: 10px; border-radius: 50%; background: rgba(255,238,247,.86); box-shadow: 0 1px 8px rgba(255,255,255,.55); }
.preview-demo-counts, .preview-demo-readout-counts { position: absolute; inset: 0; display: grid; place-items: center; }
.preview-demo-counts > span, .preview-demo-readout-counts > span { position: absolute; opacity: 0; font-variant-numeric: tabular-nums; }
.preview-demo-counts > span { z-index: 4; font-size: 2.1rem; font-weight: 800; text-shadow: 0 2px 10px rgba(60,20,65,.28); animation: previewCount 7s linear infinite; }
.preview-demo-counts > span:nth-child(1), .preview-demo-readout-counts > span:nth-child(1) { animation-delay: 0s; }
.preview-demo-counts > span:nth-child(2), .preview-demo-readout-counts > span:nth-child(2) { animation-delay: 1.55s; }
.preview-demo-counts > span:nth-child(3), .preview-demo-readout-counts > span:nth-child(3) { animation-delay: 2.85s; }
.preview-demo-counts > span:nth-child(4), .preview-demo-readout-counts > span:nth-child(4) { animation-delay: 4.15s; }
.preview-demo-ripple { position: absolute; inset: 12px; z-index: 2; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; opacity: 0; animation: previewRipple 7s ease-out infinite; }
.preview-demo-readout { position: absolute; left: 50%; bottom: 5px; display: flex; align-items: baseline; gap: 3px; transform: translateX(-50%); color: rgba(255,255,255,.94); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.preview-demo-readout-label { margin-right: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.preview-demo-readout-counts { position: relative; inset: auto; width: 18px; height: 26px; display: inline-block; }
.preview-demo-readout-counts > span { inset: 0; display: grid; place-items: center; font-size: 1.3rem; animation: previewCount 7s linear infinite; }
.preview-demo-target { opacity: .78; }
.preview-demo-plus { position: absolute; left: calc(100% + 8px); bottom: 7px; color: #fff2b8; font-size: .82rem; opacity: 0; animation: previewPlus 7s ease-out infinite; }
.preview-demo-hint { position: absolute; right: 2px; top: 58px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(61,43,43,.42); font-size: .66rem; letter-spacing: .04em; opacity: .88; }
@keyframes previewType { 0%, 9% { width: 0; } 34%, 72% { width: 100%; } 84%, 100% { width: 0; } }
@keyframes previewCaret { 0%, 34% { opacity: 1; } 35%, 72% { opacity: 0; } 73%, 100% { opacity: 1; } }
@keyframes previewLiquid { 0%, 20% { transform: scaleY(.12); } 37% { transform: scaleY(.34); } 53% { transform: scaleY(.52); } 69% { transform: scaleY(.69); } 84%, 91% { transform: scaleY(.82); } 100% { transform: scaleY(.12); } }
@keyframes previewCount { 0%, 17% { opacity: 1; transform: translateY(0) scale(1); } 20%, 100% { opacity: 0; transform: translateY(-3px) scale(1.08); } }
@keyframes previewRipple { 0%, 18% { opacity: 0; transform: scale(.55); } 24% { opacity: .9; } 42%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes previewPlus { 0%, 20% { opacity: 0; transform: translateY(5px) scale(.84); } 25% { opacity: 1; transform: translateY(0) scale(1); } 38%, 100% { opacity: 0; transform: translateY(-8px) scale(1.06); } }

.practice-entry-card .preview-demo { height: 170px; transform: scale(.82); transform-origin: center top; margin-bottom: -28px; }
.practice-entry-card .preview-demo-input { inset: 0 0 auto; }
.practice-entry-card .preview-demo-energy { top: 48px; width: 92px; height: 92px; }
.practice-entry-card .preview-demo-hint { top: 51px; }
.practice-entry-card .practice-preview-example { bottom: 10px; }

.explore-section { padding: 36px 0 72px; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.explore-card { display:block; padding: 24px; border: 1px solid var(--border-card); border-radius: 18px; background: rgba(255,255,255,.52); }
.explore-card h3 { color: var(--text-dark); margin: 0 0 6px; font-size: 1.08rem; }
.explore-card p { color: var(--text-body); line-height: 1.55; margin: 0; }
.practice-entry-card { display: grid; gap: 12px; padding: 22px; margin-top: 28px; border-radius: 24px; border: 1px solid var(--border-card); background: rgba(255,255,255,.62); box-shadow: 0 18px 45px rgba(125,54,85,.1); }
.practice-entry-card .practice-preview-visual { min-height: 180px; }
.practice-entry-card .practice-preview-visual::before { width: 112px; height: 112px; }
.practice-entry-card .practice-preview-visual::after { width: 142px; height: 142px; }
.practice-entry-card h2 { margin: 0; font-size: 1.3rem; }
.practice-entry-card p { margin: 0; color: var(--text-body); }
.practice-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.practice-entry-actions a { min-height: 44px; display: inline-flex; align-items: center; }

/* ===== Real Energy Canvas preview =====
   This reuses the same glass/liquid/pearl renderer as the private practice
   screen, but mounts it with fixed demo values and no repository state. */
.practice-preview-visual.practice-preview-animation::before,
.practice-preview-visual.practice-preview-animation::after { display: none; }
.practice-preview-visual.practice-preview-animation { min-height: 336px; padding: 12px 14px 10px; overflow: hidden; background: linear-gradient(rgba(255,252,246,.02),rgba(255,190,211,.05)), url('/assets/manifestation-background-v2.webp') center/cover; box-shadow: inset 0 0 42px rgba(255,255,255,.3); }
.energy-preview-stage { position: relative; width: min(100%, 340px); height: 310px; margin: 0 auto; isolation: isolate; }
.energy-preview-stage::before { display: none !important; }
.energy-preview-stage canvas { position: absolute; left: 50%; top: 42px; width: 194px; height: 194px; transform: translateX(-50%); display: block; border-radius: 50%; }
.energy-preview-input { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 3px; min-height: 34px; padding: 4px 8px; overflow: hidden; color: rgba(112,51,79,.9); font-size: 1.12rem; font-weight: 750; text-shadow: 0 1px 10px rgba(255,250,239,.92); }
.energy-preview-input span { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; }
.energy-preview-input i { width: 2px; height: 15px; flex: 0 0 2px; border-radius: 2px; background: rgba(145,58,96,.72); animation: realPreviewCaret 1.1s steps(1,end) infinite; }
.energy-preview-status { position: absolute; z-index: 3; left: 50%; bottom: 28px; display: grid; justify-items: center; gap: 2px; transform: translateX(-50%); }
.energy-preview-percent { color: #922f59; font-family: "Bodoni MT", "Times New Roman", serif; font-size: .92rem; font-weight: 700; line-height: .9; letter-spacing: .02em; text-shadow: 0 0 10px rgba(255,247,221,.92); }
.energy-preview-readout { position: relative; display: flex; align-items: baseline; justify-content: center; min-width: 92px; color: rgba(142,49,87,.94); font-family: "Bodoni MT", "Times New Roman", serif; font-size: 2.18rem; font-weight: 700; line-height: .86; letter-spacing: -.035em; text-shadow: 0 0 10px rgba(255,248,219,.86), 0 2px 14px rgba(115,45,80,.16); white-space: nowrap; }
.energy-preview-readout small { margin-left: 2px; color: rgba(112,51,79,.76); font-family: inherit; font-size: .62em; font-weight: 500; letter-spacing: 0; }
.practice-preview-meta .practice-preview-example,
.practice-entry-card .practice-preview-example { position: static; display: inline-block; margin-bottom: 8px; padding: 0; border-radius: 0; background: transparent; color: var(--color-berry); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.practice-entry-card .practice-preview-visual.practice-preview-animation { min-height: 210px; }
.practice-entry-card .energy-preview-stage { height: 194px; transform: scale(.88); transform-origin: center top; margin-bottom: -12px; }
.practice-entry-card .energy-preview-stage canvas { top: 18px; width: 120px; height: 120px; }
.practice-entry-card .energy-preview-readout { bottom: 0; }
@keyframes realPreviewCaret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ===== Four-stage landing flow =====
   The stage host carries data-flow-stage="input|count|cometrue|card". Each
   layer opts in for the stages it belongs to, so only one story beat is visible
   at a time and the sphere stays put underneath. */
.energy-preview-stage .flow-cometrue,
.energy-preview-stage .flow-card { position: absolute; inset: 0; z-index: 4; display: grid; opacity: 0; visibility: hidden; transition: opacity .34s ease; }
.energy-preview-stage[data-flow-stage="cometrue"] .flow-cometrue,
.energy-preview-stage[data-flow-stage="card"] .flow-card { opacity: 1; visibility: visible; }

/* The caret only makes sense while the phrase is being typed. */
.energy-preview-stage:not([data-flow-stage="input"]) .energy-preview-input i { opacity: 0; }

/* Counting is the only stage where the live readout is the point. It stays
   visible through COME TRUE so the confirmation reads against a full sphere. */
.energy-preview-stage[data-flow-stage="card"] .energy-preview-status,
.energy-preview-stage[data-flow-stage="card"] .energy-preview-input { opacity: 0; transition: opacity .3s ease; }
.energy-preview-stage[data-flow-stage="card"] canvas { opacity: 0; transition: opacity .3s ease; }

.flow-cometrue { place-items: end center; padding-bottom: 92px; }
.flow-cometrue-button { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(192,80,112,.5); background: rgba(255,252,247,.94); color: #922f59; font-size: .74rem; font-weight: 800; letter-spacing: .1em; box-shadow: 0 8px 22px rgba(146,47,89,.22); animation: flowComeTruePress 2s ease-in-out infinite; }

/* A miniature of the v2 share card: same stacked order (label, affirmation,
   big count, AFFIRMATIONS, DAY line, date range) so the landing page previews
   the artifact the user actually receives. */
.flow-card { place-items: start center; padding: 6px 16px 50px; background: rgba(255,246,240,.2); text-align: center; }
.flow-card img { display: block; width: auto; height: min(100%, 250px); max-width: 100%; border-radius: 14px; box-shadow: 0 14px 34px rgba(125,54,85,.22); }
.flow-card-label { color: #9c3156; font-size: .6rem; font-weight: 800; letter-spacing: .22em; }
.flow-card-affirmation { margin: 6px 0 4px; max-width: 15em; color: #8e3157; font-family: Georgia, "Times New Roman", serif; font-size: .92rem; line-height: 1.32; }
.flow-card-count { color: #9c3156; font-family: "Bodoni MT", "Times New Roman", serif; font-size: 2.5rem; font-weight: 700; line-height: 1; }
.flow-card-unit { color: #9c3156; font-size: .54rem; font-weight: 800; letter-spacing: .18em; }
.flow-card-unit + .flow-card-day { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(194,128,78,.55); min-width: 8em; }
.flow-card-day { color: #9c3156; font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.flow-card-date { color: #9c3156; font-size: .6rem; font-weight: 700; letter-spacing: .09em; }
.flow-card-brand { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: rgba(156,49,86,.66); font-size: .74rem; line-height: 1; text-align: left; }
.flow-card-brand-mark { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: radial-gradient(circle at 28% 18%, #fff8e8 0%, #ffd79e 34%, #ffadbc 68%, #f385b6 100%); box-shadow: 0 3px 12px rgba(255,184,208,.24); position: relative; overflow: hidden; }
.flow-card-brand-mark::before { content: ""; position: absolute; left: 2px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.82), rgba(255,255,255,0)); }
.flow-card-brand-mark::after { content: ""; position: absolute; inset: 5px; border: 2px solid rgba(255,241,210,.72); border-left: 0; border-right: 0; transform: rotate(-10deg); border-radius: 50%; filter: blur(.25px); }
.flow-card-brand strong { display: block; font-size: .72rem; font-weight: 800; }

/* Step rail: names the stage in words, so the animation is legible even to
   someone who does not recognise the sphere. */
.flow-steps { position: absolute; z-index: 5; left: 50%; bottom: -2px; display: flex; gap: 5px; transform: translateX(-50%); }
.flow-steps span { padding: 3px 8px; border-radius: 999px; background: rgba(255,252,247,.72); color: rgba(112,51,79,.62); font-size: .56rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.energy-preview-stage[data-flow-stage="input"] [data-flow-step="input"],
.energy-preview-stage[data-flow-stage="count"] [data-flow-step="count"],
.energy-preview-stage[data-flow-stage="cometrue"] [data-flow-step="cometrue"],
.energy-preview-stage[data-flow-stage="card"] [data-flow-step="card"] { background: rgba(192,80,112,.92); color: #fff8f2; }

@keyframes flowComeTruePress { 0%, 100% { transform: scale(1); } 46% { transform: scale(.94); } }

/* Narrow screens: the card and the step rail are the first things to overflow,
   so they shrink rather than clip. */
@media (max-width: 560px) {
  .practice-preview-visual.practice-preview-animation { min-height: 278px; padding: 10px 10px 8px; }
  .energy-preview-stage { width: min(100%, 300px); height: 258px; }
  .energy-preview-stage canvas { top: 38px; width: 156px; height: 156px; }
  .energy-preview-input { min-height: 30px; font-size: 1rem; }
  .energy-preview-status { bottom: 24px; }
  .energy-preview-percent { font-size: .82rem; }
  .energy-preview-readout { font-size: 1.92rem; }
  .flow-cometrue { padding-bottom: 78px; }
  .flow-card { padding: 4px 14px 44px; }
  .flow-card img { height: min(100%, 206px); }
  .flow-steps span { padding: 2px 6px; font-size: .52rem; }
  .flow-card-affirmation { font-size: .84rem; }
  .flow-card-count { font-size: 2.1rem; }
  .flow-card-brand { margin-bottom: 6px; transform: scale(.92); transform-origin: top center; }
}

/* ===== Page Header (sub-page decorative header) ===== */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header-bg-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
  top: -50px;
  right: -50px;
  background: radial-gradient(circle, #FFC372 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.page-header .lead {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== CTA Module ===== */
.cta-box {
  margin-top: 48px;
  padding: 48px 40px;
  text-align: center;
  background: var(--cta-gradient);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid var(--border-badge);
  position: relative;
  z-index: 1;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 32px;
}

/* ===== FAQ Items — Static (article pages) ===== */
.faq-item {
  background: var(--surface-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-faq-hover); }
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--btn-primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 32px;
}

/* ===== FAQ Accordion (FAQ page only) ===== */
.faq-accordion-item {
  background: var(--surface-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-accordion-item:hover {
  box-shadow: var(--shadow-faq-hover);
}
.faq-accordion-item[aria-expanded="true"] {
  box-shadow: 0 4px 20px rgba(192, 80, 112, 0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: inherit;
}
.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--btn-primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-q-text { flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-accordion-item[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 28px 24px 64px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
}
.faq-answer p:last-child { margin-bottom: 0; }

.not-found-main { text-align: center; padding: 80px 0; }
.not-found-code { font-size: 3rem; }
.not-found-links { margin-bottom: 24px; }

/* ===== Footer (4-Column) ===== */
.site-footer {
  background: linear-gradient(180deg, var(--surface-footer-top) 0%, var(--surface-footer-bottom) 100%);
  border-top: 1px solid var(--border-light);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo a { font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--color-berry); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--color-berry); }

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-primary-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-nav-cta);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-nav-cta-hover);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes energyPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
@keyframes particleFly {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(30px, -20px) scale(1.5); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .landing-hero { grid-template-columns: 1fr; padding: 44px 0 28px; gap: 30px; }
  .landing-hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .practice-preview-visual { min-height: 220px; }
  .explore-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface-mobile-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta {
    display: flex;
    margin-top: 8px;
    justify-content: center;
  }
  .page-content { padding: 40px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .landing-trust { grid-template-columns: 1fr; gap: 10px; }
  .landing-hero-actions > * { width: 100%; justify-content: center; }
  .practice-preview-card { border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .practice-preview-animation .preview-demo-input-text { width: 100%; }
  .practice-preview-animation .preview-demo-caret { opacity: 1; }
  .practice-preview-animation .preview-demo-liquid { transform: scaleY(.18); }
  .practice-preview-animation .preview-demo-counts > span,
  .practice-preview-animation .preview-demo-readout-counts > span { opacity: 0; animation: none !important; }
  .practice-preview-animation .preview-demo-counts > span:first-child,
  .practice-preview-animation .preview-demo-readout-counts > span:first-child { opacity: 1; }
  .practice-preview-animation .preview-demo-ripple,
  .practice-preview-animation .preview-demo-plus { opacity: 0; animation: none !important; }
  .energy-preview-input span { animation: none !important; }
  .energy-preview-input i { opacity: 0; animation: none !important; }
  /* Reduced motion gets the outcome as a still frame: the finished card, no
     typing, no pulsing button, no stage cycling. mountLandingFlow paints the
     same state in JS, this just guarantees nothing animates if it runs first. */
  .flow-cometrue-button { animation: none !important; }
  .flow-cometrue { opacity: 0 !important; visibility: hidden !important; }
  .flow-card { opacity: 1 !important; visibility: visible !important; transition: none !important; }
  .flow-steps span { transition: none !important; }
}
