/* =============================================================================
   IntelliBOM · intellibom.ca · Scenario 2 · Ethereal Glass
   pages.css — inner-page shell: hero + section head + spec-sheet + cta + focus-read
   Shared across: features.html · documents.html · pricing.html · faq.html
   Pairs with page-widgets.css (doc-card · plan · faq-item).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   0. HOME DOCK — fixed left-edge vertical ribbon, CAD-chrome back-to-home
   Always visible. Industrial-editorial vocabulary: pulse · arrow · rotated
   monospace label · emerald hairline · ITEM 00 digits.
   ---------------------------------------------------------------------------*/
.home-dock {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 11px 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
          backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 14px 14px 0;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition:
    background 320ms var(--ease-glass),
    border-color 320ms var(--ease-glass),
    transform 440ms var(--ease-glass),
    box-shadow 440ms var(--ease-glass),
    padding 320ms var(--ease-glass);
}
.home-dock::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 185, 129, 0.35) 15%,
    var(--emerald) 50%,
    rgba(16, 185, 129, 0.35) 85%,
    transparent 100%
  );
  box-shadow: 0 0 12px var(--emerald-glow);
  transition: width 320ms var(--ease-glass), box-shadow 320ms var(--ease-glass);
  pointer-events: none;
}
.home-dock:hover,
.home-dock:focus-visible {
  background: var(--glass-hi);
  border-color: rgba(16, 185, 129, 0.48);
  transform: translateY(-50%) translateX(8px);
  box-shadow:
    0 0 40px -10px rgba(16, 185, 129, 0.42),
    20px 0 60px -20px rgba(16, 185, 129, 0.28);
  outline: none;
}
.home-dock:hover::before,
.home-dock:focus-visible::before {
  width: 3px;
  box-shadow: 0 0 18px var(--emerald-glow-2);
}

.home-dock__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 var(--emerald-glow-2);
  animation: dock-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--emerald-glow-2), 0 0 8px var(--emerald); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0), 0 0 14px var(--emerald); }
}

.home-dock__arrow {
  width: 14px;
  height: 14px;
  color: var(--emerald);
  transition: transform 340ms var(--ease-glass);
  flex-shrink: 0;
}
.home-dock:hover .home-dock__arrow,
.home-dock:focus-visible .home-dock__arrow {
  transform: translateX(-3px);
}

.home-dock__rule {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
  flex-shrink: 0;
}

.home-dock__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel-2);
  line-height: 1;
  padding: 4px 0;
  transition: color 320ms var(--ease-glass);
}
.home-dock:hover .home-dock__label,
.home-dock:focus-visible .home-dock__label {
  color: var(--white);
}

.home-dock__item {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

/* Mobile: collapse to horizontal pill bottom-left */
@media (max-width: 820px) {
  .home-dock {
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    gap: 10px;
    padding: 10px 16px 10px 13px;
    border-left: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  }
  .home-dock::before {
    display: none;
  }
  .home-dock:hover,
  .home-dock:focus-visible {
    transform: translateX(4px);
  }
  .home-dock__label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0;
    letter-spacing: 0.22em;
  }
  .home-dock__rule {
    width: 18px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-dock__pulse { animation: none; }
}

/* -----------------------------------------------------------------------------
   1. PAGE HERO
   ---------------------------------------------------------------------------*/
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(40px, 5vw, 64px);
  display: grid;
  gap: clamp(18px, 1.8vw, 24px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.page-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.page-hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.page-hero__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(96deg, var(--emerald) 0%, var(--emerald-2) 50%, var(--emerald) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: shimmer 9s linear infinite;
  padding-right: 0.02em;
}
.page-hero__sub {
  margin: 0;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.65;
  color: var(--steel-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.page-hero__lede {
  margin: 0;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 2px solid var(--emerald);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--steel);
  max-width: 58ch;
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   2. PAGE SECTION — reusable section wrapper for inner pages
   ---------------------------------------------------------------------------*/
.page-sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
}
.page-sec__head {
  display: grid;
  gap: 16px;
  margin: 0 0 44px;
  max-width: 720px;
}
.page-sec__head .bom-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 56px;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--steel);
  width: fit-content;
}
.page-sec__head .bom-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--emerald), transparent);
  transform-origin: left center;
  animation: rule-extend 1.2s var(--ease-glass) both;
}
.page-sec__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
.page-sec__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: -0.015em;
}
.page-sec__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   3. SPEC-SHEET — small glass card (features.html, pricing.html)
   ---------------------------------------------------------------------------*/
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.spec-grid--2 { grid-template-columns: repeat(2, 1fr); }
.spec-sheet {
  position: relative;
  padding: clamp(20px, 2vw, 28px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(22px);
          backdrop-filter: blur(22px);
  display: grid;
  gap: 10px;
  align-content: start;
  transition:
    border-color 320ms var(--ease),
    transform 480ms var(--ease-glass),
    box-shadow 480ms var(--ease-glass);
  overflow: hidden;
}
.spec-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.22), transparent);
}
.spec-sheet:hover {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 22px 60px -28px rgba(16, 185, 129, 0.22);
}
.spec-sheet__no {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--emerald);
  text-transform: uppercase;
  padding-left: 24px;
  position: relative;
  line-height: 1;
}
.spec-sheet__no::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--emerald);
  transform: translateY(-50%);
}
.spec-sheet__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: balance;
}
.spec-sheet__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--steel);
  text-wrap: pretty;
}
.spec-sheet__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.spec-sheet__tags li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--void-2);
}

@media (max-width: 1040px) { .spec-grid, .spec-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .spec-grid, .spec-grid--2 { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   4. CTA STRIP — reusable bottom action block
   ---------------------------------------------------------------------------*/
.cta-strip {
  max-width: var(--max);
  margin: clamp(60px, 8vw, 120px) auto 0;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(26px);
          backdrop-filter: blur(26px);
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr auto;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 10%, var(--emerald) 50%, transparent 90%);
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}
.cta-strip__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 36ch;
  text-wrap: balance;
}
.cta-strip__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--emerald);
}
.cta-strip__body {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--steel-2);
  line-height: 1.5;
  max-width: 52ch;
}
.cta-strip__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 820px) {
  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip__actions { justify-content: flex-start; }
}

/* -----------------------------------------------------------------------------
   5. FOCUSED-READ — single-column narrative block used on inner pages
   ---------------------------------------------------------------------------*/
.focus-read {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
  display: grid;
  gap: 18px;
}
.focus-read p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--steel);
  text-wrap: pretty;
}
.focus-read p em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: -0.005em;
}
.focus-read strong {
  color: var(--white);
  font-weight: 600;
}
