/* ===========================================================
   OGRE — Premium Pillar Module System
   Operational module sections + feature capability cards.
   Built on the production token set in styles.css.
   Used by: acquire / rent / maintain / sell / platform
   =========================================================== */

/* ---- Hero refinements (clean, label-led) ---- */
.pmod-kicker {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 4px;
}
.subhero-zone-fixed .subhero-display-fixed {
  max-width: 18ch;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.08;
}
.subhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 560px) {
  .subhero-actions { flex-direction: column; }
  .subhero-actions .btn { width: 100%; }
}

/* Hero snapshot panel — purely informational, no CTA */
.subhero-snapshot {
  background: var(--bg-pure-white);
  border: 1px solid var(--border-muted-light);
  border-radius: 18px;
  padding: 30px 32px;
  box-shadow: 0 30px 64px -28px rgba(69, 85, 101, 0.30),
              0 12px 28px -22px rgba(69, 85, 101, 0.18);
}
.subhero-snapshot-head {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-metadata);
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-muted-light);
  display: block;
}
.snap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-muted-light);
}
.snap-row:last-child { border-bottom: none; padding-bottom: 0; }
.snap-label { font-size: 13.5px; color: var(--text-dark-secondary); }
.snap-value {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text-dark-primary);
  white-space: nowrap;
}
.snap-value .snap-unit {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted-metadata);
  margin-left: 4px;
}
.snap-value.is-live { color: #15803D; font-size: 15px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; }

/* ---- Module section shell ---- */
.pmod {
  padding: clamp(64px, 8vw, 116px) 0;
}
.pmod--white { background: var(--bg-pure-white); }
.pmod--tint  { background: var(--bg-subtle-gray); }
.pmod--dark  {
  background: var(--bg-dark-hero);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.pmod--dark::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(233,78,27,0) 62%);
  z-index: -1;
  pointer-events: none;
}

.pmod-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 5vw, 84px);
  align-items: start;
}
@media (max-width: 960px) {
  .pmod-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Aside (module title block) ---- */
.pmod-aside {
  position: sticky;
  top: 116px;
}
@media (max-width: 960px) { .pmod-aside { position: static; } }

.pmod-aside .pmod-kicker { margin-bottom: 18px; }

.pmod-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-dark-primary);
  text-wrap: balance;
  margin: 0;
}
.pmod-rule {
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  margin: 26px 0 22px;
}
.pmod-count {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted-metadata);
}

.pmod--dark .pmod-kicker { color: #FF8A5C; }
.pmod--dark .pmod-title { color: #fff; }
.pmod--dark .pmod-count { color: var(--text-light-secondary); }

/* ---- Feature card grid ---- */
.pmod-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 620px) { .pmod-cards { grid-template-columns: 1fr; } }

.pmod-card {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-muted-light);
  border-radius: 16px;
  padding: 30px 28px 30px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s ease,
              border-color 0.5s ease,
              background 0.5s ease;
}
.pmod--white .pmod-card { background: var(--bg-light); }
.pmod--tint  .pmod-card { background: var(--bg-pure-white); }

.pmod-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #FF8A5C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.pmod-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 78, 27, 0.28);
  box-shadow: 0 30px 60px -34px rgba(30, 34, 41, 0.34);
}
.pmod-card:hover::before { transform: scaleX(1); }

.pmod-card-index {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted-metadata);
  display: block;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}
.pmod-card:hover .pmod-card-index { color: var(--orange); }

.pmod-card-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text-dark-primary);
  margin: 0 0 11px;
}
.pmod-card-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* AI-flagged capability — subtle orange chip top-right */
.pmod-card-flag {
  position: absolute;
  top: 28px;
  right: 26px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-tint);
  border: 1px solid rgba(233, 78, 27, 0.26);
  padding: 4px 9px 3px;
  border-radius: 999px;
}

/* Dark module card variant */
.pmod--dark .pmod-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.10);
}
.pmod--dark .pmod-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(233, 78, 27, 0.4);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.6);
}
.pmod--dark .pmod-card-title { color: #fff; }
.pmod--dark .pmod-card-text { color: var(--text-light-secondary); }
.pmod--dark .pmod-card-index { color: var(--text-light-secondary); }
.pmod--dark .pmod-card:hover .pmod-card-index { color: #FF8A5C; }
