/* Home page: the problem list, the split sections (debug, agents), "Also in the box", the teams band
 * and the closing call to action. Uses the tokens and surfaces from site.css; the failure report and
 * the agent card are light cards in the look of the app. */

/* Pains: what hurt, then what Dev Scenario does about it */
.pain-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 8px; }
.pain { padding: 22px 24px; }
.pain .was { margin: 0; color: var(--h-text-3); }
.pain .now { margin: 10px 0 0; font-size: 18px; line-height: 1.4; }
.pain .now::before { content: "→ "; color: var(--h-blue); font-weight: 600; }

/* Split sections: text on one side, a picture on the other */
.split .col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.split .lede { margin-top: 18px; }
.split .btn { margin-top: 24px; }
.split-art { margin-top: 0; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; color: var(--h-text-2); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li + li { margin-top: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--h-blue); font-weight: 700; }

/* Light cards in the look of the app: pills, mono code, muted meta */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 12px var(--h-sans); white-space: nowrap; }
.pill.fail { background: #FBE9E9; color: var(--h-bad-ink); }
.pill.pass { background: #E7F5EC; color: var(--h-ok-ink); }
.muted { color: var(--h-text-3); font-size: 13px; }
/* A round pass / fail mark */
.st { width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.st.ok { background: var(--h-ok-ink); }
.st.bad { background: var(--h-bad-ink); }
.report, .agent { padding: 20px 22px; font-size: 14px; }
.report code, .agent code { font: 13px var(--h-mono); color: var(--h-ink); }

/* Failure report */
.rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.rep-dev { margin-left: auto; }
.rep-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #FBE9E9; }
.rep-step .x { color: var(--h-bad-ink); font-weight: 700; }
.rep-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.rep-shot { height: 200px; border-radius: 16px; border: 4px solid #1B1E24; background: #F5F6F8; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.rep-shot i { height: 30px; border-radius: 6px; background: #E3E6EB; }
.rep-shot b { margin-top: auto; padding: 6px; border-radius: 6px; background: #14161A; color: #fff; font: 600 10px var(--h-sans); text-align: center; outline: 2px solid var(--h-fail); outline-offset: 2px; }
.rep-label { font-size: 12px; font-weight: 600; color: var(--h-text-3); margin-bottom: 4px; }
.rep-net > div:not(.rep-label) { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--h-card-line); font: 12.5px var(--h-mono); }
.rep-net .m { font-weight: 700; color: var(--h-ok-ink); }
.rep-net .m.get { color: var(--h-blue); }
.rep-net .p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rep-tabs span { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--h-btn-line); color: var(--h-text-2); font-size: 12.5px; }
.rep-tabs .on { background: var(--h-tray); border-color: var(--h-tray-line); color: var(--h-blue); font-weight: 600; }

/* Agent: the ask, the tool calls, the answer */
.agent-ask, .agent-reply { padding: 10px 14px; border-radius: 14px; line-height: 1.45; }
.agent-ask { margin-left: auto; max-width: 80%; width: fit-content; background: var(--h-blue); color: #fff; border-bottom-right-radius: 4px; }
.agent-reply { max-width: 88%; background: var(--h-tray); border: 1px solid var(--h-tray-line); border-bottom-left-radius: 4px; }
.agent-calls { margin: 14px 0; padding: 0; list-style: none; }
.agent-calls li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--h-card-line); }
.agent-calls li:last-child { border-bottom: 0; }
.agent-calls .muted, .agent-calls .pill { margin-left: auto; }

/* Also in the box */
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.tool-card { padding: 20px 22px; }
.tool-card b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.tool-card p { margin: 8px 0 0; font-size: 14.5px; color: var(--h-text-2); }

/* Teams band */
.teams-card { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: 40px; overflow: hidden; }
.teams-card > div { flex: 1 1 420px; }
.teams-card .lede { margin-top: 16px; }

/* Closing call to action */
.cta .col { text-align: center; }
.cta .lede { margin: 16px auto 0; }

@media (max-width: 900px) {
    .split .col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
    .teams-card { padding: 24px; }
    .rep-grid { grid-template-columns: 90px minmax(0, 1fr); }
    .rep-shot { height: 160px; }
    .rep-dev { margin-left: 0; }
}
