/* Inner pages: How it works, Mentors, Pro, FAQ, 404 */

/* shared sunrise CTA */
.cta-sun { position: relative; overflow: hidden; text-align: center; }
.cta-sun::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: min(46rem, 110vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fffdf0, #fff1b8 35%, rgba(245, 215, 110, 0) 70%); }
.cta-sun-inner { position: relative; display: grid; justify-items: center; gap: 1.3rem; }
.cta-sun .t-lede { color: #4a3d0a; }
.cta-sun .btn-ghost { color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--gold-light); box-shadow: 0 14px 28px -14px rgba(10, 28, 20, 0.8); }
.btn-dark:hover { background: var(--forest-2); }

/* ================= HOW: chapters with a sticky phone ================= */
.chap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.chap-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; align-content: center; gap: 1.4rem; perspective: 1600px; }
.chap-sun { position: absolute; width: min(28rem, 80%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff9e0, var(--gold-light) 45%, rgba(245, 215, 110, 0) 72%); opacity: 0.6; transform: translateY(calc(var(--sunY, 30) * 1%)); transition: transform 0.8s var(--ease-out); }
.chap-phone { --pw: clamp(14rem, 20vw, 18rem); position: relative; transition: transform 0.9s var(--ease-out); }
.chap-dots { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; position: relative; }
.chap-dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color 0.3s, transform 0.4s var(--ease-out); }
.chap-dots li.on { background: var(--emerald); transform: scale(1.4); }
.chap-dots li.done { background: var(--gold); }
.chap-stage .example { position: relative; }
.chap { min-height: 72vh; min-height: 72svh; display: grid; align-content: start; padding-block: 2rem 4rem; opacity: 0.3; transition: opacity 0.5s var(--ease-out); }
.chap.is-on { opacity: 1; }
.chap-n { font-family: var(--display); font-weight: 700; color: var(--gold-dark); letter-spacing: 0.04em; }
.chap .t-headline { margin: 0.4rem 0 0.8rem; }
.chap-sub { color: var(--emerald-dark); margin-bottom: 1rem; }
.chap-tags { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chap-tags li { padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; font-weight: 550; }
.chap:first-child { min-height: 100vh; min-height: 100svh; align-content: center; }
.chap:last-child { min-height: 100vh; min-height: 100svh; }
@media (max-width: 56rem) {
  .chap-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chap-stage { top: 4.5rem; height: 46vh; height: 46svh; z-index: 2; background: var(--bg); box-shadow: 0 1px 0 var(--line); overflow: hidden; margin-inline: calc(var(--gutter) * -1); gap: 0.6rem; }
  .chap-phone { --pw: min(9.5rem, 34vw); }
  .chap-stage .example { display: none; }
  .chap { min-height: 72vh; align-content: end; padding-block: 2rem 3rem; }
  .chap .t-headline { font-size: clamp(1.8rem, 7.4vw, 2.4rem); }
}

/* ================= MENTORS ================= */
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.match-copy .t-body { margin-top: 1.3rem; }
.match-ring { position: relative; width: 11rem; aspect-ratio: 1; margin-top: 2.2rem; display: grid; place-items: center; align-content: center; }
.match-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mr-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.mr-fg { fill: none; stroke: var(--emerald); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transition: stroke-dashoffset 1.6s var(--ease-out); }
.mr-num { position: relative; font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
.mr-cap { position: relative; font-size: 0.78rem; color: var(--slate-3); font-weight: 600; }
.const-svg { width: 100%; overflow: visible; }
.const-svg .links path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 3s linear infinite; }
.const-svg .links path.hot { stroke: var(--gold); stroke-width: 3; stroke-dasharray: none; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.const-svg .nodes circle { fill: var(--surface); stroke: var(--emerald-light); stroke-width: 3; }
.const-svg circle.goal { fill: var(--emerald); stroke: #a7f3d0; stroke-width: 6; }
.const-svg circle.best { fill: var(--gold-light); stroke: var(--gold); }
.const-svg text { font: 600 15px Inter, sans-serif; text-anchor: middle; }
.const-svg .goal-t { fill: #fff; font-size: 12px; }
.const-svg .best-t { fill: var(--gold-dark); font-weight: 700; }
.js-motion .const-svg .nodes circle:not(.goal) { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.const-svg .nodes circle:nth-of-type(3) { animation-delay: -1s; }
.const-svg .nodes circle:nth-of-type(4) { animation-delay: -2s; }
.const-svg .nodes circle:nth-of-type(5) { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.sides-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-top: 2rem; border-radius: 999px; background: rgba(231, 245, 238, 0.08); position: relative; }
.sides-tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 650; color: var(--night-soft); transition: color 0.3s; }
.sides-tabs button[aria-selected="true"] { color: var(--forest); }
.sides-tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 7px); border-radius: 999px; background: var(--gold-light); transition: translate 0.5s var(--ease-out); }
.sides-tabs[data-on="1"]::before { translate: calc(100% + 4px) 0; }
.sides-panels { margin-top: 2.5rem; }
.side { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; animation: side-in 0.6s var(--ease-out); }
.side[hidden] { display: none; }
@keyframes side-in { from { opacity: 0; transform: translateY(16px); } }
.side-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid rgba(231, 245, 238, 0.14); }
.side-steps li { counter-increment: s; position: relative; padding: 1.1rem 0 1.1rem 3.2rem; border-bottom: 1px solid rgba(231, 245, 238, 0.14); color: var(--night-soft); }
.side-steps li::before { content: counter(s); position: absolute; left: 0; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: rgba(245, 215, 110, 0.14); color: var(--gold-light); }
.side-steps b { color: var(--night-text); font-weight: 650; }
.side-phone { --pw: clamp(13rem, 18vw, 16rem); justify-self: center; }
.expertise { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-content: center; }
.expertise span { padding: 0.7rem 1.1rem; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: var(--mint); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.25); }
@media (max-width: 56rem) {
  .match-grid, .side { grid-template-columns: minmax(0, 1fr); }
}

