/* Agentic commerce page. Builds on core/work/shopify-vyvoj/shopify-plus.
   Lime (--commerce) stays the site's action colour; cyan (--cyber) marks
   everything the agent says or does, so the two voices never blur.
   Shared typography and motion preferences match the rest of the site. */

.ac-hero { grid-template-areas:"main card"; padding-bottom:clamp(40px,6vw,90px); }
.ac-hero .plus-hero-main h1 em { color:var(--cyber); }
.ac-guide-link { max-width:520px; margin:26px 0 0; font-size:13px; line-height:1.6; }
.ac-guide-link a { color:#c9c9c2; border-bottom:1px solid rgba(var(--cyber-rgb),.45); padding-bottom:2px; }
.ac-guide-link a:hover { color:var(--cyber); }

.ac-answer { padding:28px; border:1px solid rgba(var(--cyber-rgb),.3); background:linear-gradient(160deg,rgba(var(--cyber-rgb),.08),rgba(255,255,255,.015) 60%); }
.ac-answer-title { display:block; margin-bottom:18px; color:var(--cyber); font:600 13px "Manrope",sans-serif; letter-spacing:0; text-transform:none; }
.ac-answer dl { margin:0; border-top:1px solid rgba(255,255,255,.12); }
.ac-answer dl div { padding:15px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.ac-answer dt { margin-bottom:5px; color:#efeee8; font-size:15px; font-weight:650; letter-spacing:-.02em; }
.ac-answer dd { margin:0; color:#a2a29b; font-size:13.5px; line-height:1.6; }
.ac-answer > p { margin:16px 0 0; color:#9b9b94; font-size:12px; line-height:1.55; }
/* ── Roles ──────────────────────────────────────────────────── */
.ac-roles { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1px; margin-top:44px; background:var(--line); border:1px solid var(--line); }
.ac-role { display:flex; flex-direction:column; gap:12px; padding:24px; background:#090b0a; }
.ac-role header { display:flex; flex-direction:column; gap:8px; }
.ac-layer { color:#9b9b94; font:600 13px "Manrope",sans-serif; letter-spacing:0; text-transform:none; }
.ac-role h3 { margin:0; font-size:22px; letter-spacing:-.04em; }
.ac-status { align-self:flex-start; padding:4px 8px; font:600 13px "Manrope",sans-serif; letter-spacing:0; }
.ac-status-ok { border:1px solid rgba(var(--commerce-rgb),.55); color:var(--commerce); }
.ac-status-partial { border:1px solid rgba(var(--cyber-rgb),.55); color:var(--cyber); }
.ac-status-exp { border:1px dashed #ffb38f; color:#ffb38f; }
.ac-role p { margin:0; color:#a2a29b; font-size:14px; line-height:1.65; }
.ac-role .ac-role-you { color:#d3d3cc; }
.ac-role .ac-role-src { margin-top:auto; font-size:12px; }
.ac-role-src a,.ac-news a,.ac-table th a { color:#c9c9c2; text-decoration:underline; text-decoration-color:rgba(255,255,255,.3); text-underline-offset:3px; }
.ac-role-src a:hover,.ac-news a:hover,.ac-table th a:hover { color:var(--cyber); }/* ── Availability table ─────────────────────────────────────── */
.ac-table-wrap { margin-top:44px; overflow-x:auto; }
.ac-table { width:100%; min-width:760px; border-collapse:collapse; font-size:14px; line-height:1.5; }
.ac-table th,.ac-table td { padding:15px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.ac-table thead th { color:#9b9b94; font:600 13px "Manrope",sans-serif; letter-spacing:0; text-transform:none; border-bottom-color:rgba(255,255,255,.3); }
.ac-table tbody th { color:#efeee8; font-weight:600; }
.ac-table td { color:#b4b4ad; }
.ac-eu { font-weight:600; }
.ac-eu-no { color:#ffb38f!important; }
.ac-eu-maybe { color:var(--cyber)!important; }/* ── News timeline ─────────────────────────────────────────── */
.ac-news { max-width:900px; margin:44px 0 0; padding:0; list-style:none; border-top:1px solid var(--line); }
.ac-news li { display:grid; grid-template-columns:130px 1fr; gap:24px; padding:22px 0; border-bottom:1px solid var(--line); }
.ac-news time { color:var(--cyber); font:600 13px "Manrope",sans-serif; letter-spacing:0; }
.ac-news h3 { margin:0 0 8px; font-size:19px; letter-spacing:-.03em; }
.ac-news p { margin:0; color:#a2a29b; font-size:14px; line-height:1.65; }
.ac-news p a { font-size:12px; }/* ── Merchant steps ────────────────────────────────────────── */
#kroky > header p { max-width:620px; color:#a2a29b; font-size:15px; line-height:1.7; }
.ac-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:30px 46px; margin:54px 0 0; padding:0; list-style:none; counter-reset:none; }
.ac-steps li { padding-top:18px; border-top:1px solid rgba(var(--commerce-rgb),.35); }
.ac-steps span { color:var(--commerce); font:600 13px "Manrope",sans-serif; }
.ac-steps h3 { margin:10px 0 10px; font-size:20px; letter-spacing:-.035em; }
.ac-steps p { margin:0; color:#a2a29b; font-size:14px; line-height:1.68; }
.ac-steps a { color:#efeee8; text-decoration:underline; text-decoration-color:rgba(var(--commerce-rgb),.6); text-underline-offset:3px; }/* ── Help ──────────────────────────────────────────────────── */
.ac-help { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-top:44px; }
.ac-help article { display:flex; flex-direction:column; gap:12px; padding:24px; border:1px solid var(--line); }
.ac-help h3 { margin:0; font-size:20px; letter-spacing:-.035em; }
.ac-help p { margin:0; color:#a2a29b; font-size:14px; line-height:1.65; }
.ac-help a { margin-top:auto; padding-top:10px; color:var(--commerce); font:600 13px "Manrope",sans-serif; letter-spacing:0; text-transform:none; }
.ac-help a:hover { color:#fff; }/* ── Sources ───────────────────────────────────────────────── */
.ac-sources { max-width:900px; margin:40px 0 0; padding:0; list-style:none; border-top:1px solid var(--line); }
.ac-sources li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 20px; padding:13px 0; border-bottom:1px solid var(--line); font-size:14px; }
.ac-sources a { color:#d3d3cc; text-decoration:underline; text-decoration-color:rgba(255,255,255,.3); text-underline-offset:3px; }
.ac-sources a:hover { color:var(--cyber); }
.ac-sources span { color:#9b9b94; font:600 13px "Manrope",sans-serif; }@media (max-width:960px) {
  .ac-hero { grid-template-columns:1fr; grid-template-areas:"main" "card"; }
}@media (max-width:640px) {
  .ac-news li { grid-template-columns:1fr; gap:6px; }
  /* Table becomes stacked cards: each cell carries its column name. */
  .ac-table { min-width:0; }
  .ac-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .ac-table tr { display:block; padding:14px 0; border-bottom:1px solid var(--line); }
  .ac-table th,.ac-table td { display:block; padding:4px 0; border:0; }
  .ac-table td::before { content:attr(data-label) ": "; color:#9b9b94; font:600 13px "Manrope",sans-serif; letter-spacing:0; text-transform:none; }
}/* Preserve native hidden semantics for every conditional branch and button. */
@media (max-width:760px) {
  .sim-text,.sim-msg,.sim-lever,.sim-tech p,.ac-role p { font-size:16px; }
}

.ac-availability { min-width:1120px; }
.ac-availability th:first-child { width:125px; }
.ac-practical { margin-top:48px; }
.ac-practical details p,.ac-practical details li { color:#b4b4ad; font-size:15px; line-height:1.75; }
.ac-practical details p { max-width:900px; }
.ac-practical ul { max-width:900px; padding-left:22px; }
.ac-practical li + li { margin-top:8px; }
.ac-practical code,.ac-role code { overflow-wrap:anywhere; font-size:.92em; }
.ac-practical a,.sim-tech a,.ac-answer a { color:var(--cyber); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.ac-practical .ac-role-src { font-size:12px; }@media (max-width:640px) {
  .ac-availability { min-width:0; }
  .ac-availability th:first-child { width:auto; }
  .ac-practical details p,.ac-practical details li { font-size:16px; }
}
/* ── Guide: preparing a store for AI agents ───────────────── */
.ac-guide { padding-top:var(--section-y); padding-bottom:var(--section-y); border-top:1px solid var(--line); }
.ac-guide-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:34px 44px; margin:48px 0 0; padding:0; list-style:none; }
.ac-guide-steps li { padding-top:18px; border-top:1px solid rgba(var(--commerce-rgb),.35); }
.ac-guide-steps span { color:var(--commerce); font:600 13px "Manrope",sans-serif; }
.ac-guide-steps h3 { margin:10px 0; font-size:20px; letter-spacing:-.03em; }
.ac-guide-steps p { margin:0; color:#a2a29b; font-size:15px; line-height:1.68; }
.ac-guide-foot { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:40px; margin-top:52px; padding-top:28px; border-top:1px solid var(--line); }
.ac-guide-foot p { max-width:720px; margin:0; color:#c3c5bd; font-size:15px; line-height:1.7; }
.ac-guide-link { padding:10px 0; border-bottom:1px solid var(--commerce); color:var(--commerce); font:600 15px "Manrope",sans-serif; white-space:nowrap; }
.ac-guide-link:hover { color:#fff; border-color:#fff; }
@media (max-width:760px) { .ac-guide-foot { grid-template-columns:1fr; gap:22px; } .ac-guide-link { white-space:normal; } }

/* Role cards: the merchant reading first, the API detail folded away. */
.ac-role-tech { padding-top:10px; border-top:1px solid var(--line); }
.ac-role-tech summary { display:flex; align-items:center; gap:8px; color:#c9c9c2; font:600 12px/1.4 "Manrope",sans-serif; cursor:pointer; list-style:none; }
.ac-role-tech summary::-webkit-details-marker { display:none; }
.ac-role-tech summary::before { content:"+"; width:12px; color:var(--cyber); font-size:15px; line-height:1; }
.ac-role-tech[open] summary::before { content:"−"; }
.ac-role-tech summary:focus-visible { outline:2px solid var(--cyber); outline-offset:3px; }
.ac-role .ac-role-tech p { margin-top:8px; font-size:13px; }

/* Product illustrations and the shop owner's weekly checks */
.ac-journey { padding-block:var(--section-y); border-top:1px solid var(--line); }
.ac-journey h2 { max-width:24ch; margin:0 0 1.2rem; font-size:clamp(32px,4vw,64px); line-height:1.08; letter-spacing:-.045em; }
.ac-journey blockquote { margin:1.6rem 0; padding-left:1rem; border-left:3px solid var(--commerce); font-size:clamp(20px,2.3vw,32px); line-height:1.4; max-width:41ch; }
.ac-journey p,.ac-notes p,.ac-notes dd { color:#bcbdb6; line-height:1.65; font-size:16px; max-width:74ch; }
.ac-pictures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,3vw,48px); margin:32px 0; }
.ac-pictures figure { margin:0; }
.ac-pictures img { display:block; width:100%; height:auto; }
.ac-pictures figcaption { margin-top:12px; line-height:1.5; color:#cccfc6; }
.ac-pictures strong { display:block; margin-bottom:5px; color:#fafbf5; }
.ac-journey a,.ac-notes a { color:var(--commerce); text-underline-offset:3px; }
.ac-notes { max-width:900px; margin:32px 0; }
.ac-notes details { border-top:1px solid var(--line); padding-block:14px; }
.ac-notes summary { cursor:pointer; padding:6px 0; font-weight:650; }
.ac-notes details p,.ac-notes dl { margin:12px 0 4px; }
.ac-notes dt { font-weight:700; margin-top:12px; }
.ac-notes dd { margin:2px 0 0; }
.ac-guide .ac-guide-link,.ac-hero .ac-guide-link { white-space:normal; }
@media(max-width:700px) { .ac-pictures { grid-template-columns:1fr; } }

#role .ac-role-heading { max-width:76ch; margin:0 0 28px; }
#role-title { margin:0; font-size:clamp(34px,5vw,72px); line-height:1.05; letter-spacing:-.045em; text-align:start; text-wrap:balance; }
.ac-role-heading p { margin:14px 0 0; max-width:65ch; color:#bbbfba; line-height:1.65; }
#role .ac-notes { margin-top:18px; }
.ac-roles.ac-explorer { display:grid; grid-template-columns:minmax(190px,.8fr) minmax(0,2fr); align-items:start; gap:clamp(20px,4vw,60px); margin:0; padding-top:20px; border:0; border-top:1px solid var(--line); background:none; }
.ac-picker { min-width:0; margin:0; padding:0; border:0; display:grid; }
.ac-picker legend,.ac-picker input { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.ac-picker label { position:relative; cursor:pointer; }
.ac-picker label span { display:flex; align-items:center; min-height:46px; padding:8px 14px; border-bottom:1px solid var(--line); color:#b6bab4; font-weight:600; }
.ac-picker input:checked + span { color:var(--commerce); background:#161c14; box-shadow:inset 3px 0 var(--commerce); }
.ac-picker label:hover span { color:#fff; }
.ac-picker input:focus-visible + span { outline:2px solid var(--commerce); outline-offset:-2px; }
.ac-explorer .ac-role { min-width:0; padding:clamp(20px,3.5vw,48px); border-top:2px solid var(--cyber); background:#101615; }
.ac-explorer .ac-role[hidden] { display:none; }
.ac-explorer .ac-role h3 { font-size:clamp(26px,3vw,42px); line-height:1.1; }
.ac-explorer .ac-role p { max-width:65ch; font-size:16px; }
.ac-explorer .ac-role .ac-role-src { margin:0; font-size:13px; }
@media (prefers-reduced-motion:no-preference) {
  .ac-explorer .ac-role:not([hidden]) { animation:ac-topic-appear .26s ease-out both; }
  .ac-picker span { transition:color .18s,background-color .18s; }
  @keyframes ac-topic-appear { from { opacity:.35; transform:translateY(6px); } to { opacity:1; transform:none; } }
}
@media(max-width:680px) {
  .ac-roles.ac-explorer { grid-template-columns:1fr; gap:16px; }
  .ac-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ac-picker label span { height:100%; padding-inline:10px; font-size:14px; }
}
