/* ============================================================
   JW Web — shared inner / service page styles
   Used by web-development, custom-crm, custom-lms,
   custom-machine-learning
   ============================================================ */

.inner-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(56px, 8vh, 100px);
  border-bottom: 1px solid var(--line);
}
.inner-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 40px;
}
.inner-hero .crumbs a { color: var(--muted); }
.inner-hero .crumbs a:hover { color: var(--ink); }
.inner-hero h1 {
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.95; letter-spacing: -0.03em;
  max-width: 14ch;
}
[data-dir="A"] .inner-hero h1 { font-family: var(--serif); font-weight: 400; }
[data-dir="A"] .inner-hero h1 em { font-style: italic; color: var(--accent); }
[data-dir="B"] .inner-hero h1 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(38px, 5.4vw, 80px); }
[data-dir="B"] .inner-hero h1 .accent { color: var(--accent); }

.inner-hero .sub {
  font-size: 19px; color: var(--muted); max-width: 60ch;
  margin-top: 32px; line-height: 1.5;
}
.inner-hero .hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* Capability table */
.caps {
  display: grid; grid-template-columns: 240px 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.caps .row { display: contents; }
.caps .row > * {
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
}
.caps .row .cat {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
[data-dir="A"] .caps .row .title { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
[data-dir="B"] .caps .row .title { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.caps .row .desc { color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 780px) {
  .caps { grid-template-columns: 1fr; }
  .caps .row > * { padding: 16px 0; border-bottom: 0; }
  .caps .row { border-bottom: 1px solid var(--line); display: block; padding: 20px 0; }
}

/* Stack block */
.stack {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.stack h3 { font-size: 28px; letter-spacing: -0.02em; max-width: 12ch; font-weight: 500; }
[data-dir="A"] .stack h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
[data-dir="A"] .stack h3 em { font-style: italic; color: var(--accent); }
[data-dir="B"] .stack h3 { font-family: var(--mono); font-weight: 500; font-size: 22px; }
[data-dir="B"] .stack h3 .accent { color: var(--accent); }
.stack .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .tag-pill {
  font-family: var(--mono); font-size: 12px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink);
  transition: border-color .2s, color .2s;
}
.stack .tag-pill:hover { border-color: var(--ink); }
.stack .tag-pill .k { color: var(--muted); margin-right: 6px; }
.stack .body { color: var(--muted); max-width: 60ch; font-size: 15px; line-height: 1.65; margin-bottom: 32px; }
@media (max-width: 780px) { .stack { grid-template-columns: 1fr; gap: 20px; } }

/* Scenarios — "this is for you if" list */
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scenario { background: var(--paper); padding: 32px; }
.scenario .mark {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.scenario p { font-size: 16px; line-height: 1.5; color: var(--ink); }
@media (max-width: 700px) { .scenarios { grid-template-columns: 1fr; } }

/* Outcome / stat strip */
.outcomes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.outcome { padding: 40px 24px; border-right: 1px solid var(--line); }
.outcome:last-child { border-right: 0; }
.outcome .big {
  font-size: 52px; letter-spacing: -0.03em; line-height: 1;
}
[data-dir="A"] .outcome .big { font-family: var(--serif); font-weight: 400; }
[data-dir="B"] .outcome .big { font-family: var(--mono); font-weight: 500; font-size: 44px; }
.outcome .lbl { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 22ch; line-height: 1.4; }
@media (max-width: 780px) {
  .outcomes { grid-template-columns: 1fr 1fr; }
  .outcome:nth-child(2n) { border-right: 0; }
  .outcome:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Build phases (numbered vertical) */
.phases { border-top: 1px solid var(--line); }
.phase {
  display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.phase .idx { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.phase h4 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
[data-dir="A"] .phase h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
[data-dir="B"] .phase h4 { font-family: var(--mono); font-weight: 500; font-size: 19px; }
.phase p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 780px) { .phase { grid-template-columns: 1fr; gap: 8px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 28px 0; }
.faq details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 32px;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq summary h4 { font-size: 22px; letter-spacing: -0.01em; font-weight: 500; }
[data-dir="A"] .faq summary h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
[data-dir="B"] .faq summary h4 { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.faq summary .plus { font-family: var(--mono); color: var(--muted); font-size: 20px; transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin-top: 16px; color: var(--muted); max-width: 62ch; font-size: 15px; line-height: 1.65; }

/* Big CTA */
.big-cta { margin: 0; padding: clamp(64px, 10vh, 120px) 0; background: var(--ink); color: var(--paper); }
.big-cta h2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.03em; max-width: 16ch; }
[data-dir="A"] .big-cta h2 { font-family: var(--serif); font-weight: 400; }
[data-dir="A"] .big-cta h2 em { font-style: italic; color: var(--accent); }
[data-dir="B"] .big-cta h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(32px, 4.6vw, 64px); }
[data-dir="B"] .big-cta h2 .accent { color: var(--accent); }
.big-cta .sub { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 50ch; margin-top: 24px; }
.big-cta .btn-primary { background: var(--accent); color: white; }
.big-cta .btn-primary:hover { background: var(--paper); color: var(--ink); }
.big-cta .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--paper); }
.big-cta .btn-ghost:hover { border-color: var(--paper); }
.big-cta .cta-row { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* Related services footer-cards */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related a { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.related a:hover { background: var(--paper-2); }
.related .cat { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.related h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
[data-dir="A"] .related h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
[data-dir="B"] .related h4 { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.related p { color: var(--muted); font-size: 14px; }
.related .go { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-top: auto; }
@media (max-width: 780px) { .related { grid-template-columns: 1fr; } }