/* ================= PRO ================= */
.pro-hero { position: relative; overflow: hidden; padding-top: clamp(8.5rem, 15vw, 11rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.pro-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }
.pro-hero .t-lede { margin: 1.4rem 0 2rem; }
.trial { font-weight: 650; color: var(--gold-light); }
.pro-coin-stage { perspective: 1200px; display: grid; place-items: center; min-height: 22rem; }
.pro-coin { position: relative; width: min(16rem, 60vw); aspect-ratio: 1; transform-style: preserve-3d; animation: coin 9s var(--ease-in-out) infinite; }
.pc-face, .pc-back { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold-light) 40%, var(--gold) 78%, var(--gold-dark));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.3), inset 0 -14px 24px rgba(120, 90, 0, 0.35); }
.pc-face { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: -0.04em; color: var(--forest); }
.pc-back { transform: rotateY(180deg); }
.pc-back::before { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffbe6, var(--gold-light)); box-shadow: 0 0 0 10px rgba(10, 28, 20, 0.12); }
@keyframes coin { 0%, 35% { transform: rotateY(-18deg) rotateX(8deg); } 50%, 85% { transform: rotateY(162deg) rotateX(8deg); } 100% { transform: rotateY(342deg) rotateX(8deg); } }
@media (prefers-reduced-motion: reduce) { .pro-coin { animation: none; transform: rotateY(-14deg); } }
.cmp-wrap { margin-top: clamp(2rem, 4vw, 3rem); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 34rem; }
.cmp th, .cmp td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.cmp thead th.pro-col { color: var(--gold-dark); }
.cmp tbody th { font-weight: 550; color: var(--slate-2); }
.cmp td { font-weight: 650; }
.cmp td:last-child { background: #fffbea; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.yes { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e3f6ec; color: var(--emerald-dark); font-weight: 800; }
td:last-child .yes { background: var(--gold-light); color: var(--forest); }
.no { color: var(--slate-3); }
.cmp-note { margin-top: 1.2rem; max-width: 46rem; }
.ext-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ext-grid .t-body { margin-top: 1.3rem; }
.ext-phone { --pw: clamp(13rem, 18vw, 16rem); justify-self: center; rotate: 4deg; }
.faqt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 56rem) { .pro-hero-grid, .ext-grid, .faqt-grid { grid-template-columns: minmax(0, 1fr); } .pro-coin-stage { min-height: 14rem; order: -1; } }

