/* ai-agents.html: page styles, loaded after base.css */
.cond { font-stretch: 72%; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.btn-line { border-color: rgba(255,255,255,0.6); color: #FFFFFF; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.btn-blue { background: var(--blue); color: #FFFFFF; }
.btn-blue:hover { background: var(--blue-deep); color: #FFFFFF; }
.btn-ink { border-color: #7F889F; color: var(--ink); background: transparent; }
.btn-ink:hover { border-color: var(--ink); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.nav a[aria-current="page"] { background: rgba(13,19,48,0.35); color: #FFFFFF; }
.hero { position: relative; background: var(--blue); color: #FFFFFF; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; mix-blend-mode: luminosity; opacity: 0.18; filter: grayscale(1) contrast(1.2); z-index: -1; }
.hero-body { padding: 40px 0 72px; display: grid; gap: 40px; align-items: center; }
.hero-h { margin: 0; font-size: 38px; line-height: 1.02; text-wrap: balance; }
.hero-lead { margin: 22px 0 0; max-width: 540px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.9); }
.hero .ctas { margin-top: 32px; }
.endpoint { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 14px; border-radius: 10px; background: rgba(13,19,48,0.45); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
.endpoint .ic { color: var(--amber); }
.chat { background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 40px 80px -40px rgba(4,8,36,0.75); border: 1px solid rgba(255,255,255,0.08); }
.chat-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,0.75); padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.chat-head .tag-demo { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.bubble-user { justify-self: end; background: var(--blue); color: #FFFFFF; border-bottom-right-radius: 6px; }
.bubble-ai { justify-self: start; background: rgba(255,255,255,0.08); color: #FFFFFF; border-bottom-left-radius: 6px; }
.call { justify-self: stretch; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line-dark); font-size: 13px; }
.call .ic { color: var(--amber); }
.call code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #DCE1F5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paid { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(126,226,196,0.14); color: #7EE2C4; font-weight: 750; font-size: 12px; white-space: nowrap; }
.sec { padding: 72px 0; }
.sec-paper { background: var(--paper); }
.sh { display: grid; gap: 16px; margin-bottom: 40px; }
.sh h2 { margin: 0; font-size: 32px; line-height: 1.06; text-wrap: balance; }
.sh p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--steel); max-width: 560px; }
.on-dark .sh p { color: rgba(255,255,255,0.8); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.fl { border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fl-n { font-size: 56px; line-height: 1; color: var(--blue); }
.fl h3 { margin: 4px 0 0; font-size: 21px; line-height: 1.2; font-stretch: 112%; font-weight: 800; letter-spacing: -0.015em; }
.fl p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--steel); }
.tbl-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; font-size: 14px; font-weight: 750; color: var(--steel); padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; background: var(--paper); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.tbl .desc { color: var(--steel); }
.tbl .price { text-align: right; white-space: nowrap; }
.tbl .price b { font-size: 22px; line-height: 1; }
.tbl .price small { display: block; font-size: 12px; color: var(--steel); }
.kind { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 750; background: var(--paper); color: var(--steel); white-space: nowrap; }
.kind.ins { background: #FFF3D6; color: #7A5200; }
@media (max-width: 719px) {
  .tbl, .tbl tbody { display: block; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td, .tbl tr:last-child td { display: block; padding: 0; border: 0; }
  .tbl td.t-desc { grid-column: 1 / -1; }
  .tbl td.t-kind { display: none; }
}
.tools-foot { margin: 16px 0 0; font-size: 14px; color: var(--steel); }
.prices { display: grid; gap: 12px; margin-bottom: 32px; }
.pt { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 6px; }
.pt-kind { font-size: 14px; font-weight: 750; color: var(--steel); }
.pt-amt { display: flex; align-items: baseline; gap: 8px; }
.pt-amt b { font-size: 56px; line-height: 1; }
.pt-amt span { font-size: 15px; font-weight: 650; color: var(--steel); }
.pt p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--steel); }
.calc { background: var(--ink); color: #FFFFFF; border-radius: 22px; overflow: hidden; display: grid; }
.calc-in { padding: 26px 22px; display: grid; gap: 22px; }
.calc-in h3 { margin: 0; font-size: 24px; line-height: 1.2; font-stretch: 115%; font-weight: 800; letter-spacing: -0.02em; }
.calc-in > p { margin: -12px 0 0; font-size: 15px; color: rgba(255,255,255,0.75); }
.slider { display: grid; gap: 8px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider label { font-size: 15px; font-weight: 700; }
.slider output { font-size: 22px; line-height: 1; color: var(--amber); }
.slider output small { font-size: 13px; font-stretch: 100%; font-weight: 600; color: rgba(255,255,255,0.7); margin-left: 4px; }
.slider input[type="range"] { width: 100%; accent-color: var(--amber); height: 28px; }
.calc-out { background: var(--ink-2); padding: 26px 22px; display: grid; gap: 16px; align-content: start; }
.res-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.res-row span { font-size: 15px; color: rgba(255,255,255,0.8); }
.res-row b { font-size: 36px; line-height: 1; }
.res-row b small { font-size: 14px; font-stretch: 100%; font-weight: 600; color: rgba(255,255,255,0.7); margin-left: 4px; }
.verdict { padding: 16px 18px; border-radius: 14px; background: rgba(255,184,28,0.12); border: 1px solid rgba(255,184,28,0.35); display: grid; gap: 4px; }
.verdict b { font-size: 18px; font-stretch: 110%; font-weight: 800; color: var(--amber); }
.verdict span { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.88); }
.calc-note { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.65); }
.setup { display: grid; gap: 24px; align-items: start; }
.setup > div { min-width: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--paper); margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--steel); font-family: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.setup-card { background: var(--ink); color: #DCE1F5; border-radius: 18px; overflow: hidden; }
.setup-steps { list-style: none; margin: 0; padding: 20px 22px 4px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.88); counter-reset: s; }
.setup-steps li { display: flex; gap: 12px; align-items: flex-start; }
.setup-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.code { margin: 0; padding: 18px 22px 22px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.75; white-space: pre; overflow-x: auto; }
.code .c { color: #7F89AE; }
.code .k { color: var(--amber); }
.code .s { color: #A9B7FF; }
.setup-side { display: grid; gap: 0; }
.setup-side li { list-style: none; padding: 18px 0; border-top: 1px solid var(--line); }
.setup-side ul { margin: 0; padding: 0; }
.setup-side li:first-child { border-top: 0; padding-top: 0; }
.setup-side h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; font-stretch: 110%; font-weight: 800; }
.setup-side p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--steel); }
.close { position: relative; background: var(--blue); color: #FFFFFF; overflow: hidden; isolation: isolate; padding: 80px 0; }
.close-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.24; filter: grayscale(1) contrast(1.2); z-index: -1; }
.close h2 { margin: 0; font-size: 36px; line-height: 1.04; max-width: 900px; text-wrap: balance; }
.close p { margin: 18px 0 28px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 620px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,184,28,0.28); flex: none; }
@media (min-width: 720px) {
  .hero-body { padding: 56px 0 88px; }
  .hero-h { font-size: 56px; }
  .chat { padding: 24px; }
  .sec { padding: 88px 0; }
  .sh h2 { font-size: 44px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .calc-in, .calc-out { padding: 36px; }
  .close { padding: 96px 0; }
  .close h2 { font-size: 52px; }
}
@media (min-width: 1040px) {
  .hero-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .hero-h { font-size: 62px; line-height: 0.98; }
  .sh { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 44px; }
  .sh h2 { font-size: 50px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .setup { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .close h2 { font-size: 60px; }
}
