/* =========================================================
   It's Your Idea — business.css
   Page-specific styles for business.html:
     - "Who it's for" cards
     - Free tools grid + widget forms + results
     - Insights "keep score" block
     - Final CTA band tweaks
   Dark theme only — reuses tokens from styles.css.
   Fully responsive: single-column stacking on mobile,
   comfortable tap targets, full-width inputs on small screens.
   ========================================================= */

/* Left-aligned section title helper (reused in a couple of spots) */
.section__title--left { text-align: left; }

/* ================================================================
   WHO IT'S FOR
   ================================================================ */

.biz-who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.biz-who__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.biz-who__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.biz-who__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem; color: #fff;
  margin-bottom: 18px;
}
.biz-who__card h3 { margin: 0 0 10px; font-size: 1.18rem; color: #fff; }
.biz-who__card p  { margin: 0; color: var(--muted); line-height: 1.6; }

/* ================================================================
   FREE TOOLS GRID
   ================================================================ */

.biz-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.biz-tool {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
}

.biz-tool__head { margin-bottom: 18px; }

.biz-tool__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.biz-tool__title {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.biz-tool__blurb {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Widget form ---- */
.biz-tool__form {
  display: grid;
  gap: 14px;
}

/* Reuse .field input styles from styles.css; ensure full-width tap targets */
.biz-tool__form .field input,
.biz-tool__form .field textarea {
  width: 100%;
}
.biz-tool__form .field textarea { resize: vertical; }

.biz-tool__btn { margin-top: 4px; }

.biz-tool__note {
  margin: 2px 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Result / loading / error ---- */
.biz-tool__result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.biz-tool__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 8px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}
.biz-tool__loading p { margin: 0; }

.biz-tool__content {
  font-size: .95rem;
}
.biz-tool__content.prose h2 { font-size: 1.15rem; }
.biz-tool__content.prose h3 { font-size: 1.05rem; }

.biz-tool__cta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}

.biz-tool__error {
  color: #f87171;
  font-size: .92rem;
  line-height: 1.55;
}
.biz-tool__error a { color: #f87171; text-decoration: underline; }

.biz-tools__foot {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  background: rgba(0, 170, 239, .08);
  border: 1px solid rgba(0, 170, 239, .22);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink);
}
.biz-tools__foot a { font-weight: 600; }

/* ================================================================
   INSIGHTS — KEEP SCORE
   ================================================================ */

.biz-insights {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.biz-insights__lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 14px 0 22px;
  line-height: 1.65;
}

.biz-insights__list { margin-bottom: 28px; }

.biz-insights__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.biz-insights__card {
  background: var(--grad-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.biz-insights__chat {
  display: grid;
  gap: 14px;
}

.biz-chat {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: .95rem;
  line-height: 1.5;
}
.biz-chat--you {
  background: rgba(255, 255, 255, .08);
  color: #eaf4fb;
  justify-self: end;
  max-width: 88%;
  border-bottom-right-radius: 4px;
}
.biz-chat--izzy {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  max-width: 92%;
  border-bottom-left-radius: 4px;
}
.biz-chat--izzy strong {
  display: block;
  color: var(--cyan);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.biz-insights__cardnote {
  margin: 18px 0 0;
  font-size: .85rem;
  color: #c4dcee;
  text-align: center;
}

/* ================================================================
   FINAL CTA BAND
   ================================================================ */

.biz-cta__inner { grid-template-columns: 1fr; max-width: 720px; text-align: center; }
.biz-cta .cta__actions { justify-content: center; }
.biz-cta .cta__contact { justify-items: center; }
.biz-cta .cta__contact li { justify-content: center; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 960px) {
  .biz-who   { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .biz-tools { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .biz-insights { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .biz-insights__actions { flex-direction: column; }
  .biz-insights__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .biz-tool { padding: 22px 18px 24px; }
  .biz-insights__card { padding: 22px 18px; }
  .biz-chat--you, .biz-chat--izzy { max-width: 100%; }
  /* Comfortable tap targets on small screens */
  .biz-tool__form .field input,
  .biz-tool__form .field textarea { padding: 13px 14px; }
  /* Who it's for cards: remove auto-margin constraint at small sizes */
  .biz-who, .biz-tools { max-width: 100%; }
}

@media (max-width: 400px) {
  /* Tool cards full bleed on very small phones */
  .biz-tool { padding: 18px 14px 20px; }
}
