/* Agentic Commerce Pros: brand styles
   Palette from the brand board. Typeface: Manrope. */
:root {
  --lime: #BDF862;
  --lime-deep: #8FD13A;
  --lime-ink: #2D4A0B;
  --ink: #12181E;
  --ink-2: #181F27;
  --charcoal: #22282F;
  --gray: #666971;
  --gray-2: #9A9DA4;
  --line-dark: rgba(255,255,255,.09);
  --line: #E4E2DA;
  --paper: #F7F6F1;
  --white: #FFFFFF;
  --radius: 18px;
  --max: 1180px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.lime { color: var(--lime); }
.eyebrow { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--gray); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--gray-2); }
.lede { font-size: 1.2rem; color: var(--gray); max-width: 640px; }
.dark .lede { color: #C3C6CC; }

/* ---------- Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 700 .98rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #CBFB7E; box-shadow: 0 10px 30px -10px rgba(189,248,98,.6); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.field { width: 100%; padding: 15px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: 500 1rem var(--font); color: var(--ink); }
.field:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 4px rgba(189,248,98,.35); }
.dark .field { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--white); }
.dark .field::placeholder { color: #8D9199; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,24,30,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-dark); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.wordmark { display: flex; flex-direction: column; font-weight: 700; font-size: .84rem; line-height: .92; letter-spacing: -0.035em; }
.wordmark span:last-child { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: .93rem; font-weight: 600; }
.nav-links a { text-decoration: none; color: #D7D9DD; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--lime); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--ink); }
.hero .lede, .tool-hero .lede, .article-hero .lede { color: #C3C6CC; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 24px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 10px; }
}

/* ---------- Sections */
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.dark { background: var(--ink); color: var(--white); }
.white { background: var(--white); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 76px 0; } }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head h2 { margin: 0; max-width: 720px; }

/* ---------- Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: 120px 0 150px; isolation: isolate; }
.hero::before { /* planet horizon */
  content: ""; position: absolute; z-index: -1; width: 1500px; height: 1500px; border-radius: 50%;
  right: -760px; top: 120px;
  background: radial-gradient(circle at 30% 30%, #2A333D 0%, #161C23 45%, #0E1318 70%);
  box-shadow: -2px -2px 0 1px rgba(189,248,98,.85), -10px -10px 60px 10px rgba(189,248,98,.28), inset 30px 30px 80px rgba(189,248,98,.08);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5), transparent 60%),
  radial-gradient(1px 1px at 38% 12%, rgba(255,255,255,.35), transparent 60%),
  radial-gradient(1px 1px at 72% 18%, rgba(255,255,255,.4), transparent 60%),
  radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,.25), transparent 60%),
  radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,.3), transparent 60%),
  radial-gradient(1.5px 1.5px at 88% 8%, rgba(255,255,255,.45), transparent 60%); }
.hero h1 { max-width: 820px; }
.hero .lede { margin-bottom: 40px; }
.scan-inline { display: flex; gap: 10px; max-width: 620px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.scan-inline .field { border: 0; background: transparent; }
.scan-inline .field:focus { box-shadow: none; }
.hero-note { margin-top: 14px; font-size: .86rem; color: var(--gray-2); }
@media (max-width: 640px) { .scan-inline { flex-direction: column; } .hero::before { right: -1100px; top: 380px; } }

.tagline { font-size: .78rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gray-2); }

/* ---------- Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(18,24,30,.35); border-color: #D2D0C6; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card .num { font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: var(--lime-deep); margin-bottom: 18px; }
.dark .card .num { color: var(--lime); }
.card p { color: var(--gray); margin: 0; }
.dark .card p { color: #AEB2B9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-size: .72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--charcoal); }
.dark .tag { background: rgba(189,248,98,.1); border-color: rgba(189,248,98,.25); color: var(--lime); }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--lime); margin-bottom: 22px; font-weight: 800; }
.dark .icon-badge { background: rgba(189,248,98,.12); }

/* ---------- Pillars list */
.pillar-row { display: grid; grid-template-columns: 56px 1fr 70px; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.pillar-row:last-child { border-bottom: 1px solid var(--line-dark); }
.pillar-row .n { font-weight: 800; color: var(--lime); }
.pillar-row h3 { margin: 0 0 2px; font-size: 1.08rem; }
.pillar-row p { margin: 0; color: #9EA2A9; font-size: .95rem; }
.pillar-row .w { text-align: right; font-weight: 800; font-size: 1.2rem; }
.pillar-row .w small { display: block; font-size: .66rem; letter-spacing: .14em; color: var(--gray-2); font-weight: 600; }

/* ---------- Posts */
.post-card .meta { font-size: .8rem; color: var(--gray); font-weight: 600; margin-bottom: 14px; }
.post-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.post-card .more { margin-top: 22px; font-weight: 700; font-size: .9rem; color: var(--ink); display: inline-flex; gap: 8px; }

/* ---------- Article */
.article-hero { background: var(--ink); color: var(--white); padding: 90px 0 70px; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 900px; }
.article-hero .meta { color: var(--gray-2); font-size: .92rem; font-weight: 600; }
.prose { max-width: 720px; margin: 0 auto; padding: 70px 24px 90px; font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.85rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--ink); text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--lime-deep); font-size: 1.2rem; font-weight: 600; color: var(--charcoal); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--lime-deep); border-radius: 12px; padding: 20px 22px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #ECEAE2; padding: 2px 6px; border-radius: 6px; }

