/* =====================================================================
   pages.css — layouts for the inner pages (About, How it works,
   Roadmap, Gallery, Get yours). Builds on observatory.css + home.css.
   ===================================================================== */

/* ---------- Shared subpage hero ------------------------------------- */
.page-hero {
  position: relative; z-index: 2;
  min-height: 60svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(10rem, 20vh, 15rem) var(--gutter) clamp(3.5rem, 9vh, 6.5rem);
  gap: 1.5rem;
  overflow: hidden;
}
.page-hero .accent { width: 96px; height: 96px; position: relative; margin-bottom: 0.4rem; }
.page-hero h1 { font-size: clamp(2.6rem, 1.7rem + 4vw, 5rem); line-height: 1.06; max-width: 16ch; }
.page-hero .lead { max-width: 620px; }
.page-hero .crumbs { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); }
.page-hero .crumbs a { color: var(--gold); }

/* generic section header */
.sec-head { max-width: 640px; margin-bottom: var(--s7); }
.sec-head .eyebrow { margin-bottom: var(--s3); }
.sec-head h2 { margin-bottom: var(--s3); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- ABOUT: story + values ----------------------------------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-grid .body-text { font-size: var(--fs-lead); line-height: 1.55; }
.pull {
  font-family: "Fraunces", serif; font-weight: 340; font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.25;
  color: var(--ivory); text-wrap: balance;
}
.pull span { color: var(--gold-soft); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }
.value { padding: var(--s5); }
.value .vnum { font-family: "Fraunces", serif; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.2em; }
.value h4 { margin: var(--s3) 0 var(--s2); color: var(--ivory); }
.value p { color: var(--ivory-dim); }

/* ---------- FAQ accordion ------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s4) 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  font-family: "Fraunces", serif; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--ivory); font-weight: 400;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-soft); }
.faq summary .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform 0.5s var(--ease-cinematic); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; }
.faq summary .pm::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq summary .pm::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); transition: opacity 0.4s; }
.faq details[open] summary .pm { transform: rotate(180deg); }
.faq details[open] summary .pm::after { opacity: 0; }
.faq .answer { color: var(--ivory-dim); max-width: 70ch; padding-top: var(--s3); line-height: 1.6; font-size: 1.02rem; }

/* ---------- Catalog: stars + planet types --------------------------- */
.catalog-stars { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); justify-content: space-between; }
.star-chip { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; flex: 1 1 90px; }
.star-chip .orb {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff, var(--tone, #999) 60%, transparent 78%);
  box-shadow: 0 0 18px 2px color-mix(in oklab, var(--tone, #999) 60%, transparent);
}
.star-chip .cls { font-family: "Fraunces", serif; font-size: 1.4rem; color: var(--ivory); }
.star-chip .kind { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-faint); }

.planet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 720px) { .planet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .planet-grid { grid-template-columns: 1fr; } }
.planet-card { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); }
.sphere {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, color-mix(in oklab, var(--tone,#888) 75%, #fff), var(--tone,#888) 58%, #0c0c0c 105%);
  box-shadow: inset -6px -8px 16px #00000088, 0 0 22px -6px var(--tone,#888);
}
.planet-card h4 { color: var(--ivory); font-size: 1.15rem; text-transform: capitalize; }
.planet-card p { font-size: 0.88rem; color: var(--ivory-faint); }

/* ---------- Roadmap timeline ---------------------------------------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line-soft) 60%, transparent);
}
@media (max-width: 620px) { .timeline::before { left: 18px; } }
.phase { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); padding-bottom: var(--s7); }
@media (max-width: 620px) { .phase { grid-template-columns: 44px 1fr; } }
.phase:last-child { padding-bottom: 0; }
.phase .marker {
  width: 54px; height: 54px; border-radius: 50%; position: relative; z-index: 2;
  display: grid; place-items: center;
  background: var(--ink-2); border: 1px solid var(--line);
  font-family: "Fraunces", serif; color: var(--gold); font-size: 1.1rem;
}
@media (max-width: 620px) { .phase .marker { width: 38px; height: 38px; font-size: 0.9rem; } }
.phase.now .marker { background: radial-gradient(circle at 40% 35%, #fff, var(--gold)); color: var(--ink); box-shadow: 0 0 22px var(--gold); border-color: transparent; }
.phase .pbody { padding-top: 0.4rem; }
.phase .ptag { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); }
.phase.now .ptag { color: var(--gold); }
.phase h3 { margin: 0.4rem 0 0.6rem; color: var(--ivory); }
.phase .pbody p { color: var(--ivory-dim); max-width: 60ch; }
.phase .plist { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s3); }
.phase .plist li { font-size: 0.82rem; color: var(--ivory-dim); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.35em 0.9em; }

/* ---------- Gallery (full) ------------------------------------------ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--s6); justify-content: center; }
.gallery-filters button {
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ivory-dim);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.5em 1.1em;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.gallery-filters button:hover { color: var(--ivory); border-color: var(--line); }
.gallery-filters button.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.gallery-grid.full { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .gallery-grid.full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .gallery-grid.full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid.full { grid-template-columns: 1fr; } }

/* ---------- Get yours (mint) ---------------------------------------- */
.mint-stage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 920px) { .mint-stage { grid-template-columns: 1fr; } }
.mint-viewer { position: relative; aspect-ratio: 1; border-radius: 50%; }
.mint-viewer .orrery-frame { width: 100%; height: 100%; }
.mint-viewer #orrery { width: 100%; height: 100%; }
.mint-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: var(--s5); }
.mint-controls button {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ivory);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.6em 1.1em;
  background: color-mix(in oklab, var(--indigo) 30%, transparent); backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-cinematic);
}
.mint-controls button:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.mint-panel { padding: clamp(1.8rem, 4vw, 3rem); border-radius: 22px; }
.mint-meter { margin: var(--s4) 0 var(--s5); }
.mint-meter .bar { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--ivory) 12%, transparent); overflow: hidden; }
.mint-meter .bar i { display: block; height: 100%; width: 12.84%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); box-shadow: 0 0 12px var(--gold); }
.mint-meter .row { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--ivory-dim); margin-top: 0.6rem; }
.mint-meter .row b { color: var(--ivory); font-family: "Fraunces", serif; font-weight: 400; }
.price-row { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.price-row .free { font-family: "Fraunces", serif; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--gold-soft); }
.price-row .strike { color: var(--ivory-faint); text-decoration: line-through; }
.qty { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.qty .stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty .stepper button { width: 42px; height: 42px; color: var(--ivory); font-size: 1.2rem; transition: background 0.3s; }
.qty .stepper button:hover { background: color-mix(in oklab, var(--gold) 18%, transparent); }
.qty .stepper .n { min-width: 40px; text-align: center; font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--ivory); }
.qty .qlabel { font-size: 0.86rem; color: var(--ivory-faint); }
.mint-cta { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1.1em; }
.mint-fine { margin-top: var(--s4); display: flex; flex-direction: column; gap: 0.5rem; }
.mint-fine span { font-size: 0.84rem; color: var(--ivory-faint); display: flex; gap: 0.6rem; align-items: baseline; }
.mint-fine span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; transform: translateY(0.5em); }

/* simple two-column prose for any page */
.prose { max-width: var(--maxw-text); margin-inline: auto; }
.prose p { margin-bottom: var(--s4); }
.prose h3 { color: var(--ivory); margin: var(--s6) 0 var(--s3); }
