/* Agents (MKT-09 launch). Ported from the approved MKT-07 mockup.
   Page-only rules on top of base.css. The staged examples show their finished
   state without scripts or with reduced motion. */

/* ---------- Hero: the new hires ---------- */
.ag-hero { text-align: left; padding: 104px 0 110px; }
.ag-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.ag-hero .eyebrow { justify-content: flex-start; }
.ag-hero h1 { margin: 16px 0 0; max-width: none; font-size: clamp(52px, 7.4vw, 104px); }
.ag-hero .sub { margin: 22px 0 0; max-width: 580px; }
.ag-hero .sub b { color: #fff; font-weight: 700; }
/* "You configure them." is struck through; with scripts the line draws in once the hero shows. */
.kill { color: var(--on-dark-muted); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 55% / 100% 2.5px; }
.ag-hero .reveal.in .kill { animation: agStrike .7s var(--ease) .9s both; }
@keyframes agStrike { from { background-size: 0 2.5px; } to { background-size: 100% 2.5px; } }
.ag-hero .sub b.brief-them { color: var(--gold); }
.ag-hero .opt { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 16px 0 0; font-size: 15.5px; color: var(--on-dark-muted); }
.ag-hero .opt svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.ag-hero .ctas { justify-content: flex-start; }

.ids { position: relative; height: 420px; }
.idc { position: absolute; left: 50%; top: 50%; width: min(360px, 92%); background: #fff; color: #1d2433; font-family: Inter, "Segoe UI", sans-serif; border-radius: 22px; padding: 18px 20px 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.75); transition: transform .8s var(--ease), opacity .8s var(--ease), box-shadow .8s; }
.idc::before { content: ""; position: absolute; left: 50%; top: -16px; width: 64px; height: 12px; border-radius: 8px; transform: translateX(-50%); background: rgba(255,255,255,.25); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.idc[data-pos="0"] { transform: translate(-50%, -50%) rotate(-1.5deg); z-index: 3; }
.idc[data-pos="1"] { transform: translate(-38%, -58%) rotate(5deg) scale(.94); z-index: 2; opacity: .88; }
.idc[data-pos="2"] { transform: translate(-62%, -42%) rotate(-7deg) scale(.9); z-index: 1; opacity: .72; }
.idc .it { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5d6577; font-weight: 600; }
.idc .it img { object-fit: contain; }
.idc .it em { margin-left: auto; font-style: normal; font: 800 10.5px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #103d36; background: #eac51b; padding: 3px 8px; border-radius: 6px; }
.idc .iname { margin: 14px 0 12px; padding-bottom: 12px; border-bottom: 1px dashed #dfe2ea; }
.idc .iname .no { font: 700 12px Inter, sans-serif; color: #6b7385; letter-spacing: .06em; }
.idc .iname b { display: block; font: 800 30px/1.1 Manrope, sans-serif; letter-spacing: -.03em; color: #103d36; margin-top: 2px; }
.idc .iname small { font-size: 13.5px; color: #4b5467; font-weight: 600; }
.idc dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.idc dt { color: #6b7385; }
.idc dd { margin: 0; font-weight: 600; }
.idc .ist { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 12px; background: #f3f7f4; font-size: 13px; font-weight: 700; color: #103d36; }
.idc .ist i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: agPulse 2s ease-out infinite; }
@keyframes agPulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.6); } 100% { box-shadow: 0 0 0 10px rgba(47,191,113,0); } }

/* ---------- 01 The brief ---------- */
.ag-brief { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.ag-brief h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 10px; }
.ag-brief h2 em { display: block; }
.ag-brief p { color: var(--muted); font-size: 17.5px; margin: 16px 0 0; }
.ag-brief p b { color: var(--text); }
.pad { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); overflow: hidden; }
.pad .ph { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; background: var(--green); color: #fff; font-size: 14px; }
.pad .ph span { color: var(--gold); font-weight: 700; font-size: 12.5px; }
.pad .pc, .pad .pr { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 14px; padding: 12px 20px; }
.pad .pc { font: 800 11px Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.pad .pr { border-bottom: 1px solid var(--line); font-size: 15px; }
/* The brief pad writes itself in, row by row, once it is on screen. */
.pad.in .pr { animation: agRow .5s var(--ease) both; animation-delay: calc(var(--i) * 280ms + 200ms); }
@keyframes agRow { from { opacity: 0; transform: translateY(6px); } }
.pad .pr .q { font-weight: 700; }
.pad .pr .w { font-weight: 600; color: var(--green-2); }
.pad .pr .t { color: var(--muted); }
.pad .pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.pad .pf > div { background: var(--surface); padding: 14px 16px; font-size: 13.5px; line-height: 1.45; }
.pad .pf small { display: block; font: 800 11px Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); margin-bottom: 4px; }

/* ---------- 02 When you press enter ---------- */
.ag-run { background: var(--surface); }
.wo { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: stretch; }
.wo-doc { background: #fff; color: #1d2433; font-family: Inter, "Segoe UI", sans-serif; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.wo-doc .wh { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #103d36; font-size: 12.5px; color: #4b5467; font-weight: 600; }
.wo-doc .wh b { font-family: Manrope, sans-serif; color: #103d36; letter-spacing: .06em; }
.wo-doc small { display: block; margin-top: 16px; font: 800 11.5px Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6b7385; }
.wo-doc .wq { font: 700 20px/1.45 Manrope, sans-serif; letter-spacing: -.01em; color: #103d36; margin: 8px 0 0; min-height: 4.4em; }
.wo-doc .wlog { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; font: 500 12.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #4b5467; min-height: 7.2em; align-content: end; }
.wo-doc .wlog div { animation: agLog .35s var(--ease) both; }
.wo-doc .wlog b { color: #1f7a45; font-weight: 600; }
@keyframes agLog { from { opacity: 0; transform: translateY(4px); } }
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wsteps li { position: relative; background: var(--card); border-radius: 18px; padding: 16px 18px 16px 64px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, transform .4s var(--ease), opacity .4s; opacity: .55; }
.wsteps li .n { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 800 13px Manrope, sans-serif; background: var(--surface-2); transition: background .4s, color .4s; }
.wsteps li b { font-size: 17px; }
.wsteps li p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.wsteps li .wx { max-height: 0; overflow: hidden; opacity: 0; font: 600 13.5px/1.45 Inter, sans-serif; color: var(--text); transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.wsteps li.on, .wsteps li.done { opacity: 1; }
.wsteps li.on { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow-s); transform: translateX(-4px); }
.wsteps li.on .n, .wsteps li.done .n { background: var(--gold); color: var(--green); }
.wsteps li.on .wx, .wsteps li.done .wx { max-height: 90px; opacity: 1; margin-top: 10px; }
.okb { display: inline-block; font: 700 13.5px Inter, sans-serif; border-radius: 10px; padding: 9px 14px; background: #172c43; color: #fff; transition: background .3s; }
.okb.ok { background: #1f7a45; }
.ctr b { font-variant-numeric: tabular-nums; }
.wbar { display: block; margin-top: 8px; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.wbar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .4s var(--ease); }
.wo .cur { position: absolute; left: 0; top: 0; z-index: 20; }
.caveat { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Interlude ---------- */
.ag-inter { background: var(--green-deep); color: #fff; }
.ag-inter .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.ag-inter small { display: block; font: 800 12px Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ag-inter b { font: 800 clamp(24px, 2.6vw, 34px)/1.2 Manrope, sans-serif; letter-spacing: -.02em; }

/* ---------- 03 The right AI ---------- */
.ag-ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ag-ai h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 10px; }
.ag-ai p { color: var(--muted); font-size: 17.5px; margin: 16px 0 0; }
.ag-ai p a { color: var(--green-2); font-weight: 700; }
.lanes { display: grid; gap: 12px; }
.lane { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 118px; }
.lane.prem { background: var(--green); box-shadow: none; }
.lane .lh b { display: block; font-size: 16px; }
.lane .lh small { color: var(--muted); font-size: 13px; }
.lane.prem .lh b { color: #fff; }
.lane.prem .lh small { color: var(--gold); }
.lane .lt { display: flex; flex-direction: column; gap: 8px; min-height: 90px; justify-content: center; }
.task { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; }
.task.new { animation: agTask .6s var(--ease) both; }
.task span { font: 700 12.5px Inter, sans-serif; color: var(--green-2); font-variant-numeric: tabular-nums; }
.lane.prem .task { background: rgba(255,255,255,.08); color: #fff; }
.lane.prem .task span { color: var(--gold); }
@keyframes agTask { from { opacity: 0; transform: translateX(-18px); } }
.lanes .illus { justify-self: start; margin: 4px 0 0; font-size: 12.5px; }

/* ---------- 04 Our promises ---------- */
.ag-prom { background: var(--green); color: #fff; }
.ag-prom .chead .eyebrow { color: var(--gold); }
.ag-prom .chead h2 { color: #fff; }
.ag-prom .chead h2 em { color: var(--gold); }
.ag-prom .chead p { color: var(--on-dark-muted); }
.affi { max-width: 920px; margin: 0 auto; background: #fbfaf5; color: #16302b; border-radius: 10px; padding: 34px 40px 28px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(16,61,54,.05) 31px 32px); }
.affi .ar { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(16,61,54,.12); }
.affi .an { font: 800 13px Manrope, sans-serif; letter-spacing: .08em; color: #8a6d00; padding-top: 4px; }
.affi h3 { font-size: 21px; letter-spacing: -.02em; }
.affi p { margin: 6px 0 0; color: #4d6862; font-size: 16px; }
.affi p b { color: #16302b; background: linear-gradient(transparent 60%, rgba(234,197,27,.45) 60%); }
.affi .sig { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font: italic 600 18px Georgia, serif; color: #16302b; }
.affi .seal { font: 800 13px Manrope, sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #1f7a45; border: 3px solid #1f7a45; border-radius: 10px; padding: 8px 14px; transform: rotate(-6deg); }

/* ---------- Final call to action ---------- */
.ag-final { padding: 96px 0; }
.ag-final h2 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.035em; margin: 12px auto 0; max-width: 16ch; }
.ag-final h2 span { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ag-hero .wrap, .ag-brief, .ag-ai, .wo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ids { height: 400px; }
}
@media (max-width: 600px) {
  .ag-hero { padding: 80px 0 90px; }
  /* The cards' text wraps on phones, so the stack needs the height to stay clear of the buttons above */
  .ids { height: 480px; margin-top: 12px; }
  .idc dl { grid-template-columns: 96px 1fr; }
  .pad .pc { display: none; }
  .pad .pr { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .pad .pr .q { grid-column: 1 / -1; }
  .pad .pf { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .affi { padding: 24px 20px 20px; }
  .affi .ar { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wo-doc .wq { font-size: 18px; }
  .ag-final { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .idc, .wsteps li, .wsteps li .wx { transition: none; }
  .idc .ist i { animation: none; }
}
