/* ============================================
   GHOST REVENUE — APP SITE ADDITIONS
   Loaded after style.css. Only new components live here,
   so the original design system and the blog stay untouched.
   ============================================ */

/* HERO — H1, then copy|shot row, then centered CTA stack */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  text-align: center;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  width: 100%;
  text-align: left;
}
.hero .hero-content {
  max-width: 50ch;
  justify-self: start;
}
.hero .section-desc {
  max-width: 50ch;
  margin-bottom: 0;
  text-align: left;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin-top: clamp(36px, 4.5vw, 52px);
  text-align: center;
}
.hero-price {
  margin: 0 0 22px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--gray-600);
}
.hero .hero-ctas {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 12px;
}
.hero .hero-ctas .btn {
  width: 100%;
}
.hero-media {
  position: relative;
  z-index: 2;
}
.hero-media img,
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: var(--white);
}
.hero-media[hidden],
.feature-media[hidden] {
  display: none !important;
}
.hero-split:has(.hero-media[hidden]) {
  grid-template-columns: 1fr;
  justify-items: center;
}
.hero-split:has(.hero-media[hidden]) .hero-content {
  justify-self: center;
}

/* HERO SUPPORTING NOTE */
.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-500);
}

.hero .hero-actions {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.75s forwards;
}
.hero .hero-media {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-actions,
  .hero .hero-media { opacity: 1; animation: none; }
}

/* PRICING — unit suffix on the price */
.service-price-unit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0;
}

/* Free tier: quiet text link + muted disclaimer */
.pricing-muted {
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-500);
}
.pricing-quiet-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.pricing-quiet-link:hover {
  color: var(--accent);
}

/* Make Pro the visual anchor when both cards are present */
.pricing-grid .service-card-primary {
  transform: scale(1.02);
}
@media (max-width: 900px) {
  .pricing-grid .service-card-primary { transform: none; }
}

/* FOUNDER — the honest attribution line */
.about-text .founder-caveat,
.founder-caveat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--gray-500);
}

/* ============================================
   CAPABILITIES SHOWCASE — alternating feature rows
   ============================================ */
.capabilities-section {
  background:
    radial-gradient(circle at 88% 8%, var(--accent-light) 0%, transparent 42%),
    var(--white);
}

.capabilities-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.feature-row--flip .feature-media {
  order: -1;
}

.feature-row:has(.feature-media[hidden]) {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.feature-row:has(.feature-media[hidden]) .feature-media {
  order: 0;
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.feature-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 54ch;
}

/* ============================================
   VALUE TABLE — what $149 replaces
   ============================================ */
.value-section {
  background: var(--gray-50);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.value-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.value-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.05);
}

.value-table th,
.value-table td {
  padding: 22px 28px;
  text-align: left;
  vertical-align: top;
  font-size: 1.02rem;
  line-height: 1.55;
}

.value-table thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.value-table tbody td {
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.value-table tbody tr:last-child td {
  border-bottom: none;
}

.value-table th:last-child,
.value-table td:last-child {
  width: 38%;
  white-space: nowrap;
}

.value-table-highlight td {
  background: var(--accent-light);
  color: var(--black);
  font-size: 1.05rem;
}

.value-table-note {
  margin-top: 28px;
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gray-600);
}

/* ============================================
   THE FIX DEMO — the differentiating section
   ============================================ */
.fix-section {
  background:
    radial-gradient(circle at 12% 0%, var(--accent-light) 0%, transparent 55%),
    var(--white);
}

.fix-demo {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
}

.fix-demo-head {
  padding: 36px 44px 28px;
  border-bottom: 1px solid var(--gray-100);
}
.fix-demo-head h3 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.fix-demo-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fix-demo-body {
  padding: 8px 44px 12px;
}

.fix-demo-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-100);
}
.fix-demo-block:last-child { border-bottom: none; }

.fix-demo-block h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.fix-demo-block p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 74ch;
}

