/* Home page, lower sections: the pains table, debugging and agents, "Also in the box",
 * pricing, FAQ and the closing panel. 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, as a ruled two-column table */
.fix-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding: 22px 0; border-bottom: 1px solid var(--h-rule); }
.fix-th { padding: 12px 0; font: 500 12.5px var(--h-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--h-text-3); }
.fix-th span:last-child { color: var(--h-blue); }
.fix-row p { margin: 0; position: relative; padding-left: 30px; }
.fix-row p::before { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--h-sans); }
.fix-row .was { color: var(--h-text-3); }
.fix-row .was::before { content: "✕"; background: var(--h-bad-bg); color: var(--h-bad-ink); }
.fix-row .now { font-size: 18px; line-height: 1.45; }
.fix-row .now::before { content: "✓"; top: 4px; background: var(--h-fill); color: #fff; }
.sign { margin: 28px 0 0; font-size: 17px; color: var(--h-text-2); }
.sign a { color: var(--h-blue); font-weight: 500; }

/* Split sections: text on one side, a picture on the other */
.split .col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.split.flip .split-text { order: 2; }
.split .h2 { margin-top: 14px; max-width: 14ch; text-wrap: balance; }
.split .lede { margin-top: 20px; }
.split .btn { margin-top: 28px; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; color: var(--h-text-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li + li { margin-top: 10px; }
.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: var(--h-bad-bg); color: var(--h-bad-ink); }
.pill.pass { background: var(--h-ok-bg); color: var(--h-ok-ink); }
.muted { color: var(--h-text-3); font-size: 13px; }
.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: 22px 24px; font-size: 14px; color: var(--h-ink); }
.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: var(--h-bad-bg); }
.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-fill); 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: a ruled grid of tools with line icons */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--h-rule); border-left: 1px solid var(--h-rule); }
.tool { padding: 28px 24px; border-right: 1px solid var(--h-rule); border-bottom: 1px solid var(--h-rule); }
.tool b { display: block; margin-top: 18px; font-size: 17px; font-weight: 600; }
.tool p { margin: 6px 0 0; font-size: 14.5px; color: var(--h-text-2); }
.ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--h-tray); border: 1px solid var(--h-tray-line); color: var(--h-blue); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tool-more { background: var(--h-art); transition: background-color .2s; }
.tool-more b { color: var(--h-blue); }
.tool-more:hover { background: var(--h-tray); }
.tool-more .ic { background: var(--h-fill); border-color: var(--h-blue); color: #fff; transition: transform .25s var(--h-ease); }
.tool-more:hover .ic { transform: translateX(3px); }

/* Pricing: three ways in, as ruled columns */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--h-rule); }
.plan { padding: 28px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; border-left: 1px solid var(--h-rule); scroll-margin-top: 104px; }
.plan:first-child { padding-left: 0; border-left: 0; }
.plan:last-child { padding-right: 0; }
.plan b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.plan p { margin: 10px 0 24px; font-size: 15px; color: var(--h-text-2); }
.plan .btn { margin-top: auto; }

/* FAQ: a ruled list beside the intro */
.faq .col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.faq-intro .h2 { margin-top: 14px; }
.faq-intro .lede { margin-top: 16px; }
.faq-list details { border-bottom: 1px solid var(--h-rule); }
.faq-list summary { list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 17px; font-weight: 500; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--h-tray); font: 500 18px/1 var(--h-sans); color: var(--h-blue); transition: transform .25s var(--h-ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--h-blue); }
.faq-list details p { margin: 0; padding: 0 44px 22px 0; font-size: 15.5px; color: var(--h-text-2); max-width: 70ch; }
.faq-list details p a { color: var(--h-blue); }

/* Closing panel: blue, with white buttons */
.cta .col { padding-top: 32px; }
.cta-panel { padding: 80px 40px; border-radius: 24px; background: var(--h-fill); color: #fff; text-align: center; overflow: hidden; --stardust: #FFFFFF; }
.cta-panel .h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; margin: 0 auto; }
.cta-panel .lede { margin: 18px auto 0; color: #DCE5FF; }
.cta-panel .hero-actions { justify-content: center; }
body .btn-w { background: #FFFFFF; color: #2F5BEA; font-weight: 600; }
body .btn-w:hover { background: #EEF3FF; }
body .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); font-weight: 500; }
body .btn-ghost:hover { border-color: #fff; }

@media (max-width: 1000px) {
    .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-grid { grid-template-columns: minmax(0, 1fr); }
    .plan, .plan:first-child, .plan:last-child { padding: 24px 0 28px; border-left: 0; }
    .plan + .plan { border-top: 1px solid var(--h-rule); }
}
@media (max-width: 900px) {
    .split .col, .faq .col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .split.flip .split-text { order: 0; }
    .fix-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .fix-th { display: none; }
}
@media (max-width: 640px) {
    .split .col { padding-top: 64px; padding-bottom: 64px; }
    .tools { grid-template-columns: minmax(0, 1fr); }
    .tool { padding: 22px 20px; }
    .rep-grid { grid-template-columns: 90px minmax(0, 1fr); }
    .rep-shot { height: 160px; }
    .rep-dev { margin-left: 0; }
    .cta .col { padding-left: 16px; padding-right: 16px; }
    .cta-panel { padding: 56px 20px; border-radius: 18px; }
    .faq-list details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-list summary::after, .tool-more .ic { transition: none; }
}
