/* ==============================================================
   ASK AI pages — /ai/ and /ai/security/
   Built on the global tokens (navy outlines, mint blobs, sticker
   shadows) so these pages match the homepage.
   ============================================================== */

.ai-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.ai-sec { padding: 100px 0; }
.ai-sec-alt { background: var(--paper); border-top: 2px solid var(--color-border-subtle); border-bottom: 2px solid var(--color-border-subtle); }
.ai-sec-mint { background: var(--mint-soft); }
.ai-sec h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; max-width: 820px; }
.ai-sec h2 + .ai-lede { margin-top: 20px; }
.ai-lede { font-size: 19px; line-height: 1.6; color: var(--color-text-secondary); max-width: 720px; }
.ai-lede + .ai-lede { margin-top: 16px; }
.ai-eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; }
.ai-more { font-weight: 700; color: var(--color-primary); text-decoration: none; }
.ai-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ai-head { margin-bottom: 52px; }

/* ---------- Hero ---------- */
.ai-hero { position: relative; overflow: hidden; background: var(--mint-soft); padding: calc(var(--header-height) + 56px) 0 80px; border-bottom: 2px solid var(--navy); }
.ai-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; align-items: center; }
.ai-hero-solo { grid-template-columns: minmax(0, 860px); }
.ai-hero h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
.ai-hero h1 em { font-style: normal; color: var(--color-accent); }
.ai-hero .ai-lede { margin: 24px 0 30px; }
.ai-ctas { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.ai-fine { margin-top: 18px; font-size: 15px; color: var(--color-text-muted); max-width: 620px; }
.ai-frame { background: #fff; border: 3px solid var(--navy); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-offset); }
.ai-frame video { display: block; width: 100%; height: auto; }

/* Example questions card */
.ai-asks { background: #fff; border: 2px solid var(--navy); border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow-offset); }
.ai-asks-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.ai-asks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ai-asks li { background: var(--mint-soft); border: 2px solid var(--navy); border-radius: 14px 14px 14px 4px; padding: 14px 16px; }
.ai-asks q { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.35; quotes: "\201C" "\201D"; }
.ai-asks li span { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.ai-asks-foot { margin-top: 18px; font-size: 15px; color: var(--color-text-secondary); }

/* ---------- "In short" answer box ---------- */
.ai-short { background: #fff; border: 2px solid var(--navy); border-radius: 22px; padding: 36px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.ai-short h2 { font-size: 30px; }
.ai-short dl { margin: 0; display: grid; gap: 0; }
.ai-short dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 2px solid var(--color-border-subtle); }
.ai-short dl > div:first-child { border-top: 0; padding-top: 0; }
.ai-short dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ai-short dd { margin: 0; font-size: 16px; color: var(--color-text-secondary); line-height: 1.55; }

/* ---------- Numbered steps ---------- */
.ai-steps { list-style: none; margin: 0; padding: 0; counter-reset: aistep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-steps-4 { grid-template-columns: repeat(4, 1fr); }
.ai-steps li { counter-increment: aistep; background: #fff; border: 2px solid var(--navy); border-radius: 20px; padding: 26px 26px 28px; }
.ai-steps li::before { content: counter(aistep); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.ai-steps h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.ai-steps p { font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.55; }
.ai-steps .ai-role { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 6px; }
.ai-note { margin-top: 28px; font-size: 16.5px; font-weight: 600; }

/* ---------- Cards ---------- */
.ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-cards-2 { grid-template-columns: repeat(2, 1fr); }
.ai-cards-4 { grid-template-columns: repeat(4, 1fr); }
.ai-card { background: #fff; border: 2px solid var(--navy); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.ai-card h3 { font-size: 23px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.ai-card p { font-size: 16px; color: var(--color-text-secondary); line-height: 1.6; }
.ai-card p + p { margin-top: 12px; }
.ai-card .ai-more { margin-top: auto; padding-top: 18px; }
.ai-card-n { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.ai-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ai-list li { position: relative; padding: 9px 0 9px 28px; font-size: 15.5px; line-height: 1.5; color: var(--color-text-secondary); border-top: 1px solid var(--color-border-subtle); }
.ai-list li:first-child { border-top: 0; }
.ai-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--color-primary); border-bottom: 2.5px solid var(--color-primary); transform: rotate(-45deg); }
.ai-list strong { color: var(--color-text); }
.ai-list-x li::before { width: 12px; height: 0; border-left: 0; border-bottom: 2.5px solid var(--color-text-muted); transform: none; top: 20px; }

/* ---------- Tables ---------- */
.ai-table-wrap { overflow-x: auto; border: 2px solid var(--navy); border-radius: 18px; background: #fff; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 760px; }
.ai-table th, .ai-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 2px solid var(--color-border-subtle); line-height: 1.5; }
.ai-table thead th { border-top: 0; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.ai-table tbody th { font-weight: 700; color: var(--navy); width: 24%; }
.ai-table td { color: var(--color-text-secondary); }
.ai-table .is-us { background: var(--mint-soft); color: var(--color-text); font-weight: 600; }
.ai-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--navy); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ai-tag-never { background: #d6f3df; }
.ai-tag-always { background: #ffe1dc; }
.ai-tag-default { background: #fff2c9; }
.ai-tag-optin { background: #e3ecf5; }
.ai-caption { margin-top: 14px; font-size: 14.5px; color: var(--color-text-muted); max-width: 900px; }

/* ---------- Quote / statement ---------- */
.ai-statement { background: var(--navy); color: #fff; border-radius: 22px; padding: 36px 40px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.4; }
.ai-statement small { display: block; margin-top: 16px; font-family: var(--font-sans); font-size: 15.5px; font-weight: 400; color: #c9d6e2; line-height: 1.55; }

/* ---------- Split ---------- */
.ai-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ai-split h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.ai-keybox { background: #fff; border: 2px solid var(--navy); border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow-offset); }
.ai-keybox h3 { font-size: 23px; margin-bottom: 10px; }
.ai-keybox ol { margin: 14px 0 0; padding-left: 22px; }
.ai-keybox li { font-size: 16px; color: var(--color-text-secondary); padding: 5px 0; line-height: 1.5; }
.ai-keybox p { font-size: 15.5px; color: var(--color-text-secondary); }

/* ---------- Roadmap ---------- */
.ai-soon { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff2c9; border: 2px solid var(--navy); font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .ai-hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .ai-steps, .ai-steps-4, .ai-cards, .ai-cards-4 { grid-template-columns: 1fr 1fr; }
    .ai-short { grid-template-columns: 1fr; gap: 20px; }
    .ai-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .ai-wrap, .ai-hero-inner { padding: 0 16px; }
    .ai-sec { padding: 64px 0; }
    .ai-hero { padding-bottom: 56px; }
    .ai-ctas .btn { width: 100%; }
    .ai-steps, .ai-steps-4, .ai-cards, .ai-cards-2, .ai-cards-4 { grid-template-columns: 1fr; }
    .ai-short { padding: 24px 20px; }
    .ai-short dl > div { grid-template-columns: 1fr; gap: 4px; }
    .ai-asks, .ai-keybox, .ai-card { padding: 22px 20px; }
    .ai-statement { padding: 26px 22px; }
}

/* ==============================================================
   v2 — visual components (diagram, tiles, switches, mascots)
   ============================================================== */

/* Hero extras */
.ai-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.ai-chips li { background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 700; }
.ai-hero-art { position: relative; }
.ai-hero-peek { position: absolute; width: 190px; height: auto; right: 34px; top: -134px; z-index: 0; }
.ai-hero-art .ai-asks, .ai-hero-art .ai-frame { position: relative; z-index: 1; }
.ai-hero-mascot { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.ai-hero-split { grid-template-columns: minmax(0, 1fr) 440px; }

/* Section head with a mascot on the right */
.ai-head-art { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; margin-bottom: 44px; }
.ai-head-art img { display: block; width: 220px; height: auto; margin-bottom: -6px; }
.ai-head-art .ai-head { margin-bottom: 0; }

/* Flow diagram */
.ai-flow { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: stretch; }
.ai-flow-zone { border: 2px solid var(--navy); border-radius: 22px; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.ai-flow-zone-ai { background: #fff; border-style: dashed; }
.ai-flow-zone-fox { background: var(--mint-soft); box-shadow: var(--shadow-offset); }
.ai-flow-label { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 14px; }
.ai-flow-zone-fox .ai-flow-label { color: var(--color-primary); }
.ai-flow-nodes { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; gap: 8px; flex: 1; }
.ai-flow-node { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-flow-node strong { font-family: var(--font-display); font-size: 17.5px; line-height: 1.2; }
.ai-flow-node-result { background: var(--navy); color: #fff; }
.ai-flow-node-result .ai-flow-n { background: #fff; color: var(--navy); }
.ai-flow-node-result .ai-flow-chips i { border-color: #fff; color: #fff; background: transparent; }
.ai-flow-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ai-flow-bubble { background: var(--mint-soft); border: 2px solid var(--navy); border-radius: 12px 12px 12px 3px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ai-flow-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-flow-chips i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; }
.ai-flow-arrow { align-self: center; height: 2px; background: var(--navy); position: relative; }
.ai-flow-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: rotate(45deg); }
.ai-flow-foot { margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--color-text-secondary); }
.ai-flow-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; padding: 0 6px; }
.ai-flow-gate::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px dashed var(--fox); z-index: 0; }
.ai-flow-gate img { position: relative; z-index: 1; width: 118px; height: auto; background: #fff; border-radius: 50%; }
.ai-flow-gate span { position: relative; z-index: 1; background: var(--color-accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.2; text-align: center; padding: 6px 10px; border-radius: 10px; }
.ai-flow-after { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0 0; padding: 0; }
.ai-flow-after li { font-size: 16px; color: var(--color-text-secondary); line-height: 1.5; padding-left: 16px; border-left: 3px solid var(--mint); }
.ai-flow-after strong { display: block; color: var(--color-text); font-family: var(--font-display); font-size: 17.5px; margin-bottom: 2px; }

/* Output tiles with drawn stand-ins */
.ai-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-tile { background: #fff; border: 2px solid var(--navy); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.ai-tile-art { background: var(--mint-soft); border-bottom: 2px solid var(--navy); padding: 20px 22px; height: 168px; display: flex; align-items: center; justify-content: center; }
.ai-tile-art svg { width: 100%; height: 100%; }
.ai-tile-body { padding: 22px 24px 24px; }
.ai-tile h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.ai-tile q { display: block; background: var(--mint-soft); border: 2px solid var(--navy); border-radius: 12px 12px 12px 3px; padding: 9px 12px; font-size: 14.5px; font-weight: 600; line-height: 1.35; quotes: "\201C" "\201D"; margin-bottom: 12px; }
.ai-tile p { font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.55; }

/* Expanders */
.ai-details { margin-top: 24px; border: 2px solid var(--navy); border-radius: 18px; background: #fff; }
.ai-details > summary { cursor: pointer; list-style: none; padding: 16px 22px; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-details > summary::-webkit-details-marker { display: none; }
.ai-details > summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--navy); border-radius: 50%; font-size: 18px; line-height: 1; }
.ai-details[open] > summary::after { content: "\2212"; }
.ai-details[open] > summary { border-bottom: 2px solid var(--color-border-subtle); }
.ai-details-body { padding: 22px; }
.ai-details-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ai-details-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ai-details-cols h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ai-details .ai-table-wrap { border: 0; border-radius: 0; }

/* Stepper */
.ai-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: aist; position: relative; }
.ai-stepper::before { content: ""; position: absolute; left: 19px; right: 25%; top: 19px; border-top: 3px dashed var(--navy); }
.ai-stepper li { counter-increment: aist; position: relative; padding-right: 24px; }
.ai-stepper li::before { content: counter(aist); position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 14px; box-shadow: 0 0 0 6px #fff; }
.ai-sec-alt .ai-stepper li::before { box-shadow: 0 0 0 6px var(--paper); }
.ai-stepper h3 { font-size: 20px; font-weight: 700; margin: 4px 0 6px; }
.ai-stepper p { font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-stepper .ai-role { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary); }

/* Pay / don't pay */
.ai-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 230px; gap: 24px; align-items: stretch; }
.ai-pay-col { border: 2px solid var(--navy); border-radius: 22px; padding: 26px 28px; background: #fff; }
.ai-pay-col h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.ai-pay-no { background: var(--paper); }
.ai-pay-no .ai-list li { text-decoration: line-through; text-decoration-color: var(--fox); text-decoration-thickness: 2px; color: var(--color-text-muted); }
.ai-pay-art { display: flex; align-items: flex-end; justify-content: center; }
.ai-pay-art img { width: 210px; height: auto; }
.ai-keyline { margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--mint-soft); border: 2px solid var(--navy); border-radius: 18px; padding: 18px 24px; }
.ai-keyline strong { font-family: var(--font-display); font-size: 18px; }
.ai-keyline span { font-size: 15.5px; color: var(--color-text-secondary); }

/* Icon tiles */
.ai-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-icon { background: #fff; border: 2px solid var(--navy); border-radius: 20px; padding: 24px 22px; }
.ai-icon-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--mint); border: 2px solid var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.ai-icon-badge svg { width: 22px; height: 22px; }
.ai-icon h3 { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ai-icon p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }

/* Mascot cards */
.ai-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-who-card { background: #fff; border: 2px solid var(--navy); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.ai-who-art { background: var(--mint-soft); height: 170px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 2px solid var(--navy); }
.ai-who-art img { height: 156px; width: auto; max-width: 92%; object-fit: contain; }
.ai-who-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ai-who-card h3 { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ai-who-card p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 14px; }
.ai-who-card .ai-more { margin-top: auto; font-size: 15px; }

/* Timeline */
.ai-timeline { display: grid; grid-template-columns: 1fr 3fr; gap: 0; border: 2px solid var(--navy); border-radius: 22px; overflow: hidden; background: #fff; }
.ai-timeline-col { padding: 26px 28px; }
.ai-timeline-now { background: var(--navy); color: #fff; }
.ai-timeline-now p { color: #c9d6e2; font-size: 15.5px; line-height: 1.5; }
.ai-timeline h3 { font-size: 15px; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.ai-timeline-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-timeline-next h3 { grid-column: 1 / -1; margin-bottom: 0; color: var(--color-accent); }
.ai-timeline-next h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.ai-timeline-next p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-notyet { margin-top: 18px; font-size: 15.5px; color: var(--color-text-secondary); }

/* Boundary graphic (security page) */
.ai-bound { border: 2px solid var(--navy); border-radius: 24px; background: #fff; overflow: hidden; }
.ai-bound-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 24px; border-bottom: 2px solid var(--navy); background: var(--paper); }
.ai-bound-bar > span { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ai-seg { display: inline-flex; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: #fff; }
.ai-seg button, .ai-seg span { font: 700 14.5px var(--font-sans); color: var(--navy); background: #fff; border: 0; padding: 9px 16px; cursor: pointer; }
.ai-seg span { cursor: default; }
.ai-seg > * + * { border-left: 2px solid var(--navy); }
.ai-seg .is-on { background: var(--navy); color: #fff; }
.ai-bound-note { font-size: 14.5px; color: var(--color-text-muted); margin-left: auto; }
.ai-bound-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
.ai-bound-col { padding: 24px 26px 28px; }
.ai-bound-stay { background: var(--mint-soft); }
.ai-bound-col h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ai-bound-col > p { font-size: 14.5px; color: var(--color-text-muted); margin-bottom: 16px; }
.ai-bound-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ai-bound-items li { background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ai-bound-items li small { display: block; font-weight: 400; font-size: 13.5px; color: var(--color-text-muted); margin-top: 2px; }
.ai-bound-go .ai-bound-items li { border-style: dashed; }
.ai-bound-items li.is-fixed { border-color: var(--color-success); }
.ai-bound-go .ai-bound-items li.is-fixed { border-color: var(--color-accent); border-style: solid; }
.ai-bound[data-mode="default"] [data-show]:not([data-show~="default"]),
.ai-bound[data-mode="hints"] [data-show]:not([data-show~="hints"]),
.ai-bound[data-mode="strict"] [data-show]:not([data-show~="strict"]) { display: none; }
.ai-bound .ai-flow-gate { border-left: 2px solid var(--color-border-subtle); border-right: 2px solid var(--color-border-subtle); }

/* Switch graphics */
.ai-switches { display: grid; grid-template-columns: repeat(3, 1fr) 200px; gap: 20px; align-items: stretch; }
.ai-switch { background: #fff; border: 2px solid var(--navy); border-radius: 20px; padding: 24px 22px; }
.ai-switch h3 { font-size: 13.5px; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 12px; }
.ai-switch .ai-seg { margin-bottom: 14px; }
.ai-switch p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-switch p strong { color: var(--color-text); }
.ai-toggle { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.ai-toggle i { width: 52px; height: 28px; border-radius: 999px; background: var(--navy); border: 2px solid var(--navy); position: relative; }
.ai-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.ai-switches-art { display: flex; align-items: flex-end; justify-content: center; }
.ai-switches-art img { width: 170px; height: auto; }

/* Network diagram */
.ai-net { border: 3px dashed var(--navy); border-radius: 24px; padding: 40px 24px 24px; position: relative; background: var(--mint-soft); }
.ai-net-label { position: absolute; top: -15px; left: 24px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; }
.ai-net-nodes { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: center; gap: 8px; }
.ai-net-node { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 16px 14px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.ai-net-node small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.ai-net-link { height: 2px; background: var(--navy); }
.ai-net-out { margin-top: 16px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--color-text-secondary); }
.ai-net-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: end; }
.ai-net-wrap img { width: 240px; height: auto; }

/* Audit receipt */
.ai-receipt { background: #fff; border: 2px solid var(--navy); border-radius: 18px; box-shadow: var(--shadow-offset); overflow: hidden; }
.ai-receipt-head { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 12px 20px; }
.ai-receipt dl { margin: 0; padding: 6px 20px 12px; }
.ai-receipt dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-top: 1px dashed var(--color-border); font-size: 15px; }
.ai-receipt dl > div:first-child { border-top: 0; }
.ai-receipt dt { font-weight: 700; }
.ai-receipt dd { margin: 0; color: var(--color-text-secondary); }

@media (max-width: 1080px) {
    .ai-flow { grid-template-columns: 1fr; gap: 0; }
    .ai-flow-gate { flex-direction: row; padding: 14px 0; }
    .ai-flow-gate::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 3px dashed var(--fox); }
    .ai-flow-gate img { width: 84px; }
    .ai-flow-after, .ai-tiles, .ai-details-cols { grid-template-columns: 1fr; }
    .ai-head-art { grid-template-columns: 1fr; }
    .ai-head-art img, .ai-hero-peek, .ai-pay-art, .ai-switches-art { display: none; }
    .ai-hero-split { grid-template-columns: 1fr; }
    .ai-hero-mascot { max-width: 300px; }
    .ai-stepper { grid-template-columns: 1fr 1fr; gap: 28px 0; }
    .ai-stepper::before { display: none; }
    .ai-pay { grid-template-columns: 1fr 1fr; }
    .ai-icons, .ai-who { grid-template-columns: 1fr 1fr; }
    .ai-timeline { grid-template-columns: 1fr; }
    .ai-bound-grid { grid-template-columns: 1fr; }
    .ai-bound .ai-flow-gate { border: 0; border-top: 2px solid var(--color-border-subtle); border-bottom: 2px solid var(--color-border-subtle); }
    .ai-switches { grid-template-columns: 1fr; }
    .ai-net-wrap { grid-template-columns: 1fr; }
    .ai-net-wrap img { display: none; }
}
@media (max-width: 640px) {
    .ai-flow-nodes { grid-template-columns: 1fr; }
    .ai-flow-arrow { width: 2px; height: 20px; justify-self: center; }
    .ai-flow-arrow::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
    .ai-stepper, .ai-pay, .ai-icons, .ai-who, .ai-timeline-next, .ai-details-cols-2 { grid-template-columns: 1fr; }
    .ai-keyline { grid-template-columns: 1fr; }
    .ai-net-nodes { grid-template-columns: 1fr; }
    .ai-net-link { width: 2px; height: 16px; justify-self: center; }
    .ai-receipt dl > div { grid-template-columns: 1fr; gap: 2px; }
    .ai-bound-note { margin-left: 0; }
}

.ai-table tbody th a { color: inherit; text-decoration-color: var(--color-primary); text-underline-offset: 3px; }
.ai-table tbody th a:hover { color: var(--color-primary); }

/* ---------- Cost (/ai/cost/ and the cost partial) ---------- */
.ai-cost-sub { display: block; font-family: var(--font-body, inherit); font-weight: 500; font-size: 13px; opacity: .8; margin-top: 2px; }
.ai-cost-table .ai-table { min-width: 640px; }
.ai-cost-table .ai-table td { font-size: 17px; font-weight: 600; color: var(--color-text); }
.ai-coststrip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 2px solid var(--navy); border-radius: 18px; box-shadow: var(--shadow-offset); padding: 18px 24px; margin-top: 24px; }
.ai-coststrip-num { width: 54px; height: 54px; border-radius: 50%; background: var(--mint); border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; }
.ai-coststrip-body strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 2px; }
.ai-coststrip-body span { font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-bignum { background: #fff; border: 2px solid var(--navy); border-radius: 20px; padding: 24px 22px; }
.ai-bignum h3 { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ai-bignum p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.ai-rowbar { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 16px 20px; }
.ai-rowbar-label { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.ai-rowbar-label span { color: var(--color-text-secondary); font-weight: 600; font-size: 14px; }
.ai-rowbar-track { height: 16px; border: 2px solid var(--navy); border-radius: 999px; background: var(--mint-soft); overflow: hidden; }
.ai-rowbar-fill { height: 100%; background: var(--fox); border-right: 2px solid var(--navy); }
.ai-savers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: saver; }
.ai-saver { background: #fff; border: 2px solid var(--navy); border-radius: 20px; padding: 24px 22px; counter-increment: saver; }
.ai-saver::before { content: counter(saver); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); border: 2px solid var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.ai-saver h3 { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ai-saver > p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-saver .ai-list { margin-top: 12px; font-size: 14.5px; }
.ai-provchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.ai-provchips li { background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; }
.ai-provchips li.is-core { background: var(--mint); }
.ai-est { background: #fff; border: 2px solid var(--navy); border-radius: 22px; box-shadow: var(--shadow-offset); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.ai-est label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
.ai-est label:first-child { margin-top: 0; }
.ai-est input[type=range] { width: 100%; accent-color: var(--fox); }
.ai-est select { width: 100%; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 10px; font: inherit; background: #fff; }
.ai-est output { font-weight: 700; color: var(--color-primary); }
.ai-est-out { background: var(--mint-soft); border: 2px solid var(--navy); border-radius: 18px; padding: 22px; text-align: center; }
.ai-est-out b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.ai-est-out small { display: block; margin-top: 8px; font-size: 13.5px; color: var(--color-text-secondary); line-height: 1.45; }
@media (max-width: 1080px) {
    .ai-bignums, .ai-savers { grid-template-columns: 1fr 1fr; }
    .ai-est { grid-template-columns: 1fr; }
    .ai-coststrip { grid-template-columns: auto minmax(0, 1fr); }
    .ai-coststrip .ai-more { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ai-bignums, .ai-savers, .ai-rows { grid-template-columns: 1fr; }
}

/* Model test card and plain saver tiles (/ai/cost/#choose) */
.ai-testcard { background: #fff; border: 2px solid var(--navy); border-radius: 22px; box-shadow: var(--shadow-offset); padding: 24px 26px; }
.ai-testcard-q { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.ai-testcard-q span { display: block; font-family: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: 4px; }
.ai-testcard ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-testcard li { border: 2px solid var(--navy); border-radius: 14px; padding: 14px 16px; }
.ai-testcard li b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.ai-testcard li span { font-size: 14.5px; color: var(--color-text-secondary); }
.ai-testcard li.is-good { background: var(--mint-soft); }
.ai-testcard li.is-ok { background: #fff7e0; }
.ai-testcard li.is-bad { background: #fdecea; }
.ai-savers-plain { counter-reset: none; }
.ai-savers-plain .ai-saver::before { content: none; }
.ai-saver-note { margin-top: 10px; font-size: 13.5px !important; color: var(--color-text-secondary); border-top: 1px dashed #c9d3dc; padding-top: 10px; }
@media (max-width: 800px) { .ai-testcard ul { grid-template-columns: 1fr; } }
