/* ═══════════════════════════════════════════════════════
   Hubris Works — Monument Page Layout (monument.css)
   Section backgrounds, grids, responsive, scroll reveals
   ═══════════════════════════════════════════════════════ */

/* ─── Section Backgrounds ─── */
.section-dark { background: var(--hw-black); color: var(--hw-white); }
.section-light { background: var(--hw-white); color: var(--hw-black); }
.section-stone { background: var(--hw-stone); color: var(--hw-black); }

/* ─── Section Spacing ─── */
section { padding: var(--section-pad) 0; }

/* ─── Section 1: Hero ─── */
.section-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}
.hero-content { max-width: 600px; }
.hero-logo {
  width: auto; height: 200px;
  color: var(--hw-white);
  margin: 0 auto 32px;
  display: block;
}
.hero-wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--hw-white);
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: 20px;
  color: var(--hw-dark-muted);
  margin-bottom: 48px;
}
.hero-cta { color: var(--hw-white); }

/* ─── Section 2: Thesis ─── */
.section-thesis .section-headline { color: var(--hw-black); }
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.thesis-label {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hw-graphite);
  margin-bottom: 16px;
}
.thesis-column p {
  color: var(--hw-graphite);
  line-height: 1.7;
}

/* ─── Section 3: Products ─── */
.section-products .section-headline { color: var(--hw-black); }
.product-flagship {
  margin-bottom: 24px;
}
.product-flagship .product-scenario {
  font-size: 20px;
  line-height: 1.6;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.product-title {
  font-family: var(--font-heading);
  font-size: var(--text-card-title);
  font-weight: 500;
}
.product-scenario {
  color: var(--hw-graphite);
  line-height: 1.7;
}

/* ─── Section 4: Demo Panel ─── */
.activation-subhead {
  font-size: 20px;
  color: var(--hw-graphite);
  margin-bottom: 16px;
}

.demo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.demo-input-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-field label {
  display: block;
  margin-bottom: 8px;
}

.demo-checkbox-group {
  border: none;
  padding: 0;
}

.demo-checkbox-group legend {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hw-graphite);
  margin-bottom: 12px;
}

.demo-radio-group {
  border: none;
  padding: 0;
}

.demo-radio-group legend {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hw-graphite);
  margin-bottom: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--hw-signal);
  cursor: pointer;
}

/* Demo Output Panel */
.demo-output-panel {
  background: var(--hw-black);
  border-radius: 4px;
  padding: 24px;
  max-height: 560px;
  overflow-y: auto;
}

