/* Functional examples extend Astra's existing type, spacing and palette. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.journey-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-nav > a:first-child { padding-left: 0; border-left: 0; }
.feature-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.feature-split > *, .live-layout > *, .demo-panel { min-width: 0; }
.customer-stock-section { background: var(--surface); }
.customer-stock-section .section-copy { max-width: 490px; }
.feature-demo { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.demo-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.demo-topline > strong { color: var(--ink); font-size: 14px; font-weight: 550; }
.demo-topline .visual-label { font-size: 12px; }
.demo-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.demo-tabs button { flex: 1; min-height: 46px; padding: 11px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 550; }
.demo-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--brand-soft); border-radius: 5px 5px 0 0; }
.demo-tabs button:hover { color: var(--brand); }
.demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 23px; }
.demo-actions .button { min-height: 44px; }
.demo-reset { min-height: 44px; padding: 9px 6px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.demo-reset:hover { color: var(--brand); }
.demo-caption, .demo-bottom-note { font-size: 12px; line-height: 1.8; color: var(--muted); }
.demo-bottom-note { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.customer-picker { display: flex; gap: 10px; margin-bottom: 18px; }
.customer-picker button { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; color: var(--text); background: white; font-size: 13px; }
.customer-picker button strong { font-weight: 550; }
.customer-picker button span { font-size: 12px; }
.customer-picker button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.inventory-account { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.account-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.account-title > div > span { color: var(--muted); font-size: 12px; }
.account-title h3 { margin-top: 4px; font-size: 18px; }
.account-title h3 small { margin-left: 9px; font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.account-title > .icon { width: 27px; height: 27px; color: var(--brand); }
.account-quantity { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; gap: 18px; }
.account-quantity > div > span { display: block; font-size: 13px; color: var(--muted); }
.account-quantity > div > strong { display: flex; align-items: baseline; gap: 9px; color: var(--brand); line-height: 1.3; }
.account-quantity b { font-size: 52px; font-weight: 550; font-variant-numeric: tabular-nums; }
.account-quantity small { font-size: 16px; font-weight: 400; }
.account-quantity > p { color: var(--muted); font-size: 13px; line-height: 2; margin-bottom: 4px; }
.account-quantity > p b { font-size: inherit; font-weight: 550; }
.stock-meter { margin-top: 20px; height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; }
.stock-meter > span { display: block; height: 100%; background: var(--brand); transition: width 320ms ease; }
.account-equation { font-size: 12px; color: var(--muted); margin-top: 11px; }
.pickup-log { margin-top: 23px; }
.log-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.pickup-log ol { list-style: none; max-height: 146px; overflow-y: auto; }
.pickup-log li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pickup-log li > span { color: var(--muted); }
.pickup-log li > strong { font-weight: 500; color: var(--ink); }
#simulate-pickup:disabled { cursor: default; opacity: .6; transform: none; }
.store-stock-heading { margin: 5px 0 20px; }
.store-stock-heading > span { font-size: 13px; color: var(--muted); }
.store-stock-heading p { font-size: 20px; color: var(--ink); margin-top: 8px; }
.store-stock-heading strong { color: var(--brand); font-size: 38px; font-weight: 550; }
.store-stock-list { margin: 0 0 22px; }
.store-stock-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 18px; margin-top: 9px; border: 1px solid var(--line); border-radius: 7px; }
.store-stock-list dt strong, .store-stock-list dt span { display: block; }
.store-stock-list dt strong { font-size: 15px; font-weight: 550; color: var(--ink); }
.store-stock-list dt span { font-size: 12px; color: var(--muted); }
.store-stock-list dd { margin: 0; font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.store-stock-list dd b { font-weight: 400; }
.store-stock-list dd small { font-size: 12px; margin-left: 6px; color: var(--muted); }
.store-stock-list .owned-stock { background: var(--brand-soft); border-color: #c5d3ff; }
.store-stock-list .owned-stock dd { color: var(--brand); }
.live-rewards-section .horizontal-heading > p { font-size: 15px; max-width: 450px; }
.live-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; align-items: start; }
.live-benefits { padding-top: 4px; }
.live-benefits article { position: relative; padding-left: 40px; margin-bottom: 27px; }
.benefit-number { position: absolute; top: 4px; left: 0; font-size: 12px; color: var(--brand); }
.live-benefits h3 { font-size: 18px; }
.live-benefits p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.live-benefits > a { margin: 4px 0 0 40px; }
.live-steps button { display: flex; align-items: center; justify-content: center; gap: 9px; }
.live-steps button > span { font-size: 11px; }
.live-demo .demo-panel { min-height: 331px; }
.recognized-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.recognized-fields > span { color: var(--muted); margin-right: 4px; }
.recognized-fields strong { background: var(--brand-soft); color: var(--brand); padding: 3px 8px; font-weight: 500; border-radius: 4px; }
.data-filter { margin: 21px 0 14px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.data-filter p { color: var(--muted); font-size: 12px; }
.data-filter label { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.data-filter select { border: 1px solid var(--line); padding: 8px 25px 8px 8px; border-radius: 5px; color: var(--ink); background: white; min-height: 40px; font-size: 12px; }
.audience-table { overflow-x: auto; }
.audience-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.audience-table th { font-weight: 500; white-space: nowrap; }
.audience-table thead { color: var(--muted); background: var(--surface); font-size: 12px; }
.audience-table th, .audience-table td { padding: 12px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.audience-table tbody .row-result { color: var(--brand); }
.audience-table [data-excluded="true"] .row-result { color: var(--muted); }
.filter-result { margin-top: 14px; font-size: 12px; color: var(--muted); }
.panel-instruction { font-size: 14px; color: var(--ink); margin-bottom: 16px; }
.grade-options, .quiz-options { border: 0; padding: 0; margin: 0; }
.grade-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.grade-options label { position: relative; cursor: pointer; }
.grade-options input { position: absolute; left: 10px; top: 11px; accent-color: var(--brand); }
.grade-options label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; padding: 26px 7px 16px; transition: background .2s; }
.grade-options strong { font-size: 13px; font-weight: 500; color: var(--text); }
.grade-options b { font-size: 29px; font-weight: 500; color: var(--ink); margin-top: 5px; }
.grade-options input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.grade-options input:checked + span b { color: var(--brand); }
.grade-options input:focus-visible { outline-offset: 4px; }
.grade-result { margin: 20px 0 12px; padding: 16px 21px; background: var(--surface); border-radius: 7px; }
.grade-result > span { display: block; font-size: 12px; color: var(--muted); }
.grade-result > span > strong { font-weight: 500; color: var(--ink); }
.grade-result > p { color: var(--ink); font-size: 15px; margin: 2px 0; }
.grade-result > p > strong { color: var(--brand); font-size: 34px; margin-left: 10px; font-weight: 500; }
.grade-result b { font-weight: 500; }
.grade-result small { font-size: 18px; margin-right: 2px; }
.verify-switch { display: flex; gap: 7px; margin-bottom: 23px; }
.verify-switch button, .activity-options button { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-height: 44px; background: white; color: var(--muted); font-size: 14px; }
.verify-switch button[aria-pressed="true"], .activity-options button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: #b9c9ff; }
.quiz-options { display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.quiz-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.quiz-options input { accent-color: var(--brand); width: 16px; height: 16px; }
.password-label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
#reward-password { display: block; width: 100%; height: 46px; padding: 10px 12px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink); background: white; font-size: 14px; margin-bottom: 9px; }
.verification-content { min-height: 135px; }
.verification-result { margin-top: 21px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 14px 16px; color: var(--muted); font-size: 13px; min-height: 70px; display: flex; align-items: center; }
.verification-result[data-state="success"] { color: #236647; background: #f0f9f4; border-color: #c2dfcd; }
.verification-result[data-state="error"] { color: #8a491c; background: var(--warm-soft); border-color: var(--warm-line); }
.store-activities-section { background: #faf8f5; }
.capability-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.activity-options { display: flex; gap: 8px; margin-bottom: 26px; }
.activity-scene { color: var(--ink); font-size: 17px; margin-bottom: 27px; }
.visit-steps { list-style: none; }
.visit-steps li { display: flex; gap: 17px; padding-bottom: 24px; position: relative; }
.visit-steps li + li { margin-top: 3px; }
.visit-steps li > span { width: 31px; height: 31px; border: 1px solid var(--warm-line); border-radius: 50%; background: #fffbf5; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; color: var(--warm-ink); position: relative; z-index: 1; }
.visit-steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: -3px; left: 15px; border-left: 1px solid var(--warm-line); }
.visit-steps h3 { font-size: 16px; }
.visit-steps p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.activity-outcome { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; gap: 15px; color: var(--warm-ink); }
.activity-outcome p { font-size: 13px; color: var(--muted); }
.activity-outcome strong { font-weight: 500; color: var(--ink); }
.points-comparison { border-top: 1px solid #e9e3da; margin-top: 52px; padding-top: 29px; display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; align-items: center; gap: 25px; }
.points-comparison h3 { font-size: 17px; }
.points-comparison h4 { margin: 0 0 4px; color: var(--brand); font-size: 14px; font-weight: 550; }
.points-comparison p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.points-comparison article { padding-left: 23px; border-left: 1px solid #e9e3da; }
.points-comparison > a { font-size: 13px; }
@media (max-width: 1190px) {
  .feature-split, .live-layout { gap: 38px; }
  .feature-demo { padding: 23px; }
  .live-rewards-section .horizontal-heading > p { max-width: 350px; font-size: 14px; }
  .customer-picker button { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (max-width: 950px) {
  .feature-split, .live-layout { grid-template-columns: 1fr; gap: 32px; }
  .customer-stock-section .section-copy { max-width: 640px; }
  .feature-demo { width: 100%; max-width: 680px; justify-self: center; }
  .customer-picker button { flex-direction: row; align-items: center; }
  .live-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
  .live-benefits article { padding-left: 0; margin-bottom: 0; }
  .benefit-number { position: static; display: block; margin-bottom: 7px; }
  .live-benefits h3 { font-size: 16px; }
  .live-benefits p { font-size: 13px; }
  .live-benefits > a { grid-column: 1 / -1; margin: 0; }
  .points-comparison { grid-template-columns: 1fr 1fr; gap: 25px; }
  .points-comparison > div { grid-column: 1 / -1; }
  .points-comparison article { border-left: 0; padding-left: 0; }
  .journey-nav > a { gap: 9px; padding-left: 15px; }
  .journey-nav .icon { display: none; }
}
@media (max-width: 600px) {
  .journey-nav { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 15px 0 8px; gap: 12px 10px; }
  .journey-nav > a { padding: 9px 0; border: 0 !important; gap: 8px; align-items: flex-start; }
  .journey-nav a > div { display: block; }
  .journey-nav strong { font-size: 13px; }
  .journey-nav a div > span { font-size: 10px; }
  .feature-split { gap: 30px; }
  .feature-demo { padding: 20px 16px; }
  .demo-topline { gap: 8px; padding-bottom: 20px; flex-wrap: wrap; }
  .demo-topline > strong { font-size: 13px; }
  .demo-topline .visual-label { font-size: 10px; }
  .demo-tabs { margin-bottom: 20px; gap: 3px; }
  .demo-tabs button { padding: 11px 5px; font-size: 13px; }
  .live-steps button { gap: 5px; font-size: 12px; }
  .customer-picker { gap: 8px; }
  .customer-picker button { padding: 10px; gap: 3px; }
  .customer-picker button span { font-size: 11px; }
  .inventory-account { padding: 19px 17px; }
  .account-quantity b { font-size: 48px; }
  .account-title h3 { font-size: 16px; }
  .live-benefits { grid-template-columns: 1fr; gap: 20px; }
  .live-benefits article { padding-left: 33px; }
  .benefit-number { position: absolute; top: 2px; }
  .live-benefits > a { margin-left: 33px; }
  .live-demo .demo-panel { min-height: 350px; }
  .recognized-fields { gap: 5px; font-size: 11px; }
  .recognized-fields > span { width: 100%; margin-bottom: 5px; }
  .recognized-fields strong { padding-inline: 8px; }
  .data-filter { gap: 9px; margin-top: 17px; }
  .audience-table table { font-size: 11px; }
  .audience-table th, .audience-table td { padding: 12px 4px; }
  .audience-table thead { font-size: 11px; }
  .grade-options { gap: 7px; }
  .grade-options strong { font-size: 12px; }
  .grade-options b { font-size: 26px; }
  .grade-options input { left: 6px; top: 7px; }
  .grade-result { padding: 15px; }
  .activity-options { gap: 6px; }
  .activity-options button { padding: 10px 5px; font-size: 13px; }
  .activity-scene { font-size: 16px; }
  .points-comparison { gap: 20px 14px; margin-top: 32px; }
  .points-comparison h3 { font-size: 17px; }
  .points-comparison p { font-size: 11px; }
  .points-comparison article p { max-width: 125px; }
  .points-comparison > a { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .feature-demo { padding-inline: 13px; }
  .customer-picker button { flex-direction: column; align-items: flex-start; }
  .account-title h3 small { display: block; margin-left: 0; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .stock-meter > span { transition: none; }
}
