/* WerkX AI - Sales/Service Agent section for werkx.ai, in werkx.ai's design system: cream surfaces, Newsreader serif headlines with an
   italic green accent, Manrope text, deep-green panels with mint, pastel icon tiles.
   Everything is scoped under .asa, so it can sit inside any page without touching the site's own styles. */
.asa {
  --bg: #faf9f5; --bg-2: #f3f1e9; --card: #ffffff; --line: #ece8da; --line-2: #e0dbcd;
  --ink: #12181a; --ink-2: #495650; --muted: #5b6660; --subtle: #8a928b;
  --brand: #0f6e4e; --brand-2: #0c7a6b; --brand-soft: #dcefe3; --mint: #5eead4;
  --deep: #0f2620; --deep-2: #12312a; --deep-3: #173d34; --deep-line: rgba(255, 255, 255, .09); --deep-ink: #eaf2ee; --deep-muted: #a9bdb4;
  --blue-soft: #e4eefb; --blue: #2c5fa8; --amber-soft: #fbf0e4; --amber: #b4712f; --rose-soft: #fbe9e5; --rose: #b4406f;
  --violet-soft: #ecebf8; --violet: #5b4b9e;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
.asa, .asa * { box-sizing: border-box; }
.asa a { color: inherit; }
.asa img, .asa svg { max-width: 100%; }
.asa h1, .asa h2, .asa h3 { margin: 0; text-wrap: balance; }
.asa h1, .asa h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.asa h1 em, .asa h2 em { font-style: italic; color: var(--brand); }
.asa h3 { font-weight: 700; letter-spacing: -0.005em; }
.asa p { margin: 0; }
.asa .wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.asa .eyebrow { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.asa [hidden] { display: none !important; }

/* ------------------------------------------------------------ buttons, inputs, chips */
.asa .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans);
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.asa .btn:active { transform: translateY(1px); }
.asa .btn-live { background: var(--ink); color: #fff; }
.asa .btn-live:hover { background: #000; }

.asa .install { display: flex; gap: 8px; flex-wrap: wrap; max-width: 540px; }
.asa .install .field { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--line-2); border-radius: 999px; padding-inline: 20px 6px; transition: border-color .15s, box-shadow .15s; }
.asa .install .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 110, 78, .1); }
.asa .install input { flex: 1; min-width: 0; font: 500 15px/1 var(--sans); color: var(--ink); background: none;
  border: 0; outline: 0; padding: 15px 0; }
