/* ===== Ask Allstate — Case Study Styles ===== */

.header {
  background-color: var(--bg-color-cs);
}

/* ── Confidentiality notice banner ── */
.ask-notice-banner {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color));
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  padding: 8px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 24px;
}
html.dark .ask-notice-banner {
  background: color-mix(in srgb, var(--primary-color) 18%, rgba(50,50,70,1));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
  color: rgba(255,255,255,0.75);
}

/* ── Page wrapper ── */
.ask-page {
  padding-top: 120px;
  background-color: var(--background-color_lighter);
}

/* ── Wrappers ── */
.ask-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.ask-wrap--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

/* ── Section base ── */
.ask-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.ask-section--featured {
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-top-color: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.ask-section--compact {
  padding: 48px 0;
}


/* ── Eyebrow / label ── */
.ask-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px; /* 12 px above the heading, as on the other studies (D-086) */
}

/* ── Section headings ── */
.ask-section h2 {
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  font-weight: 600;
  color: var(--text-headline);
  margin: 0 0 8px;
  line-height: 1.2;
}

.ask-section-intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

/* ── Prose ── */
.ask-prose p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 18px;
}

.ask-prose p:last-child {
  margin-bottom: 0;
}

/* ── Hero ── */
.ask-hero {
  padding: 64px 0 72px;
  margin-top: 24px;
}

.ask-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  box-sizing: border-box;
}

.ask-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ask-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.ask-eyebrow-row .ask-eyebrow {
  margin-bottom: 0;
}

.ask-hero h1 {
  font-size: clamp(1.65rem, 2.5vw + 0.9rem, 2.4rem);
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.ask-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 28px;
}

.ask-hero-thesis {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color));
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
}

/* ── Metadata grid ── */
.ask-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.ask-meta-item {
  padding: 12px 14px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

.ask-meta-item--span {
  grid-column: span 2;
}

.ask-meta-key {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hover);
  margin-bottom: 3px;
}

.ask-meta-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.ask-confidentiality {
  font-size: 12px;
  color: var(--text-hover);
  font-style: italic;
  margin: 0;
}

.ask-stats-note {
  display: block;
  font-size: 12px;
  color: var(--text-hover);
  font-style: italic;
  text-align: center;
  width: fit-content;
  max-width: min(940px, calc(100% - 48px)); /* no wider than the four metric cards above it */
  margin: 12px auto 0;
}

/* ── Diagram containers ── */
.ask-diagram-outer {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
}

