/* minidev.pro service pages (services, saas, ai, ai-content, uk, marketplace, mobile, non-technical, internal tools).
   Only what these sales pages need on top of pages.css. Tokens come from pages.css. */

/* ---------- tables: the wrapper div scrolls, the page never does ---------- */
div.comparison-table, .comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0 8px; }
div.comparison-table > table:has(thead th:nth-child(4)) { min-width: 640px; }
div.comparison-table + .large-text, div.comparison-table + p, .comparison-table-wrapper + p { margin-top: 28px; }
div.comparison-table td strong { color: var(--ink); }
.svc-note, .uk-note { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 32px; padding: 16px 20px; }
.svc-sources, .uk-sources { margin: 20px 0 0; padding-left: 1.4em; }
.svc-sources li, .uk-sources li { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- editorial entries ---------- */
.values-section .large-text + .large-text { margin-top: 0; }
.value-item p + p { margin-top: 10px; }
.value-item p strong { color: var(--ink); }

/* figures: two across on a phone, not four stacked */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .stat-number { font-size: 40px; }
}

/* payback formula (internal tools) */
.svc-formula { max-width: var(--measure); margin: 28px 0; }
.svc-formula p { font: 400 17px/1.6 var(--text); color: var(--ink); margin: 0; }
.svc-formula p + p { margin-top: 8px; }

/* checklists (non-technical founders): numbered hairline rows */
.ntf-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: var(--measure); counter-reset: ntf; }
.ntf-list li { counter-increment: ntf; position: relative; margin: 0; padding: 14px 0 14px 44px; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ntf-list li:last-child { border-bottom: 1px solid var(--hair); }
.ntf-list li::before { content: counter(ntf, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 400 12px/1.4 var(--mono); letter-spacing: .05em; color: var(--umber); }
.ntf-list li strong { color: var(--ink); }
.ntf-list.ntf-flags li::before { content: "No"; text-transform: uppercase; color: #9a3b1c; }
.ntf-decide { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair-2); font-size: 15px !important; color: var(--ink-2) !important; }

/* ---------- the closing card on the sheet ---------- */
.cta-section { display: grid; justify-items: start; gap: 18px; }
.cta-section .cta-button-large { margin-top: 8px; }
.cta-section .cta-aside { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--cream-2); }

/* ---------- services index: name on the left, offer on the right ---------- */
.content-container { counter-reset: svc; }
.svc-row { counter-increment: svc; }
.svc-row > h2::before { content: counter(svc, decimal-leading-zero); display: block; margin: 0 0 14px; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--umber); }
@media (min-width: 900px) {
  .svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; align-items: start; }
  .svc-row > h2 { margin: 0; }
  .svc-row > .large-text { margin: 30px 0 0; }
}

/* ================= ai-content: the done-for-you reels offer ================= */
.ai-hero .page-hero-title { max-width: 17ch; }
.ai-hero .highlight { font-style: italic; color: var(--gold); }
.ai-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.ai-cta-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--cream); color: var(--ink); text-decoration: none; font: 400 16px/1 var(--text); white-space: nowrap;
  transition: background-color .2s ease;
}
.ai-cta-primary:hover { background: var(--gold); color: var(--ink); }
.ai-secondary-text { margin: 18px 0 0; font: 400 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cream-2); }

/* one sheet, sections divided by hairlines */
.ai-hero ~ section:not(.final-cta) { padding: clamp(36px, 5vw, 60px) var(--gut); }
.ai-hero ~ section:not(.final-cta) > div { max-width: var(--wide); margin: 0 auto; border-top: 1px solid var(--hair); padding-top: clamp(40px, 6vw, 72px); }
.ai-hero + section { padding-top: clamp(56px, 8vw, 104px) !important; }
.ai-hero + section > div { border-top: 0 !important; padding-top: 0 !important; }
.ai-hero ~ section:nth-last-of-type(2) { padding-bottom: clamp(64px, 9vw, 112px); }
.ai-hero ~ section .section-title, .faq-title-ai { max-width: 20ch; font: 300 clamp(34px, 4vw, 56px)/1.03 var(--display); letter-spacing: -.01em; margin: 0 0 28px; color: var(--ink); }
.problem-text p { margin: 0 0 .9em; }
.problem-text p:last-child { margin-bottom: 0; }
.section-intro { color: var(--ink-2); }
.timeline-grid { margin-top: 36px; }

