/* Pain-first pages: the shared frame, story rhythm and before/after scene. */

.hero {
  position: relative;
  overflow: hidden;
  padding: 118px clamp(20px, 5vw, 56px) clamp(68px, 9vw, 112px);
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--accent-rgb), .14), transparent 30%),
    linear-gradient(155deg, var(--surface-elev), var(--bg) 62%, var(--bg-warm));
}

.hero::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  right: -190px;
  bottom: -240px;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-eyebrow { opacity: 0; animation: fadeUp .8s var(--ease) .12s forwards; }
.hero h1 {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.01;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .22s forwards;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  max-width: 610px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .36s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .5s forwards;
}
.uc-text-link { color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.uc-text-link:hover { color: var(--ink); }

.section { padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 56px); }
.section-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; }
.section-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4.3vw, 46px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.section-body { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7; }
.uc-section-head { max-width: 660px; margin-bottom: 36px; }

/* Hero composition */
.uc-hero { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; gap: 48px; }
.uc-hero-scene { min-width: 0; opacity: 0; animation: fadeUp 1s var(--ease) .62s forwards; }

/* One truthful visual grammar for every case: pain, transition, relief. */
.uc-case-scene {
  --scene-accent: var(--accent);
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-elev) 88%, transparent);
  box-shadow: 0 28px 80px rgba(var(--shadow), .14);
}
.uc-scene-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.uc-scene-panel {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  opacity: .68;
  transform: scale(.97);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.uc-scene-pain { background: color-mix(in srgb, var(--bg-warm) 72%, var(--surface)); }
.uc-scene-result { background: color-mix(in srgb, var(--surface-elev) 82%, rgba(var(--green-rgb), .12)); }
.uc-scene-label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(var(--shadow), .06);
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.uc-scene-result .uc-scene-label { background: rgba(var(--green-rgb), .14); color: var(--green); }
.uc-scene-panel h2 { margin: 0 0 6px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.uc-scene-panel p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.uc-scene-graphic { position: relative; height: 92px; margin: 0 0 14px; }
.uc-scene-bridge {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 50%;
  background: var(--surface-elev);
  color: var(--accent);
  font-size: 20px;
  opacity: .55;
  transform: translate(-50%, -50%) rotate(90deg) scale(.86);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
[data-phase="0"] .uc-scene-pain { opacity: 1; transform: scale(1); border-color: rgba(var(--accent-rgb), .35); }
[data-phase="1"] .uc-scene-bridge { opacity: 1; transform: translate(-50%, -50%) rotate(90deg) scale(1.08); }
[data-phase="2"] .uc-scene-result { opacity: 1; transform: scale(1); border-color: rgba(var(--green-rgb), .42); }
[data-phase="2"] .uc-scene-pain { opacity: .52; transform: scale(.955); }

/* Story */
.uc-story { background: var(--bg-warm); }
.uc-story-copy { max-width: 820px; }
.uc-story .section-title { max-width: 760px; font-size: clamp(34px, 5vw, 54px); }

/* Three small actions */
.uc-steps { background: var(--bg); }
.uc-step-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.uc-step {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.uc-step-n {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 17px;
}
.uc-step h3 { margin: 0 0 9px; color: var(--ink); font-size: 19px; }
.uc-step p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* Context as the calm destination */
.uc-context { padding-top: 0; }
.uc-context-card {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(var(--accent-rgb), .28);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--surface-elev), color-mix(in srgb, var(--bg-warm) 76%, var(--surface)));
}
.uc-context-example {
  align-self: center;
  margin: 0;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  line-height: 1.45;
}

/* Benefits */
.uc-features { border-top: 1px solid var(--line); background: var(--surface); }
.uc-feature-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.uc-feature { min-height: 180px; padding: 28px; background: var(--surface-elev); }
.uc-feature::before { content: '✓'; display: block; margin-bottom: 20px; color: var(--green); font-weight: 800; }
.uc-feature h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.uc-feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* Honest AI availability block */
.uc-beta { padding-top: 0; background: var(--surface); }
.uc-beta-card {
  display: grid;
  gap: 28px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 26px;
  background: var(--bg-deep);
  color: #f8f2e8;
  box-shadow: 0 28px 72px rgba(var(--shadow), .2);
}
.uc-beta-badge {
  align-self: start;
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f2b79f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.uc-beta .section-title { color: #fffaf1; }
.uc-beta .section-body { color: #d8ccbb; }
.uc-beta-note { margin: 18px 0 0; color: #ae9f8a; font-size: 14px; line-height: 1.6; }

/* Nuance and FAQ */
.uc-caveats { background: var(--surface); padding-top: 0; }
.uc-caveat-card { max-width: 860px; padding-top: 48px; border-top: 1px solid var(--line); }
.uc-caveat-card .section-title { font-size: clamp(26px, 3.5vw, 36px); }
.uc-caveat-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.uc-caveat-list li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.uc-caveat-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.uc-faq { background: var(--bg); }
.uc-faq .section-title { max-width: 680px; }
.uc-faq-list { display: grid; gap: 10px; max-width: 900px; margin-top: 30px; }
.uc-faq-item { border-bottom: 1px solid var(--line); }
.uc-faq-item summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--ink); cursor: pointer; font-weight: 650; list-style: none; }
.uc-faq-item summary::-webkit-details-marker { display: none; }
.uc-faq-item p { max-width: 760px; margin: 0; padding: 0 44px 22px 0; color: var(--ink-soft); line-height: 1.7; }
.uc-faq-plus { color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .25s var(--ease); }
.uc-faq-item[open] .uc-faq-plus { transform: rotate(45deg); }

/* Related cards and the single product download ending */
.uc-related { border-top: 1px solid var(--line); background: var(--bg); }
.uc-related-grid { display: grid; gap: 14px; margin-top: 28px; }
.uc-related-card,
.uc-hub-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 24px 56px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.uc-related-card:hover,
.uc-hub-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .38); box-shadow: 0 16px 36px rgba(var(--shadow), .08); }
.uc-related-title,
.uc-hub-title { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.35; }
.uc-related-teaser,
.uc-hub-teaser { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.uc-card-arrow { position: absolute; right: 22px; bottom: 20px; color: var(--accent); font-size: 20px; }
.uc-related-all { margin: 22px 0 0; }
.uc-related-all a { color: var(--accent); font-weight: 650; }
.final-cta { padding: clamp(76px, 10vw, 128px) clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); background: var(--bg-warm); text-align: center; }
.final-cta .section-label { margin-bottom: 18px; }
.final-cta .section-title { max-width: 680px; margin: 0 auto 18px; font-size: clamp(36px, 5vw, 56px); }
.final-cta .section-body { max-width: 630px; margin: 0 auto 32px; }
.final-actions { display: flex; justify-content: center; }
.uc-download-note { margin: 18px 0 0; color: var(--ink-muted); font-size: 13px; }

/* /for hub */
.uc-hub-head {
  position: relative;
  overflow: hidden;
  padding-top: clamp(132px, 13vw, 184px);
  padding-bottom: clamp(86px, 11vw, 144px);
  background:
    radial-gradient(circle at 78% 28%, rgba(var(--accent-rgb), .14), transparent 28%),
    linear-gradient(155deg, var(--surface-elev), var(--bg) 64%, var(--bg-warm));
}
.uc-hub-head::after {
  content: '';
  position: absolute;
  right: -150px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 50%;
}
.uc-hub-hero { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.uc-hub-hero-copy { max-width: 780px; }
.uc-hub-head .section-title { margin-bottom: 28px; font-size: clamp(46px, 6.4vw, 78px); line-height: .98; }
.uc-hub-head .section-title em { color: var(--accent); font-style: italic; }
.uc-hub-head .section-body { max-width: 700px; font-size: clamp(18px, 2vw, 22px); }
.uc-hub-thoughts {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 55% 48%, rgba(var(--accent-rgb), .2), transparent 28%),
    var(--bg-deep);
  box-shadow: 0 30px 80px rgba(var(--shadow), .2);
}
.uc-hub-thought {
  position: absolute;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #f7eee1;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 650;
  white-space: nowrap;
}
.uc-hub-thought:nth-child(1) { top: 14%; left: 9%; }
.uc-hub-thought:nth-child(2) { top: 34%; right: 7%; }
.uc-hub-thought:nth-child(3) { bottom: 23%; left: 18%; }
.uc-hub-thought:nth-child(4) { right: 15%; bottom: 8%; animation: uc-hub-drift 4.2s var(--ease) infinite; }
.uc-hub-thought-fade {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(var(--accent-rgb), .38);
  border-radius: 50%;
  opacity: .72;
  transform: translate(-50%, -50%);
}
.uc-hub-thought-fade::before,
.uc-hub-thought-fade::after { content: ''; position: absolute; border-radius: 50%; background: var(--accent); }
.uc-hub-thought-fade::before { inset: 24px; opacity: .72; }
.uc-hub-thought-fade::after { inset: 10px; border: 1px solid rgba(var(--accent-rgb), .28); background: transparent; }
@keyframes uc-hub-drift {
  0%, 100% { opacity: .92; transform: translate(0, 0); }
  50% { opacity: .35; transform: translate(12px, -10px); }
}
.uc-hub-promise { background: var(--bg-warm); }
.uc-hub-promise-grid { display: grid; gap: 28px; align-items: end; }
.uc-hub-promise .section-title { max-width: 720px; margin-bottom: 0; font-size: clamp(36px, 5vw, 58px); }
.uc-hub-promise .section-body { max-width: 600px; }
.uc-hub { background: var(--surface); }
.uc-hub .uc-section-head { max-width: 780px; }
.uc-hub-grid { display: grid; gap: 14px; }
.uc-hub-card { min-height: 210px; padding-top: 28px; }
.uc-hub-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

@media (min-width: 680px) {
  .uc-scene-grid { grid-template-columns: 1fr 1fr; }
  .uc-scene-panel { min-height: 300px; padding: 20px; }
  .uc-scene-graphic { height: 116px; }
  .uc-scene-bridge { transform: translate(-50%, -50%) scale(.86); }
  [data-phase="1"] .uc-scene-bridge { transform: translate(-50%, -50%) scale(1.08); }
  .uc-step-list { grid-template-columns: repeat(3, 1fr); }
  .uc-context-card { grid-template-columns: 1.12fr .88fr; align-items: center; }
  .uc-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-beta-card { grid-template-columns: auto 1fr; }
  .uc-related-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-hub-promise-grid { grid-template-columns: 1.08fr .92fr; }
}

@media (min-width: 1040px) {
  .uc-hero { grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); align-items: center; }
  .uc-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-hub-hero { grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); }
  .uc-hub-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 679px) {
  .nav:has(~ .uc-hero),
  .nav:has(~ .uc-hub-head) { padding-right: 12px; padding-left: 12px; }
  .nav:has(~ .uc-hero) .nav-logo,
  .nav:has(~ .uc-hub-head) .nav-logo { flex-shrink: 0; gap: 6px; font-size: 16px; }
  .nav:has(~ .uc-hero) .nav-logo .logo-mark,
  .nav:has(~ .uc-hub-head) .nav-logo .logo-mark { width: 20px; height: 20px; }
  .nav:has(~ .uc-hero) .nav-links,
  .nav:has(~ .uc-hub-head) .nav-links { gap: 8px; }
  .nav:has(~ .uc-hero) .theme-toggle,
  .nav:has(~ .uc-hub-head) .theme-toggle { width: 32px; height: 32px; }
  .nav:has(~ .uc-hero) .nav-cta,
  .nav:has(~ .uc-hub-head) .nav-cta { padding: 8px 11px; font-size: 12px; }
  .hero { padding-top: 104px; }
  .uc-case-scene { padding: 10px; border-radius: 22px; }
  .uc-scene-panel { min-height: 206px; }
  .uc-scene-pain { padding-bottom: 28px; }
  .uc-scene-result { padding-top: 28px; }
  .uc-step { min-height: 0; }
  .uc-feature { min-height: 0; }
  .uc-related-card { min-height: 138px; }
  .uc-hub-head { padding-top: 118px; }
  .uc-hub-thoughts { min-height: 270px; border-radius: 22px; }
  .uc-hub-thought:nth-child(2) { top: 32%; right: 5%; }
  .uc-hub-thought:nth-child(3) { bottom: 20%; left: 8%; }
  .uc-hub-thought:nth-child(4) { right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-actions,
  .uc-hero-scene,
  .reveal { opacity: 1; animation: none; transform: none; transition: none; }
  .uc-scene-panel { opacity: .84; transform: none; transition: none; }
  .uc-scene-result { opacity: 1; border-color: rgba(var(--green-rgb), .42); }
  .uc-scene-bridge { opacity: 1; transform: translate(-50%, -50%) rotate(90deg); transition: none; }
  .uc-related-card,
  .uc-hub-card,
  .uc-faq-plus { transition: none; }
  .uc-hub-thought { animation: none !important; }
}

@media (min-width: 680px) and (prefers-reduced-motion: reduce) {
  .uc-scene-bridge { transform: translate(-50%, -50%); }
}
