/* ============================================================
   Pickpoint WMS — feature subpage styles (extends style.css)
   ============================================================ */

/* ---------- Two-column layout with feature nav ---------- */
.fwrap {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  padding-top: 1.6rem;
}
.fmain { min-width: 0; }
.fmain .container { width: 100%; }
.fmain .fhero,
.fmain .caps--alt,
.fmain .outcomes { border-radius: var(--radius-lg); }
.fmain .fhero { padding: 3.4rem 2.6rem 3.2rem; }
.fmain .caps--alt { padding: 3.6rem 2.6rem; }
.fmain .outcomes { padding: 3.4rem 2.6rem; }

.fnav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0;
}
.fnav__title {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-600);
  padding: 0.3rem 0.8rem 0.6rem;
}
.fnav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  color: var(--steel-700);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background-color 0.12s, color 0.12s;
}
.fnav a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: transparent;
}
.fnav a:hover { background: var(--concrete); color: var(--text); }
.fnav a.is-current {
  background: var(--concrete);
  color: var(--text);
  font-weight: 650;
}
.fnav a.is-current::before { background: var(--amber); }

@media (max-width: 1000px) {
  .fwrap { display: block; padding-top: 0; }
  /* Single-row chip bar: swipe sideways, stays pinned under the site header */
  .fnav {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(245, 246, 248, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--steel-200);
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
  }
  .fnav::-webkit-scrollbar { display: none; }
  .fnav__title { display: none; }
  .fnav a {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid var(--steel-300);
    padding: 0.4rem 0.85rem;
    font-size: 0.86rem;
  }
  .fnav a::before { display: none; }
  .fnav a.is-current { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
  .fmain .fhero, .fmain .caps--alt, .fmain .outcomes { padding-inline: 1.4rem; }
}

/* Prev/next pager between features — mobile only; desktop has the sidebar */
.fpager { display: none; }
@media (max-width: 1000px) {
  .fpager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 1.4rem 2.4rem;
  }
  .fpager__link { font-weight: 600; font-size: 0.94rem; text-decoration: none; }
  .fpager__link:hover { text-decoration: underline; }
}

/* ---------- Feature hero: an ink screen ---------- */
.fhero {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.fhero__inner { max-width: 50rem; margin-inline: 0; }
.fhero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.fhero__lead {
  font-size: 1.12rem;
  color: var(--fog-300);
  margin: 1.3rem 0 2.1rem;
  max-width: 42rem;
}
.fhero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-size: 0.86rem;
  color: var(--steel-600);
  margin-bottom: 1.2rem;
}
.fmain > .crumb { margin: 0.2rem 0 0.9rem; }
@media (max-width: 1000px) {
  .fmain > .crumb { padding-inline: 1.4rem; margin-top: 0.9rem; }
}
.crumb a { text-decoration: none; font-weight: 500; }
.crumb a:hover { text-decoration: underline; }

/* Feature pages use a single-column section head */
.fmain .section__head { display: block; margin-bottom: 2.4rem; }

/* ---------- Pain points: hazard-taped cards ---------- */
.pains { padding: 4.2rem 0 3rem; }
.pains__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pain {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.5rem;
  overflow: hidden;
}
.pain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 9px, var(--ink-900) 9px 18px);
}
.pain h3 { font-size: 1.04rem; margin-bottom: 0.45rem; }
.pain p { color: var(--steel-600); font-size: 0.94rem; }

/* ---------- Capability groups ---------- */
.caps { padding: 4.5rem 0; }
.caps--alt { background: var(--concrete); }
.cap-group {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--steel-300);
}
.cap-group:first-of-type { border-top: 2px solid var(--text); }
.cap-group__intro h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.cap-group__intro p { color: var(--steel-600); font-size: 0.97rem; }
.cap-group__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 0; }
.cap-group__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--steel-700);
  font-size: 0.96rem;
}
.cap-group__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1rem;
  height: 1rem;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cap-group__list strong { font-weight: 650; color: var(--text); }

/* ---------- Outcomes band ---------- */
.outcomes {
  --focus: var(--amber);
  background-image:
    linear-gradient(120deg, rgba(7, 13, 24, 0.93), rgba(11, 19, 34, 0.8)),
    var(--outcomes-img, url("../img/warehouse-bg.jpg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 4rem 0;
  margin-top: 1.4rem;
}
.outcomes h2 { margin-bottom: 2.2rem; }
.outcomes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.outcome {
  border-top: 2px solid var(--amber);
  padding-top: 1.2rem;
}
.outcome h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.outcome p { color: var(--fog-200); font-size: 0.94rem; }

/* ---------- Related features ---------- */
.related { padding: 3.6rem 0 4rem; }
.related h2 { margin-bottom: 1.6rem; font-size: 1.45rem; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.related-card:hover { border-color: var(--text); }
.related-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.related-card p { color: var(--steel-600); font-size: 0.9rem; }
.related-card span { display: inline-block; margin-top: 0.7rem; color: var(--blue); font-weight: 600; font-size: 0.9rem; }

/* ---------- Features index ---------- */
.findex { padding: 3.6rem 0 4.5rem; }
.findex__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  border-bottom: 1px solid var(--steel-300);
}
.findex-card {
  display: block;
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--steel-300);
  text-decoration: none;
  color: var(--text);
}
.findex-card h2 { font-size: 1.15rem; font-stretch: 104%; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.findex-card p { color: var(--steel-600); font-size: 0.95rem; }
.findex-card span:last-child { display: inline-block; margin-top: 0.6rem; color: var(--blue); font-weight: 600; font-size: 0.9rem; transition: transform 0.18s; }
.findex-card:hover h2 { color: var(--blue); }
.findex-card:hover span:last-child { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pains__grid, .related__grid, .outcomes__grid { grid-template-columns: 1fr; }
  .cap-group { grid-template-columns: 1fr; gap: 1rem; }
  .findex__grid { grid-template-columns: 1fr; }
}

/* Mobile: open sections align with the crumb and panel content */
@media (max-width: 1000px) {
  .fmain .pains .container,
  .fmain .fscene .container,
  .fmain #faq .container,
  .fmain .related .container { padding-inline: 1.4rem; }
}

/* ---------- Feature hero console fragment ---------- */
.fhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.85fr);
  gap: 2.6rem;
  align-items: center;
}
.fcon {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--fog-300);
  overflow: hidden;
}
.fcon__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  color: var(--fog-200);
}
.fcon__mode {
  background: var(--amber);
  color: var(--ink-900);
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.fcon__rows { padding: 0.4rem 0; }
.fcon__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 1rem;
}
.fcon__row span:last-child { color: var(--white); text-align: right; }
.fcon__status {
  margin: 0.2rem 1rem 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok-on-dark);
  font-weight: 600;
}
.fhero--console { padding-bottom: 3.6rem; }
.fhero__grid .fcon__note { position: static; padding: 0 1rem 0.8rem; font-family: var(--font); font-size: 0.72rem; color: var(--fog-400); }
@media (max-width: 1200px) {
  .fhero__grid { grid-template-columns: 1fr; }
  .fcon { max-width: 420px; }
}
