/* ============================================================
   Broker Genius — features.css
   Converted from Claude Design "Features"
   ============================================================ */

/* ---------- Hero (dark) ---------- */
.feat-hero {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 76px 28px 0;
}

.feat-hero__inner { max-width: 1280px; margin: 0 auto; }

.feat-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
}

.feat-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 11.5px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 7px 12px;
}
.feat-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bg-blink 1.8s ease-in-out infinite;
}

.feat-hero__title {
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-stretch: 96%;
  margin-top: 26px;
}

.feat-hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--sand-2);
  max-width: 50ch;
  text-wrap: pretty;
}

.feat-hero__ctas { display: flex; align-items: center; gap: 14px; margin-top: 28px; }

/* Section index strip */
.feat-index {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.feat-index a {
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--sand-2);
  line-height: 1.45;
}
.feat-index a:last-child { border-right: none; }
.feat-index a:hover { color: var(--accent); }

/* ---------- Feature blocks ---------- */
.feat-block { border-bottom: 2px solid var(--ink); padding: 72px 28px; }
.feat-block--sand { background: var(--paper-2); }
.feat-block--paper { background: var(--paper); }
.feat-block--tint { background: var(--tint); }
.feat-block--dark { background: var(--ink); color: #fff; }

.feat-block__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.feat-block--flip .feat-block__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feat-block--flip .feat-block__text { order: 2; }
.feat-block--flip .feat-panel { order: 1; }

.feat-block__tag {
  display: inline-block;
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.12em;
  background: var(--accent);
  border: 2px solid var(--ink);
  padding: 6px 11px;
  color: var(--ink);
}

.feat-block__title {
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-stretch: 92%;
  margin-top: 20px;
  max-width: 18ch;
  text-wrap: balance;
}

.feat-block__points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.feat-point { border-top: 2px solid var(--ink); padding-top: 16px; }
.feat-block--dark .feat-point { border-top-color: var(--accent); }
.feat-point__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.feat-point__body { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 8px; }
.feat-block--dark .feat-point__body { color: var(--sand-2); }

/* ---------- Screen panel ---------- */
.feat-panel {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
}

.feat-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.12em;
}
.feat-panel__badge { color: var(--accent); }

.feat-panel__rows { display: flex; flex-direction: column; }

.feat-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font: 500 13px var(--font-mono);
}
.feat-panel__key { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-panel__val { flex: 0 0 auto; font-weight: 600; padding: 3px 8px; }
.feat-panel__val.is-plain { color: var(--ink); background: transparent; }
.feat-panel__val.is-green { color: var(--green); background: #E7F3ED; }
.feat-panel__val.is-amber { color: var(--brown); background: rgba(251, 206, 108, 0.2); /* #FBCE6C33 */ }

/* ---------- Trial band (yellow) ---------- */
.trial-band { border-bottom: 2px solid var(--ink); padding: 88px 28px; background: var(--accent); }
.trial-band__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.trial-band__title {
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  font-stretch: 92%;
  text-wrap: balance;
}
.trial-band__sub { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.trial-band__body { font-size: 16px; line-height: 1.6; color: #4A3A10; margin: 18px auto 0; max-width: 54ch; }
.trial-band__cta {
  display: inline-block;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 16px 30px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--card);
}
.trial-band__cta:hover { color: var(--accent); box-shadow: 1px 1px 0 var(--card); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feat-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feat-hero__title { font-size: 72px; }
  .feat-index { grid-template-columns: repeat(4, 1fr); }
  .feat-index a:nth-child(4n) { border-right: none; }
  .feat-index a:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
  .feat-block__inner,
  .feat-block--flip .feat-block__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feat-block--flip .feat-block__text { order: 1; }
  .feat-block--flip .feat-panel { order: 2; }
}

@media (max-width: 720px) {
  .feat-hero__title { font-size: 52px; }
  .feat-index { grid-template-columns: repeat(2, 1fr); }
  .feat-index a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
  .feat-index a:nth-child(2n) { border-right: none; }
  .feat-index a:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.25); }
  .feat-index a:nth-last-child(-n+2) { border-bottom: none; }
  .feat-block__title { font-size: 34px; }
  .feat-block__points { grid-template-columns: minmax(0, 1fr); }
  .trial-band__title { font-size: 40px; }
}

/* ============================================================
   Grouping block — full width
   ============================================================
   The only block on the page that stacks instead of sitting in
   two columns: the grouped-products mockup is a table and needs
   the room. Everything else keeps the alternating rhythm.
   ============================================================ */
.feat-block--wide .feat-block__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.feat-block--wide .feat-block__text { max-width: none; }

/* The heading runs on one line here — the 18ch cap that keeps the two-column
   blocks narrow would break it across three. */
.feat-block--wide .feat-block__title { max-width: none; font-size: 40px; margin-top: 14px; }

/* All four points across one row, so the text block stays shallow and the
   mockup below it gets the height. */
.feat-block--wide .feat-block__points { grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 24px; }

/* ---------- The mockup ---------- */
.grp {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(16, 22, 42, 0.12);
  overflow: hidden;
}

.grp__head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.grp__titles { display: flex; align-items: center; gap: 12px; }
.grp__title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.grp__count {
  font: 500 12px var(--font-mono);
  color: var(--muted-2);
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 3px 9px;
}
.grp__name { margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--muted); }

