/* ============================================================
   MyChatBot.dev — interior pages
   Shared system for Build, Fix, Operate, Solutions, Work,
   Technology and Contact. Loaded after prototype.css + brand.css.
   ============================================================ */

:root {
  --accent: #0a7a3e;
  --accent-soft: #e6f3e8;
  --accent-bright: #6ef09a;
  --warn: #b26a00;
  --err: #b42318;
}

main { padding: 0 12px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
}
.page-hero h1 {
  max-width: 18ch;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
}
.page-hero .lede {
  max-width: 62ch;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.5;
}
.page-hero .btn-row { margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(48px, 6vw, 74px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 {
  max-width: 20ch;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.section-head .lede { margin-top: 16px; }

.h-lg {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.h-md {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.h-sm {
  font-family: var(--sans);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.small { color: var(--faint); font-size: 13px; line-height: 1.5; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.align-center { align-items: center; }
.align-start { align-items: start; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--start { align-items: start; }
.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

/* ---------- Cards ---------- */
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.card__num {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Tags ---------- */
.wrap-list,
.tagchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tagchip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  line-height: 1.2;
}
.tagchip--accent {
  border-color: rgba(10, 122, 62, .32);
  color: var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Checks ---------- */
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
}
.checks--one { grid-template-columns: 1fr; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}
.checks .box {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #0a7a3e;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}
.checks .box::after { content: "✓"; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 28px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 25px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { display: none; }
.timeline__num {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.4;
}
.timeline__body h3 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.timeline__body p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Dark execution panel ---------- */
.exec {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.exec__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(243, 245, 239, .14);
}
.exec__dots { display: flex; gap: 5px; }
.exec__dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2d312b;
}
.exec__title {
  overflow: hidden;
  color: #9aa595;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exec__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--green);
  font-size: 9px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(25, 231, 110, .55);
  animation: exec-pulse 1.9s infinite;
}
@keyframes exec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 231, 110, .5); }
  70% { box-shadow: 0 0 0 7px rgba(25, 231, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 231, 110, 0); }
}
.exec__mission {
  margin-bottom: 14px;
  color: var(--paper);
  font-size: 11.5px;
  line-height: 1.5;
}
.exec__mission .tag {
  color: var(--accent-bright);
  font-size: 9px;
  letter-spacing: .08em;
}
.steps { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b9785;
  font-size: 10.5px;
}
.step .ico {
  width: 15px; height: 15px; flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(243, 245, 239, .2);
  font-size: 8px;
  line-height: 1;
}
.step.done { color: var(--paper); }
.step.done .ico { border-color: var(--green); color: var(--green); }
.step.run { color: var(--paper); }
.step.run .ico {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(25, 231, 110, .12);
}
.step.wait { color: #6b7665; }
.exec__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 245, 239, .14);
  font-size: 10px;
}
.exec__row { display: flex; justify-content: space-between; gap: 12px; }
.exec__row .ok { color: var(--green); }
.exec__row .blue { color: var(--accent-bright); }
.exec__row .warn { color: var(--warn); }

/* ---------- Stack ---------- */
.stack { border: 1px solid var(--line); background: var(--surface); }
.stack__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
}
.stack__row:last-child { border-bottom: 0; }
.stack__row .edge { color: var(--faint); }
.stack__row .body { color: var(--ink); }
.stack__row .tag { margin-left: auto; color: var(--faint); font-size: 9px; }
.stack__row--accent { background: var(--accent-soft); }
.stack__row--accent .body { color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
}
.cta__inner {
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.cta h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--sans);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.cta__sub {
  max-width: 52ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.cta .btn-row { justify-content: center; }

/* ---------- Callout / quote ---------- */
.callout {
  padding-left: 18px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.callout strong { color: var(--ink); font-weight: 500; }
.quote {
  max-width: 20ch;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.quote .accent { color: var(--accent); }
.divider { height: 0; margin: 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.form {
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.field { margin-bottom: 20px; }
.field label,
.form legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.req { color: var(--err); }
.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select {
  width: 100%;
  padding: 12px 13px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.form textarea { min-height: 108px; resize: vertical; }
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 122, 62, .14);
}
.form fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.chip-opt input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.form .btn { margin-top: 4px; }
.form__note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.contact-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-card .mono {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  word-break: break-all;
}
.contact-card ul { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.contact-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}
.contact-card li .tick { color: #0a7a3e; font-family: var(--mono); }
.contact-card li a:hover { color: var(--ink); }

/* ---------- Buttons mapped to the new system ---------- */
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #242424; color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 4px 4px 0 #d5dbd1;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 #9aa595; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }

/* ---------- Current nav state ---------- */
.pnav__links a[aria-current="page"] { color: var(--ink); background: rgba(11, 12, 10, .045); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.center .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child,
  .split--reverse > :last-child { order: initial; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { padding-inline: 14px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .page-hero .lede { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .cta__inner { padding-inline: 14px; }
}