.demo-output-code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hw-white);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Tier 1: SHOW — dynamic values, fully visible */
.demo-output-code .hl {
  color: var(--hw-signal);
  background: rgba(196, 162, 101, 0.15);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Tier 2: REDACT — static boilerplate, blurred */
.demo-output-code .redact {
  opacity: 0.15;
  filter: blur(2px);
  user-select: none;
  pointer-events: none;
}

/* Tier 3: MARKER — XML tags, de-emphasized */
.demo-output-code .xml-tag {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  opacity: 0.5;
  color: var(--hw-dark-muted);
}

/* Nudge Text */
.demo-nudge {
  text-align: center;
  margin-top: 48px;
  color: var(--hw-graphite);
  font-size: var(--text-body);
}

.demo-nudge a {
  color: var(--hw-graphite);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.demo-nudge a:hover {
  color: var(--hw-signal);
}

/* Scrollbar — Demo Output */
.demo-output-panel::-webkit-scrollbar {
  width: 4px;
}

.demo-output-panel::-webkit-scrollbar-track {
  background: transparent;
}

.demo-output-panel::-webkit-scrollbar-thumb {
  background: var(--hw-signal);
  border-radius: 2px;
}

/* ─── Section 5: Credibility ─── */
.section-credibility .section-headline { color: var(--hw-white); }
.founder-creds { margin-bottom: 24px; color: var(--hw-dark-muted); line-height: 1.7; }
.founder-keyline {
  font-size: 20px;
  font-weight: 500;
  color: var(--hw-white);
  line-height: 1.5;
  margin-bottom: 32px;
}
.pull-quote p { color: var(--hw-white); }
.traction-placeholder { /* empty — reserved for Sprint 2+ */ }

/* ─── Section 6: Contact ─── */
.contact-intro { margin-bottom: 32px; color: var(--hw-dark-muted); line-height: 1.7; }
.contact-form .form-field { margin-bottom: 16px; }
.contact-form label { color: var(--hw-dark-muted); }

/* Dark-theme inputs */
.section-dark input[type="text"],
.section-dark input[type="email"],
.section-dark textarea {
  color: var(--hw-white);
  border-color: var(--hw-dark-muted);
  background: rgba(255, 255, 255, 0.05);
}
.section-dark input::placeholder,
.section-dark textarea::placeholder {
  color: var(--hw-dark-muted);
}

/* Checkbox group */
.checkbox-group { border: none; margin: 24px 0; padding: 0; }
.checkbox-group legend {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hw-dark-muted);
  margin-bottom: 12px;
}
.checkbox-group .checkbox-label { color: var(--hw-white); }
.checkbox-error { color: var(--hw-signal); font-size: var(--text-small); margin-top: 8px; }

.contact-submit { margin-top: 16px; }

/* Direct contact links */
.direct-contact {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--hw-dark-muted);
  color: var(--hw-dark-muted);
}
.direct-contact p { margin-bottom: 12px; }
.contact-link {
  color: var(--hw-dark-muted);
  text-decoration: none;
  margin-right: 24px;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--hw-signal); text-decoration: underline; }

/* ─── Section 6: Contact (stone) ─── */
.section-stone.section-contact .section-headline {
  color: var(--hw-black);
}

.section-stone .contact-intro {
  color: var(--hw-graphite);
}

.section-stone .contact-form label {
  color: var(--hw-graphite);
}

.section-stone .checkbox-group legend {
  color: var(--hw-graphite);
}

.section-stone .checkbox-group .checkbox-label {
  color: var(--hw-black);
}

.section-stone .checkbox-error {
  color: #C0392B;
}

.section-stone input[type="text"],
.section-stone input[type="email"],
.section-stone textarea {
  color: var(--hw-black);
  border-color: var(--hw-line);
  background: transparent;
}

.section-stone input::placeholder,
.section-stone textarea::placeholder {
  color: var(--hw-dark-muted);
}

/* Direct contact — stone version */
.section-stone .direct-contact {
  border-top: none;
  color: var(--hw-graphite);
}

.section-stone .contact-link {
  color: var(--hw-graphite);
}

.section-stone .contact-link:hover {
  color: var(--hw-signal);
}

/* Thank-you state — stone version */
.section-stone .thank-you h3 {
  color: var(--hw-black);
}

.section-stone .thank-you p {
  color: var(--hw-graphite);
}

/* Error state — stone version */
.section-stone .form-error {
  color: #C0392B;
}

/* ─── Scroll Reveal (JS-gated: hidden only when JS is available) ─── */
.js-ready .reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger elements (JS-gated) */
.js-ready .hero-stagger {
  opacity: 0;
  transform: translateY(10px);
}
.hero-stagger.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── Responsive ─── */
@media (max-width: 1079px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-logo { height: 120px; }
  .hero-tagline { font-size: 18px; margin-bottom: 32px; }

  .thesis-grid { grid-template-columns: 1fr; gap: 32px; }

  .product-grid { grid-template-columns: 1fr; }
  .product-delivered { order: -1; }

  .demo-panel { grid-template-columns: 1fr; gap: 32px; }
  .demo-output-panel { max-height: 400px; }

  .container, .container-narrow { padding: 0 16px; }

  .product-card { padding: 24px; }
  .product-flagship .product-scenario { font-size: 18px; }

  .direct-contact { text-align: center; }
  .contact-link { display: block; margin: 8px 0; }
}
