:root {
  --agent-hint: #d4d4ce; /* ~1.4:1 on --bg: easy for people to miss, readable from a screenshot */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #55565a;
  --ink-3: #8a8b8f;
  --line: #e4e4e0;
  --field: #fbfbfa;
  --accent: #111111;
  --trust: #0f2a4a;
  --trust-2: #173c66;
  --trust-ink: #ffffff;
  --trust-soft: #eaf1f9;
  --ok: #157f4a;
  --ok-soft: #e6f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
[hidden] { display: none !important; }

.config-warning {
  background: var(--warn-soft);
  color: var(--warn);
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
  font-size: 20px;
}
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.topbar-note { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* Hero + card */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 48px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--ink-3); margin: 24px 0 8px; }
.hero-copy h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin: 0 0 16px; font-weight: 900; letter-spacing: -.02em; }
.hero-copy h2 em { font-style: italic; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-shoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 560px; }
.hero-shoes img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #eee; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.card h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.card-sub { color: var(--ink-2); margin: 4px 0 20px; font-size: 15px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.card-foot svg { width: 14px; height: 14px; }
.card-foot strong { color: var(--ink-2); }

.banner { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.banner.is-error { background: var(--err-soft); color: var(--err); }
.banner.is-info { background: var(--trust-soft); color: var(--ink); }
.banner.is-ok { background: var(--ok-soft); color: var(--ok); }

/* Password form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field input {
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.link { color: var(--ink-2); }

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); width: 100%; }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); padding: 6px 12px; font-size: 13px; }
.btn:focus-visible, .agent-btn:focus-visible, summary:focus-visible { outline: 3px solid var(--trust-2); outline-offset: 2px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The agent button: calm, solid, high-contrast — deliberately not flashy. */
.agent-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--trust-ink);
  background: linear-gradient(180deg, var(--trust-2), var(--trust));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(15,42,74,.22);
  transition: transform .12s ease, box-shadow .12s ease;
}
.agent-btn:hover { box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px rgba(15,42,74,.3); }
.agent-btn:active { transform: translateY(1px); }
.agent-btn-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #8ee0b3;
}
.agent-btn-icon svg { width: 26px; height: 26px; }
.agent-btn-text { display: grid; gap: 1px; }
.agent-btn-text strong { font-size: 16px; font-weight: 650; }
.agent-btn-text small { font-size: 12.5px; opacity: .78; }
.agent-btn-chevron { width: 18px; height: 18px; margin-left: auto; opacity: .7; transition: transform .15s ease; }
.agent-btn[aria-expanded="true"] .agent-btn-chevron { transform: rotate(90deg); }

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding: 0;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
.trust-row li { display: flex; align-items: center; gap: 5px; }
.trust-row svg { width: 14px; height: 14px; color: var(--ok); }

/* Explainer panel */
.agent-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--trust-soft);
  border: 1px solid var(--line);
}
.agent-panel h3 { margin: 0 0 12px; font-size: 16px; }
.agent-panel h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.steps li { display: flex; gap: 10px; }
.steps strong { display: block; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--trust);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.scope-list li { display: flex; gap: 8px; align-items: baseline; }
.scope-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.scope-list code { color: var(--ink-3); }
.prompt-box {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 10px 12px;
}
.prompt-box code { flex: 1; font-size: 13px; }
.pending-note { font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }

.signin-col { min-width: 0; }
.agent-hint {
  margin: 14px 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--agent-hint);
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}
.agent-hint .nowrap { white-space: nowrap; }

/* Agent-only content: visually hidden, but NOT display:none / visibility:hidden / aria-hidden —
   it must stay in innerText and the accessibility tree so DOM-reading agents still get it. */
.agent-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
}

/* Agent section layout (applies if .agent-only is ever removed for debugging). */
.agent-signin { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-2); }
.agent-signin h2, .agent-signin h3 { font-size: 13px; margin: 0 0 6px; color: var(--ink); }
.agent-signin p { margin: 0 0 10px; }
.agent-signin code, .agent-signin pre { word-break: break-all; white-space: pre-wrap; }
.agent-facts { margin: 0 0 10px; display: grid; gap: 4px; }
.agent-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.agent-facts dt { color: var(--ink-3); }
.agent-facts dd { margin: 0; color: var(--ink); }
.agent-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; word-break: break-word; }
.agent-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-form label { display: grid; gap: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink-3); }
.agent-form input { font: inherit; font-size: 12.5px; color: var(--ink); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); min-width: 0; }
.agent-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.btn-trust { background: var(--trust); color: var(--trust-ink); }

/* Signed-in state */
.success-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.success-icon { flex: none; width: 48px; height: 48px; color: var(--ok); }
.success-icon svg { width: 100%; height: 100%; }
.success-head .card-sub { margin: 2px 0 0; }
.session-list { margin: 0 0 20px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.session-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 14px; font-size: 14px; }
.session-list div + div { border-top: 1px solid var(--line); }
.session-list dt { color: var(--ink-3); }
.session-list dd { margin: 0; word-break: break-word; }