/* ---------- Stack table (research) */
.stack { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .96rem; }
.stack th, .stack td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.stack tr:last-child td { border-bottom: 0; }
.stack th { background: var(--ink); color: var(--white); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.stack td:first-child { font-weight: 800; white-space: nowrap; }
.stack .layer { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--lime); color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- CTA band */
.cta-band { background: var(--lime); color: var(--ink); border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { margin: 0; color: var(--lime-ink); font-weight: 500; }
.cta-band form { display: flex; gap: 10px; }
.cta-band .field { border-color: rgba(18,24,30,.15); }
.form-msg { font-size: .9rem; margin-top: 10px; min-height: 1.2em; font-weight: 600; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } .cta-band form { flex-direction: column; } }

/* ---------- Footer */
.site-footer { background: var(--ink); color: #AEB2B9; padding: 80px 0 40px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-base { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Readiness tool */
.tool-hero { background: var(--ink); color: var(--white); padding: 90px 0 70px; position: relative; overflow: hidden; }
.tool-form { display: flex; gap: 10px; max-width: 680px; margin-top: 30px; }
@media (max-width: 640px) { .tool-form { flex-direction: column; } }
.progress { display: none; margin-top: 30px; max-width: 680px; }
.progress.on { display: block; }
.progress ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.progress li { display: flex; align-items: center; gap: 12px; color: #7E838B; font-weight: 600; font-size: .95rem; transition: color .3s; }
.progress li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3A424C; flex: none; transition: all .3s; }
.progress li.active { color: var(--white); }
.progress li.active::before { border-color: var(--lime); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: #AEB2B9; }
.progress li.done::before { background: var(--lime); border-color: var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.35); color: #FFC9C9; font-weight: 600; max-width: 680px; }
.error-box.on { display: block; }

.report { display: none; }
.report.on { display: block; }
.score-panel { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 44px; margin-top: -50px; position: relative; box-shadow: 0 30px 60px -40px rgba(18,24,30,.4); }
.ring { position: relative; width: 220px; height: 220px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 3.8rem; letter-spacing: -0.05em; line-height: 1; display: block; }
.ring .val span { font-size: .8rem; color: var(--gray); font-weight: 700; letter-spacing: .12em; }
.grade-pill { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: .82rem; letter-spacing: .04em; margin-bottom: 14px; }
.ai-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--gray); margin-left: 8px; }
.score-panel h2 { font-size: 1.9rem; margin-bottom: 14px; }
.score-panel .summary { color: var(--charcoal); font-size: 1.06rem; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 860px) { .score-panel { grid-template-columns: 1fr; padding: 30px; justify-items: center; text-align: center; } .report-actions { justify-content: center; } }

.bars { display: grid; gap: 14px; }
.pillar-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pillar-card summary { list-style: none; cursor: pointer; padding: 22px 24px; display: grid; grid-template-columns: 1fr 64px 20px; gap: 16px; align-items: center; }
.pillar-card summary::-webkit-details-marker { display: none; }
.pillar-card summary h3 { margin: 0 0 10px; font-size: 1.08rem; }
.bar { height: 8px; background: #ECEAE2; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--lime-deep); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar i.mid { background: #F2C94C; } .bar i.low { background: #F08A6C; }
.pillar-card .pct { font-weight: 800; font-size: 1.25rem; text-align: right; }
.pillar-card .chev { transition: transform .2s; color: var(--gray); }
.pillar-card[open] .chev { transform: rotate(180deg); }
.checks { border-top: 1px solid var(--line); padding: 6px 24px 18px; }
.check { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.check:last-child { border-bottom: 0; }
.check .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900; margin-top: 2px; }
.st.pass { background: var(--lime); color: var(--ink); } .st.partial { background: #F7E3A1; color: #6B5300; } .st.fail { background: #FAD3C8; color: #8A2A12; }
.check b { display: block; font-size: .98rem; }
.check small { color: var(--gray); display: block; font-size: .88rem; margin-top: 2px; word-break: break-word; }
.check .fix { margin-top: 8px; font-size: .9rem; color: var(--charcoal); background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.check .pts { font-size: .82rem; font-weight: 700; color: var(--gray); white-space: nowrap; }

.recs { counter-reset: rec; display: grid; gap: 14px; }
.rec { background: var(--ink-2); color: var(--white); border: 1px solid var(--line-dark); border-radius: 16px; padding: 24px 26px 24px 78px; position: relative; }
.rec::before { counter-increment: rec; content: counter(rec, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-weight: 800; color: var(--lime); font-size: 1.1rem; }
.rec h3 { font-size: 1.12rem; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rec p { margin: 0 0 8px; color: #B9BDC3; font-size: .96rem; }
.rec p.how { color: #E4E6E9; margin: 0; }
.impact { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(189,248,98,.14); color: var(--lime); }
.impact.Medium { background: rgba(242,201,76,.14); color: #F2C94C; } .impact.Low { background: rgba(255,255,255,.08); color: #B9BDC3; }

.method-table td:last-child { white-space: nowrap; font-weight: 700; }

@media print {
  .site-header, .site-footer, .tool-hero form, .report-actions, .cta-band, .no-print { display: none !important; }
  body { background: #fff; }
  .pillar-card .checks { display: block !important; }
  .rec { background: #fff; color: #000; border-color: #ccc; } .rec p { color: #333; }
}

/* ---------- utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; } .mt-6 { margin-top: 60px; }
.muted { color: var(--gray); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
