/* Scratch-only graphics pass. Inline SVG, logo vocabulary,
   cream/ink stroke with one amber block. Decorative, still. */

.diagram {
  display: block;
  width: 9rem;
  max-width: 100%;
  height: auto;
  color: var(--ink);
  overflow: visible;
}

.diagram-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linejoin: miter;
  stroke-miterlimit: 8;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

.diagram-accent {
  fill: var(--accent);
  stroke: none;
}

.card-diagram {
  margin: 0 0 1.2rem;
}

/* ---- Pricing timeline ----
   One group: the four-step path, with bars that grow along the line.
   The plan session is optional and is not part of this sequence. */

.pricing-timeline {
  margin: 2.5rem 0 0;
  color: var(--ink);
}

.timeline-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 2.75rem;
  align-items: start;
}

.timeline-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.timeline-svg {
  display: block;
  width: 100%;
  height: 4.6rem;
  color: var(--ink);
  overflow: visible;
}

.timeline-labels {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.timeline-labels-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-labels-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-labels-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-labels li {
  min-width: 0;
}

.pricing-follow .pricing-grid {
  margin-top: 2.15rem;
}

@media (max-width: 720px) {
  .timeline-groups {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- FAQ / Contact corner bracket ---- */

#faq,
#contact {
  position: relative;
  overflow: hidden;
}

.corner-bracket {
  position: absolute;
  z-index: 0;
  width: 15rem;
  height: auto;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}

#faq .corner-bracket {
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
}

#contact .corner-bracket {
  left: 2%;
  bottom: 8%;
  top: auto;
}

#faq > .wrap,
#contact > .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .corner-bracket {
    width: 9rem;
  }

  #faq .corner-bracket {
    top: 1.5rem;
    right: 0.4rem;
    transform: none;
  }

  #contact .corner-bracket {
    left: 0.4rem;
    bottom: 1rem;
  }
}

@media (max-width: 639px) {
  /* Height-capped so the tall logo bracket stays in the section
     padding and never crosses the type. Width follows the viewBox. */
  .corner-bracket {
    width: auto;
    height: 4.4rem;
    opacity: 0.06;
  }
  #faq .corner-bracket {
    top: 0.4rem;
    right: 0.25rem;
    transform: none;
  }
  #contact .corner-bracket {
    top: 0.4rem;
    left: 0.25rem;
    bottom: auto;
  }
}

/* ---- Front Range, footer ---- */

.site-footer {
  position: relative;
}

.foothills {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto 1.85rem;
  color: var(--ink);
  pointer-events: none;
}

.foothills svg {
  display: block;
  width: 100%;
  height: auto;
}

.foothills svg.foothills-v {
  display: none;
}

@media (max-width: 639px) {
  .diagram {
    width: 7.5rem;
  }

  .foothills {
    margin-bottom: 1.4rem;
  }

  .foothills svg.foothills-h {
    display: none;
  }

  .foothills svg.foothills-v {
    display: block;
    width: 100%;
    height: auto;
  }

  /* On phones, sit the Contact bracket in the top-left padding
     so it remains visible and stays off the form. */
  #contact .corner-bracket {
    top: 1.5rem;
    left: 0.4rem;
    bottom: auto;
  }
}

/* ---- How we work mark and step diagrams ---- */

.process-mark {
  flex: 0 0 auto;
  width: 8.75rem;
  color: var(--ink);
  justify-self: end;
  align-self: center;
}

.process-mark-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--ink);
}

.process-mark-bracket {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

.step-diagram {
  margin: 0 0 1rem;
}

.diagram-step {
  width: 6.5rem;
}

@media (max-width: 639px) {
  .diagram-step {
    width: 5.5rem;
  }
}