/* ── Service model (03) ── */
.ask-sm-wrap {
  background: #f8f8fb;
  padding: 18px 20px 16px;
}
.ask-sm-eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6b6b8a;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ask-sm-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ask-sm-card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8f0;
  box-shadow: 0 2px 7px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ask-sm-acbar {
  height: 5px;
  background: #6464c8;
  flex-shrink: 0;
}
.ask-sm-acbar--out { background: #22c55e; }
.ask-sm-inner {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ask-sm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f0fa;
  font-size: 10px;
  font-weight: 700;
  color: #6464c8;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.ask-sm-badge--out { background: #f0faf5; color: #22c55e; }
.ask-sm-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 5px;
  line-height: 1.3;
}
.ask-sm-desc {
  font-size: 11px;
  color: #6b6b8a;
  line-height: 1.5;
  margin: 0;
}
.ask-sm-eg {
  font-size: 10.5px;
  color: #6b6b8a;
  font-style: italic;
  margin: 8px 0 0;
  line-height: 1.4;
}
.ask-sm-arrow {
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8c8e0;
  font-size: 16px;
  padding-bottom: 20px;
}
.ask-sm-tw {
  text-align: center;
  font-size: 11px;
  color: #6b6b8a;
  margin: 14px 0 10px;
}
.ask-sm-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ask-sm-pill {
  font-size: 11px;
  color: #5858a8;
  background: #eeeefc;
  border: 1px solid #dcdcf4;
  border-radius: 13px;
  padding: 5px 14px;
  white-space: nowrap;
}
html.dark .ask-sm-wrap    { background: #1c1c2c; }
html.dark .ask-sm-card    { background: #252538; border-color: rgba(255,255,255,0.07); box-shadow: none; }
html.dark .ask-sm-badge   { background: #2a2a48; }
html.dark .ask-sm-badge--out { background: #1e3028; }
html.dark .ask-sm-name    { color: rgba(255,255,255,0.88); }
html.dark .ask-sm-desc    { color: rgba(255,255,255,0.6); }
html.dark .ask-sm-eg      { color: rgba(255,255,255,0.6); }
html.dark .ask-sm-arrow   { color: rgba(255,255,255,0.18); }
html.dark .ask-sm-tw      { color: rgba(255,255,255,0.6); }
html.dark .ask-sm-eyebrow { color: rgba(255,255,255,0.6); }
html.dark .ask-sm-pill    { background: #252548; border-color: rgba(100,100,200,0.28); color: var(--accent-text); }

/* ── Conversation design framework (04) ── */
.ask-cdf-wrap {
  background: #f8f8fb;
  padding: 18px 16px 20px;
}
.ask-cdf-header {
  text-align: center;
  margin-bottom: 14px;
}
.ask-cdf-hl {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 5px;
}
.ask-cdf-sub {
  font-size: 11px;
  color: #6b6b8a;
  margin: 0;
  line-height: 1.5;
}
.ask-cdf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ask-cdf-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8f0;
  box-shadow: 0 2px 7px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ask-cdf-acbar {
  height: 5px;
  background: #6464c8;
  flex-shrink: 0;
}
.ask-cdf-inner {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ask-cdf-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6464c8;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ask-cdf-div1 {
  height: 1px;
  background: #e8e8f0;
  margin: 0 0 10px;
}
.ask-cdf-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ask-cdf-desc {
  font-size: 9.5px;
  color: #6b6b8a;
  line-height: 1.5;
  margin: 0 0 10px;
}
.ask-cdf-div2 {
  height: 1px;
  background: #f0f0f4;
  margin: 0 0 10px;
}
.ask-cdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ask-cdf-list li {
  font-size: 11px;
  color: #4a4a6a;
  padding: 0 0 8px 10px;
  margin: 0;
  position: relative;
  line-height: 1.4;
}
.ask-cdf-list li:last-child { padding-bottom: 0; }
.ask-cdf-list li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c0c0d8;
}
html.dark .ask-cdf-wrap          { background: #1c1c2c; }
html.dark .ask-cdf-hl            { color: rgba(255,255,255,0.88); }
html.dark .ask-cdf-sub           { color: rgba(255,255,255,0.6); }
html.dark .ask-cdf-card          { background: #252538; border-color: rgba(255,255,255,0.07); box-shadow: none; }
html.dark .ask-cdf-cat           { color: var(--accent-text); }
html.dark .ask-cdf-div1          { background: rgba(255,255,255,0.1); }
html.dark .ask-cdf-name          { color: rgba(255,255,255,0.88); }
html.dark .ask-cdf-desc          { color: rgba(255,255,255,0.6); }
html.dark .ask-cdf-div2          { background: rgba(255,255,255,0.05); }
html.dark .ask-cdf-list li       { color: rgba(255,255,255,0.52); }
html.dark .ask-cdf-list li::before { background: rgba(255,255,255,0.22); }

/* ── Intent prioritization matrix (05) ── */
.ask-ipm-wrap {
  background: #f8f8fb;
  padding: 18px 16px 16px;
}
.ask-ipm-header {
  text-align: center;
  margin-bottom: 14px;
}
.ask-ipm-hl {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.ask-ipm-legend {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ask-ipm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ask-ipm-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8f0;
  box-shadow: 0 2px 7px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ask-ipm-acbar {
  height: 5px;
  background: #6464c8;
  flex-shrink: 0;
}
.ask-ipm-acbar--criteria { background: #f59e0b; }
.ask-ipm-inner {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ask-ipm-top { flex: 1; }
.ask-ipm-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6464c8;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ask-ipm-card--criteria .ask-ipm-cat { color: #b45309; }
.ask-ipm-div1 {
  height: 1px;
  background: #e8e8f0;
  margin: 0 0 10px;
}
.ask-ipm-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.4;
}
.ask-ipm-slabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b8a;
  margin-bottom: 6px;
}
.ask-ipm-intents {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ask-ipm-intents li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4a4a6a;
  line-height: 1.35;
  margin: 0;
}
.ask-ipm-criteria {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ask-ipm-criteria li {
  font-size: 11px;
  color: #4a4a6a;
  padding: 0;
  margin: 0;
  line-height: 1.35;
}
.ask-ipm-div2 {
  height: 1px;
  background: #f0f0f4;
  margin: 4px 0 10px;
}
.ask-ipm-mlabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b8a;
  margin-bottom: 2px;
}
.ask-ipm-mval {
  font-size: 11px;
  color: #6b6b8a;
  line-height: 1.45;
  margin: 0 0 8px;
}
.ask-ipm-mval:last-child { margin-bottom: 0; }
.ask-ipm-tw {
  text-align: center;
  font-size: 11px;
  color: #9898b8;
  margin: 14px 0 2px;
  font-style: italic;
}
.ask-ipm-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ask-ipm-badge--answer   { background: #eeeefc; color: #5858a8; }
.ask-ipm-badge--confirm  { background: #dbeafe; color: #1d4ed8; }
.ask-ipm-badge--transact { background: #dcfce7; color: #166534; }
.ask-ipm-badge--escalate { background: #fef3c7; color: #92400e; }
.ask-ipm-badge--fallback { background: #f1f5f9; color: #475569; }
html.dark .ask-ipm-wrap    { background: #1c1c2c; }
html.dark .ask-ipm-hl      { color: rgba(255,255,255,0.88); }
html.dark .ask-ipm-card    { background: #252538; border-color: rgba(255,255,255,0.07); box-shadow: none; }
html.dark .ask-ipm-cat     { color: var(--accent-text); }
html.dark .ask-ipm-card--criteria .ask-ipm-cat { color: rgba(250,190,100,0.8); }
html.dark .ask-ipm-div1    { background: rgba(255,255,255,0.1); }
html.dark .ask-ipm-name    { color: rgba(255,255,255,0.88); }
html.dark .ask-ipm-slabel  { color: rgba(255,255,255,0.6); }
html.dark .ask-ipm-mlabel  { color: rgba(255,255,255,0.6); }
html.dark .ask-ipm-intents li  { color: rgba(255,255,255,0.65); }
html.dark .ask-ipm-criteria li { color: rgba(255,255,255,0.65); }
html.dark .ask-ipm-mval    { color: rgba(255,255,255,0.6); }
html.dark .ask-ipm-div2    { background: rgba(255,255,255,0.05); }
html.dark .ask-ipm-tw      { color: rgba(255,255,255,0.28); }
html.dark .ask-ipm-badge--answer   { background: rgba(100,100,200,0.2);  color: #a6a6f5; }
html.dark .ask-ipm-badge--confirm  { background: rgba(59,130,246,0.2);   color: rgba(147,197,253,0.9); }
html.dark .ask-ipm-badge--transact { background: rgba(34,197,94,0.15);   color: rgba(134,239,172,0.9); }
html.dark .ask-ipm-badge--escalate { background: rgba(245,158,11,0.15);  color: rgba(252,211,77,0.9); }
html.dark .ask-ipm-badge--fallback { background: rgba(148,163,184,0.15); color: rgba(203,213,225,0.9); }

/* ── Inline case study video ── */
.ask-flow-video-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ask-flow-video-wrap {
  border-radius: 50px;
  overflow: hidden;
  display: inline-flex;
  max-height: 640px;
  min-height: 640px;
  position: relative;
}
.ask-flow-video {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  display: block;
}
.ask-flow-video-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--background-color_lighter, rgba(50,50,60,1)) 25%, rgba(100,100,120,0.15) 50%, var(--background-color_lighter, rgba(50,50,60,1)) 75%);
  background-size: 200% 100%;
  animation: ask-shimmer 1.6s infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* ── Hero visual ── */
.ask-hero-visual {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero video ── */
.ask-hero-video-wrap {
  border-radius: 50px;
  overflow: hidden;
  display: inline-flex;
  max-height: 680px;
  min-height: 680px;
  min-width: 313px;
  position: relative;
}

.ask-hero-video {
  max-height: 680px;
  width: auto;
  max-width: 100%;
  display: block;
}

.ask-hero-video-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--background-color_lighter, rgba(50,50,60,1)) 25%, rgba(100,100,120,0.15) 50%, var(--background-color_lighter, rgba(50,50,60,1)) 75%);
  background-size: 200% 100%;
  animation: ask-shimmer 1.6s infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

@keyframes ask-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Image placeholders ── */
.ask-img-placeholder {
  width: 100%;
  border: 2px dashed color-mix(in srgb, var(--primary-color) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color));
  overflow: hidden;
}

.ask-img-placeholder-inner {
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 200px;
  justify-content: center;
  text-align: center;
}

.ask-img-placeholder--hero .ask-img-placeholder-inner {
  min-height: 300px;
}

.ask-img-placeholder--tall .ask-img-placeholder-inner {
  min-height: 260px;
}

.ask-img-icon {
  color: color-mix(in srgb, var(--primary-color) 45%, transparent);
  margin-bottom: 2px;
}

.ask-img-slot-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hover);
  margin-bottom: -4px;
}

.ask-img-filename {
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color));
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  border-radius: 6px;
  padding: 4px 10px;
  word-break: break-all;
  max-width: 100%;
}

.ask-img-purpose {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 340px;
}

.ask-img-caption-bar {
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-hover);
  font-style: italic;
  line-height: 1.5;
  text-align: left; /* centered, long captions wrapped unevenly */
}

/* ── Callout quote ── */
.ask-callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  background: var(--background-color);
  border-radius: 0 10px 10px 0;
}

.ask-callout p {
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
}

/* ── Two-column pattern layout ── */
.ask-pattern-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 64px;
}

.ask-pattern-layout--flip {
  direction: rtl;
}

.ask-pattern-layout--flip > * {
  direction: ltr;
}

/* ── Step list ── */
.ask-step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 0;
}

.ask-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ask-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.ask-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 3px;
}

/* ── State list ── */
.ask-state-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 0;
}

.ask-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color));
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ask-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

/* ── Intent grid ── */
.ask-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 32px;
}

.ask-intent-group {
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}

.ask-intent-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
  display: block;
}

.ask-intent-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.4;
}

