/* R6 design polish (2026-11-19): brand-arc frosted preview, KPI 1/2/3/4 layouts, form states, calm confirmation card.
   MT-024 gated / confidential case study (loaded only on gated case detail pages, after inner.css).
   Tokens only (tokens.css). Josefin Sans via --f-display (Vazirmatn for Arabic script via rtl.css). Gold: one 1.5px recessed inlay line on the card (<<1.5% of the viewport).
   Contrast (measured pairs): white on #2F2F2F 11.9:1 | white on #464646 9.2:1 | sage on #2F2F2F 5.6:1 | ink on sage 5.82:1. No white text on sage. Logical properties throughout. */
.phero--gated .eyebrow{display:inline-flex;align-items:center;gap:.7em;padding:.55em 1.1em;border:1.5px solid var(--sage);color:var(--sage);font-weight:700;letter-spacing:.14em;background:transparent}
.phero--gated .eyebrow::before{content:"";width:14px;height:1.5px;background:var(--sage);flex:none}
[dir="rtl"] .phero--gated .eyebrow{letter-spacing:0}

.gated-alert{margin:0 var(--in-pad) clamp(16px,2.5vh,26px);padding:14px 20px;background:var(--sage);color:var(--ink);font-weight:700;border-inline-start:6px solid var(--ink)}
.gated-alert a{color:var(--ink);text-decoration:underline;text-underline-offset:.2em}
.gated-alert a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* KPI cards: rendered only when the case has them (0 = section absent, nothing reserved). Layout per count so 1/2/3/4 all read as designed. */
.gk{padding:0 var(--in-pad) clamp(34px,6vh,64px)}
.gk__list{list-style:none;margin:0;padding:0;display:grid;gap:clamp(12px,1.6vw,20px);grid-template-columns:repeat(4,minmax(0,1fr))}
.gk__list--1{grid-template-columns:minmax(0,26rem)}
.gk__list--2{grid-template-columns:repeat(2,minmax(0,1fr));max-inline-size:52rem}
.gk__list--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gk__card{background:var(--char);color:var(--white);padding:clamp(18px,2.2vw,28px);border-block-start:2px solid var(--sage);display:grid;gap:12px;align-content:start;min-width:0}
.gk__v{font-size:clamp(2rem,3.2vw,3.2rem);font-weight:700;line-height:1.05;letter-spacing:.02em;overflow-wrap:anywhere;text-wrap:balance;font-variant-numeric:lining-nums;font-family:'Josefin Sans',var(--f-display)}
.gk__l{font-size:1rem;line-height:1.45;color:rgba(255,255,255,.9);padding-block-start:10px;border-block-start:1px solid rgba(157,176,156,.35)}   /* hairline rule between value and label */
[dir="rtl"] .gk__v{letter-spacing:0;line-height:1.2}
[dir="rtl"] .gk__l{line-height:1.6}

/* Frosted preview + request card. The preview is generic skeleton shapes only (no text, no case data). */
.gated-wrap{display:grid;padding:0 var(--in-pad) var(--sec);align-items:stretch}
.gated-wrap>*{grid-area:1/1}
.gated-blur{position:relative;isolation:isolate;z-index:0;min-height:34rem;overflow:hidden;border:1px solid var(--rule);background:var(--char);user-select:none;-webkit-user-select:none;pointer-events:none}
.gated-blur__in{padding:clamp(22px,4vw,56px);display:grid;gap:clamp(22px,3.5vw,38px);filter:blur(7px);transform:scale(1.04)}   /* 7px + frost: even a 12px line is a smear, nothing legible */
.gated-frost{position:absolute;inset:0;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);background:linear-gradient(180deg,rgba(47,47,47,.3),rgba(47,47,47,.55))}
.gated-blur::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.45;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%239DB09C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M380 200a180 180 0 1 0-60 134'/%3E%3Cpath d='M340 200a140 140 0 1 0-120 138'/%3E%3Cpath d='M300 200a100 100 0 1 0-70 95'/%3E%3Cpath d='M260 200a60 60 0 1 0-40 56'/%3E%3C/svg%3E") no-repeat;background-size:min(46rem,92%) auto;background-position:100% 0}   /* brand arc motif, crisp, above the frost, behind the card */
[dir="rtl"] .gated-blur::after{transform:scaleX(-1)}
.sk-block{display:grid;gap:12px}
.sk{display:block;max-inline-size:100%;background:rgba(255,255,255,.34)}
.sk--h{block-size:22px;background:rgba(157,176,156,.7)}
.sk--line{block-size:12px}
.sk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(18px,3vw,40px);align-items:end}
.sk-bars{display:flex;align-items:flex-end;gap:10px;block-size:170px}
.sk--bar{flex:1;background:rgba(157,176,156,.62)}
.sk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sk--tile{aspect-ratio:4/3;background:rgba(255,255,255,.27)}