/* Shop */
.shop { max-width: 1160px; margin: 0 auto; padding: 0 24px 48px; }
.shop h2 { font-size: 24px; margin: 0 0 16px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.product { border-radius: var(--radius); overflow: hidden; background: #eef0e6; color: #111; }
.product:nth-child(1) { background: #e7eef3; }
.product:nth-child(3) { background: #efebf5; }
.product:nth-child(4) { background: #f4ece4; }
.product:nth-child(5) { background: #ecece7; }
.product:nth-child(6) { background: #edece0; }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product div { padding: 10px 12px 12px; }
.product h3 { margin: 2px 0 0; font-size: 15px; }
.product p { margin: 0; font-size: 14px; color: #55565a; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a8b8f; }

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { order: 2; }
  .hero-shoes { display: none; }
  .nav, .topbar-note { display: none; }
}
@media (max-width: 480px) {
  .topbar, .hero, .shop, .footer { padding-left: 16px; padding-right: 16px; }
  .card { padding: 22px 18px; }
  .session-list div { grid-template-columns: 1fr; gap: 2px; }
  .prompt-box { flex-direction: column; align-items: stretch; }
}

/* Walmart Canada storefront */
:root { --bg:#fff; --surface:#fff; --ink:#172c4d; --ink-2:#46566b; --ink-3:#64748b; --line:#dce3eb; --field:#fff; --accent:#0071ce; --trust:#0053a0; --trust-2:#0071ce; --trust-soft:#e6f1fc; --agent-hint:#8c9caf; color-scheme:light; }
.topbar { max-width:none; background:#0071ce; color:white; padding:24px max(24px,calc((100vw - 1360px)/2)); gap:42px; }
.brand { font-style:normal; font-size:29px; letter-spacing:-1px; gap:10px; flex-direction:row-reverse; }
.brand-mark { width:38px; height:38px; }
.nav { gap:24px; }.nav a,.topbar-note { color:white; }.nav a:hover { color:#ffc220; }
.hero { max-width:1360px; grid-template-columns:minmax(0,1fr) 400px; gap:40px; padding-top:42px; }
.eyebrow { color:#0071ce; font-size:12px; margin-top:0; }
.hero-copy h2 { font-size:clamp(40px,4vw,60px); line-height:1.08; font-weight:800; letter-spacing:-2px; }
.hero-copy h2 em { font-style:normal; color:#0071ce; }.lede { font-size:16px; max-width:620px; margin-bottom:24px; }
.card { border-radius:16px; padding:30px; box-shadow:0 2px 14px #17334f0a; }.card h1 { font-size:25px; }.btn-primary { color:white; }.field input { border-color:#8b98a8; border-radius:5px; }.card-sub { font-size:14px; }
.feature-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:16px; }.feature { min-height:300px; border-radius:14px; padding:22px; position:relative; overflow:hidden; text-decoration:none; display:flex; flex-direction:column; align-items:flex-start; }
.feature > span:first-child { font-size:12px; }.feature strong { font-size:26px; line-height:1.15; margin:6px 0 16px; max-width:230px; }.feature-pantry { background:#e4f0fc; }.feature-home { background:#fff3c6; }.feature img { position:absolute; object-fit:contain; mix-blend-mode:multiply; width:145px; height:155px; bottom:8px; right:12px; }.feature-pantry img:last-child { right:120px; width:100px; bottom:-5px; }.feature-home img { width:175px; height:180px; right:2px; }.pill { background:white; border:1px solid #172c4d; border-radius:30px; font-size:12px; padding:6px 12px; z-index:1; }.feature-home .pill { margin-top:auto; }
.shop { max-width:1360px; }.shop h2 { font-size:23px; letter-spacing:-.5px; }.grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px; }.product,.product:nth-child(n) { background:white; border:1px solid #e8edf3; border-radius:12px; }.product img { object-fit:contain; padding:16px; }.product h3 { font-size:14px; font-weight:400; color:#172c4d; line-height:1.4; margin:5px 0; }.product .price { color:#172c4d; font-size:22px; font-weight:750; }.tag { color:#0071ce; letter-spacing:0; text-transform:none; }.pack { font-size:12px; color:#64748b; }.footer { max-width:1360px; font-size:12px; }
@media(max-width:1100px) { .hero { grid-template-columns:minmax(0,1fr) 360px; gap:24px; }.feature strong { font-size:22px; }.feature img { width:110px; }.feature-pantry img:last-child { right:85px; width:75px; }.nav { gap:14px; }.topbar-note { display:none; }.grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:900px) { .hero { grid-template-columns:1fr; }.hero-copy { order:0; }.signin-col { max-width:560px; width:100%; justify-self:center; }.feature-grid { max-width:700px; }.feature { min-height:260px; }.grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:480px) { .topbar { padding:18px 16px; }.hero { padding-top:28px; }.hero-copy h2 { font-size:40px; }.feature { padding:16px; min-height:300px; }.feature strong { font-size:21px; }.feature-pantry img:last-child { display:none; }.feature-home img { width:130px; height:140px; }.grid { grid-template-columns:repeat(2,1fr); gap:12px; } }
