/* ==========================================================================
   BentoCoder — businesses.css
   Businesses-only sections (B2B / contractor page).
   ========================================================================== */

/* ---------- Hero terminal ---------- */
.terminal {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  background: #121214;
  border: 1px solid #2c2c31;
  border-radius: 16px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 30px 90px -40px rgba(235, 100, 52, 0.4);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.6vw, 0.86rem);
  transform: rotate(1.5deg);
  animation: term-float 8s ease-in-out infinite;
}
@keyframes term-float {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-10px); }
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1rem;
  background: #1b1b1e;
  border-bottom: 1px solid #2c2c31;
}
/* The window "buttons" are tiny bento compartments */
.terminal__bar i {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--c);
}
.terminal__title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 52px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.terminal__body {
  min-height: 300px;
  padding: 1.25rem 1.25rem 1.5rem;
  line-height: 1.85;
}
.t-line { white-space: pre-wrap; word-break: break-word; color: var(--text-muted); }
.t-line .p { color: var(--orange); user-select: none; }
.t-line.cmd { color: var(--rice); }
.t-line .ok { color: var(--green); }
.t-line .key { color: var(--yellow); }
.t-line .dim { color: var(--text-dim); }
.t-line.final { margin-top: 0.4rem; color: var(--rice); }
.t-line.final .accent { font-weight: 500; }

.t-cursor {
  display: inline-block;
  width: 0.6em; height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--orange);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* JS-driven typing state */
.js .terminal[data-typing] .t-line { display: none; }
.js .terminal[data-typing] .t-line.is-shown { display: block; }

@media (max-width: 899px) {
  .terminal { transform: none; animation: none; margin-top: 1rem; }
  .terminal__body { min-height: 260px; }
}

/* ---------- Engagement models ---------- */
.orders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.order .card__title { font-size: 1.3rem; }
.order__list {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.order__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
}
.order__list li::before {
  content: '✓';
  font-family: var(--font-mono);
  color: var(--c);
}
.order__chip {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--c-soft);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}
.order .card__body { flex: 1; display: flex; flex-direction: column; }

@media (max-width: 1099px) {
  .orders { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .orders { grid-template-columns: 1fr; }
}

/* ---------- The pantry (stack), laid out like the logo ---------- */
.pantry {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: clamp(12px, 2vw, 18px);
  background: linear-gradient(160deg, #222226, #141416);
  border: 1px solid #303035;
  border-radius: 26px;
}
.pantry__box {
  grid-column: span 2;
  padding: 1.4rem 1.4rem 1.6rem;
  background: var(--tray);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 14px;
}
.pantry__box--top { grid-column: span 3; }
.pantry__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.pantry__name .g {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--c);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.pantry__box .tags { padding-top: 0; }
.pantry__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 899px) {
  .pantry { grid-template-columns: 1fr 1fr; }
  .pantry__box, .pantry__box--top { grid-column: span 1; }
  .pantry__box:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .pantry { grid-template-columns: 1fr; }
  .pantry__box:last-child { grid-column: auto; }
}

/* ---------- Working in your kitchen ---------- */
.practices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.practice {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--tray-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.practice:hover { background: var(--tray-3); }
.practice:nth-child(3n) { border-right: 0; }
.practice:nth-last-child(-n + 3) { border-bottom: 0; }
.practice__idx {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
}
.practice__title {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.practice__text { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 899px) {
  .practices { grid-template-columns: 1fr 1fr; }
  .practice:nth-child(3n) { border-right: 1px solid var(--line); }
  .practice:nth-child(2n) { border-right: 0; }
  .practice:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .practice:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 599px) {
  .practices { grid-template-columns: 1fr; }
  .practice, .practice:nth-child(3n) { border-right: 0; }
  .practice:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .practice:last-child { border-bottom: 0; }
}
