/* page.css — shared styles for interior pages (product, about, services, contact)
   Covers UltraKrill (Roman/engineering register) and Veil (Hebraic/contemplative register).
   Shared patterns prefixed .uk- (UltraKrill) or .veil- (Veil).
   TODO: generalise to unprefixed when a third page reuses the same patterns (rule of three).
   All values reference Oracle custom properties. No hardcoded tokens.

   New patterns introduced here vs home.css:
   - .uk-prose-layout: two-column (label | body) prose section
   - .uk-guarantees: guarantee grid
   - .uk-cta-section: full-width CTA block
   These are Layer 3 component candidates for Oracle. */

/* ─── Page hero (product pages) ──────────────────────────────────────────── */

.uk-hero {
  padding-block: var(--oracle-space-s8) var(--oracle-space-s7);
  border-bottom: var(--oracle-border-width) solid var(--oracle-color-cloud);
}

.uk-hero-inner {
  max-width: 720px;
}

.uk-hero-title {
  font-family: var(--oracle-font-display);
  font-size: var(--oracle-size-display);
  font-weight: 400;
  letter-spacing: var(--oracle-tracking-display);
  line-height: var(--oracle-lh-display);
  color: var(--oracle-color-ink);
  margin-bottom: var(--oracle-space-s3);
}

.uk-hero-tagline {
  font-family: var(--oracle-font-body);
  font-size: var(--oracle-size-lead);
  font-weight: var(--oracle-weight-body-light);
  font-style: italic;
  line-height: var(--oracle-lh-lead);
  color: var(--oracle-color-sky);
  margin-bottom: var(--oracle-space-s4);
}

.uk-hero-sub {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  max-width: 560px;
  margin-bottom: var(--oracle-space-s5);
}

/* ─── Section scaffold ────────────────────────────────────────────────────── */

.uk-section {
  padding-block: var(--oracle-space-section-gap);
}

/* Two-column prose layout: label column left, body right.
   Oracle Layer 3 candidate: "labelled prose section" pattern. */
.uk-prose-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--oracle-space-s4);
}

@media (min-width: 768px) {
  .uk-prose-layout {
    grid-template-columns: 200px 1fr;
    gap: var(--oracle-space-s6);
    align-items: start;
  }
}

.uk-section-label {
  padding-top: 6px; /* optical alignment with h2 cap height */
}

.uk-section-heading {
  font-family: var(--oracle-font-display);
  font-size: var(--oracle-size-h2);
  font-weight: 400;
  letter-spacing: var(--oracle-tracking-h2);
  line-height: var(--oracle-lh-h2);
  color: var(--oracle-color-ink);
  margin-bottom: var(--oracle-space-s4);
}

/* Wide heading — used when there's no label column */
.uk-section-heading-wide {
  font-family: var(--oracle-font-display);
  font-size: var(--oracle-size-h1);
  font-weight: 400;
  letter-spacing: var(--oracle-tracking-h1);
  line-height: var(--oracle-lh-h1);
  color: var(--oracle-color-ink);
  margin-bottom: var(--oracle-space-s6);
  max-width: 800px;
}

.uk-section-body p {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  margin-bottom: var(--oracle-space-s3);
}

.uk-section-body p:last-child { margin-bottom: 0; }

/* ─── Architectural guarantees grid ──────────────────────────────────────── */
/* Oracle Layer 3 candidate: "specification grid" pattern —
   a set of named properties each with a short explanatory paragraph. */

.uk-guarantees {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--oracle-space-s4);
  margin-top: var(--oracle-space-s5);
}