/* ================= FAQ ================= */
.faq-search { position: relative; max-width: 34rem; margin-top: 2rem; }
.faq-search .icon { position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%; color: var(--slate-3); pointer-events: none; }
.faq-search input { width: 100%; min-height: 3.4rem; padding: 0 1.1rem 0 3.1rem; border: 0; border-radius: 999px; background: #fff; color: var(--slate); font-size: 1.02rem; }
.faq-search input:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.faq-body { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-cats { position: sticky; top: 6rem; display: grid; gap: 0.3rem; }
.faq-cats button { text-align: left; border: 0; background: none; padding: 0.65rem 0.9rem; border-radius: 12px; font-weight: 600; color: var(--slate-2); display: flex; justify-content: space-between; gap: 1rem; transition: background-color 0.2s, color 0.2s; }
.faq-cats button span { opacity: 0.6; font-variant-numeric: tabular-nums; }
.faq-cats button:hover { background: var(--surface-2); color: var(--slate); }
.faq-cats button[aria-pressed="true"] { background: var(--forest); color: var(--gold-light); }
.faq-group + .faq-group { margin-top: 2.8rem; }
.faq-group h2 { margin-bottom: 0.5rem; }
.faq-group[hidden], .faq-list .acc[hidden], .faq-empty[hidden] { display: none; }
.faq-empty { padding: 2rem 0; color: var(--slate-2); }
mark { background: var(--gold-light); color: inherit; border-radius: 3px; padding: 0 0.1em; }
@media (max-width: 56rem) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-cats { position: static; display: flex; overflow-x: auto; gap: 0.4rem; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.4rem; scrollbar-width: none; }
  .faq-cats button { flex: none; white-space: nowrap; background: var(--surface-2); }
}

/* ================= 404 ================= */
.nf { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: 7rem 12rem; }
.nf-inner { position: relative; z-index: 2; display: grid; justify-items: start; gap: 1.2rem; }
.nf-code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 14vw, 11rem); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--gold-light); }
.nf-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 14rem; }
.nf-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--night-text); animation: twinkle 3s ease-in-out infinite; }
.nf-sky i:nth-child(1) { left: 12%; top: 18%; } .nf-sky i:nth-child(2) { left: 32%; top: 9%; animation-delay: -1s; } .nf-sky i:nth-child(3) { left: 54%; top: 22%; animation-delay: -2s; } .nf-sky i:nth-child(4) { left: 71%; top: 12%; }
.nf-sky i:nth-child(5) { left: 86%; top: 30%; animation-delay: -1.5s; } .nf-sky i:nth-child(6) { left: 44%; top: 40%; animation-delay: -0.5s; } .nf-sky i:nth-child(7) { left: 92%; top: 8%; animation-delay: -2.5s; } .nf-sky i:nth-child(8) { left: 22%; top: 36%; }
@keyframes twinkle { 50% { opacity: 0.2; } }

@media (max-width: 40rem) {
  .cmp { min-width: 0; font-size: 0.9rem; }
  .cmp th, .cmp td { padding: 0.8rem 0.6rem; }
  .cmp tbody th { width: 46%; }
  .cmp thead th { font-size: 1rem; }
}