/* comparison: our column carries the paper tint */
.comparison-table-wrapper .comparison-table { min-width: 600px; }
.comparison-table-wrapper th:last-child, .comparison-table-wrapper td:last-child { background: rgba(228, 219, 201, .7); padding-left: 12px; color: var(--ink); }
.comparison-table-wrapper td:first-child { font-weight: 500; }
.comparison-table-wrapper tr:last-child td { font-weight: 500; }
.proof-intro--after { margin: 32px 0 0; font-size: clamp(18px, 1.6vw, 21px); }

/* founding cohort */
.proof-badge { display: inline-block; margin: 0 0 18px; padding: 5px 11px; border: 1px solid rgba(140, 74, 38, .35); border-radius: 999px; font: 400 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--umber); }
.proof-section .case-studies-grid { margin: 40px 0 0; }
.case-study-card { border-top: 1px solid var(--ink); padding-top: 18px; min-width: 0; }
.case-study-card .building-label { margin: 0 0 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--umber); }
.case-study-card h4 { font: 400 clamp(23px, 2vw, 28px)/1.15 var(--display); margin: 0 0 6px; }
.case-study-card .role { margin: 0 0 10px; }
.case-study-card .result { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.proof-footer { margin: 36px 0 0; font: 400 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.minidev-link-bar { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }

/* who it is for */
.who-for-grid { margin-top: 8px; }
.who-for-column h3 { margin-bottom: 8px !important; }
.who-for-column ul { list-style: none; padding: 0; margin: 0; }
.who-for-column li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hair-2); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.who-for-column li:last-child { border-bottom: 0; }
.who-for-column.not-for h3 { color: var(--ink-2); }

/* the one price */
.pricing-card-ai { max-width: var(--measure); }
@media (min-width: 900px) {
  .pricing-container-ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; align-items: start; }
  .pricing-container-ai > .section-title { margin: 0; }
}
.pricing-card-ai { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.pricing-card-ai > :not(.price):not(.price-period) { grid-column: 1 / -1; }
.pricing-card-ai .price { margin: 6px 0 4px; }
.pricing-card-ai .price-period { font-size: 14px; }
.pricing-card-ai .price-commitment { margin: 0 0 18px; font: 400 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pricing-card-ai .pricing-features { margin: 0 0 24px; }
.pricing-card-ai .pricing-features li:first-child { border-top: 1px solid var(--hair-2); }
.pricing-card-ai .pricing-note { margin: 0 0 26px; padding: 0 0 0 20px; border-left: 1px solid var(--ink); font: italic 300 clamp(20px, 2vw, 24px)/1.4 var(--display); color: var(--ink); }
.pricing-card-ai .pricing-cta { justify-self: start; }
.pricing-spots { margin: 14px 0 0; font: 400 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

/* questions: answers stay open, as on the other service pages */
.faq-grid { max-width: var(--measure); }
.faq-item .faq-question { cursor: default; }
.faq-item .faq-question h3 { margin: 0 0 8px; }
.faq-toggle { display: none; }
.faq-answer p { margin: 0; font-size: 16.5px; line-height: 1.65; }

/* closing band */
.final-cta-container { max-width: var(--wide); margin: 0 auto; display: grid; justify-items: start; gap: 18px; }
.final-cta .final-cta-button { margin-top: 6px; }
.final-cta .final-cta-contact { font-size: 15px; }

/* phones: a soft edge shadow says the table scrolls sideways */
@media (max-width: 700px) {
  div.comparison-table, .comparison-table-wrapper {
    background:
      linear-gradient(90deg, var(--paper) 30%, rgba(238, 231, 217, 0)) left center / 32px 100% no-repeat local,
      linear-gradient(270deg, var(--paper) 30%, rgba(238, 231, 217, 0)) right center / 32px 100% no-repeat local,
      linear-gradient(90deg, rgba(31, 26, 23, .14), rgba(31, 26, 23, 0)) left center / 14px 100% no-repeat scroll,
      linear-gradient(270deg, rgba(31, 26, 23, .14), rgba(31, 26, 23, 0)) right center / 14px 100% no-repeat scroll;
  }
  div.comparison-table > table:has(thead th:nth-child(4)) { min-width: 600px; }
}
