/* A Creations site — page layouts. Components and tokens live in assets/brand/. */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; background: radial-gradient(closest-side, rgba(197, 255, 61, .16), rgba(197, 255, 61, .04) 55%, transparent 72%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__canvas.is-on { opacity: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s-12); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.045em; font-weight: 600; margin-top: var(--s-6); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: var(--s-6); max-width: 620px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero__mark { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.hero__mark img { position: absolute; inset: 18%; width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(197, 255, 61, .35)); }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-line); }
.hero__ring--2 { inset: 9%; border-style: dashed; border-color: rgba(197,255,61,.18); animation: spin 60s linear infinite; }
.hero__orbit { position: absolute; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(19, 22, 20, .86); border: 1px solid var(--border-strong); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--text-2); white-space: nowrap; backdrop-filter: blur(6px); }
.hero__orbit b { color: var(--accent); font-weight: 600; }
.hero__orbit--1 { top: 6%; left: -6%; }
.hero__orbit--2 { top: 46%; right: -3%; }
.hero__orbit--3 { bottom: 4%; left: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__ring--2 { animation: none; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
}

/* Eyebrow with location: one line on wide screens, a clean 2-line break on phones */
.eyebrow--split { flex-wrap: wrap; row-gap: 6px; }
.eyebrow--split .eyebrow__loc::before { content: "— "; }
@media (max-width: 520px) {
  .eyebrow--split .eyebrow__loc { flex-basis: 100%; padding-left: 26px; }
  .eyebrow--split .eyebrow__loc::before { content: none; }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--border); background: var(--surface); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { padding: var(--s-8) var(--s-6); border-left: 1px solid var(--border); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__num { font: 600 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.03em; }
.proof__num .hl { color: var(--accent); }
.proof__label { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item { padding: var(--s-6) var(--s-4); }
  .proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.pillar { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-8); min-height: 320px; text-decoration: none; overflow: hidden; }
.pillar__num { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--muted); letter-spacing: var(--tracking-label); }
.pillar h3 { font-size: var(--fs-xl); }
.pillar ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.pillar .link-arrow { margin-top: var(--s-2); }
.pillar::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(197,255,61,.14), transparent); opacity: 0; transition: opacity var(--dur-3); }
.pillar:hover::after { opacity: 1; }
.pillar:hover { border-color: var(--accent-line); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* ---------- Signage services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-3); }
.service { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); }
.service h3 { font-size: var(--fs-base); font-family: var(--font-display); letter-spacing: -0.01em; }
.service p { font-size: var(--fs-sm); margin-top: 2px; }
.service .icon-tile { width: 40px; height: 40px; flex: none; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters button { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: all var(--dur-1); }
.filters button:hover { color: var(--text); border-color: var(--text-500); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: var(--s-3); }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--raised); aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.gallery figure.is-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out), filter var(--dur-3); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) var(--s-3) var(--s-3); background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: var(--fs-xs); color: var(--text); font-weight: 500; }
.gallery figure[hidden] { display: none; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); } .gallery figure.is-tall { grid-row: auto; aspect-ratio: 4/3; } }

