/* HDFC feature studies: shared story figures.
   Used by the account snapshot and quick recharge studies (loaded after their own
   stylesheet). Numbered notes, the annotated screen, results (shipped facts, before and
   after, evidence) and the one-sentence takeaway. Snapshot-only figures (legacy
   dashboard, tab anatomy, freshness labels) live here too, beside the shared ones. */

/* Numbered notes, shared by the legacy dashboard and the tab anatomy */
.as-pin, .as-notes > li::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6d5ef6;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.as-notes { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: as-note; }
.as-notes > li { counter-increment: as-note; display: grid; grid-template-columns: 26px 1fr; gap: 2px 14px; align-items: start; }
.as-notes > li::before { content: counter(as-note); grid-row: span 2; }
.as-notes strong { color: var(--sf-ink); font-size: 1rem; line-height: 1.4; }
.as-notes span { color: var(--sf-text-2); font-size: .9375rem; line-height: 1.55; }

/* The legacy dashboard, with numbered pins */
.as-legacy, .as-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 44px;
  align-items: center;
  margin: 0;
}
.as-legacy__shot { min-width: 0; }
.as-legacy__canvas { position: relative; }
.as-legacy__canvas img { display: block; width: 100%; height: auto; }
.as-legacy__canvas .as-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  margin: -13px 0 0 -13px;
  box-shadow: 0 0 0 4px rgba(109, 94, 246, .28), 0 6px 14px rgba(40, 20, 120, .35);
}
.as-legacy figcaption { grid-column: 1 / -1; color: var(--sf-muted); font-size: .8125rem; }

