/* AskSphere — infographic case study */

body.case-study-page.asksphere {
  --accent: #0A0A0A;
  --ink: #0A0A0A;
  --ink-soft: #444444;
  --muted: #767676;
  --line: #E5E5E5;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --surface-2: #F0F1F3;
  --hero-gradient: #F7F7F8;
  --case-back-bar-bg: #F7F7F8;
  --link: #0A0A0A;
  background: var(--bg);
  color: var(--ink);
}

.as {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 160px 0 120px;
}

.as h1,
.as h2,
.as h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.as-kicker,
.as-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
}

.as-sub {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 720px;
}

.as-done {
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.as-lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-block {
  padding: 88px 0 0;
}

.as-block h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

/* Meta bar */
.as-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.as-meta-bar > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.as-meta-bar > div:last-child {
  border-right: none;
}

.as-meta-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-meta-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

/* Company + LP */
.as-company {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.as-company-copy h2 {
  margin: 0 0 10px;
}

.as-company-copy .as-lead {
  margin: 0 0 20px;
}

.as-company-copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.as-company-copy p:last-child {
  margin-bottom: 0;
}

.as-link {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.as-lp-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-lp-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-lp-card > strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  color: var(--ink);
}

.as-lp-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.as-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.as-problem-grid article {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-problem-grid span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.as-problem-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.as-problem-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-card {
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.as-card--chaos {
  background: linear-gradient(135deg, #FFF7F7 0%, #FEECEC 50%, #F1F5F9 100%);
  border-color: #FECACA;
}

.as-card--clarity {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-color: #CBD5E1;
}

.as-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 20px;
}

.as-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.as-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-card li {
  position: relative;
  padding: 0 0 12px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-card li:last-child {
  padding-bottom: 0;
}

.as-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.as-card--chaos li::before {
  background: #ef4444;
}

/* Stats */
.as-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.as-stats > div {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.as-stats strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  color: var(--ink);
}

.as-stats span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.as-stats--impact {
  margin-top: 8px;
}

/* Personas */
.as-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.as-personas--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-personas--3 .as-need-pain {
  grid-template-columns: 1fr;
}

.as-personas > article > p.as-quote {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.as-personas > article > p.as-open {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.as-pains article {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-pains h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.as-pains p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.as-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.as-gates article {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-gates span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-gates h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.as-gates p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-chapter {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-product-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.as-product-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.as-product-block h3 span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.as-product-block .as-lead {
  margin-bottom: 24px;
}

.as-meta-bar--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-meta-bar--6 > div:nth-child(3n) {
  border-right: none;
}

.as-meta-bar--6 > div:nth-child(-n+3) {
  border-bottom: 1px solid var(--line);
}

.as-personas article {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-persona-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.as-personas h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.as-personas > article > p:not(.as-quote):not(.as-open) {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.as-need-pain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.as-need-pain h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-need-pain ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-need-pain li {
  position: relative;
  padding: 0 0 8px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.as-need-pain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.as-need-pain > div:last-child li::before {
  background: #ef4444;
}

/* Process */
.as-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.as-process article {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-process article.is-fail {
  background: #FFF7F7;
  border-color: #FECACA;
}

.as-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.as-process article.is-fail .as-num {
  background: #ef4444;
}

.as-process h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.as-process p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-shipped {
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.as-shipped-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as-shipped h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 22px;
}

.as-shipped-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.as-shipped-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.as-shipped--status h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.6vw, 28px);
}

.as-shipped-grid > div {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.as-shipped-grid em {
  display: block;
  margin-bottom: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.as-shipped-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #fff;
}

.as-shipped-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

/* Features overview */
.as-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-features li {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-features span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.as-features h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.as-features p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Before / after */
.as-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

.as-ba > div {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.as-ba-before {
  background: #FFF7F7;
  border-color: #FECACA;
}

.as-ba-after {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.as-ba h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-ba p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

/* Dashboard steps */
.as-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.as-steps li {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.as-steps strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.as-steps em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* Screenshots */
.as-shots {
  display: grid;
  gap: 24px;
}

.as-shots--2 {
  grid-template-columns: 1fr 1fr;
}

.as-shots--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.as-shots figure {
  margin: 0;
}

.as-shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.as-shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.as-shots + .as-shot-lead {
  margin-top: 24px;
}

/* Fork */
.as-fork {
  margin: 0 0 36px;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-fork-start {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.as-fork-split {
  width: 2px;
  height: 20px;
  margin: 0 auto 16px;
  background: var(--line);
}

.as-fork-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.as-fork-col {
  padding: 24px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.as-fork-tag {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-fork-col h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.as-fork-goal {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.as-fork-col ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* Auto fill flow */
.as-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 36px;
}

.as-flow > div {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.as-flow span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.as-flow strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.as-flow p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.as-closing {
  padding-bottom: 8px;
}

.as-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 720px;
}

.as-hero-shot {
  margin: 8px 0 36px;
}

.as-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
}

.as-hero-shot figcaption,
.as-shot-lead figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.as-shot-lead {
  margin: 0 0 16px;
}

.as-shot-lead img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
}

.as-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

.as-modes article {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-modes .as-mode-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.as-modes h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.as-modes p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-modes p:last-child {
  margin-bottom: 0;
}

.as-modes .as-example {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}

.as-tech-note,
.as-build {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
}

.as-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.as-callouts article {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.as-callouts h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.as-callouts p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.as-spotlight {
  margin: 0 0 28px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.as-spotlight p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}

.as-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.as-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.as-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: default;
}

.as-lock svg {
  display: block;
}

.as-lock-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.as-lock:hover .as-lock-tip,
.as-lock:focus-visible .as-lock-tip {
  opacity: 1;
}

@media (max-width: 900px) {
  .as-meta-bar,
  .as-meta-bar--6,
  .as-company,
  .as-problem-grid,
  .as-personas,
  .as-personas--3,
  .as-process,
  .as-features,
  .as-ba,
  .as-steps,
  .as-shots--2,
  .as-shots--4,
  .as-fork-cols,
  .as-flow,
  .as-stats,
  .as-shipped-grid,
  .as-need-pain,
  .as-pains,
  .as-gates,
  .as-modes,
  .as-callouts {
    grid-template-columns: 1fr;
  }

  .as-meta-bar > div,
  .as-meta-bar--6 > div:nth-child(-n+3),
  .as-meta-bar--6 > div:nth-child(3n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .as-meta-bar > div:last-child {
    border-bottom: none;
  }

  .as-lock-tip {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    transform: none;
  }
}

@media (max-width: 700px) {
  .as {
    width: calc(100% - 32px);
    padding-top: 120px;
  }

  .as-block {
    padding-top: 64px;
  }
}
