/* inteligentia · persuasion layer: proof bar, a day with your agent, masking wire, compare, faq, finale, sticky reserve */

/* hero proof bar */
.proofbar { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 30px !important; border-top: 1px solid var(--hair); padding-top: 18px; }
.proofbar li { padding: 0 22px; border-left: 1px solid var(--hair); max-width: 190px; }
.proofbar li:first-child { padding-left: 0; border-left: 0; }
.proofbar b { display: block; font: 400 20px var(--display); letter-spacing: -.02em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proofbar span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.paths.center { justify-content: center; }

/* a day with your agent */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.day-copy .lede { margin-top: 22px; }
.day-times { list-style: none; margin-top: 32px; display: grid; gap: 4px; counter-reset: t; }
.day-times button { width: 100%; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; position: relative; transition: background .25s, color .25s; }
.day-times button b { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--muted); transition: color .25s; }
.day-times button span { font-size: 16px; }
.day-times button:hover { background: rgba(255, 255, 255, .03); color: var(--ink); }
.day-times button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--edge); }
.day-times button[aria-pressed="true"] b { color: var(--electric); }
.day-times button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--electric); transform-origin: left; transform: scaleX(0); opacity: 0; }
.day-times button[aria-pressed="true"].run::after { opacity: .7; animation: dayprog var(--dur, 9s) linear forwards; }
@keyframes dayprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.phone { position: relative; border-radius: 38px; padding: 12px; background: linear-gradient(160deg, #2a3240, #0d1117 40%, #1a2130); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 120px -40px var(--glow); }
.phone > * { position: relative; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-radius: 28px 28px 0 0; background: #0b0f15; box-shadow: 0 1px 0 var(--hair); }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { display: block; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--led); }
.phone-clock { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); }
.phone-log { height: 470px; overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px 14px; background: #06080c radial-gradient(120% 60% at 50% 0%, rgba(46, 116, 222, .08), transparent 70%); }
.scene { display: flex; flex-direction: column; gap: 8px; }
.scene p { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.scene .ag { align-self: flex-start; background: #161b25; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.scene .me { align-self: flex-end; background: var(--anod); color: #fff; border-bottom-right-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.scene .voice { display: flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); }
.scene .wave { width: 92px; height: 18px; flex: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 2px, transparent 2px 5px); -webkit-mask: radial-gradient(70% 100% at 40% 50%, #000 30%, rgba(0, 0, 0, .3) 100%); mask: radial-gradient(70% 100% at 40% 50%, #000 30%, rgba(0, 0, 0, .3) 100%); }
.scene .act { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 8px; background: var(--steel); color: #0b0f17; font-size: 13px; font-weight: 600; box-shadow: inset 0 1px 0 #fff; }
.scene .src { align-self: flex-start; padding: 0 0 0 4px; font: 500 11px var(--mono); color: var(--electric); }
.scene .tl { align-self: center; max-width: none; padding: 2px 0 0; font: 500 10px var(--mono); letter-spacing: .06em; text-align: center; color: var(--led); }
.phone-input { display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 12px 14px 16px; border-radius: 0 0 28px 28px; background: #0b0f15; box-shadow: 0 -1px 0 var(--hair); }
.phone-input span { flex: 1; padding: 9px 14px; border-radius: 20px; background: #05070a; color: #4f5868; font-size: 14px; box-shadow: inset 0 0 0 1px var(--hair); }
.phone-input i { width: 34px; height: 34px; border-radius: 50%; background: var(--steel); box-shadow: inset 0 1px 0 #fff; }
/* animated playback (JS adds .live to the log) */
.phone-log.live { overflow: hidden; }
.phone-log.live .scene { display: none; }
.phone-log.live .scene.on, .phone-log.live .scene.past { display: flex; }
.scene::before { content: attr(data-t); align-self: center; margin: 6px 0 2px; padding: 3px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font: 500 10px var(--mono); letter-spacing: .08em; color: var(--muted); }
.phone-log.live .scene.past { opacity: .55; }
.phone-log.live .scene.on > :not(.shown) { display: none; }
.phone-log.live .scene.on > .shown { animation: pop .38s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: #161b25; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 30% { transform: translateY(-3px); background: var(--ink); } }
.day .facts { margin-top: 64px; }
.day .paths.center { margin-top: 28px; }

/* masking wire */
.wire { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; margin-top: 44px; }
.wire-step { padding: 20px; border-radius: var(--r); background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; flex-direction: column; gap: 14px; }
.wire-step.out { background: linear-gradient(180deg, #17150e, #0e0d0a); box-shadow: inset 0 0 0 1px rgba(255, 204, 77, .22); }
.wire .msg { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.wire mark { background: rgba(70, 242, 164, .12); color: var(--ink); padding: 1px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(70, 242, 164, .3); transition: background .4s, color .4s, box-shadow .4s; }
.wire .out mark { background: rgba(255, 204, 77, .14); color: #ffe39a; font: 500 13px var(--mono); box-shadow: inset 0 0 0 1px rgba(255, 204, 77, .35); }
.wire mark.scr { background: rgba(255, 204, 77, .14); color: #ffe39a; font-family: var(--mono); box-shadow: inset 0 0 0 1px rgba(255, 204, 77, .35); }
.wire-pipe { position: relative; align-self: center; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--hair-2) 0 6px, transparent 6px 11px); }
.wire-pipe i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: flow 2.4s var(--ease) infinite; }
.wire-pipe.back i { background: var(--led); box-shadow: 0 0 12px var(--led); animation-delay: 1.2s; }
@keyframes flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.wire-note { margin-top: 16px; max-width: 70ch; color: var(--muted); font-size: 14.5px; }

/* compare */
.cmp { margin-top: 44px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--edge), var(--sh); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; }
.cmp-row > span { padding: 16px 20px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.cmp-row > [role="rowheader"] { color: var(--ink); font-weight: 600; }
.cmp-head > span { border-top: 0; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmp-head .us { font: 400 14px var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.cmp .us { background: linear-gradient(180deg, rgba(46, 116, 222, .16), rgba(46, 116, 222, .08)); box-shadow: inset 1px 0 0 rgba(127, 184, 255, .25), inset -1px 0 0 rgba(127, 184, 255, .25); color: var(--ink); }
.cmp .yes::before, .cmp .no::before, .cmp .mid::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cmp .yes::before { background: var(--led); box-shadow: 0 0 8px var(--led); }
.cmp .no::before { background: var(--alarm); box-shadow: 0 0 8px var(--alarm); }
.cmp .mid::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .lede { margin-top: 22px; }
.faq-grid .lede a { color: var(--electric); }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17.5px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--panel); box-shadow: var(--edge); font: 400 18px var(--mono); color: var(--electric); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.faq details a { color: var(--electric); }

/* finale */
.finale { text-align: center; overflow: hidden; isolation: isolate; }
.finale::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(46, 116, 222, .22), transparent 62%); }
.finale .wrap { display: flex; flex-direction: column; align-items: center; }
.finale-orb { --s: 72px; margin-bottom: 30px; }
.finale .lede { margin: 20px auto 0; }
.finale .paths { margin-top: 32px; }

/* sticky reserve (phones) */
.sticky-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--steel); color: #0b0f17; text-decoration: none; font-weight: 700; box-shadow: inset 0 1px 0 #fff, 0 18px 40px -12px rgba(0, 0, 0, .9); transform: translateY(140%); transition: transform .35s var(--ease); }
.sticky-cta b { font: 500 12px var(--mono); }
.sticky-cta.show { transform: none; }
html.agent-open .sticky-cta { display: none !important; }

@media (max-width: 980px) {
  .day-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 100%; max-width: 420px; margin: 0 auto; }
  .day-times { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin: 26px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; }
  .day-times::-webkit-scrollbar { display: none; }
  .day-times button { grid-template-columns: auto; gap: 2px; padding: 10px 14px; }
  .day-times button span { font-size: 13.5px; white-space: nowrap; }
  .wire { grid-template-columns: 1fr; }
  .wire-pipe { width: 2px; height: 34px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--hair-2) 0 6px, transparent 6px 11px); }
  .wire-pipe i { left: -3px; animation-name: flowv; }
  @keyframes flowv { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
}
@media (max-width: 760px) {
  .sticky-cta[hidden] { display: none; }
  .sticky-cta { display: flex; }
  .proofbar { grid-template-columns: repeat(3, 1fr); }
  .proofbar li { padding: 0 10px; max-width: none; }
  .proofbar b { font-size: 16px; }
  .proofbar span { font-size: 11.5px; }
  .phone { border-radius: 30px; padding: 8px; }
  .phone-top { border-radius: 23px 23px 0 0; }
  .phone-input { border-radius: 0 0 23px 23px; }
  .phone-log { height: 430px; }
  .cmp { background: none; box-shadow: none; overflow: visible; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; margin-bottom: 12px; border-radius: var(--r); background: var(--panel); box-shadow: var(--edge); overflow: hidden; }
  .cmp-row > span { padding: 10px 16px; border-top: 1px solid var(--hair); }
  .cmp-row > [role="rowheader"] { border-top: 0; padding-top: 14px; }
  .cmp-row > [role="cell"]::after { margin-left: auto; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
  .cmp-row > [role="cell"]:nth-child(2)::after { content: "inteligentia"; color: var(--electric); }
  .cmp-row > [role="cell"]:nth-child(3)::after { content: var(--l-sub, "AI chat subscription"); }
  .cmp-row > [role="cell"]:nth-child(4)::after { content: var(--l-diy, "Do it yourself"); }
  .faq summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wire-pipe i, .typing i { animation: none; }
  .day-times button.run::after { animation: none; }
}

/* hero headline is a sentence now: smaller, tighter */
.hero-copy h1.d-xl { font-size: clamp(30px, 3.7vw, 54px); line-height: 1.08; max-width: 14ch; }
.hero-copy .category { font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch; }
.hero-copy .lede { font-size: clamp(15.5px, 1.1vw, 17px); }
#stories .stories { margin-top: 22px; }
#stories .apps-head p { font-size: 16.5px; }
.wire-step .tag { align-self: flex-start; }
@media (max-width: 640px) {
  .jobs { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
  .jobs::-webkit-scrollbar { display: none; }
  .job { scroll-snap-align: start; }
  .jobs-hint { display: block; }
}
.jobs-hint { display: none; margin-top: 10px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* app logos in the "works with" chips */
.apps dd span { display: inline-flex; align-items: center; gap: 8px; }
.apps .ai { width: 16px; height: 16px; flex: none; fill: currentColor; }
.apps .ai.g { color: var(--muted); }