.grp__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  background: var(--tint);
  border-bottom: 2px solid var(--ink);
}
.grp__bar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grp__bar-label { font: 500 12.5px var(--font-mono); color: var(--muted-2); }
.grp__chip {
  font: 600 12.5px var(--font-mono);
  padding: 4px 10px;
  border: 1px solid currentColor;
}
/* "Not set" is the state the footer hint is about, so it reads as a warning. */
.grp__chip--unset { color: #9B2C2C; background: #F9E9E7; }
.grp__btn {
  font: 500 13px var(--font-sans);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: var(--card);
  padding: 6px 13px;
}
.grp__bar-total { font-size: 14.5px; color: var(--muted); }
.grp__bar-total strong { color: var(--ink); font-weight: 700; }

/* ---------- Rows ---------- */
.grp__table { overflow-x: auto; }
.grp__thead,
.grp__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 150px 110px;
  min-width: 720px;
}
.grp__thead { background: var(--ink); }
.grp__th {
  padding: 11px 16px;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.13em;
  color: #fff;
}
.grp__th--qty, .grp__qty { text-align: right; }
.grp__th--right, .grp__total { text-align: right; }

.grp__row { border-bottom: 1px solid var(--line-soft); }
.grp__row:last-child { border-bottom: 0; }
.grp__qty { padding: 18px 16px; font: 500 15px var(--font-mono); color: var(--ink); }
.grp__desc { padding: 18px 16px; min-width: 0; }
.grp__desc-main { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.grp__desc-path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted-2);
}
/* The classification path truncates rather than wrapping to three lines. */
.grp__desc-path > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}
.grp__caret { color: var(--sand-2); }
.grp__tags { display: flex; align-items: center; gap: 14px; margin-top: 11px; flex-wrap: wrap; }
.grp__tag {
  font-size: 13px;
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 4px 10px;
  color: var(--ink);
}
.grp__link { font-size: 13.5px; color: var(--brown); font-weight: 600; }

.grp__code {
  align-self: start;
  margin: 18px 16px;
  font: 500 13.5px var(--font-mono);
  color: #1B5E3F;
  background: #E7F2EA;
  border: 1px solid #C4DFCC;
  padding: 6px 10px;
  white-space: nowrap;
}
.grp__total { padding: 18px 16px; font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.grp__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 2px solid var(--ink);
  background: var(--tint);
}
.grp__hint { font-size: 13.5px; color: var(--muted-2); }
.grp__actions { display: flex; align-items: center; gap: 12px; }
.grp__save {
  font: 700 14px var(--font-sans);
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 20px;
}

@media (max-width: 1080px) {
  .feat-block--wide .feat-block__title { font-size: 32px; }
  .feat-block--wide .feat-block__points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .feat-block--wide .feat-block__points { grid-template-columns: minmax(0, 1fr); }
  .grp__head, .grp__bar, .grp__foot { padding-left: 18px; padding-right: 18px; }
}
