/* eME product pages (index.html, pro.html). Base tokens and components come from index2.css. */

.sb-hero { padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.sb-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sb-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 16ch; margin: 0 0 .4em; }
.sb-hero .lead { max-width: 34ch; margin-bottom: 1.6rem; }
.sb-price { font-size: 1.1rem; color: var(--ink); margin: 0 0 2rem; }
.sb-price span { font-size: 2.6rem; font-weight: 300; margin-right: .2em; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero benefits */
.sb-price + .sb-benefits { margin-top: -0.8rem; }
.sb-benefits { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 14px; max-width: 46ch; }
.sb-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.sb-benefits .fi { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--ink-soft); }
.sb-benefits strong { display: block; font-weight: 500; color: var(--ink); }
.sb-benefits span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Chat mock up */
.sb-chat { background: #efeae2; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; max-width: 400px; justify-self: end; width: 100%; box-shadow: 0 18px 40px rgba(10,26,51,.12); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sb-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #008069; color: #fff; }
.sb-back { width: 20px; height: 20px; flex: none; }
.sb-dot { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #dfe5e7; color: #0a1a33; display: grid; place-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.sb-who { flex: 1; min-width: 0; }
.sb-chat-head strong { display: block; font-weight: 500; font-size: 1rem; color: #fff; }
.sb-chat-head small { color: rgba(255,255,255,.8); font-size: .78rem; }
.sb-hicons { width: 56px; height: 22px; flex: none; }
.sb-msgs { list-style: none; margin: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: #111b21;
  background-color: #efeae2; background-image: radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px); background-size: 14px 14px; }
.sb-msgs li { position: relative; max-width: 82%; padding: 6px 9px 7px; border-radius: 8px; line-height: 1.4; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.sb-msgs .bot { background: #fff; align-self: flex-start; border-top-left-radius: 0; }
.sb-msgs .me { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 0; }
.sb-msgs .bot::before, .sb-msgs .me::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.sb-msgs .bot::before { left: -7px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.sb-msgs .me::before { right: -7px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.sb-meta { float: right; margin: 6px 0 -4px 10px; font-size: .68rem; color: #667781; display: inline-flex; align-items: center; gap: 3px; }
.sb-tick { width: 16px; height: 11px; color: #53bdeb; }
.sb-msgs .sb-day { align-self: center; background: #fff; color: #54656f; font-size: .72rem; padding: 4px 10px; margin-bottom: 4px; }
.sb-msgs .team { align-self: center; text-align: center; background: #ffeecd; color: #54656f; font-size: .78rem; margin-top: 4px; }
.sb-menu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sb-menu span { background: #f0f2f5; border-radius: 999px; padding: 4px 10px; font-size: .78rem; color: #008069; font-weight: 500; }
.sb-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #efeae2; }
.sb-field { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 14px; color: #8696a0; font-size: .92rem; }
.sb-field span { flex: 1; }
.sb-field svg { width: 22px; height: 22px; flex: none; }
.sb-mic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #00a884; color: #fff; display: grid; place-items: center; }
.sb-mic svg { width: 22px; height: 22px; }

/* Cards on the dark band */
.dark .features li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.dark .features .fi { color: #9fb0cf; }
.dark .features p { color: var(--on-dark-muted); }

/* Steps */
.sb-steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.sb-steps li { counter-increment: step; padding: 28px; border-top: 1px solid var(--ink); }
.sb-steps li::before { content: "0" counter(step); display: block; font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.sb-steps h3 { margin: 0 0 .35em; }
.sb-steps p { margin: 0; color: var(--muted); }
.sb-principle { margin-top: 2.6rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 300; color: var(--ink); }

/* Pricing tiers (same look as costs.css) */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 2rem; }
.tier { display: flex; flex-direction: column; }
.tier .amt { font-size: 2.4rem; font-weight: 300; color: var(--ink); margin: .2em 0 0; line-height: 1.1; }
.tier .amt small { font-size: 1rem; color: var(--muted); }
.tier .by { font-size: .9rem; color: var(--muted); margin: .3em 0 1em; }
.tier ul { margin: 0 0 1.4rem; padding-left: 1.1em; color: var(--body); }
.tier li { margin-bottom: .5em; }
.tier .btn { margin-top: auto; text-align: center; padding: 16px 20px; }
.tier.pick { outline: 2px solid var(--ink); outline-offset: 3px; }

.sb-cta { text-align: center; }
.sb-cta .lead { margin: 0 auto 2rem; max-width: 36ch; }
.sb-cta .sb-actions { justify-content: center; }

@media (max-width: 900px) {
  .sb-hero .wrap { grid-template-columns: 1fr; }
  .sb-chat { justify-self: start; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dark .features h3 { color: #fff; }
.sb-four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Small chips under the hero price */
.sb-chips { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chips li { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* Trust strip */
.trust { background: var(--ink); padding: 26px 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
.trust p { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }
.trust ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.trust li { font-size: 1.15rem; color: #fff; letter-spacing: .02em; }

/* Inline product artwork, indigo on paper */
.art-wrap { margin-top: 2.6rem; }
svg.prod { display: block; width: 100%; height: auto; font-family: 'Jost', 'Avenir Next', system-ui, sans-serif; }
svg.prod .t { fill: var(--ink); font-weight: 500; }
svg.prod .s { fill: var(--muted); }
svg.prod .w { fill: #fff; font-weight: 500; }
svg.prod .ws { fill: #c9d3e6; }
svg.prod .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; letter-spacing: .08em; }
svg.prod .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
svg.prod .box-ink { fill: var(--ink); }
svg.prod .box-soft { fill: var(--ink-soft); }
svg.prod .box-tint { fill: var(--tint); stroke: var(--line); stroke-width: 1.5; }
svg.prod .ln { stroke: var(--ink-soft); stroke-width: 2; fill: none; }
svg.prod .ln-soft { stroke: #aeb6c6; stroke-width: 1.5; fill: none; }
svg.prod .dash { stroke: #aeb6c6; stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; }
svg.prod .ico { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.prod .ico-ink { color: var(--ink-soft); }
svg.prod .ico-w { color: #fff; }
svg.prod .ah { fill: var(--ink-soft); }
svg.prod .bar { fill: var(--ink-soft); }
svg.prod .bar-l { fill: #9aa6bf; }
svg.prod .bar-bg { fill: var(--tint); }

/* Wide diagrams: drawn on desktop, a plain list on phones */
.wide-alt { display: none; }
@media (max-width: 700px) {
  .wide-art { display: none; }
  .wide-alt { display: grid; }
}

/* eME Small Business mock up on the dark band */

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 2rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 400; color: var(--ink); font-size: 1.15rem; border-bottom: 1px solid var(--ink); }
.compare tbody th { font-weight: 400; color: var(--muted); width: 28%; }
.compare td { color: var(--body); }
.compare .yes::before { content: ""; display: inline-block; width: 14px; height: 8px; border-left: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg) translateY(-3px); margin-right: 10px; }
.compare .hl { background: rgba(10,26,51,.035); }

/* What sets us apart */
.apart { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--ink); }
.apart div { padding: 26px 22px 6px 0; }
.apart strong { display: block; font-weight: 400; font-size: 1.3rem; margin-bottom: .3em; }
.apart p { margin: 0; color: var(--muted); font-size: 1rem; }
.api-line { margin-top: 2.6rem; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.api-line strong { font-weight: 400; font-size: 1.25rem; }
.api-line span { color: var(--muted); }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.5rem; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* eME Pro hero */
.pro-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
.pro-hero h1 { max-width: 17ch; }
.pro-art { max-width: 520px; justify-self: end; width: 100%; }
.pro-price { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0 0 2rem; color: var(--ink); }
.pro-price span { display: block; }
.pro-price b { font-weight: 300; font-size: 2.6rem; margin-right: .2em; }
@media (max-width: 900px) { .pro-hero .wrap { grid-template-columns: 1fr; } .pro-art { justify-self: start; max-width: 420px; } }

.sb-steps.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dark .sb-steps li { border-top-color: rgba(255,255,255,.5); }
.dark .sb-steps li::before { color: #9fb0cf; }
.dark .sb-steps p { color: var(--on-dark-muted); }
.more-link { margin-top: 2rem; }
.more-link a { color: var(--ink); text-underline-offset: 5px; }
.dark .more-link a { color: #cfdcf5; }

/* Staff tools with graphics */
.sb-art { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(255,255,255,.05); }
.sb-benefits strong a { color: inherit; text-decoration: none; }
.sb-benefits strong a:hover { text-decoration: underline; text-underline-offset: 4px; }
#eme, #team { scroll-margin-top: 80px; }
.sb-cta + #contact { border-top: 1px solid rgba(255,255,255,.18); }
.sb-values-top { text-align: center; margin-bottom: 72px; }
.sb-values-h { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--ink); margin: 0 0 .4em; }
.sb-values-top .center-block { margin-left: auto; margin-right: auto; }
.sb-values-top .features { text-align: left; }
#different .center-block { margin-left: auto; margin-right: auto; }
.sb-open-cards { margin-top: 28px; text-align: left; }
#different .api-line { justify-content: center; max-width: 1000px; margin-left: auto; margin-right: auto; }
.values-cards.sb-open-cards li { min-height: 0; padding: 32px 24px; }
.sb-connect { margin: 2.4rem 0 0; overflow-x: auto; }
.sb-connect img { display: block; width: 100%; min-width: 720px; height: auto; }

/* eME Small Business: cards around the name */
.team-hub { display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); gap: 28px; align-items: stretch; margin-top: 2.4rem; }
.team-hub .features { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 18px; }
.team-hub .features li.has-art { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; }
.hub-center { display: flex; flex-direction: column; position: relative; }
.hub-title { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 12px; text-align: center; font-size: 1.5rem; font-weight: 500; }
.dark .hub-title { color: #fff; }
.hub-users { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-rows: 1fr; gap: 18px; }
.hub-users li { display: grid; place-items: center; position: relative; }
.hub-users li::before { content: ""; position: absolute; left: -28px; right: -28px; top: 50%; border-top: 2px dashed rgba(255,255,255,.4); }
.hub-user { position: relative; width: 140px; height: 140px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; color: var(--ink); line-height: 1.25; }
.hub-user svg { width: 34px; height: 34px; margin-bottom: 4px; }
.hub-user strong { font-weight: 500; }
.hub-user small { color: var(--muted); }
.hub-by { display: none; color: #9fb0cf; margin-bottom: .4em; }
.hub-user strong, .dark .hub-user strong { color: var(--ink); }
.hub-user small, .dark .hub-user small { color: var(--muted); }
.team-hub { margin-top: 5rem; }
.hub-user small { font-size: .82rem; }
.tiers:not(:has(> :nth-child(3))) { max-width: 880px; }

/* Layout fixes. The side menu takes room, so the team hub needs a wide screen. */
@media (max-width: 1279px) {
  .team-hub { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 2.4rem; }
  .team-hub .features { display: contents; }
  .team-hub .hub-center { display: none; }
  .hub-by { display: block; }
}
@media (max-width: 520px) {
  .team-hub .features li.has-art { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
}
@media (max-width: 700px) { .values-cards.values-three { grid-template-columns: 1fr; } }
.tier .more-link { margin: 14px 0 0; text-align: center; }
.hub-title { white-space: nowrap; }

/* Pricing: one plan, then the custom option */
.card.sb-plan { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 32px; align-items: center; margin-top: 2rem; }
.sb-plan ul { margin: 0; }
.sb-custom { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; margin-top: 24px; padding: 24px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sb-custom p { margin: 0; flex: 1 1 320px; }
.sb-custom strong { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 700px) { .card.sb-plan { grid-template-columns: 1fr; } }

/* eME Pro: client dashboard gallery */
.pro-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 2.4rem; }
.pro-gallery figure { margin: 0; }
.pro-shot { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--on-dark-muted); }
.pro-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); }
.pro-gallery figcaption { margin-top: 10px; color: var(--on-dark-muted); font-size: .95rem; }
.pro-art img, .pro-art svg { display: block; width: 100%; height: auto; }
/* Pro hero: give the emblem more room */
.pro-hero .wrap { grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: clamp(24px, 3vw, 48px); }
.pro-hero .pro-art { max-width: 720px; margin: 0; }
@media (max-width: 900px) { .pro-hero .wrap { grid-template-columns: 1fr; } .pro-hero .pro-art { max-width: 560px; } }

/* eME Pro: self customizing network */
.flow-art { margin: 2.6rem 0 0; }
/* the network's text gets too small on narrower screens, so show the list sooner */
@media (max-width: 1099px) { .flow-art { display: none; } .flow-art + .wide-alt { display: grid; } }
.pro-stack { margin: 3.6rem 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--ink); }
.pro-stack-steps { margin-top: 1.4rem; }
.pro-stack-steps h4 { margin: 0 0 .35em; font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.pro-layers { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.pro-layers li { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink-soft); border-radius: var(--radius); }
.pro-layers strong { display: block; font-weight: 500; color: var(--ink); }
.pro-layers span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.pro-layers { margin-top: 3rem; }
.pro-gallery figcaption { text-transform: none; letter-spacing: 0; text-align: left; font-size: .95rem; }
.pro-zoom { display: block; cursor: zoom-in; border-radius: var(--radius); transition: transform .15s; }
.pro-zoom:hover, .pro-zoom:focus-visible { transform: translateY(-3px); outline: 2px solid #fff; outline-offset: 3px; }
.pro-hint { margin: 1.4rem 0 0; font-size: .95rem; }
.pro-lightbox { width: min(1200px, 94vw, 138vh); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.pro-lightbox::backdrop { background: rgba(10,26,51,.85); }
.pro-lightbox img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.pro-lightbox button { position: absolute; right: 0; bottom: 100%; margin-bottom: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ===== Agency home page and template pages (index.html, solutions.html, solution-*.html, fix-*.html) ===== */
section[id] { scroll-margin-top: 80px; }

/* Device frames: the same Flutter app in a browser and on a phone */
.dev-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .34fr); gap: clamp(14px, 2.4vw, 28px); align-items: end; margin: 0; }
.dev-browser { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10,26,51,.14); }
.dev-browser::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 14px 13px, #c9c7c1 4px, transparent 4.5px), radial-gradient(circle at 28px 13px, #c9c7c1 4px, transparent 4.5px), radial-gradient(circle at 42px 13px, #c9c7c1 4px, transparent 4.5px), #e7e6e3; }
.dev-phone { border-radius: 28px; padding: 8px; background: var(--ink); box-shadow: 0 18px 40px rgba(10,26,51,.24); }
.dev-phone img { border-radius: 21px; }
.dev-browser img, .dev-phone img { display: block; width: 100%; height: auto; }
.dev-cap { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.dark .dev-cap { color: var(--on-dark-muted); }

/* Hero: prompt becomes an app */
.ag-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); }
.ag-hero h1 { max-width: 15ch; }
.ag-hero .lead { max-width: 40ch; }
.ag-art { display: grid; gap: 16px; }
.ag-prompt { justify-self: start; max-width: 34ch; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 1rem; line-height: 1.45; box-shadow: 0 8px 20px rgba(10,26,51,.08); }
.ag-prompt small { display: block; margin-bottom: 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .ag-hero .wrap { grid-template-columns: 1fr; } }

/* Electronic Me pairs */
.ag-pairs { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ag-pairs li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ag-who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.ag-who span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; background: var(--tint); font-size: .85rem; }
.ag-who span + span { background: var(--ink); color: #fff; }
.ag-who i { font-style: normal; color: var(--muted); }
.ag-pairs p { margin: 0; color: var(--muted); }
.ag-pitch { margin-top: 2rem; padding: 22px 26px; border-left: 3px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.15rem; }

/* Agencies building on eME */
.ag-agencies { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ag-agencies li { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.ag-agencies h3 { margin: 0 0 .2em; color: #fff; }
.ag-agencies h3 a { color: inherit; text-underline-offset: 5px; }
.ag-agencies .where { margin: 0 0 .8em; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0cf; }
.ag-agencies p { margin: 0; color: var(--on-dark-muted); }

/* Try it: reserved spot for the live chat bot */
.ag-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ag-prompts { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.ag-prompts button { border: 1px solid var(--ink-soft); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .95rem; cursor: pointer; text-align: left; }
.ag-prompts button:hover { background: var(--tint); }
.ag-prompts button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ag-bot-slot { min-height: 380px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10,26,51,.12); }
.ag-bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.ag-bot-head b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eef1f7; color: var(--ink); font-weight: 500; font-size: .85rem; }
.ag-bot-head small { display: block; color: var(--on-dark-muted); font-size: .8rem; }
.ag-bot-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; background: var(--paper-2); }
.ag-bot-body p { margin: 0; max-width: 85%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.ag-bot-open { margin: 14px 16px 16px; text-align: center; }
@media (max-width: 900px) { .ag-try { grid-template-columns: 1fr; } }

/* Example apps and template cards */
.ag-apps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ag-apps a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--body); text-decoration: none; transition: transform .15s, border-color .15s; }
.ag-apps a:hover, .ag-apps a:focus-visible { transform: translateY(-3px); border-color: var(--ink-soft); }
.ag-apps .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.ag-apps strong { display: block; font-weight: 500; font-size: 1.2rem; color: var(--ink); margin-bottom: .3em; }
.ag-apps span:last-child { color: var(--muted); font-size: .98rem; }
.ag-soon { margin-top: 2rem; color: var(--muted); }

/* Price anchor */
.ag-anchor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 2rem; max-width: 880px; }
.ag-anchor div { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ag-anchor .was { color: var(--muted); }
.ag-anchor .was b { text-decoration: line-through; text-decoration-thickness: 2px; }
.ag-anchor .now { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); }
.ag-anchor b { display: block; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; color: var(--ink); }
.ag-anchor .now b { color: #fff; }
.ag-anchor span { display: block; margin-top: .3em; }
.ag-anchor-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .ag-anchor { grid-template-columns: 1fr; } }
.tiers.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tier .was-line { font-size: .9rem; color: var(--muted); margin: 0 0 .6em; }

/* Revenue calculator */
.ag-calc { margin-top: 2.6rem; padding: 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: center; }
.ag-calc h3 { margin: 0 0 .3em; }
.ag-calc p { margin: 0; color: var(--muted); }
.ag-calc label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.ag-calc input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1.1rem; color: var(--ink); background: #fff; }
.ag-calc output { display: block; }
.ag-calc dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; }
.ag-calc dt { font-size: .85rem; color: var(--muted); }
.ag-calc dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 300; color: var(--ink); }
.ag-calc dd.big { font-weight: 400; }
.ag-calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 800px) { .ag-calc { grid-template-columns: 1fr; } .ag-calc dl { grid-template-columns: 1fr 1fr; } }

/* Template and problem pages */
.sol-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.sol-hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
.sol-hero .dev-phone { max-width: 300px; justify-self: end; width: 100%; }
@media (max-width: 900px) { .sol-hero .wrap { grid-template-columns: 1fr; } .sol-hero .dev-phone { justify-self: start; max-width: 260px; } }
.sol-problem { max-width: 70ch; }
.sol-problem li { margin-bottom: .6em; color: var(--body); }
.sol-shot { margin: 2.4rem 0 0; }
.sol-shot a { display: block; cursor: zoom-in; }
.sol-breadcrumb { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.sol-breadcrumb a { color: inherit; }
.ag-bot-head strong { display: block; color: #fff; font-weight: 500; }
.sol-noart .wrap { grid-template-columns: 1fr; }
.sol-noart h1 { max-width: 22ch; }
.sol-noart .lead { max-width: 62ch; }

/* Solutions index: search, filters, sort */
.sol-index { padding-top: 0; }
.sol-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 18px; align-items: end; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sol-filters label { display: block; font-size: .85rem; color: var(--muted); }
.sol-filters input, .sol-filters select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
.sol-tagrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sol-tagrow > span { font-size: .85rem; color: var(--muted); }
#sol-tags { display: flex; flex-wrap: wrap; gap: 8px; }
#sol-tags button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .9rem; cursor: pointer; }
#sol-tags button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#sol-tags button:focus-visible, .sol-status button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sol-status { grid-column: 1 / -1; margin: 0; display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .95rem; }
.sol-status button, .sol-empty button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sol-list { margin-top: 1.6rem; }
.sol-list li[hidden] { display: none; }
.sol-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.ag-apps .sol-tags em { font-style: normal; font-size: .75rem; color: var(--ink-soft); background: var(--tint); border-radius: 999px; padding: 3px 9px; }
.sol-empty { margin-top: 1.4rem; color: var(--muted); }
.sol-coming { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sol-coming li { font-size: .9rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 800px) { .sol-search { grid-column: 1 / -1; } }
.sb-steps.five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; } .sb-steps.five li { padding: 24px 18px 24px 0; }

/* Talk to eME: three ways to chat */
.ag-modes-intro { max-width: 760px; margin-top: 3.5rem; }
.ag-modes-intro p { color: var(--muted); font-size: 1.05rem; }
.ag-modes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ag-modes li { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ag-modes .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.ag-modes strong { font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-bottom: .4em; }
.ag-modes li > p { color: var(--muted); font-size: .98rem; margin: 0 0 1.2em; }
.ag-convo { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--tint); display: flex; flex-direction: column; gap: 8px; }
.ag-convo p { margin: 0; max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.35; }
.ag-convo .me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ag-convo .bot { align-self: flex-start; background: var(--surface); color: var(--body); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ag-mode-ask { margin-top: 14px; align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-mode-ask:hover, .ag-mode-ask:focus-visible { color: var(--ink-soft); }

/* Solution recipe: integrations, skills, plugins and the build prompt */
.sol-recipe { display: grid; gap: 18px; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sol-recipe > div { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sol-recipe h3 { margin: 0 0 .7em; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sol-recipe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.sol-recipe li { position: relative; padding-left: 1.3em; color: var(--body); font-size: .98rem; }
.sol-recipe li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); opacity: .75; }
.sol-prompt { margin-top: 22px; padding: 26px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.sol-prompt-head { display: flex; flex-wrap: wrap; gap: .3em 1em; align-items: baseline; margin-bottom: .9em; }
.sol-prompt-head strong { color: #fff; font-weight: 500; font-size: 1.15rem; }
.sol-prompt-head span { color: rgba(255,255,255,.7); font-size: .92rem; }
.sol-prompt p { margin: 0 0 1.2em; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.6; color: #fff; }
.sol-prompt .btn { background: #fff; color: var(--ink) !important; border-color: #fff; cursor: pointer; }
.sol-prompt .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.ag-solutions-intro { max-width: 760px; color: var(--muted); font-size: 1.05rem; margin: .4rem 0 0; }
.ag-bot-head b { position: relative; overflow: hidden; width: 44px; height: 44px; }
.ag-bot-head b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-agencies .ag-logo { display: flex; align-items: center; height: 76px; padding: 0 20px; margin: 0 0 1.1rem; border-radius: 12px; background: #fff; }
.ag-agencies .ag-logo img { display: block; max-height: 48px; max-width: 100%; width: auto; height: auto; }
/* Featured agencies on the home page (condensed cards) */
.ag-featured li { padding: 0; }
.ag-featured a { display: flex; flex-direction: column; height: 100%; padding: 22px; color: inherit; text-decoration: none; border-radius: inherit; transition: background .15s; }
.ag-featured a:hover, .ag-featured a:focus-visible { background: rgba(255,255,255,.06); }
.ag-featured .ag-logo { margin-bottom: .9rem; height: 68px; }
.ag-featured strong { color: #fff; font-weight: 500; font-size: 1.1rem; }
.ag-featured span:last-child { color: var(--on-dark-muted); font-size: .95rem; margin-top: .2em; }
.dark .more-link a { color: #fff; }
.ag-logo .ag-logo-text { margin-left: 12px; color: #1d1d1f; font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; white-space: nowrap; }

/* Solutions index: large screenshots like the dashboard gallery */
.sol-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.sol-list a { padding: 0 0 24px; overflow: hidden; }
.sol-list a > :not(.sol-thumb) { margin-left: 24px; margin-right: 24px; }
.sol-list .sol-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 14px; }
.sol-list .sol-head strong { margin: 0; }
.sol-list .sol-cats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 55%; }
.sol-list .sol-cats em { font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: var(--tint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.sol-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; background: #f1f0ec; }

/* pro.html: dashboard gallery links to solution pages */
.pro-gallery figcaption a { color: #fff; }
.pro-gallery figure > a { display: block; border-radius: var(--radius); overflow: hidden; }

/* Home: "Solutions you can sell" gallery, three screenshots in a row */
.sol-list.ag-sell-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.4rem; }