.ask-intent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Role scope grid ── */
.ask-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 24px 0;
}

.ask-role-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ask-role-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Behavior framework table ── */
.ask-behavior-list {
  display: flex;
  flex-direction: column;
  margin: 24px 0 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.ask-behavior-header {
  display: grid;
  grid-template-columns: 130px 1fr 1.4fr 1fr;
  gap: 16px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-bottom: 1px solid var(--border-color);
}

.ask-behavior-header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hover);
}

.ask-behavior-item {
  display: grid;
  grid-template-columns: 130px 1fr 1.4fr 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ask-behavior-item:last-child {
  border-bottom: none;
}

.ask-behavior-trigger {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.ask-behavior-when {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ask-behavior-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ask-behavior-why {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* ── Outcome cards ── */
.ask-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 0;
}

.ask-outcome-stat {
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 12px;
  padding: 20px;
}

.ask-outcome-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
  display: block;
}

.ask-outcome-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.2;
  margin-bottom: 6px;
}

.ask-outcome-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Summary cards (hero / section) ── */
.ask-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
}

.ask-summary-card {
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
}

.ask-summary-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
  display: block;
}

.ask-summary-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Closing quote ── */
.ask-closing-quote {
  margin-top: 36px;
  padding: 28px 32px;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
  border-radius: 14px;
  text-align: center;
}

