/* ==========================================================================
   Rootwise Media — components specific to this property.
   Layers on top of rootwise.css, which carries the shared design system.
   ========================================================================== */

/* --- Hero mark ----------------------------------------------------------- */
.hero-mark {
  width: clamp(170px, 22vw, 250px);
  margin: 0 auto clamp(1.1rem, 2.5vw, 1.6rem);
}

/* --- Guide cards --------------------------------------------------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

@media (max-width: 880px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }

.guide {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.guide:hover {
  border-color: var(--gold-rule);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(28, 26, 23, 0.05), 0 16px 30px -18px rgba(45, 74, 53, 0.4);
}

.guide-badge {
  align-self: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-rule);
  border-radius: 100px;
  padding: 0.28rem 0.75rem;
}

.guide-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--forest);
}

.guide-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: left;
}

/* --- Library collections ------------------------------------------------- */
.collection + .collection { margin-top: clamp(3rem, 6vw, 4.5rem); }

.collection-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
  border-top: 1px solid var(--gold-rule);
  padding-top: 0.8rem;
}

.collection-name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--forest);
}

.collection-count {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

/* --- Pricing ------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

.price {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.9rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
}

.price-badge {
  align-self: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.price-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--forest);
}

.price-amount {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.price-amount span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  vertical-align: middle;
  margin-left: 0.35rem;
}

.price-desc { font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); }

.price-note {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--stone);
}

.price-feature {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--gold-pale);
  border: 1px solid var(--gold-rule);
}

.price-feature .price-badge { color: var(--gold); }

/* --- Internal-draft banner ----------------------------------------------- */
.draft-banner {
  border-top: 2px solid var(--gold);
  background: var(--gold-pale);
  padding: 1.1rem 1.4rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.draft-banner strong { color: var(--forest); }

/* --- Sibling-company index (about page) ---------------------------------- */
.company {
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule-soft);
}

.company:last-of-type { border-bottom: 1px solid var(--rule-soft); }

.company-name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.company-meta {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--stone);
}

.company-meta a { color: var(--moss); text-decoration: none; }
.company-meta a:hover { color: var(--gold); }

.company-desc {
  max-width: 68ch;
  margin: 1.05rem auto 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: left;
}

.here {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.here::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --- Founders ------------------------------------------------------------ */
.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

@media (max-width: 720px) { .founders { grid-template-columns: 1fr; } }

.founder { border-top: 1px solid var(--gold-rule); padding-top: 1.35rem; }

.founder-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.015em;
}

.founder-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

.creds { list-style: none; margin-top: 1.5rem; }
.creds li { padding: 0.95rem 0; border-top: 1px solid var(--rule-soft); }
.creds li:first-child { border-top: none; padding-top: 0; }
.creds li:last-child { padding-bottom: 0; }

.cred-title { font-size: 0.92rem; font-weight: 500; color: var(--forest); line-height: 1.45; }
.cred-note { font-size: 0.8rem; color: var(--stone); line-height: 1.6; margin-top: 0.2rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero h1 { max-width: 36ch; margin-inline: auto; }
.hero .lede { margin-top: clamp(1.1rem, 2.5vw, 1.5rem); }

/* --- Mission ------------------------------------------------------------- */
.mission-statement {
  margin-inline: auto;
  max-width: 60ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--cream);
  text-wrap: balance;
}

.mission-detail {
  margin: 2rem auto 0;
  display: grid;
  gap: 1.4rem;
  max-width: 72ch;
}

.mission-detail p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--on-forest);
  text-align: left;
}

.mission-detail strong { color: var(--gold-light); font-weight: 600; }

/* --- Section heading ----------------------------------------------------- */
.section-lead .display-2 { max-width: 30ch; margin-inline: auto; }

.section-lead p {
  margin: 1.15rem auto 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 72ch;
  text-align: center;
  text-wrap: pretty;
}

.stack-top { margin-top: clamp(2.25rem, 5vw, 3rem); }
.cta-center { margin-top: clamp(2.25rem, 5vw, 3rem); }