.asa .install input::placeholder { color: var(--subtle); }
.asa .hint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.asa .status { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.asa .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.asa .status[data-state="ok"] i { background: var(--brand); box-shadow: 0 0 0 4px rgba(15, 110, 78, .14); }
.asa .status[data-state="warn"] i { background: var(--amber); }
.asa .status[data-state="down"] i { background: var(--rose); }

/* ------------------------------------------------------------ hero (light, like werkx.ai) */
.asa .hero { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 60% at 85% 30%, rgba(94, 234, 212, .14), transparent 70%), var(--bg); }
.asa .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.asa .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.asa .brand svg { width: 30px; height: 30px; flex: none; }
.asa .brand .brand-logo { width: 120px; height: auto; flex: none; }
.asa .nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--ink-2); }
.asa .nav-links a { text-decoration: none; }
.asa .nav-links a:hover { color: var(--ink); }
.asa .nav-links .btn { padding: 11px 18px; font-size: 14px; color: #fff; }
.asa .nav-links .btn:hover { color: #fff; }

.asa .install-error { flex-basis: 100%; color: var(--rose); font-size: 13.5px; line-height: 1.4; }

.asa .hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-block: 40px 64px; }
.asa .hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; margin-top: 22px; }
.asa .hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 52ch; margin-block: 22px 30px; }
.asa .call-demo { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.asa .call-demo b { color: var(--ink); font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.asa .call-demo svg { width: 18px; height: 18px; color: var(--brand); }
.asa .call-demo:hover b { color: var(--brand); }

/* device mocks: white cards, like werkx.ai's hero card */
.asa .stage { position: relative; min-height: 680px; }
.asa .mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(18, 24, 26, .1), 0 2px 6px rgba(18, 24, 26, .04); }
.asa .widget { position: absolute; right: 0; top: 0; width: min(410px, 100%); overflow: hidden; }
.asa .w-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.asa .orb { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #a7f3e4, #14a07a 55%, #0f6e4e); box-shadow: 0 0 0 5px rgba(20, 160, 122, .12); }
.asa .w-head b { display: block; font-size: 14.5px; }
.asa .w-head span { font-size: 12.5px; color: var(--muted); }
.asa .listening { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 10.5px/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 7px 10px; }
.asa .wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.asa .wave i { width: 2px; height: 100%; background: currentColor; border-radius: 2px; animation: asa-wave 1.1s ease-in-out infinite; }
.asa .wave i:nth-child(2) { animation-delay: -.9s; } .asa .wave i:nth-child(3) { animation-delay: -.6s; }
.asa .wave i:nth-child(4) { animation-delay: -.3s; } .asa .wave i:nth-child(5) { animation-delay: -.75s; }
@keyframes asa-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.asa .w-body { padding: 18px; display: grid; gap: 12px; background: var(--bg); }
.asa .bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.asa .bubble.me { justify-self: end; background: var(--card); border: 1px solid var(--line); border-bottom-right-radius: 5px; }
.asa .bubble.agent { background: var(--brand-soft); color: #0b3d2c; border-bottom-left-radius: 5px; }
.asa .bubble small { display: block; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.asa .product { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.asa .swatch { width: 54px; height: 54px; border-radius: 10px; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #b8dcef, #4f8db6 60%, #2a5a7a); }
.asa .swatch::after { content: ""; position: absolute; inset: 14px 16px 6px; border-radius: 10px 10px 4px 4px; background: rgba(255, 255, 255, .32); }
.asa .product b { display: block; font-size: 13.5px; }
.asa .product span { display: block; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.asa .added { margin-left: auto; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.asa .w-foot { display: flex; align-items: center; gap: 14px; padding: 14px 18px 18px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.asa .mic { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--deep); color: var(--mint); display: grid; place-items: center; flex: none; }
.asa .mic svg { width: 20px; height: 20px; }
.asa .mic::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(20, 160, 122, .45); animation: asa-ring 1.8s ease-out infinite; }
@keyframes asa-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

.asa .call { position: absolute; left: 0; bottom: 0; width: min(300px, 80%); padding: 16px 18px; display: grid; gap: 12px; }
.asa .call-top { display: flex; align-items: center; gap: 12px; }
.asa .call-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; flex: none; }
.asa .call-icon svg { width: 18px; height: 18px; }
.asa .call-top b { display: block; font-size: 14px; }
.asa .call-top span { font-size: 12px; color: var(--muted); }
.asa .timer { margin-left: auto; font: 700 12px/1 var(--sans); color: var(--amber); font-variant-numeric: tabular-nums; }
.asa .call q { font-family: var(--serif); font-size: 17px; line-height: 1.35; quotes: "\201C" "\201D"; }
.asa .choices { display: flex; gap: 8px; }
.asa .choices span { font: 600 12px/1 var(--sans); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.asa .choices span:first-child { border-color: transparent; background: var(--brand-soft); color: var(--brand); }

/* numbers strip */
.asa .numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.asa .numbers div { padding: 26px 24px 34px; border-left: 1px solid var(--line); min-width: 0; }
.asa .numbers div:first-child { border-left: 0; padding-left: 0; }
.asa .numbers b { display: block; font: 700 2.2rem/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.asa .numbers span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------ sections */
.asa .section { padding-block: 96px; }
.asa .section-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 44px; }
.asa .section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; }
.asa .section-head p { color: var(--muted); font-size: 1.05rem; }

.asa .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.asa .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.asa .step .num { font: italic 400 28px/1 var(--serif); color: var(--brand); }
.asa .step h3 { font-size: 1.2rem; }
.asa .step p { color: var(--muted); font-size: 15px; }

.asa .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asa .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.asa .card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; background: var(--brand-soft); color: var(--brand); }
.asa .card:nth-child(6n+2) .icon { background: var(--amber-soft); color: var(--amber); }
.asa .card:nth-child(6n+3) .icon { background: var(--blue-soft); color: var(--blue); }
.asa .card:nth-child(6n+4) .icon { background: var(--violet-soft); color: var(--violet); }
.asa .card:nth-child(6n+5) .icon { background: var(--rose-soft); color: var(--rose); }
.asa .card .icon svg { width: 21px; height: 21px; }
.asa .card h3 { font-size: 1.1rem; }
.asa .card p { color: var(--muted); font-size: 15px; }

/* pipeline: deep-green "live workspace" panel */
.asa .pipeline-panel { background: var(--deep); color: var(--deep-ink); border-radius: 24px; padding: 44px; position: relative; overflow: hidden; }
.asa .pipeline-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .16), transparent 70%); pointer-events: none; }
.asa .pipeline-panel .eyebrow { color: var(--mint); }
.asa .pipeline-panel h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; margin-top: 12px; color: #fff; }
.asa .pipeline-panel h2 em { color: var(--mint); }
.asa .pipeline-panel > p { color: var(--deep-muted); max-width: 64ch; margin-top: 12px; }
.asa .flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 34px; list-style: none; padding: 0; }
.asa .node { position: relative; background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 14px; padding: 18px 16px; display: grid; gap: 6px; min-width: 0; }
.asa .node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 2px; background: var(--mint); }
.asa .node:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 4px); right: -15px; border: 5px solid transparent; border-left: 6px solid var(--mint); border-right: 0; z-index: 1; }
.asa .node .k { font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.asa .node b { font: 500 1.15rem/1.2 var(--serif); color: #fff; }
.asa .node span { font-size: 13px; color: var(--deep-muted); }
.asa .node.jev { border-color: rgba(94, 234, 212, .5); background: linear-gradient(180deg, rgba(94, 234, 212, .12), var(--deep-2)); }
.asa .notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.asa .notes div { border-top: 1px dashed var(--deep-line); padding-top: 14px; font-size: 14px; color: var(--deep-muted); }
.asa .notes b { color: #fff; font-weight: 600; }

.asa .trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.asa .trust div { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.asa .trust svg { width: 22px; height: 22px; color: var(--brand); }
.asa .trust b { font-size: 15.5px; }
.asa .trust span { font-size: 14px; color: var(--muted); }

.asa .cta { background: var(--deep); color: var(--deep-ink); border-radius: 24px; padding: 56px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.asa .cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.06; color: #fff; }
.asa .cta h2 em { color: var(--mint); }
.asa .cta p { color: var(--deep-muted); margin-top: 12px; }
.asa .cta .install .field { background: var(--deep-2); border-color: var(--deep-line); }
.asa .cta .install .field:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(94, 234, 212, .12); }
.asa .cta .install input { color: #fff; }
.asa .cta .install input::placeholder { color: var(--deep-muted); }
.asa .cta .btn-live { background: var(--mint); color: var(--deep); }
.asa .cta .btn-live:hover { background: #8df3e1; }
.asa .cta .install-error { color: #f7b8c7; }
.asa .cta .call-demo, .asa .cta .call-demo b { color: var(--deep-muted); }
.asa .cta .call-demo b { color: #fff; }
.asa .cta .call-demo svg { color: var(--mint); }

.asa footer { padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
.asa .foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.asa .foot .brand { font-size: 15px; }
.asa .foot .brand svg { width: 24px; height: 24px; }
.asa .foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.asa .foot a { text-decoration: none; }
.asa .foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .asa .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .asa .stage { min-height: 680px; max-width: 520px; width: 100%; margin-inline: auto; }
  .asa .flow { grid-template-columns: 1fr; }
  .asa .node:not(:last-child)::after { top: auto; bottom: -14px; right: auto; left: 28px; width: 2px; height: 14px; }
  .asa .node:not(:last-child)::before { top: auto; bottom: -15px; right: auto; left: 24px; border: 5px solid transparent; border-top: 6px solid var(--mint); border-bottom: 0; }
  .asa .features, .asa .steps, .asa .notes, .asa .trust { grid-template-columns: 1fr 1fr; }
  .asa .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .asa .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .asa .wrap { padding-inline: 16px; }
  .asa .section { padding-block: 68px; }
  .asa .features, .asa .steps, .asa .notes, .asa .trust { grid-template-columns: 1fr; }
  .asa .numbers { grid-template-columns: 1fr 1fr; }
  .asa .numbers div { padding: 20px 16px 22px; }
  .asa .numbers div:nth-child(3) { border-left: 0; padding-left: 0; }
  .asa .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .asa .stage { min-height: 0; display: grid; gap: 14px; }
  .asa .widget { position: relative; }
  .asa .call { position: relative; left: auto; bottom: auto; width: min(300px, 88%); justify-self: start; }
  .asa .pipeline-panel { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .asa, .asa *, .asa *::before, .asa *::after { animation: none !important; transition: none !important; }
}