/* ---------- Rollouts ---------- */
.rollout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.rollout__steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.rollout__steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-4); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); }
.rollout__steps li::before { content: "0" counter(step); font: 600 var(--fs-sm)/44px var(--font-mono); text-align: center; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-sm); height: 44px; }
.rollout__steps strong { display: block; font-family: var(--font-display); font-weight: 600; }
.rollout__steps span { color: var(--text-2); font-size: var(--fs-sm); }
.states { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.scale { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.scale__item { padding: var(--s-5); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); }
.scale__item strong { display: block; font: 600 var(--fs-xl)/1.1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; }
.scale__item span { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.scale__item em { font-style: normal; color: var(--text); font-weight: 600; }
.scale__note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .rollout { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .scale { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
.client { display: grid; place-items: center; height: 112px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: #F4F5F1; border: 1px solid var(--border); }
.client img { width: 200px; height: 80px; max-width: 100%; object-fit: contain; transition: transform var(--dur-2) var(--ease-out); }
.client:hover img { transform: scale(1.04); }
.sectors { margin-top: var(--s-6); color: var(--muted); font-size: var(--fs-sm); text-align: center; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients { grid-template-columns: repeat(2, 1fr); } .client { height: 88px; } .client:last-child { grid-column: 1 / -1; } }

/* ---------- Products ---------- */
.products { display: grid; gap: var(--s-6); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s-10); align-items: center; padding: var(--s-8); border-radius: var(--r-xl); }
.product:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.product:nth-child(even) .product__media { order: -1; }
.product__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.product h3 { font-size: var(--fs-xl); }
.product__for { margin-top: var(--s-2); font: 500 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product__body { display: grid; gap: var(--s-4); align-content: start; }
.product__body > p { color: var(--text-2); }
.product__feats { list-style: none; display: grid; gap: var(--s-2); }
.product__feats li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.product__feats li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5FF3D' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.product__media { position: relative; }
.product__media--duo { display: grid; grid-template-columns: 1fr 0.42fr; gap: var(--s-4); align-items: end; }
.product__media--stack { display: grid; padding-bottom: var(--s-2); }
.product__media--stack .frame:nth-child(2) { width: 60%; margin: -16% -3% 0 auto; position: relative; z-index: 1; }
@media (max-width: 960px) { .product__media--stack .frame:nth-child(2) { margin-right: 0; width: 68%; } }
.product__media--phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: start; }
.product__media--phones .frame--phone:nth-child(2) { margin-top: var(--s-8); }
.product__note { font-size: var(--fs-xs); color: var(--muted); }
.frame__tag { position: absolute; top: 18px; right: 16px; z-index: 2; height: 22px; font-size: 9px; padding: 0 8px; }
.frame--phone svg { width: 100%; height: auto; border-radius: 23px; display: block; }
@media (max-width: 960px) {
  .product, .product:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-5); }
  .product:nth-child(even) .product__media { order: 0; }
}
.soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.soon .card { padding: var(--s-5); }
.soon h4 { font-size: var(--fs-md); margin-top: var(--s-3); }
.soon p { font-size: var(--fs-sm); margin-top: var(--s-1); }
@media (max-width: 900px) { .soon { grid-template-columns: 1fr; } }

/* ---------- Build for you ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.offer { display: grid; gap: var(--s-3); align-content: start; }
.offer h3 { font-size: var(--fs-md); margin-top: var(--s-2); }
.offer p { font-size: var(--fs-sm); }
.offer .examples { font: 500 var(--fs-xs)/1.5 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
@media (max-width: 960px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); list-style: none; counter-reset: p; }
.process li { counter-increment: p; position: relative; padding: var(--s-6); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.process li::before { content: "0" counter(p); display: block; font: 600 var(--fs-2xl)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--accent-line); margin-bottom: var(--s-6); }
.process h3 { font-size: var(--fs-md); }
.process p { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.process .pill { margin-top: var(--s-4); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about .about__eq { margin: var(--s-6) 0 0; color: var(--text); display: grid; gap: 0.04em; font: 600 clamp(3.2rem, 1.6rem + 6vw, 7.25rem)/0.95 var(--font-display); letter-spacing: -0.05em; }
.about__row { display: grid; grid-template-columns: 0.62em auto; align-items: center; width: fit-content; }
.about__row i { font: 400 0.4em/1 var(--font-mono); font-style: normal; color: var(--muted); letter-spacing: 0; }
.about__row b { color: var(--accent); font-weight: 600; }
.about__row--sum { color: var(--accent); margin-top: 0.08em; padding-top: 0.1em; border-top: 2px solid var(--accent-line); }
.about__row--sum i { color: var(--accent); }
.about__cap { display: block; margin-top: var(--s-5); font: 500 var(--fs-sm)/1.5 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.about p + p { margin-top: var(--s-4); }
.about p { color: var(--text-2); font-size: var(--fs-md); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-10); align-items: start; }
.contact__list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.contact__list a, .contact__list div { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); text-decoration: none; transition: border-color var(--dur-2); }
.contact__list a:hover { border-color: var(--accent-line); }
.contact__list small { display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list strong { font-weight: 600; font-size: var(--fs-base); overflow-wrap: anywhere; }
.form { padding: var(--s-8); border-radius: var(--r-xl); display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form__foot { display: grid; gap: var(--s-3); }
.form__privacy { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { padding: var(--s-5); } .form__row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, rgba(197,255,61,.22), transparent 55%), var(--card); border: 1px solid var(--accent-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 640px; }
.cta-band p { color: var(--text-2); margin-top: var(--s-3); max-width: 560px; }

/* ---------- Footer ---------- */
.footer__hours { color: var(--muted); font-size: var(--fs-sm); }
.footer { border-top: 1px solid var(--border); padding-block: var(--s-16) var(--s-8); background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer h2 { font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
.footer ul { list-style: none; display: grid; gap: var(--s-2); }
.footer a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.footer a:hover { color: var(--accent); }
.footer__about p { color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s-4); max-width: 340px; }
.footer__legal { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- AI Agents page ---------- */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-12); align-items: center; }
.hero-mock { max-width: 460px; justify-self: end; width: 100%; }
.hero-steps { list-style: none; display: grid; gap: 0; margin-top: var(--s-2); }
.hero-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; }
.hero-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: calc(50% + 14px); height: calc(100% - 28px); width: 2px; background: var(--accent-line); }
.hero-steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.hero-steps .done .dot { background: var(--raised); border: 1px solid var(--accent-line); color: var(--accent); }
.hero-steps .wait .dot { border: 2px solid var(--warn); color: var(--warn); background: transparent; }
.hero-steps .ok .dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-steps strong { font: 600 var(--fs-sm)/1.3 var(--font-display); }
.hero-steps .ok strong { color: var(--accent); }
.hero-steps time { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--muted); }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: 1fr; gap: var(--s-10); } .hero-mock { justify-self: start; max-width: 520px; } }