.ask-closing-quote p {
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-headline);
  line-height: 1.65;
  margin: 0;
}

/* ── Closing section ── */
.ask-closing {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color_lighter));
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  padding: 60px 0;
}

.ask-closing-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 80px;
  text-align: center;
}

.ask-closing-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ── Hero stats ── */
.ask-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-color);
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 28px 80px 0;
  box-sizing: border-box;
}
.ask-hero-stat-item {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.ask-hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.1;
  margin-bottom: 6px;
}
.ask-hero-stat-label {
  font-size: .78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Before/after comparison ── */
.ask-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 32px 0 0;
}
.ask-ba-col {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
}
.ask-ba-col--before { border-left: 3px solid rgba(200,60,60,.45); }
.ask-ba-col--after  { border-left: 3px solid rgba(34,197,94,.65); }
.ask-ba-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.ask-ba-col--before .ask-ba-label { color: #b42318; }
.ask-ba-col--after  .ask-ba-label { color: #15803d; }
/* D-058: the light-mode colours above are too dark on the dark background */
html.dark .ask-ba-col--before .ask-ba-label { color: #f87171; }
html.dark .ask-ba-col--after  .ask-ba-label { color: #4ade80; }
.ask-ba-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ask-ba-col ul li {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0;
  margin: 0;
}
.ask-ba-col ul li::before {
  content: '— ';
  color: var(--text-hover);
}
.ask-ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding-top: 32px;
}

/* ── Behavior example sub-label ── */
.ask-behavior-example {
  display: block;
  font-size: .8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 3px;
}

/* ── Validation money line ── */
.ask-outcome-cta {
  margin-top: 32px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
  padding-left: 16px;
}

/* ── Validation outcome card ── */
.ask-val-card {
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color_lighter, #f8f8fc));
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  padding: 40px;
}
.ask-val-header {
  text-align: center;
  margin-bottom: 32px;
}
.ask-val-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.ask-val-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ask-val-subline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}
.ask-val-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ask-val-stat {
  background: var(--background-color, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ask-val-stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.ask-val-stat-num--sm {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ask-val-stat--green .ask-val-stat-num {
  color: #2a9155;
}
html.dark .ask-val-stat--green .ask-val-stat-num { color: #4ec77a; }
.ask-val-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.ask-val-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.ask-val-insight {
  background: var(--background-color, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-left: 3px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
  border-radius: 10px;
  padding: 18px 20px;
}
.ask-val-insight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ask-val-insight-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.ask-val-callout {
  background: color-mix(in srgb, var(--primary-color) 7%, var(--background-color));
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
  border-left: 3px solid var(--primary-color);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.ask-val-callout-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.ask-val-callout-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.ask-val-footer {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding-top: 24px;
  line-height: 1.7;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .ask-page {
    padding-top: 96px;
  }

  .ask-hero-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .ask-hero-visual {
    position: static;
  }
  .ask-wrap,
  .ask-wrap--narrow {
    padding: 0 24px;
  }

  .ask-section {
    padding: 48px 0;
  }

  .ask-pattern-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ask-pattern-layout--flip {
    direction: ltr;
  }

  .ask-intent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ask-outcome-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ask-metadata-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ask-meta-item--span {
    grid-column: span 2;
  }

  .ask-role-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ask-summary-grid {
    grid-template-columns: 1fr;
  }

  .ask-closing-inner {
    padding: 0 24px;
  }

  .ask-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 24px 0;
    margin-top: 36px;
  }

  .ask-before-after {
    grid-template-columns: 1fr;
  }

  .ask-ba-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  /* The 16 px above the hero is the page's padding, not the hero's margin: a margin collapsed out of the page and
     left a strip of the browser's white canvas under the header in dark mode (Batch 2). */
  .ask-page {
    padding-top: 16px;
  }

  .ask-hero {
    margin-top: 0;
  }

  .ask-notice-banner {
    margin-top: 0;
  }

  .ask-hero-visual {
    display: none;
  }

  .ask-hero {
    padding: 40px 0 48px;
  }

  .ask-intent-grid {
    grid-template-columns: 1fr;
  }

  .ask-outcome-grid {
    grid-template-columns: 1fr;
  }

  .ask-metadata-grid {
    grid-template-columns: 1fr;
  }

  .ask-sm-flow {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ask-sm-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }
  .ask-sm-arrow {
    display: none;
  }
  .ask-sm-pills {
    gap: 6px;
  }
  .ask-sm-pill {
    white-space: normal;
    text-align: center;
  }
  .ask-cdf-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ask-ipm-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ask-ipm-legend {
    gap: 4px;
  }
  .ask-ipm-header {
    margin-bottom: 20px;
  }

  .ask-meta-item--span {
    grid-column: span 1;
  }

  .ask-behavior-header {
    display: none;
  }

  .ask-behavior-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }

  .ask-closing-quote {
    padding: 20px;
  }

  .ask-closing-quote p {
    font-size: 15px;
  }

  .ask-val-card {
    padding: 24px;
  }
  .ask-val-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ask-val-insights {
    grid-template-columns: 1fr;
  }
}

/* ── Executive Summary ── */
.ask-section--summary {
  background: var(--background-color_lighter);
}
.ask-exec-headline {
  margin-bottom: 12px !important;
}
.ask-exec-intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 28px;
}
.ask-exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ask-exec-col {
  padding: 24px 26px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--background-color);
}
.ask-exec-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-text);
  margin-bottom: 12px;
  display: block;
}
.ask-exec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ask-exec-list li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: 14px;
  margin: 0;
  position: relative;
  text-align: left;
}
.ask-exec-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-size: 12px;
}
.ask-exec-col-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 !important;
}

/* ── Tradeoffs ── */
.ask-tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ask-tradeoff-card {
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--background-color);
}
.ask-tradeoff-tension {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ask-tradeoff-choice {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 10px;
}
.ask-tradeoff-why {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ── Enterprise bridge ── */
.ask-enterprise-bridge {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color_lighter));
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}
.ask-enterprise-bridge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.ask-enterprise-bridge p {
  font-size: 14px !important;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

@media (max-width: 700px) {
  .ask-exec-grid { grid-template-columns: 1fr; }
  .ask-tradeoff-grid { grid-template-columns: 1fr; }
}

/* ── Next case study banner ── */
/* The Next case study is defined once, in styles.css (D-089). */
/* D-058: on its tinted card, the shared secondary grey was 4.46:1; light mode only, since the token also serves dark */
html:not(.dark) .ask-val-callout-body { color: rgba(0, 0, 0, .62); }

/* ---- M-10 (D-103): the executive summary's cards hug their content ---- */
/* Without "What this demonstrates", the right card was half empty when stretched to the left card's height. */
.ask-exec-col { align-self: start; }

/* ── Product screens in their phone frame (the frame is part of the image) ── */
.ask-phone-figure {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ask-phone-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
}
.ask-phone-figure figcaption {
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}
