/* AGI for Anyone — case pages (/c/<slug>)
   Loaded after style.css; composes the same tokens (BRAND-DA §2.1). No inline styles
   anywhere on this site: the CSP is `style-src 'self'`. */

[hidden] { display: none !important; }

/* The non-Mac / Mac swap is decided by case.js before <body> parses, so nothing flashes.
   These have to outrank the `.case-actions > div` flex rule further down, hence the
   child selectors rather than the bare attribute. */
.case-actions > [data-nonmac] { display: none; }
.is-nonmac .case-actions > [data-nonmac] { display: flex; }
.is-nonmac .case-actions > [data-mac-only] { display: none; }

/* The deep-link fallback is visible without JS (no timer can run to reveal it);
   with JS it hides until the app fails to answer. */
.js [data-fallback] { display: none; }
.js [data-fallback].is-shown { display: flex; }

/* ---------- Hero ---------- */

.case-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}

.case-hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 auto 16px;
  max-width: 20ch;
}

.case-hero .sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 auto 28px;
}

.case-actions,
.case-actions > div,
.case-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.case-actions .btn { min-width: 260px; }

.case-fallback,
.case-nonmac {
  margin: 0;
  max-width: 34em;
}

.case-fallback p,
.case-nonmac p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.case-nonmac .btn { margin-bottom: 12px; }
.case-nonmac p + p { margin-top: 10px; }

/* ---------- Section shell ---------- */

.case-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-body section { padding-top: 72px; }

.case-body h2 {
  font-size: clamp(1.45rem, 4.2vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 14px;
}

.case-body p { margin: 0 0 16px; max-width: 62ch; }
.case-body p:last-child { margin-bottom: 0; }

.case-body a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.case-body a:hover { text-decoration-color: var(--accent); }

.case-note { color: var(--text-3); font-size: 14px; }

/* ---------- The question, verbatim ---------- */

.case-q {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  margin: 0 0 12px;
  color: var(--text-1);
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- Proof ---------- */

/* A panel, not a plain section: the gap has to be outside the border, so it
   overrides the section padding above rather than adding to it. */
.case-body section.case-proof {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  margin-top: 72px;
  padding: 24px 22px;
}

.case-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(236, 85, 120, 0.45);
  background: var(--accent-tint);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.case-proof h2 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.stat {
  background: var(--bg-2);
  padding: 16px 16px 18px;
}

.stat .n {
  display: block;
  color: var(--text-1);
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat .n small { font-size: 0.62em; font-weight: 600; letter-spacing: 0; }

.stat .l {
  display: block;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

.case-proof .found { margin: 0 0 16px; padding-left: 0; list-style: none; }
.case-proof .found li { position: relative; padding-left: 22px; margin-bottom: 10px; max-width: 62ch; color: var(--text-2); }
.case-proof .found li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Steps ---------- */

.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }

.steps li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 18px;
  max-width: 62ch;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.steps strong { color: var(--text-1); font-weight: 650; }

/* ---------- Case index (the shelf) ---------- */

.shelf { max-width: 720px; margin: 0 auto; padding: 48px 24px 0; display: grid; gap: 14px; }

.shelf-card {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shelf-card:hover { border-color: var(--border-2); background: var(--bg-2); }

.shelf-card .ep {
  display: block;
  color: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shelf-card h2 {
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 6px;
}

.shelf-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.shelf-card .go { display: inline-block; margin-top: 12px; color: var(--text-3); font-size: 14px; }
.shelf-card:hover .go { color: var(--accent-soft); }

/* ---------- Closer ---------- */

.case-closer {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 24px 104px;
  text-align: center;
}

.case-closer .btn { min-width: 260px; }

.case-closer .cta-micro { margin-top: 14px; }

/* ---------- Phone first (375px checked) ---------- */

@media (max-width: 560px) {
  .case-hero { padding-top: 32px; }
  .case-actions .btn,
  .case-closer .btn { width: 100%; min-width: 0; }
  .case-body section { padding-top: 56px; }
  .case-body section.case-proof { margin-top: 56px; padding: 20px 18px; }
  .stats { grid-template-columns: 1fr; }
  .case-q { padding: 18px; font-size: 17px; }
  .case-closer { padding: 72px 24px 88px; }
}
