/* ==========================================================================
   v4 — hero stability, tighter rhythm, differentiated section surfaces
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO — stop the height jump between slides
   The slides were absolute-when-hidden / relative-when-active, so the wrapper
   height tracked whichever slide was showing and the page jumped on rotate.
   Stacking them in a single grid cell means the wrapper is always as tall as
   the TALLEST slide, so nothing moves.
   -------------------------------------------------------------------------- */
.hero-slides{
  display: grid;
  position: static;
  min-height: 0;
}
.hero-slide,
.hero-slide.is-active{
  grid-area: 1 / 1;
  position: static;
}
.hero-slide{
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
  pointer-events: none;
}
.hero-slide.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Shorter hero overall */
.hero{ padding: var(--space-5) 0 var(--space-5); }
.hero .h-display{ font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.06; }
.hero-slide .body-lg{ font-size: 1.02rem; margin-top: 14px !important; max-width: 480px; }
.hero-actions{ margin-top: var(--space-3) !important; }
.hero-dots{ margin-top: var(--space-3); }
.hero-meta{ margin-top: var(--space-4); gap: var(--space-4); }
.hero-meta div .num{ font-size: 1.25rem; }
.hero-meta div .lbl{ font-size: 0.74rem; }
.hero-visual{ min-height: 360px; }
.hero-visual-slide .mock-window,
.hero-visual-slide .mock-figure{ max-width: 400px; }

@media (max-width: 980px){
  .hero{ padding: var(--space-4) 0 var(--space-5); }
  .hero-visual{ min-height: 320px; }
}

/* --------------------------------------------------------------------------
   2. Tighter vertical rhythm
   -------------------------------------------------------------------------- */
.section{ padding: var(--space-5) 0; }
.section-tight{ padding: var(--space-4) 0; }
.section-head{ margin-bottom: var(--space-4); }
@media (max-width: 900px){
  .section{ padding: var(--space-4) 0; }
  .section-tight{ padding: var(--space-3) 0; }
}

/* Breadcrumb / page hero — noticeably shallower */
.page-hero{ padding: var(--space-4) 0 var(--space-4); }
.page-hero-crumbs{ margin-bottom: var(--space-2); }
.page-hero .h-1{ font-size: clamp(1.7rem, 2.9vw, 2.5rem); }
.page-hero-lede{ margin-top: 10px; font-size: 1rem; }
@media (max-width: 700px){
  .page-hero{ padding: var(--space-3) 0 var(--space-3); }
}

/* --------------------------------------------------------------------------
   3. Section surfaces — each band gets its own identity
   -------------------------------------------------------------------------- */

/* soft brand wash + blueprint ruling */
.surface-tint{
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,100,53,0.055) 0%, rgba(255,203,5,0.07) 100%),
    var(--color-background);
}
.surface-tint::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,100,53,0.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(0,100,53,0.045) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 80%);
  pointer-events: none;
}
.surface-tint > .container{ position: relative; z-index: 1; }

/* warm neutral with a hairline frame in the corner */
.surface-stone{ position: relative; background: var(--color-stone); }
.surface-stone::after{
  content: "";
  position: absolute; right: 4%; top: 18%;
  width: 180px; height: 180px;
  border-top: 1.5px solid var(--color-primary);
  border-right: 1.5px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) 0 0;
  opacity: .12;
  pointer-events: none;
}

/* paper with a faint dot field */
.surface-paper{ position: relative; background: var(--color-background); }
.surface-paper::before{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .05;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.surface-paper > .container{ position: relative; z-index: 1; }

/* every band carries a short accent rule above its eyebrow */
.section-head .eyebrow::after{
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--color-accent);
  margin-left: 10px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. "See Safety Assist in action" — show all three views at once
   -------------------------------------------------------------------------- */
.views-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}
.view-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.view-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-border-dark); }
.view-card-head{
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-3) var(--space-3) 0;
}
.view-card-num{
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--color-accent-deep); font-weight: 600;
}
.view-card-label{
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.view-card-body{ padding: var(--space-2) var(--space-3) var(--space-3); flex: 1; }
.view-card-body h3{ font-size: 1.12rem; margin-bottom: 8px; }
.view-card-body p{ font-size: 0.9rem; line-height: 1.55; color: var(--color-text-muted); }
.view-card-stage{
  padding: var(--space-3) var(--space-3) 0;
  background: linear-gradient(180deg, var(--color-stone), var(--color-background));
  border-top: 1px solid var(--color-border);
  display: flex; align-items: flex-end; justify-content: center;
  height: 300px;          /* fixed so all three stages start on the same line */
  overflow: hidden;
}
/* scale the mockups down so three fit side by side */
.view-card-stage .mock-window,
.view-card-stage .mock-figure{ width: 100%; max-width: 100%; }
.view-card-stage .mock-phone{ width: 158px; }
.view-card-stage .mock-caption{ display: none; }
.view-card-stage .mock-body{ padding: var(--space-2); }
.view-card-stage .mock-kpi .val{ font-size: 1rem; }
.view-card-stage .mock-kpi .lbl{ font-size: 0.6rem; }
.view-card-stage .mock-row{ font-size: 0.7rem; padding: 6px 2px; }
.view-card-stage .org-node{ font-size: 0.64rem; padding: 5px 9px; }
.view-card-stage .mock-caption-in{ font-size: 0.66rem; }
.view-card-stage .donut{ width: 46px; height: 46px; }
.view-card-stage .program-item{ font-size: 0.66rem; padding: 6px 8px; }

@media (max-width: 1000px){
  .views-grid{ grid-template-columns: 1fr; }
  .view-card-stage{ height: auto; padding-bottom: var(--space-3); }
}

/* --------------------------------------------------------------------------
   5. Homepage pricing preview
   -------------------------------------------------------------------------- */
.price-preview{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.price-chip{
  position: relative;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.price-chip:hover{ transform: translateY(-3px); border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.price-chip-featured{ border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255,203,5,0.16); }
.price-chip-tier{
  font-size: 0.7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.price-chip-amount{
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.85rem; line-height: 1.1; color: var(--color-heading);
  margin-top: 6px;
}
.price-chip-unit{ font-size: 0.76rem; color: var(--color-text-muted); }
.price-note{
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}
@media (max-width: 720px){ .price-preview{ grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   6. Pricing page — licensing terms + "which tier" CTA
   -------------------------------------------------------------------------- */
.terms-band{
  background: var(--color-ink);
  border: none;
  border-left: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: var(--space-5);
}
.terms-band::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.terms-band > *{ position: relative; z-index: 1; }
.terms-band .eyebrow{ color: var(--color-accent); }
.terms-band-title{ color: #fff; }
.terms-band-icon{
  background: rgba(255,203,5,0.16);
  color: var(--color-accent);
  border: 1px solid rgba(255,203,5,0.3);
}
.terms-point{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.terms-point p{ color: rgba(255,255,255,0.78); }
.terms-point-num{ color: var(--color-accent); }

/* the "not sure which tier" prompt, as a proper card */
.tier-help{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-stone), var(--color-background));
  border: 1px solid var(--color-border);
}
.tier-help-icon{
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.tier-help-icon svg{ width: 26px; height: 26px; }
.tier-help h3{ font-size: 1.1rem; margin-bottom: 4px; }
.tier-help p{ font-size: 0.92rem; color: var(--color-text-muted); }
@media (max-width: 760px){
  .tier-help{ grid-template-columns: 1fr; text-align: left; }
  .tier-help .btn{ width: 100%; }
}
