/* ─────────────────────────────────────────────────────────────
   Homepage-only styles (index.html).
   Loaded AFTER styles.css. Kept separate on purpose: styles.css is
   shared with about.html, demos.html and demo-*.html, so nothing here
   can regress those pages. Only add homepage classes in this file.
   ───────────────────────────────────────────────────────────── */

/* The hero visual is a wide browser mockup, not the old 1:1 diagram */
.hero-visual-site {
  aspect-ratio: auto;
  max-width: 620px;
  align-self: center;
}
@media (max-width: 960px) {
  .hero-visual-site { max-width: 560px; }
}

/* ── Hero mockup ─────────────────────────────────────────────── */
.mock-stage {
  position: relative;
  padding: 0 0 54px 0;
}

.mock {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float-y 7s ease-in-out infinite;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.mock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}
.mock-url {
  flex: 1;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-soft);
}

.mock-body { padding: 14px; }

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mock-brand { display: flex; align-items: center; gap: 6px; }
.mock-brand-dot {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--accent);
}
.mock-brand-bar {
  width: 44px; height: 7px;
  border-radius: 4px;
  background: var(--text);
  opacity: 0.75;
}
.mock-navlinks { display: flex; align-items: center; gap: 10px; }
.mock-navlinks span {
  width: 26px; height: 5px;
  border-radius: 3px;
  background: var(--border-strong);
}
.mock-navlinks .mock-navbtn {
  width: 46px; height: 18px;
  border-radius: 5px;
  background: var(--accent);
}

.mock-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.mock-copy { display: flex; flex-direction: column; gap: 8px; }

.mock-line { border-radius: 4px; background: var(--border-strong); }
.mock-line.xl  { height: 15px; background: var(--text); opacity: 0.82; }
.mock-line.lg  { height: 11px; background: var(--text); opacity: 0.7; }
.mock-line.sm  { height: 7px; }
.mock-line.xs  { height: 5px; }
.mock-line.short { width: 62%; }
.mock-line.mid   { width: 80%; }

.mock-ctas { display: flex; gap: 7px; margin-top: 6px; }
.mock-btn {
  width: 62px; height: 20px;
  border-radius: 6px;
  background: var(--accent);
  display: block;
}
.mock-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
}
.mock-btn.full { width: 100%; height: 22px; margin: 2px 0 4px; }

.mock-photo {
  border-radius: 9px;
  overflow: hidden;
  height: 108px;
  border: 1px solid var(--border);
}

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-card-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--accent-100);
  margin-bottom: 2px;
}

/* Phone, overlapping the browser's bottom-left corner */
.mock-phone {
  position: absolute;
  left: -42px;
  bottom: 0;
  width: 116px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding: 7px 7px 9px;
  animation: float-y 7s ease-in-out infinite;
  animation-delay: -3.5s;
}
.mock-phone-notch {
  width: 34px; height: 4px;
  border-radius: 3px;
  background: var(--border-strong);
  margin: 1px auto 7px;
}
.mock-phone-body { display: flex; flex-direction: column; gap: 6px; }
.mock-phone-card {
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
@media (max-width: 520px) {
  .mock-phone { display: none; }
}

/* Floating proof badge */
.mock-badge {
  position: absolute;
  right: -6px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.mock-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: none;
}
@media (max-width: 600px) {
  .mock-badge { right: 0; bottom: 10px; font-size: 12px; padding: 7px 12px; }
}

/* ── Logos label ─────────────────────────────────────────────── */
.logos-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Pricing: per-project build fee + optional monthly ───────── */
.pricing-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 820px) {
  .pricing-band { grid-template-columns: 1fr; }
}
.pricing-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elev);
}
/* The optional plan reads as the secondary choice, not the default */
.pricing-card.optional {
  background: var(--bg);
  border-style: dashed;
}
.pricing-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pricing-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.pricing-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.pricing-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.pricing-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--text);
}
.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent);
  flex: none;
}

/* ── Work cards ──────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--bg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}
.work-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  color: var(--text);
}
.work-card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.work-card-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.work-card:hover .work-card-link { gap: 10px; }
.work-card-link svg { transition: transform .2s ease; }

/* ── Before / After slider ───────────────────────────────────── */
.ba-stage {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  user-select: none;
  cursor: col-resize;
}
.ba-label {
  position: absolute;
  top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.ba-label.before { left: 16px; background: rgba(0,0,0,0.55); }
.ba-label.after  { right: 16px; background: var(--accent); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  z-index: 10;
}
.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.ba-handle-thumb {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── Automation add-ons (secondary offer) ────────────────────── */
.addon-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .addon-split { grid-template-columns: 1fr; gap: 40px; }
  .addon-visual { order: -1; }
}
.addon-heading {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  margin: 14px 0 18px;
  max-width: 460px;
}
.addon-body {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 28px;
}
.addon-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.addon-visual { max-width: 460px; width: 100%; justify-self: end; }
@media (max-width: 900px) {
  .addon-visual { justify-self: center; max-width: 400px; }
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .addon-grid { grid-template-columns: 1fr; } }
.addon {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .25s ease, border-color .25s ease;
}
.addon:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.addon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-50);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  margin-bottom: 14px;
}
.addon h4 { margin: 0 0 6px; font-size: 15.5px; }
.addon p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
