/* Cases share the XETHER shell, not the legacy page cascade. */
.cases-page { margin: 0; background: #fff; color: var(--xe-ink); font: 400 17px/1.65 var(--xe-font); -webkit-font-smoothing: antialiased; }
.cases-page a { color: inherit; text-decoration: none; }
.cases-page img { display: block; max-width: 100%; height: auto; }
.cases-page .wrap { width: min(100%, var(--xe-max)); margin-inline: auto; padding-inline: var(--xe-gutter); }
.cases-page h1, .cases-page h2, .cases-page h3, .cases-page p, .cases-page figure { margin: 0; }
.cases-page h1, .cases-page h2, .cases-page h3 { font-weight: 600; text-wrap: balance; }
.cases-page h1 { font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: 1.08; letter-spacing: -.05em; }
.cases-page h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.16; letter-spacing: -.04em; }
.cases-page h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.cases-page .eyebrow { display: block; color: var(--xe-blue); font-size: .875rem; font-weight: 600; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.cases-page .section { padding-block: clamp(64px, 7vw, 100px); }
.cases-page .surface { background: var(--xe-soft); }
.cases-page .btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 22px; border: 1px solid var(--xe-line); border-radius: 6px; font: 600 1rem/1.4 var(--xe-font); text-align: center; }
.cases-page .btn-primary { background: var(--xe-magenta); border-color: var(--xe-magenta); color: white; }
.cases-page .btn-primary:hover { background: #ac0044; border-color: #ac0044; }
.cases-page .btn-secondary { background: white; color: var(--xe-blue); }
.cases-page .btn-secondary:hover { background: var(--xe-blue-soft); border-color: var(--xe-blue); }
.cases-page .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--xe-blue); font-size: 1rem; font-weight: 500; }
.cases-page a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.cases-page .hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.cases-page .subpage-hero { padding-top: calc(var(--xe-header) + 62px); padding-bottom: 64px; }
.cases-page .subpage-hero h1 { margin-top: 20px; }
.cases-page .hero-accent { color: var(--xe-blue); }
.cases-page .lead { margin-top: 26px; max-width: 64ch; color: var(--xe-muted); font-size: 1.125rem; line-height: 1.7; }
.cases-hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.cases-hero-intro { padding-top: 30px; }
.cases-page .cases-hero-intro .lead { margin-top: 0; }
.cases-hero-intro .hero-actions { gap: 14px; }
.cases-page .product-section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 64px; margin-bottom: 44px; }
.cases-page .product-section-heading h2 { margin-top: 16px; }
.cases-page .product-section-heading > p { color: var(--xe-muted); font-size: 1rem; }
.cases-page .featured-case { padding-top: 56px; border-top: 1px solid var(--xe-line); }
.featured-case-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 44px; }
.cases-page .featured-case-capture { overflow: hidden; border: 1px solid #becbdf; border-radius: 8px; box-shadow: 0 20px 40px -30px #18263d66; }
.featured-case-capture img { width: 100%; }
/* Keep the approved fallback intact until the hearing screenshot arrives.
   Desktop and mobile picture sources must not be clipped by shared previews. */
.cases-page [data-capture-slot="case-abogacia"] .beta-capture-media { max-height: none; }
.featured-case-capture figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 16px 20px; background: var(--xe-soft); font-size: .8125rem; color: var(--xe-muted); }
.featured-case-capture figcaption strong { font-weight: 500; color: var(--xe-ink); }
.featured-case-copy article { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 0 0 24px; }
.featured-case-copy article > span { color: var(--xe-blue); font-size: .875rem; padding-top: 2px; }
.featured-case-copy article h3 { font-size: 1.25rem; }
.featured-case-copy article p { grid-column: 2; margin-top: 8px; color: var(--xe-muted); font-size: 1rem; }
.featured-case-copy .btn { margin-left: 40px; }
/* A directory, not another wall of cards. Each row is one clear link. */
.case-profiles .section-head { max-width: 760px; margin-bottom: 40px; }
.case-profiles h2 { margin-top: 16px; }
.case-profile-grid { border-top: 1px solid #b9c7db; }
.case-profile-grid > a { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1.4fr) minmax(0, 1.15fr) auto; align-items: start; gap: 32px; padding: 30px 12px; border-bottom: 1px solid #c9d3e2; transition: background .15s ease; }
.case-profile-grid > a > span { color: var(--xe-blue); font-size: .8125rem; font-weight: 600; padding-top: 3px; }
.case-profile-grid > a > p { color: var(--xe-muted); font-size: 1rem; }
.case-profile-grid > a > strong { display: flex; align-items: center; gap: 14px; color: var(--xe-blue); white-space: nowrap; font-size: 1rem; font-weight: 500; }
.case-profile-grid > a > strong b { font-size: 1.4rem; font-weight: 400; line-height: 1.3; }
.cases-page .case-profile-grid > a:hover { background: #e9eef8; text-decoration: none; }
.case-profile-grid > a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
/* Protection is a connected process, with a stop condition at any point. */
.cases-page .case-protection, .cases-page .case-detail-security { background: var(--xe-night); color: #fff; }
.cases-page .case-protection .eyebrow, .cases-page .case-detail-security .eyebrow { color: #b9ccff; }
.cases-page .case-protection .product-section-heading > p, .cases-page .case-detail-security p { color: var(--xe-on-night); }
.case-security-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border: 1px solid #586b86; border-radius: 8px 8px 0 0; }
.case-security-flow li { position: relative; padding: 28px; min-width: 0; }
.case-security-flow li + li { border-left: 1px solid #586b86; }
.case-security-flow li + li::before { content: '→'; position: absolute; top: 22px; left: -12px; width: 24px; background: var(--xe-night); color: #b9ccff; text-align: center; }
.case-security-flow li > span, .case-stop > span { display: block; color: #b9ccff; font-size: .875rem; font-weight: 500; }
.case-security-flow li > strong { display: block; margin: 14px 0 10px; font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.case-security-flow li > p, .case-stop p { font-size: 1rem; color: var(--xe-on-night); }
.case-stop { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: 24px; padding: 24px 28px; border: 1px solid #586b86; border-top: 0; border-radius: 0 0 8px 8px; background: #22334e; }
.case-stop > span { color: #ffc1da; }
.security-footnote { display: flex; justify-content: space-between; align-items: start; gap: 44px; margin-top: 28px; }
.security-footnote p { max-width: 78ch; font-size: .875rem; color: var(--xe-on-night); }
.cases-page .case-protection .text-link { color: #d1ddff; white-space: normal; text-decoration: underline; text-underline-offset: 5px; }
/* Individual cases: a calm editorial introduction and a readable journey. */
.case-detail-hero { background: linear-gradient(180deg, #fff 70%, var(--xe-soft)); }
.case-detail-hero h1 { max-width: 1100px; }
.cases-page .case-back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -20px 0 30px; color: var(--xe-muted); font-size: .9375rem; }
.before-after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--xe-line); padding-top: 32px; }
.before-after-grid article + article { padding-left: 48px; border-left: 1px solid var(--xe-line); }
.before-after-grid h3 { max-width: 30ch; }
.before-after-grid .after-xether h3 { color: var(--xe-blue); }
.before-after-grid ul { margin: 24px 0 0; padding-left: 20px; color: var(--xe-muted); font-size: 1rem; }
.before-after-grid li { padding: 8px 0 8px 4px; }
.before-after-grid li::marker { color: #8291a8; }
.before-after-grid .after-xether li::marker { color: var(--xe-blue); }
.case-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.case-step-grid article { border-top: 2px solid #b7c8ee; padding-top: 24px; }
.case-step-grid article > span { color: var(--xe-blue); font-size: .875rem; }
.case-step-grid h3 { margin-top: 16px; }
.case-step-grid p { margin-top: 12px; font-size: 1rem; color: var(--xe-muted); }
/* A concrete output for each profession, readable without exposing app flows. */
.case-outcome { border: 1px solid #b8c9e7; border-radius: 8px; background: #fff; }
.case-outcome header { padding: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--xe-line); background: var(--xe-blue-soft); border-radius: 8px 8px 0 0; }
.case-outcome h3 { max-width: 42ch; }
.case-outcome dl { margin: 0; padding-inline: clamp(22px, 3vw, 36px); }
.case-outcome dl > div { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.6fr); gap: 20px 36px; padding-block: 22px; }
.case-outcome dl > div + div { border-top: 1px solid var(--xe-line); }
.case-outcome dt { color: var(--xe-blue); font-size: 1rem; font-weight: 600; }
.case-outcome dd { margin: 0; color: var(--xe-muted); font-size: 1rem; }
.case-method-details { margin-top: 24px; border-block: 1px solid #bdcbe3; }
.case-method-details summary { padding: 18px 4px; min-height: 56px; color: var(--xe-blue); font-size: 1rem; font-weight: 500; cursor: pointer; }
.case-method-details summary::marker { color: var(--xe-blue); }
.case-method-details[open] > div { margin-block: 20px 28px; }
@media (max-width: 600px) {
  .case-outcome dl > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
.security-case-grid > div:first-child { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; }
.security-case-grid > div:first-child .eyebrow { grid-column: 1 / -1; margin-bottom: 16px; }
.security-case-grid > div:first-child p { font-size: 1rem; }
.cases-page .case-detail-security .btn-secondary { grid-column: 2; justify-self: start; color: #d1ddff; padding: 8px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.case-detail-security .case-security-flow { margin-top: 44px; }
.cases-page .security-caveat { margin-top: 24px; max-width: 88ch; font-size: .875rem; }
.case-detail-nav { padding-top: 36px; }
.case-detail-nav > .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.case-detail-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--xe-blue); font-size: 1rem; }
.case-detail-nav .next-case { flex-direction: column; align-items: end; }
.next-case span { font-size: .8125rem; color: var(--xe-muted); }
.next-case strong { font-weight: 500; }
/* Signup remains the single primary conversion goal. */
.cases-page .product-access { padding-block: 64px; }
.product-access-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: clamp(28px, 4vw, 56px); border: 1px solid #c6d2ee; border-radius: 10px; background: linear-gradient(115deg, #edf2ff, #f8faff); }
.product-access-grid h2 { max-width: 26ch; margin-top: 16px; font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.product-access-grid p { max-width: 60ch; margin-top: 20px; color: var(--xe-muted); font-size: 1rem; }
.product-access-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.product-access-actions > span { max-width: 26ch; color: var(--xe-muted); font-size: .8125rem; text-align: center; }
@media (max-width: 1100px) {
  .cases-hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
  .case-profile-grid > a { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px 32px; }
  .case-profile-grid > a > p { grid-column: 2; }
  .case-profile-grid > a > strong { grid-column: 3; grid-row: 1; }
  .featured-case-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
  .cases-page .product-section-heading, .security-case-grid > div:first-child { gap: 24px 40px; }
  .case-security-flow li { padding: 24px; }
  .case-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .product-access-grid { gap: 32px; }
}
@media (max-width: 820px) {
  .cases-page .subpage-hero { padding-top: calc(var(--xe-header) + 40px); padding-bottom: 48px; }
  .cases-hero-grid, .featured-case-layout, .cases-page .product-section-heading, .security-case-grid > div:first-child, .product-access-grid { grid-template-columns: minmax(0, 1fr); }
  .cases-hero-intro { padding-top: 0; }
  .featured-case-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .featured-case-copy article { display: block; padding: 0; }
  .featured-case-copy article h3 { margin-top: 8px; }
  .featured-case-copy .btn { grid-column: 1 / -1; justify-self: start; margin: 4px 0 0; }
  .case-security-flow li { padding: 20px; }
  .case-stop { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .security-footnote { flex-direction: column; gap: 16px; }
  .security-case-grid > div:first-child .eyebrow, .cases-page .case-detail-security .btn-secondary { grid-column: 1; }
  .security-case-grid > div:first-child .eyebrow { margin: 0; }
  .product-access-actions { align-items: start; }
  .product-access-actions > span { max-width: none; text-align: left; }
}
@media (max-width: 600px) {
  .cases-page h1 { font-size: clamp(2.15rem, 8vw, 2.75rem); }
  .cases-page h2 { font-size: 2rem; }
  .cases-page .hero-actions { gap: 10px; align-items: stretch; flex-direction: column; }
  .cases-page .hero-actions .text-link { justify-content: center; }
  .cases-page .lead { font-size: 1.0625rem; }
  .featured-case-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .featured-case-copy article { display: grid; }
  .featured-case-copy article h3 { margin-top: 0; }
  .featured-case-copy .btn { width: 100%; }
  .case-profile-grid > a { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 26px 0; }
  .case-profile-grid > a > span { grid-column: 1; }
  .case-profile-grid > a > strong { grid-column: 2; grid-row: 1; }
  .case-profile-grid > a > h3, .case-profile-grid > a > p { grid-column: 1 / -1; }
  .case-security-flow ol { grid-template-columns: minmax(0, 1fr); }
  .case-security-flow li + li { border-left: 0; border-top: 1px solid #586b86; }
  .case-security-flow li + li::before { content: '↓'; left: 22px; top: -16px; }
  .case-security-flow li { padding: 26px 24px; }
  .case-stop { padding: 24px; }
  .before-after-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .before-after-grid article + article { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--xe-line); }
  .case-step-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-step-grid article { position: relative; border: 0; border-left: 1px solid #b7c8ee; padding: 0 0 32px 28px; margin-left: 14px; }
  .case-step-grid article:last-child { border-color: transparent; padding-bottom: 0; }
  .case-step-grid article > span { position: absolute; top: -3px; left: -15px; width: 30px; background: var(--xe-soft); text-align: center; }
  .case-step-grid h3 { margin-top: 0; }
  .case-detail-nav > .wrap { align-items: start; flex-direction: column; gap: 12px; }
  .case-detail-nav .next-case { align-items: start; }
  .product-access-actions .btn { width: 100%; }
  .cases-page .product-access-grid h2 { font-size: 1.8rem; }
}