.page-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.045em; margin-top: var(--s-6); max-width: 900px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { margin-top: var(--s-6); max-width: 680px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); list-style: none; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: var(--s-6); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 1px; background: var(--accent-line); }
.flow small { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--accent); letter-spacing: .1em; }
.flow h3 { font-size: var(--fs-md); margin-top: var(--s-3); }
.flow p { font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--s-2); }
.flow li.is-human { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(197,255,61,.07), transparent 70%), var(--card); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } .flow li::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-10); align-items: center; }
.demo + .demo { margin-top: var(--s-20); }
.demo:nth-of-type(even) .mock { order: -1; }
.demo h3 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.demo p { color: var(--text-2); margin-top: var(--s-4); }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; gap: var(--s-6); } .demo:nth-of-type(even) .mock { order: 0; } }

/* Illustrated UI mockups (HTML, not screenshots) */
.mock { position: relative; border-radius: var(--r-lg); background: var(--ink-900); border: 1px solid var(--border-strong); box-shadow: var(--shadow-3); overflow: hidden; font-size: var(--fs-sm); }
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); background: var(--ink-850); }
.mock__bar strong { font: 600 var(--fs-sm)/1 var(--font-display); }
.mock__body { padding: var(--s-4); display: grid; gap: var(--s-3); }
.mock__tag { position: absolute; top: 9px; right: var(--s-3); z-index: 2; }
.mock__bar { padding-right: 132px; }
.mock__label { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ap-card { border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--ink-850); padding: var(--s-4); display: grid; gap: var(--s-3); }
.ap-card.is-focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-card__top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: start; }
.ap-card h4, .ap-card__h { font: 600 var(--fs-base)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.ap-card .why { color: var(--text-2); font-size: var(--fs-sm); }
.ap-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s-4); margin: 0; font-size: var(--fs-xs); }
.ap-card dt { color: var(--muted); }
.ap-card dd { margin: 0; color: var(--text); font-family: var(--font-mono); }
.ap-card__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ap-card__actions span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--border-strong); }
.ap-card__actions .ok { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.risk { display: inline-flex; align-items: center; white-space: nowrap; flex: none; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font: 600 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.risk--low { background: var(--green-900); color: var(--lime-300); }
.risk--high { background: rgba(255,122,107,.12); color: var(--danger); }
.steps-run { list-style: none; display: grid; gap: 2px; }
.steps-run li { display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-sm); }
.steps-run li:nth-child(odd) { background: var(--ink-850); }
.steps-run .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps-run .done .dot { background: var(--accent); color: var(--on-accent); }
.steps-run .wait .dot { border: 2px solid var(--warn); color: var(--warn); }
.steps-run .todo .dot { border: 1px dashed var(--border-strong); }
.steps-run .todo { color: var(--muted); }
.steps-run time, .steps-run em { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--muted); font-style: normal; }
.steps-run .wait em { color: var(--warn); }
.trace { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--border-strong); margin-left: 8px; }
.trace li { position: relative; padding: 0 0 var(--s-4) var(--s-5); }
.trace li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }
.trace li.is-human::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.trace time { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--muted); }
.trace p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text); }
.trace code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--lime-300); background: var(--green-900); padding: 1px 6px; border-radius: 4px; }
.chat { display: grid; gap: var(--s-3); }
.bubble { max-width: 86%; padding: var(--s-3) var(--s-4); border-radius: 16px; line-height: 1.45; }
.bubble--in { background: var(--ink-800); border-bottom-left-radius: 4px; }
.bubble--out { justify-self: end; background: var(--green-900); border: 1px solid var(--green-800); border-bottom-right-radius: 4px; }
.manager { margin-top: var(--s-2); padding: var(--s-3); border-radius: var(--r-md); border: 1px dashed var(--accent-line); background: rgba(197,255,61,.04); display: grid; gap: var(--s-2); font-size: var(--fs-xs); }
.manager b { color: var(--accent); font-family: var(--font-mono); letter-spacing: .08em; font-size: 10px; text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.tiers .card h3 { font-size: var(--fs-md); margin-top: var(--s-4); }
.tiers .card p { margin-top: var(--s-2); font-size: var(--fs-sm); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.uses .card { display: grid; gap: var(--s-3); }
.uses ul { list-style: none; display: grid; gap: var(--s-2); }
.uses li { font-size: var(--fs-sm); color: var(--text-2); padding-left: var(--s-5); position: relative; }
.uses li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.uses li b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }

/* ---------- Simple pages ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s-10); }
.prose p, .prose li { color: var(--text-2); margin-top: var(--s-4); }
.prose ul { padding-left: var(--s-5); }
.draft-note { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r-md); border: 1px dashed var(--warn); color: var(--warn); font-size: var(--fs-sm); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: var(--s-5); }
.notfound h1 { font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: .9; color: var(--accent); letter-spacing: -0.06em; }