/* How one tab is built: a schematic on the dashboard surface */
.as-anatomy__art {
  position: relative;
  padding: 22px 30px 28px 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--sf-r-lg);
  background:
    radial-gradient(60% 75% at 12% 0%, rgba(120, 108, 250, .22), transparent 70%),
    linear-gradient(165deg, #25252c 0%, #1c1c21 48%, #151519 100%);
}
.as-anatomy__art em { position: absolute; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #3b2a9a; font-size: 12px; font-style: normal; font-weight: 800; box-shadow: 0 0 0 3px rgba(120, 108, 250, .6); }
.as-anatomy__tabs { position: relative; display: flex; align-items: flex-end; gap: 7px; margin-bottom: 20px; }
.as-anatomy__tabs span { flex: 0 1 44px; min-width: 14px; height: 22px; border: 1px solid #4b5563; border-radius: 11px; }
.as-anatomy__tabs span.is-open { display: flex; flex: none; align-items: center; gap: 6px; width: 112px; height: 40px; padding: 0 9px 3px; border-color: #786cfa; background: #1b1b20; box-shadow: inset 0 -3px 0 #786cfa; }
.as-anatomy__tabs .is-open i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(140deg, #ffcc4d, #ff9d00); }
.as-anatomy__tabs .is-open b { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .75); }
.as-anatomy__tabs em { left: 100px; top: -11px; }
.as-anatomy__row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.as-anatomy__tile { display: flex; flex-direction: column; gap: 7px; min-height: 118px; padding: 12px; border-radius: 10px; background: conic-gradient(from 47deg at 45.2% 28.6%, #e6ddfe, #f4f0ff); }
.as-anatomy__tile i { width: 16px; height: 16px; border-radius: 4px; background: #786cfa; }
.as-anatomy__tile b { width: 72%; height: 6px; margin-top: auto; border-radius: 3px; background: #9ca3af; }
.as-anatomy__tile s { width: 56%; height: 9px; border-radius: 3px; background: #111827; }
.as-anatomy__tile u { height: 16px; margin-top: 4px; border-radius: 5px; background: #1c3fca; }
.as-anatomy__tile.is-offer { background: conic-gradient(from 52deg at 39.6% 28%, #583dd0, #7454f2); }
.as-anatomy__tile.is-offer i, .as-anatomy__tile.is-offer u { background: #fff; }
.as-anatomy__tile.is-offer b { width: 84%; height: 8px; background: rgba(255, 255, 255, .85); }
.as-anatomy__pin--2 { left: -10px; top: -11px; }
.as-anatomy__pin--3 { left: calc(66.7% + 2px); top: -11px; }
.as-anatomy__next { position: absolute; right: -16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border: 1px solid #4b5563; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.as-anatomy__next::before { content: ''; position: absolute; left: 8px; top: 8px; width: 7px; height: 7px; border: solid #fff; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.as-anatomy__next em { left: 1px; top: -32px; }

/* Freshness: the rule, and two labels from the design */
.as-fresh { display: grid; gap: 18px; margin-top: 28px; }
.as-fresh__rule { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 18px; border-radius: var(--sf-r-md); background: color-mix(in srgb, #786cfa 11%, transparent); }
.as-fresh__rule i { color: #6d5ef6; font-size: 20px; line-height: 1.4; }
.as-fresh__rule p { margin: 0; color: var(--sf-text); font-size: 1rem; line-height: 1.55; }
.as-fresh__rule strong { color: var(--sf-ink); }
.as-fresh__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.as-fresh__item { display: grid; gap: 12px; margin: 0; }
.as-fresh__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid #ecedf3;
  border-radius: 16px;
  background: conic-gradient(from 47deg at 45.2% 28.6%, #e6ddfe, #f4f0ff);
  box-shadow: 0 1px 5px rgba(16, 24, 40, .1);
  color: #111827;
  font-family: Inter, system-ui, sans-serif;
}
.as-fresh__label { font-size: 14px; line-height: 20px; }
.as-fresh__label mark { margin-left: 2px; padding: 1px 7px; border-radius: 6px; background: rgba(120, 108, 250, .2); color: #3b2a9a; font-size: 12px; font-weight: 600; }
.as-fresh__value { font-size: 20px; font-weight: 600; line-height: 28px; }
.as-fresh__note { color: #545964; font-size: 12px; line-height: 20px; }
.as-fresh__item figcaption { color: var(--sf-text-2); font-size: .9375rem; line-height: 1.55; }
.as-fresh__item figcaption strong { color: var(--sf-ink); }

/* Results: shipped facts, before → after, evidence */
.as-results { display: grid; gap: 32px; }
.as-shipped { padding: 22px 26px 24px; border: 1px solid var(--sf-line); border-radius: var(--sf-r-lg); background: linear-gradient(135deg, rgba(120, 108, 250, .16), rgba(28, 63, 202, .07)); }
.as-shipped__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--sf-muted); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.as-shipped ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.as-shipped li { display: flex; align-items: center; gap: 16px; }
.as-shipped b { flex: none; color: #6d5ef6; font-size: var(--sf-fs-num); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.as-shipped li span { display: grid; gap: 2px; color: var(--sf-text-2); font-size: .875rem; line-height: 1.45; }
.as-shipped li strong { color: var(--sf-ink); font-size: 1rem; }

.as-ba__title { margin: 0 0 10px; color: var(--sf-ink); font-size: var(--sf-fs-h3); }
.as-ba table { width: 100%; border-collapse: collapse; }
.as-ba th, .as-ba td { padding: 14px 16px; border-top: 1px solid var(--sf-line); font-size: .9375rem; line-height: 1.5; text-align: left; vertical-align: top; }
.as-ba thead th { padding-top: 6px; padding-bottom: 8px; border-top: 0; color: var(--sf-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.as-ba tbody th { width: 22%; color: var(--sf-ink); font-weight: 600; }
.as-ba td { color: var(--sf-text-2); }
.as-ba td:last-child { background: color-mix(in srgb, #786cfa 8%, transparent); color: var(--sf-ink); }
.as-ba td:last-child i { margin-right: 2px; color: #6d5ef6; font-size: 1.1em; vertical-align: -3px; }
.as-ba__k { display: none; }

.as-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.as-evidence__col { padding: 20px 22px 22px; border: 1px solid var(--sf-line); border-radius: var(--sf-r-md); background: var(--sf-glass); }
.as-evidence__col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--sf-ink); font-size: 1rem; }
.as-evidence__col.is-known h3 i { color: var(--sf-ok); }
.as-evidence__col.is-open h3 i { color: var(--sf-warn); }
.as-evidence__col.is-next h3 i { color: #6d5ef6; }
.as-evidence__col ul { display: grid; gap: 10px; margin: 0; padding: 0 0 0 18px; color: var(--sf-text-2); font-size: .9375rem; line-height: 1.55; }
.as-evidence__col strong { color: var(--sf-ink); }

.as-takeaway { margin-top: 28px; padding: 24px 28px 26px; border-radius: var(--sf-r-lg); background: linear-gradient(135deg, #2a1f6e, #3a2bb0 55%, #1c3fca); color: #fff; }
.as-takeaway .sf-eyebrow { color: rgba(255, 255, 255, .78); }
.as-takeaway p { max-width: 62ch; margin: 8px 0 0; font-size: var(--sf-fs-lg); font-weight: 600; line-height: 1.5; }

@media (max-width: 860px) {
  .as-legacy, .as-anatomy { grid-template-columns: minmax(0, 1fr); }
  .as-evidence { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .as-shipped ul, .as-fresh__pair { grid-template-columns: 1fr; }
  .as-ba thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-ba table, .as-ba tbody, .as-ba tr, .as-ba th, .as-ba td { display: block; width: auto; }
  .as-ba tr { padding: 14px 0; border-top: 1px solid var(--sf-line); }
  .as-ba th, .as-ba td, .as-ba tbody th { width: auto; padding: 4px 0; border: 0; }
  .as-ba td:last-child { margin-top: 6px; padding: 8px 12px; border-radius: 10px; }
  .as-ba__k { display: block; color: var(--sf-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .as-anatomy__art { padding: 18px 24px 22px 18px; }
}