.gated-card{position:relative;z-index:1;align-self:center;justify-self:center;inline-size:min(100% - 2*clamp(0px,2vw,20px),35rem);margin-block:clamp(22px,5vh,56px);padding:clamp(22px,4vw,40px);background:var(--stage);color:var(--white);border:1.5px solid var(--sage);display:grid;gap:16px;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.gated-card h2{margin:0}
.gated-card__sub{margin:0}
.gated-card::before{content:"";position:absolute;inset-inline:-1.5px;inset-block-start:-1.5px;block-size:1.5px;background:var(--gold);opacity:.9}   /* thin recessed gold inlay: the only gold on the page */
.gated-card h2{font-size:clamp(1.6rem,2.6vw,2.4rem);line-height:1.1;letter-spacing:.03em;text-transform:uppercase;text-wrap:balance;max-inline-size:none}
[dir="rtl"] .gated-card h2{text-transform:none;letter-spacing:0;line-height:1.3}
.gated-card__sub{font-size:1.05rem;line-height:1.5;color:rgba(255,255,255,.92)}
.gated-card--ok{text-align:start}
.gated-card--ok:focus{outline:none}
.gated-card--ok:focus-visible{outline:3px solid var(--white);outline-offset:4px}

.gated-form{display:grid;gap:18px;position:relative}
.gf{display:grid;gap:7px;min-width:0}
.gf label{font-weight:600;font-size:1rem;line-height:1.35;display:flex;flex-wrap:wrap;align-items:baseline;gap:.2em .5em}
.gf__tag{font-weight:400;font-size:.85rem;color:rgba(255,255,255,.82);margin-inline-start:auto;letter-spacing:.04em}   /* optional/required hugs the far edge of the label row */
[dir="rtl"] .gf__tag{letter-spacing:0}
.gf .help{font-weight:400;font-size:.9rem;line-height:1.45;color:rgba(255,255,255,.84)}
.gf input{inline-size:100%;min-block-size:52px;padding:.8em 1em;background:var(--char);color:var(--white);border:1.5px solid var(--sage);border-radius:0;font:inherit;font-weight:500;font-size:1rem;transition:border-color .2s,box-shadow .2s}
.gf input::placeholder{color:rgba(255,255,255,.62);opacity:1}
html[dir="rtl"] .gf input[dir="ltr"]{text-align:end}   /* LTR text direction, but typed text and placeholder sit on the RTL start edge */
html[dir="rtl"] .gf input[dir="ltr"]::placeholder{text-align:end}
.gf input:hover{border-color:var(--white)}
.gf input:focus-visible{outline:3px solid var(--white);outline-offset:3px;border-color:var(--white)}
/* Errors are shape-based (no new colour): heavy white frame + a solid inline-start bar on the field, and a marked message line */
.gf [aria-invalid="true"]{border-color:var(--white);border-width:2px;box-shadow:inset 6px 0 0 var(--white)}
[dir="rtl"] .gf [aria-invalid="true"]{box-shadow:inset -6px 0 0 var(--white)}
.gated-card .err{margin:0;color:var(--white);font-weight:600;font-size:.95rem;line-height:1.45;display:flex;gap:.6em;align-items:flex-start}
.gated-card .err::before{content:"!";flex:none;inline-size:1.35em;block-size:1.35em;display:grid;place-items:center;border:1.5px solid var(--white);border-radius:50%;font-size:.8em;font-weight:700;line-height:1;margin-block-start:.1em}
.gated-card .form-err{padding:12px 14px;border:1.5px solid var(--white);background:var(--char)}
.gated-card .consent{margin:0;font-size:.9rem;line-height:1.5;color:rgba(255,255,255,.84)}
.gated-form .btn{justify-content:center;inline-size:100%;min-block-size:54px}
.gated-form .btn:focus-visible,.gated-card--ok .btn:focus-visible{outline:3px solid var(--white);outline-offset:3px}
.gated-form .btn:disabled{opacity:.75;cursor:progress}

/* Confirmation: calm success card. Brand-arc ring mark, one sentence, one ghost action. The frame shrinks so the card is not lost in a tall blur. */
.gated-card--ok{justify-items:start;gap:14px;text-align:start;padding-block-start:clamp(70px,8vw,86px)}
.gated-card--ok::after{content:"";position:absolute;inset-block-start:clamp(22px,3vw,30px);inset-inline-start:clamp(22px,4vw,40px);inline-size:34px;block-size:34px;border-radius:50%;border:1.5px solid var(--sage);border-inline-end-color:transparent;transform:rotate(-25deg)}   /* open ring = the brand arc, quiet affirmation */
.gated-card--ok h2{font-size:clamp(1.5rem,2.3vw,2.1rem)}
.gated-card--ok p{margin:0;font-size:1.05rem;line-height:1.55;color:rgba(255,255,255,.94)}
.gated-wrap:has(.gated-card--ok) .gated-blur{min-height:22rem}
.gated-card--ok .btn{min-block-size:48px;inline-size:auto}
.gated-ok__more{justify-self:start}

@media (max-width:640px){
  .gated-wrap{padding-inline:0}
  .gated-blur{border-inline:0}
  .gated-card{inline-size:calc(100% - 28px);margin-block:96px;padding:22px 18px}   /* ~96px of live blur stays visible above and below the card */
  .gated-blur{display:grid}
  .gated-blur__in{align-content:space-between;padding:20px 18px;gap:20px;filter:blur(5px)}
  .gated-frost{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);background:linear-gradient(180deg,rgba(47,47,47,.18),rgba(47,47,47,.4))}
  .sk--h{background:rgba(157,176,156,.82)}
  .gated-blur::after{opacity:.3}
  .gated-wrap{padding-block-end:clamp(32px,8vw,48px)}
  .sk-grid{grid-template-columns:1fr}
  .gk__list,.gk__list--2,.gk__list--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gk__list--1{grid-template-columns:minmax(0,1fr)}
  .gk__list--3 .gk__card:last-child{grid-column:1/-1}
  .gk__card{padding:16px 14px}
  .gk__v{font-size:clamp(1.7rem,8vw,2.2rem)}
  .gk__l{font-size:.95rem}
  .gated-card--ok .btn{inline-size:100%}
  .gated-card--ok p:has(.btn),.gated-card--ok .gated-ok__more{justify-self:stretch}
  .gated-card--ok{justify-items:stretch}
  .gated-card.gated-card--ok{padding-block-start:76px}   /* beats the generic mobile padding so the ring never touches the heading */
  .gated-card--ok::after{inset-inline-start:18px;inset-block-start:24px}
  .gated-wrap:has(.gated-card--ok) .gated-blur{min-height:0}
  .gated-blur{min-height:0}
  .gated-card--ok::after{inset-block-start:26px}
}
@media (min-width:641px) and (max-width:900px){.gk__list,.gk__list--3{grid-template-columns:repeat(2,minmax(0,1fr))}.gk__list--3 .gk__card:last-child{grid-column:1/-1}}
@media (prefers-reduced-motion:reduce){.gated-card,.gated-form .btn,.gf input{transition:none!important;animation:none!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.gated-frost{background:rgba(47,47,47,.86)}}
.gated-card{scroll-margin-block-start:calc(var(--nav-h) + 24px)}

/* R8 (MT-025, fullstack-dev; designer to review): anonymised-case copy. Attribution note under the executive summary, h2 campaign title above the KPI cards, per-card comparison line + footnote.
   Contrast (measured by hand, tokens): rgba(255,255,255,.88) on #2F2F2F ~ 9.9:1; rgba(255,255,255,.82) on #2F2F2F ~ 8.6:1 (both >= 4.5:1). Logical properties only. */
.gated-attr{margin:0;max-inline-size:var(--measure,44rem);font-size:.95rem;line-height:1.55;color:rgba(255,255,255,.88);padding-inline-start:14px;border-inline-start:1.5px solid var(--sage)}
.gk__h{margin:0 0 clamp(14px,2.2vh,22px);font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.4;font-weight:600;letter-spacing:.04em;max-inline-size:none;color:var(--white)}
[dir="rtl"] .gk__h,[dir="rtl"] .gated-attr{letter-spacing:0}
.gk__d{margin:0;font-size:.95rem;line-height:1.5;color:rgba(255,255,255,.88);font-weight:600}
.gk__n{margin:0;font-size:.85rem;line-height:1.5;color:rgba(255,255,255,.82)}
[dir="rtl"] .gk__d,[dir="rtl"] .gk__n{line-height:1.7}
