/* Styles shared by the solution pages. Loaded after the base stylesheet.
   Hero (real screenshots on the dark shape) · Sound familiar? · Steps · Decision / honesty section · Other solutions. */

/* ---------- Hero: text on the left; on the right overlapping real screenshots on the dark shape ---------- */
.phero { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.phero .text { min-width: 0; padding: 44px var(--gutter) 36px; }
.phero h1 { margin: 0; font-size: clamp(40px, min(4.6vw, 10.5vh), 78px); text-wrap: balance; }
.phero h1 .hot { display: block; }
.phero .sub { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 540px; margin: 22px 0 28px; }
.phero .sub strong { color: var(--ink); font-weight: 600; }
.phero .hero-visual { margin: 0 14px 40px; }
.phero .shape { padding: 46px 20px 30px; }
/* a wide screen in the back, a dialog or a strip in front: both are real screenshots of the application */
.stack { position: relative; padding-bottom: 22%; }
.stack .back { width: 100%; border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.45); opacity: .94; }
.stack .front { position: absolute; left: 0; bottom: 0; width: 44%; border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
/* wide front piece (e.g. the two-week bottleneck strip): placed low so it does not cover most of the one behind it */
.stack .front.wide { width: 86%; }
.stack.wide-front { padding-bottom: 12%; }
/* small label that says what the screen shows */
.stack .tag { position: absolute; right: 4%; top: -16px; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.stack .tag i { font-style: normal; color: var(--orange-text); }

/* ---------- Sound familiar? ---------- */
.familiar { padding: 100px 0 40px; }

/* ---------- Steps ---------- */
section.how { padding: 70px var(--gutter) 80px; }
section.how h2 { margin-bottom: 60px; }
.how .step p + p { margin-top: 12px; }
.how .step p a { color: var(--orange-text); font-weight: 600; }
.how .frag.small { max-width: 460px; margin: 0 auto; }
/* a small diagram instead of a screenshot: ERP → CASCULATE → shop floor */
.mini-chain { display: grid; gap: 10px; }
.mini-chain div { border-radius: 18px; padding: 18px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.mini-chain small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); font-weight: 600; }
.mini-chain strong { display: block; font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 700; font-size: 25px; line-height: 1.05; margin-top: 6px; }
.mini-chain .core { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border-color: transparent; }
.mini-chain .core small { color: #fff; }
.mini-chain i { display: block; width: 3px; height: 18px; margin: 0 auto; border-radius: 2px; background: rgba(255,255,255,.35); }
.mini-chain .dashed { border-style: dashed; }

/* ---------- Decision / honesty: sand card, three facts ---------- */
.decide { padding: 100px 0; }
.decide .facts { display: grid; grid-template-columns: 1fr; gap: 26px 50px; margin: 50px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line); list-style: none; }
.decide .facts li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 400px; }
.decide .facts li::before { content: ""; position: absolute; left: 0; top: .38em; width: 15px; height: 15px; border-radius: 50%; background: var(--drop); }
.decide .facts b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- Other solutions: link cards, one question each ---------- */
.more { padding: 90px 0 60px; }
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.cards a:hover { border-color: var(--orange); transform: translateY(-2px); }
.cards b { font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 700; font-size: 27px; line-height: 1.05; }
.cards span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cards a::after { content: "→"; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--orange-deep); }
.cards .proc a { background: var(--navy); border-color: transparent; color: #fff; }
.cards .proc span { color: var(--muted-dark); }
.cards .proc a::after { color: var(--orange); }

/* ---------- Breakpoints ---------- */
@media (min-width: 700px) {
  .decide .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .mini-chain { grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; }
  .mini-chain i { width: 100%; height: 3px; }
}
@media (min-width: 1100px) {
  /* side by side: the shape fills the height of the hero and leaves the page on the right */
  .phero { grid-template-columns: var(--hero-text) minmax(0, 1fr); align-items: center; min-height: min(720px, calc(100vh - 86px)); }
  .phero .text { padding: 40px 28px 40px var(--gutter); }
  .phero .hero-visual { align-self: stretch; margin: 26px 0; }
  /* the left inset keeps the screenshots clear of the slanted edge of the shape */
  .phero .shape { padding: 64px clamp(24px, 3.4vw, 56px) 46px 22%; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .stack .front { width: 52%; }
  .stack .front.wide { width: 92%; }
}
@media (max-width: 480px) {
  .phero .shape { padding: 26px 14px 22px; }
  .stack { padding-bottom: 40%; }
  .stack.wide-front { padding-bottom: 18%; }
  .stack .tag { display: none; }
  .stack .front { width: 62%; }
  .stack .front.wide { width: 100%; }
}
