/* ============================================================
   Developers page — additional styles
   Mirrors homeowners-additions.css's component set (bridge header,
   stage cards + modal, closing CTA, footer) rescoped to
   .page-developers, plus a few developer-only additions: the
   Development Options panel, the outcome bullets in the closing CTA,
   and the shared blog-teaser strip. Tiers/Extras aren't part of this
   page's content, so those components aren't duplicated here.
   ============================================================ */

.page-developers {
  --h-paper: var(--chalk, #F3EFE5);
  --h-ink: var(--ink, #2A2420);
  --h-ink-soft: var(--ink-soft, #6b6459);
  --h-rust: var(--brick, #A85138);
  --h-card: var(--chalk-2, #EAE4D6);
  --h-line: var(--line, rgba(42, 36, 32, 0.14));
  --h-serif: var(--serif, 'Fraunces', serif);
  --h-sans: var(--sans, 'Work Sans', sans-serif);
  --h-mono: var(--mono, 'IBM Plex Mono', monospace);

  background: var(--h-paper);
  color: var(--h-ink);
}

.page-developers .side-index {
  top: 140px;
  transform: none;
}

/* ---------- Bridge header ---------- */
.bridge-header {
  position: relative;
  overflow: hidden;
  padding: 80px 0 80px;
  border-bottom: 1px solid var(--h-line);
}

.bridge-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/image7.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}

.bridge-header .section-inner {
  position: relative;
  z-index: 1;
}

.bridge-header h1 {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5.33vh, 2.6rem);
  line-height: 1.15;
  margin: 18px 0 24px;
  max-width: 16ch;
}

.bridge-header h1 em {
  color: var(--h-rust);
  font-style: italic;
}

.bridge-sub {
  font-family: var(--h-sans);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--h-ink-soft);
  max-width: 52ch;
  line-height: 1.6;
}

.bridge-sub a {
  color: var(--h-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bridge-cross {
  font-family: var(--h-sans);
  font-size: 0.85rem;
  color: var(--h-ink-soft);
  margin-top: 16px;
}

.bridge-cross a {
  color: var(--h-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Development Options (developer-only, no homeowner equivalent) ---------- */
.dev-goals { padding: 60px 0; }

.dev-goals__panel {
  background: var(--h-card);
  border-radius: 6px;
  padding: 44px;
  max-width: 900px;
  margin: 0 auto;
}

.dev-goals__panel h2 {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem);
  margin: 10px 0 20px;
  max-width: 20ch;
}

.dev-goals__panel p {
  font-family: var(--h-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--h-ink);
  max-width: 68ch;
  margin: 0 0 16px;
}

.dev-goals__panel p:last-child { margin-bottom: 0; }

/* ---------- Stages, expanded ---------- */
.stages-full {
  padding: 20px 0 100px;
  background-color: var(--h-paper);
  background-image: radial-gradient(rgba(42, 36, 32, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.stages-head { margin-bottom: 48px; }
.stages-head h2 {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stage-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--h-line);
  border-radius: 4px;
  background: var(--h-paper);
  scroll-margin-top: 160px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  outline: none;
}

.stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--h-rust);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.stage-card:hover,
.stage-card:focus-visible {
  border-color: var(--h-rust);
  box-shadow: 0 6px 18px rgba(42, 36, 32, 0.1);
}

.stage-card:hover::before,
.stage-card:focus-visible::before {
  transform: translateX(0);
}

.stage-card__thumb {
  position: relative;
  z-index: 1;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 3px;
  overflow: hidden;
}

.stage-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.stage-card:hover .stage-card__thumb img,
.stage-card:focus-visible .stage-card__thumb img {
  transform: scale(1.05);
}

.stage-card__body { position: relative; z-index: 1; flex: 1; min-width: 0; }

.stage-card .sk-num {
  font-family: var(--h-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--h-rust);
  transition: color 0.35s ease;
}

.stage-card .s-name {
  font-family: var(--h-serif);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 4px 0 4px;
  color: var(--h-ink);
  transition: color 0.35s ease;
}

.stage-card .s-teaser {
  font-family: var(--h-serif);
  font-style: italic;
  color: var(--h-ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.35s ease;
}

.stage-card:hover .sk-num,
.stage-card:focus-visible .sk-num,
.stage-card:hover .s-name,
.stage-card:focus-visible .s-name,
.stage-card:hover .s-teaser,
.stage-card:focus-visible .s-teaser {
  color: #fff;
}

.stage-card .s-full { display: none; }

@media (max-width: 1100px) {
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Stage detail modal ---------- */
.stage-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stage-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.stage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 36, 32, 0.55);
}

.stage-modal__panel {
  position: relative;
  display: flex;
  gap: 28px;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px;
  background: var(--h-paper);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform 0.35s ease;
}

.stage-modal.is-open .stage-modal__panel { transform: translateY(0); }

.stage-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--h-line);
  background: var(--h-paper);
  color: var(--h-ink-soft);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.stage-modal__close:hover { color: var(--h-rust); border-color: var(--h-rust); }

.stage-modal__thumb {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
}

.stage-modal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.stage-modal__body { flex: 1; min-width: 0; }

.stage-modal__num {
  font-family: var(--h-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--h-rust);
}

.stage-modal__name {
  font-family: var(--h-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 8px 0 18px;
}

.stage-modal__text { column-count: 2; column-gap: 32px; column-fill: balance; }

.stage-modal__text p {
  font-family: var(--h-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--h-ink);
  margin: 0 0 14px;
}

.stage-modal__text p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .stage-modal__panel { flex-direction: column; padding: 30px; }
  .stage-modal__thumb { width: 100%; height: 160px; }
  .stage-modal__text { column-count: 1; }
}

@media (max-width: 640px) {
  .stages-grid { grid-template-columns: 1fr; }
  .stage-card { flex-direction: column; }
  .stage-card__thumb { width: 100%; height: 150px; }
  .stage-card:hover .s-full,
  .stage-card:focus-visible .s-full { column-count: 1; }
}

/* ---------- Developer's Guide download card ---------- */
.calc-promo { padding: 20px 0 100px; }

.guide-card--calc {
  max-width: 720px;
  margin: 0 auto;
  background: var(--h-card);
  border-radius: 6px;
  padding: 40px;
}

.guide-card--calc h3 {
  font-family: var(--h-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 10px 0 12px;
}

.guide-card--calc p {
  font-family: var(--h-sans);
  color: var(--h-ink-soft);
  line-height: 1.6;
}

/* ---------- "Getting started can be the hardest part" — blog teasers ---------- */
.blog-teasers { padding: 20px 0 100px; }

.blog-teasers-head { margin-bottom: 40px; text-align: center; }
.blog-teasers-head h2 {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem);
  margin-top: 10px;
}

.blog-teasers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--h-line);
  border-radius: 4px;
  color: var(--h-ink);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  border-color: var(--h-rust);
  box-shadow: 0 6px 18px rgba(42, 36, 32, 0.1);
}

.blog-card h3 {
  font-family: var(--h-serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 10px 0 10px;
}

.blog-card p {
  font-family: var(--h-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--h-ink-soft);
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--h-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-rust);
}

@media (max-width: 900px) {
  .blog-teasers-grid { grid-template-columns: 1fr; }
}

/* ---------- Lighter closing CTA (no qualify widget) ---------- */
.action--light {
  padding: 80px 0 60px;
  background: var(--h-paper);
  color: var(--h-ink);
  position: static;
}

.action--light .action-head h2 {
  font-family: var(--h-serif);
  font-weight: 400;
  color: var(--h-ink);
}

.action--light .action-head h2 em { color: var(--h-rust); }

.action--light .action-head p { color: var(--h-ink-soft); }

/* Three-bullet outcome list under the intro copy */
.action-outcomes {
  list-style: none;
  margin: 28px auto 0;
  max-width: 460px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-outcomes li {
  font-family: var(--h-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--h-ink);
  padding-left: 26px;
  position: relative;
}

.action-outcomes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--h-rust);
  font-family: var(--h-mono);
}

.action--light .action-contact a {
  border-color: var(--h-line);
  color: var(--h-ink);
}

.action--light .action-contact a:hover {
  border-color: var(--h-rust);
  background: var(--h-card);
}

.action--light .action-contact .lbl { color: var(--h-rust); }

/* ---------- Footer ---------- */
.page-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--h-line);
  text-align: center;
}

.page-footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--h-mono);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.page-footer__links a {
  color: var(--h-ink-soft);
  text-decoration: none;
}
.page-footer__links a:hover { color: var(--h-rust); }

.page-footer .disclaimer {
  max-width: 640px;
  margin: 0 auto 20px;
}