/* Numbered fix steps */
.fix-steps {
  list-style: none;
  counter-reset: fixstep;
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.fix-steps li {
  counter-increment: fixstep;
  position: relative;
  padding-left: 46px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 74ch;
}
.fix-steps li::before {
  content: counter(fixstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.fix-demo-foot {
  margin: 0;
  padding: 22px 44px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* FOOTER LINK ROW */
.footer-links {
  margin-bottom: 14px !important;
}
.footer-links a {
  color: var(--white) !important;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent) !important; }
.footer-links span {
  margin: 0 10px;
  color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero {
    min-height: 0;
    padding-bottom: 72px;
  }
}

@media (max-width: 900px) {
  /* Flatten so we can order: copy → CTAs → image */
  .hero-split {
    display: contents;
  }
  .hero h1 { order: 1; }
  .hero-content { order: 2; width: 100%; max-width: none; justify-self: stretch; }
  .hero-actions { order: 3; margin-top: 28px; }
  .hero-media { order: 4; max-width: 640px; width: 100%; margin-top: 8px; }
  .hero .section-desc {
    text-align: center;
    margin-inline: auto;
  }

  .feature-row,
  .feature-row--flip {
    grid-template-columns: 1fr;
  }
  .feature-row--flip .feature-media {
    order: 0;
  }

  .fix-demo-head { padding: 28px 26px 22px; }
  .fix-demo-body { padding: 4px 26px 8px; }
  .fix-demo-foot { padding: 18px 26px; }

  .value-table th,
  .value-table td {
    padding: 18px 20px;
    font-size: 0.96rem;
  }
}

@media (max-width: 768px) {
  .fix-demo { margin-top: 36px; }
  .fix-demo-block { padding: 22px 0; }
  .fix-demo-block p,
  .fix-steps li { font-size: 0.96rem; }
  .fix-steps li { padding-left: 40px; }
  .fix-steps li::before { width: 25px; height: 25px; font-size: 0.72rem; }
  .footer-links span { margin: 0 6px; }
  .hero-note { font-size: 0.8rem; }

  .feature-copy h3 { font-size: 1.35rem; }
  .feature-copy p { font-size: 0.98rem; }

  /* Value table → stacked cards */
  .value-table,
  .value-table thead,
  .value-table tbody,
  .value-table th,
  .value-table td,
  .value-table tr {
    display: block;
    width: 100%;
  }
  .value-table thead { display: none; }
  .value-table {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .value-table tbody tr {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }
  .value-table tbody td {
    border: none;
    padding: 0;
    white-space: normal;
  }
  .value-table tbody td + td {
    margin-top: 10px;
    font-weight: 600;
    color: var(--gray-700);
  }
  .value-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
  }
  .value-table-highlight {
    background: var(--accent-light) !important;
    border-color: rgba(255, 107, 26, 0.25) !important;
  }
  .value-table-highlight td {
    background: transparent;
  }
}

/* Respect reduced motion for the shadow/lift transitions inherited above */
@media (prefers-reduced-motion: reduce) {
  .fix-demo { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
  .hero-media img,
  .feature-media img { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
  .pricing-grid .service-card-primary { transform: none; }
}

/* FOUNDER — multi-paragraph story needs breathing room.
   style.css only ever had a single <p> here. */
.about-text p + p { margin-top: 18px; }
.about-text .founder-caveat { margin-top: 24px; }

/* MOBILE NAV — beside the logo the links wrapped to one per row, making
   the bar tall enough to sit over the top of the H1. Stack it instead:
   logo on its own row, links as a single centred row underneath. */
@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }
  .nav-logo { order: 1; }
  .nav-lead {
    order: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-lead::-webkit-scrollbar { display: none; }
  .nav-text-link { white-space: nowrap; }
  .hero { padding-top: 150px; }
}

@media (max-width: 400px) {
  /* Narrow phones: keep nav on one row and scroll from the start if needed. */
  .nav-lead {
    justify-content: flex-start;
    gap: 14px;
  }
  .nav-text-link { font-size: 0.68rem; }
  .hero { padding-top: 146px; }

  .value-table tbody tr { padding: 16px 16px; }
  .feature-copy p,
  .value-table-note { font-size: 0.94rem; }
}

/* Guard against horizontal overflow on narrow phones */
@media (max-width: 360px) {
  .hero-ctas .btn,
  .pricing-quiet-link {
    word-break: break-word;
  }
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}
