/* japo.app — subpage styles (mala, yantras, practice, learn, privacy, terms)
   Extends styles.css; chrome + footer already defined there. */

/* Subpage common */
.subpage {
  min-height: 100vh;
  position: relative;
}
.subpage main {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}
.subpage .page-head {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 32px;
  text-align: center;
}
.subpage .page-head .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}
.subpage .page-head h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  text-wrap: balance;
}
.subpage .page-head p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--mist);
  max-width: 52ch;
  margin: 0 auto;
  text-wrap: pretty;
}

/* Material / yantra section pattern */
.section {
  min-height: 100vh;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.section.flipped { grid-template-columns: 1fr 1fr; direction: rtl; }
.section.flipped > * { direction: ltr; }
.section .stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
}
.section .copy {
  max-width: 540px;
}
.section .copy .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--whisper);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}
.section .copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 24px;
  text-wrap: balance;
}
.section .copy h2 .label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.section .copy p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.section .copy p:last-child { margin-bottom: 0; }
.section .copy em {
  color: var(--bone);
  font-style: italic;
}

.section .stage canvas {
  width: 100%; height: 100%;
  cursor: grab;
}
.section .stage canvas:active { cursor: grabbing; }
.section .stage .rotate-hint {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--whisper);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .section { grid-template-columns: 1fr; min-height: auto; padding: 60px 24px; }
  .section .stage { max-width: 340px; }
}

/* Library list */
.library-page main { padding-bottom: 96px; }
.library-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.library-list .row {
  border-top: 1px solid rgba(244, 236, 220, 0.10);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}
.library-list .row:last-child { border-bottom: 1px solid rgba(244, 236, 220, 0.10); }
@media (hover: hover) { .library-list .row:hover h3 { color: var(--gold); } }
.library-list .row h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--bone);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.library-list .row p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
  margin: 0;
  max-width: 60ch;
}
.library-list .row .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
  white-space: nowrap;
}

/* ComingSoon */
.coming-soon {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px;
}
.coming-soon .card {
  max-width: 520px;
  text-align: center;
}
.coming-soon .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.coming-soon h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
  text-wrap: balance;
}
.coming-soon p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--mist);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.coming-soon form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.coming-soon input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(244, 236, 220, 0.18);
  color: var(--bone);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.25s ease;
}
.coming-soon input::placeholder { color: var(--whisper); }
.coming-soon input:focus { border-color: var(--gold); }
.coming-soon button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.coming-soon button:hover { background: var(--gold-deep); }
.coming-soon .related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 236, 220, 0.10);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mist);
}
.coming-soon .related a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 8px;
}
.coming-soon .related a:hover { text-decoration: underline; }

/* Legal pages (privacy + terms) */
.legal-page main {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 32px 96px;
}
.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.legal-page .reviewed {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
.legal-page p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--bone);
  margin: 0 0 24px;
}
.legal-page a { color: var(--gold); }

/* Practice constellation canvas */
#constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* TODO banner (development-mode visibility) */
.todo-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(232, 154, 58, 0.9);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  z-index: 200;
  letter-spacing: 0.02em;
}


/* Library list keyboard focus */
.library-list .row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 4px;
}
.library-list .row:focus-visible h3 { color: var(--gold); }
/* ============================================================
   Article prose
   ============================================================ */
.article-page {
  padding-top: 100px;
  padding-bottom: 96px;
}
.article-head {
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 0 32px;
  text-align: center;
}
.article-head .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.article-head .read-time {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0 0 24px;
}
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 28px;
  text-wrap: balance;
}
.article-head .lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.65;
  color: var(--mist);
  text-wrap: pretty;
  margin: 0;
}
.article-prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}
.article-prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 56px 0 20px;
  color: var(--bone);
}
.article-prose h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 36px 0 14px;
  color: var(--bone);
}
.article-prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  color: var(--mist);
  margin: 0 0 26px;
  text-wrap: pretty;
}
.article-prose strong { color: var(--bone); font-weight: 600; }
.article-prose em { color: var(--bone); font-style: italic; }
.article-prose a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,208,137,0.3);
  transition: border-color 0.2s ease;
}
.article-prose a:hover { border-bottom-color: var(--gold); }
.article-prose blockquote {
  border-left: 2px solid var(--gold);
  margin: 36px 0;
  padding: 0 0 0 28px;
}
.article-prose blockquote p {
  font-size: 21px;
  font-style: italic;
  color: var(--bone);
  margin-bottom: 10px;
}
.article-prose blockquote cite {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--whisper);
}
/* FAQ */
.faq-section {
  margin-top: 72px;
  border-top: 1px solid rgba(244,236,220,0.10);
  padding-top: 56px;
}
.faq-section h2 {
  margin-top: 0 !important;
  margin-bottom: 40px !important;
}
.faq-item { border-top: 1px solid rgba(244,236,220,0.07); padding: 28px 0; }
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item h3 { font-size: clamp(17px,1.8vw,21px); margin: 0 0 12px !important; }
.faq-item p { font-size: 17px; margin: 0 !important; }
/* Article nav */
.article-nav {
  max-width: 680px;
  margin: 80px auto 0;
  padding: 40px 32px 0;
  border-top: 1px solid rgba(244,236,220,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-nav a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-nav a:hover { color: var(--gold); }
.article-nav .back {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
}

/* Breadcrumbs */
.crumbs {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.crumbs a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.crumbs a:hover { border-bottom-color: var(--gold); }
.crumbs .sep { color: var(--whisper); opacity: 0.6; }
.crumbs .current { color: var(--whisper); }

/* End-of-article waitlist CTA */
.article-cta {
  max-width: 680px;
  margin: 80px auto 0;
  padding: 48px 32px;
  text-align: center;
  border-top: 1px solid rgba(244,236,220,0.10);
}
.article-cta .cta-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.article-cta h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--bone);
  margin: 0 0 14px;
}
.article-cta p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--mist);
  margin: 0 auto 28px;
  max-width: 460px;
}
.article-cta .notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.article-cta .notify-row {
  display: flex;
  gap: 0;
  width: 100%;
  border: 1px solid rgba(255,208,137,0.25);
  border-radius: 3px;
  overflow: hidden;
}
.article-cta .notify-row input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: none;
  padding: 0.75rem 1rem;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.article-cta .notify-row button {
  background: rgba(255,208,137,0.12);
  border: none;
  border-left: 1px solid rgba(255,208,137,0.25);
  padding: 0.75rem 1.25rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.article-cta .notify-row button:hover { background: rgba(255,208,137,0.22); }
.article-cta .thanks {
  display: none;
  font-size: 0.85rem;
  color: var(--gold);
  font-family: var(--sans);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,208,137,0.28);
  background: rgba(10,10,20,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(255,208,137,0.16); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) {
  .to-top { right: 16px; bottom: 16px; }
}