@media (min-width: 768px) {
  .uk-guarantees {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .uk-guarantees {
    grid-template-columns: repeat(3, 1fr);
  }
}

.uk-guarantee {
  padding: var(--oracle-space-component-padding);
  border: var(--oracle-border-width) solid var(--oracle-color-cloud);
  border-top: 1px solid var(--oracle-color-sky-pale);
  background: var(--oracle-color-surface);
}

.uk-guarantee-label {
  font-family: var(--oracle-font-mono);
  font-size: var(--oracle-size-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oracle-color-sky);
  margin-bottom: var(--oracle-space-s2);
}

.uk-guarantee-body {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  margin-bottom: 0;
}

/* ─── CTA section ─────────────────────────────────────────────────────────── */
/* Oracle Layer 3 candidate: "section CTA" pattern */

.uk-cta-section {
  padding-block: var(--oracle-space-s8);
  background: var(--oracle-color-surface);
  border-top: var(--oracle-border-width) solid var(--oracle-color-cloud);
  border-bottom: var(--oracle-border-width) solid var(--oracle-color-cloud);
}

.uk-cta-inner {
  max-width: 600px;
}

.uk-cta-heading {
  font-family: var(--oracle-font-display);
  font-size: var(--oracle-size-h1);
  font-weight: 400;
  letter-spacing: var(--oracle-tracking-h1);
  line-height: var(--oracle-lh-h1);
  color: var(--oracle-color-ink);
  margin-bottom: var(--oracle-space-s3);
}

.uk-cta-body {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  margin-bottom: var(--oracle-space-s5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VEIL — Hebraic/contemplative register
   Quieter than UltraKrill: deeper surfaces, gold hairline, italic display
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Veil hero ───────────────────────────────────────────────────────────── */

.veil-hero {
  padding-block: var(--oracle-space-s8) var(--oracle-space-s7);
  border-bottom: var(--oracle-border-width) solid var(--oracle-color-cloud);
  background: var(--oracle-color-surface);
}

.veil-hero-inner {
  max-width: 680px;
}

.veil-hero-title {
  font-family: var(--oracle-font-display);
  font-size: var(--oracle-size-display);
  font-weight: 400;
  letter-spacing: var(--oracle-tracking-display);
  line-height: var(--oracle-lh-display);
  color: var(--oracle-color-ink);
  margin-bottom: var(--oracle-space-s3);
}

.veil-hero-tagline {
  font-family: var(--oracle-font-body);
  font-size: var(--oracle-size-lead);
  font-weight: var(--oracle-weight-body-light);
  font-style: italic;
  line-height: var(--oracle-lh-lead);
  color: var(--oracle-color-ink-soft);
  margin-bottom: var(--oracle-space-s4);
}

.veil-hero-label {
  font-family: var(--oracle-font-body);
  font-size: var(--oracle-size-lead);
  font-weight: var(--oracle-weight-body);
  font-style: italic;
  line-height: var(--oracle-lh-lead);
  color: var(--oracle-color-ink-soft);
  margin-bottom: var(--oracle-space-s3);
}

.veil-hero-body {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  max-width: 560px;
  margin-bottom: 0;
}

/* ─── Italic heading for the parochet section ────────────────────────────── */

.veil-italic-heading {
  font-family: var(--oracle-font-body);
  font-style: italic;
  font-weight: var(--oracle-weight-body-light);
  font-size: var(--oracle-size-h1);
  letter-spacing: 0;
  line-height: var(--oracle-lh-h1);
  color: var(--oracle-color-ink);
}

/* ─── Visibility table ────────────────────────────────────────────────────── */
/* Two-column list: what Sanctus can / cannot see.
   Oracle Layer 3 candidate: "two-column fact list" pattern */

.veil-visibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--oracle-space-s4);
  margin-top: var(--oracle-space-s5);
}

@media (min-width: 648px) {
  .veil-visibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.veil-visibility-col-label {
  font-family: var(--oracle-font-mono);
  font-size: var(--oracle-size-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--oracle-space-s3);
  padding-bottom: var(--oracle-space-s2);
  border-bottom: var(--oracle-border-width) solid var(--oracle-color-cloud);
}

.veil-visibility-can   .veil-visibility-col-label { color: var(--oracle-color-ink-muted); }
.veil-visibility-cannot .veil-visibility-col-label { color: var(--oracle-color-sky); }

.veil-visibility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--oracle-space-s2);
}

.veil-visibility-list li {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  padding-left: var(--oracle-space-s3);
  position: relative;
}

.veil-visibility-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 1px;
}

.veil-visibility-can li { color: var(--oracle-color-ink-muted); }
.veil-visibility-can li::before { background: var(--oracle-color-cloud); }

.veil-visibility-cannot li { color: var(--oracle-color-ink-soft); }
.veil-visibility-cannot li::before { background: var(--oracle-color-sky-pale); }

/* ─── Tiers ───────────────────────────────────────────────────────────────── */

.veil-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--oracle-space-s4);
  margin-top: var(--oracle-space-s5);
}

@media (min-width: 768px) {
  .veil-tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.veil-tier {
  padding: var(--oracle-space-component-padding);
  border: var(--oracle-border-width) solid var(--oracle-color-cloud);
  border-top: 1px solid var(--oracle-color-gold);
  background: var(--oracle-color-surface);
}

.veil-tier-label {
  font-family: var(--oracle-font-mono);
  font-size: var(--oracle-size-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oracle-color-ink-muted);
  margin-bottom: var(--oracle-space-s2);
}

.veil-tier-body {
  font-size: var(--oracle-size-body);
  font-weight: var(--oracle-weight-body);
  line-height: var(--oracle-lh-body);
  color: var(--oracle-color-ink-soft);
  margin-bottom: 0;
}

/* ─── Veil CTA variant ────────────────────────────────────────────────────── */

.veil-cta-section {
  background: var(--oracle-color-surface-2);
}

.veil-btn {
  border-color: var(--oracle-color-gold);
  color: var(--oracle-color-ink-soft);
}

.veil-btn:hover {
  background: var(--oracle-color-gold-ghost);
  color: var(--oracle-color-ink);
}
