/* Pain -> answer -> benefit stories (#relief, assets/relief.js). Every diagram rests in its FINISHED state;
   .ready.play (desktop, fine pointer, in view, motion allowed) replays it once from "before". */
.relief{padding:88px 0;background:linear-gradient(180deg,var(--page) 0%,#eef4ff 100%)}
.relief h2{font-size:clamp(1.9rem,4vw,3rem);font-weight:900;letter-spacing:-.02em;color:var(--ink);margin:8px 0 40px;line-height:1.05}
.rl-list{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.rl-row{display:grid;grid-template-columns:1fr 220px 1.25fr;align-items:center;gap:28px;background:var(--card);border-radius:20px;padding:26px 30px;box-shadow:0 18px 40px -26px rgba(15,23,42,.45);border:1px solid var(--line)}
.rl-tag{display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.rl-pain .rl-tag{color:#b91c1c}
.rl-pain p{margin:0;font-size:1.12rem;font-weight:700;color:#7f1d1d;line-height:1.35;text-decoration:line-through;text-decoration-color:rgba(185,28,28,.55);text-decoration-thickness:2px}
.rl-gain .rl-tag{color:var(--ok)}
.rl-benefit{margin:0;font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:900;color:var(--ink);line-height:1.1;letter-spacing:-.01em}
.rl-answer{margin:10px 0 0;font-size:1rem;color:var(--body);line-height:1.5}
.rl-art svg{width:100%;height:auto;display:block}
.rl-note{margin:26px 0 0;font-size:.85rem;color:var(--muted);text-align:center}

/* diagram parts — finished state */
.rl-art .rl-sheet{fill:#fde2e2;stroke:#f87171;stroke-width:1.5}
.rl-art .rl-record,.rl-art .rl-sheet-big,.rl-art .rl-phone{fill:#fff;stroke:var(--blue);stroke-width:2}
.rl-art .rl-lines{stroke:#93c5fd;stroke-width:4;stroke-linecap:round;fill:none}
.rl-art .rl-ok{fill:var(--ok)}
.rl-art .rl-tick{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.rl-art .rl-bars rect{fill:var(--blue)}
.rl-art .rl-x{stroke:#ef4444;stroke-width:3;stroke-linecap:round;opacity:0}
.rl-art .rl-saved{stroke:var(--ok);stroke-width:5;stroke-linecap:round}
.rl-art .rl-arc{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-dasharray:6 6}
.rl-art .rl-cloud{fill:#dbeafe;stroke:var(--blue);stroke-width:2}
.rl-art .rl-dot{fill:var(--ok);stroke:#fff;stroke-width:3}
.rl-art .rl-count{font:800 15px var(--mono);fill:var(--ok)}
.rl-art .rl-rows rect{fill:#bfdbfe}
.rl-art .rl-stamp rect{fill:var(--ok)}
.rl-art .rl-stamp text{font:900 15px var(--font);fill:#fff;letter-spacing:.12em}
.rl-art .rl-stamp{transform:rotate(-8deg);transform-origin:164px 91px}

/* motion — desktop only, once, from "before" to the finished state */
.rl-row.ready .rl-art *{animation-fill-mode:both;animation-play-state:paused}
.rl-row.ready.play .rl-art *{animation-play-state:running}
.rl-row.ready .rl-sheet.s1{animation:rl-in-a .9s ease-out .1s}
.rl-row.ready .rl-sheet.s2{animation:rl-in-b .9s ease-out .2s}
.rl-row.ready .rl-sheet.s3{animation:rl-in-c .9s ease-out .3s}
.rl-row.ready .rl-record,.rl-row.ready .rl-lines{animation:rl-fade .5s ease-out 1s}
.rl-row.ready .rl-ok,.rl-row.ready .rl-tick{animation:rl-pop .45s cubic-bezier(.3,1.6,.5,1) 1.45s}
@keyframes rl-in-a{from{transform:translate(-70px,-30px) rotate(-18deg)}to{transform:none}}
@keyframes rl-in-b{from{transform:translate(70px,-26px) rotate(14deg)}to{transform:none}}
@keyframes rl-in-c{from{transform:translate(-10px,46px) rotate(8deg)}to{transform:none}}
@keyframes rl-fade{from{opacity:0}to{opacity:1}}
@keyframes rl-pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
.rl-art .rl-ok,.rl-art .rl-tick,.rl-art .rl-stamp{transform-box:fill-box;transform-origin:center}

.rl-row.ready .rl-bars rect{animation:rl-signal 1.4s steps(1) .1s}
.rl-row.ready .rl-x{animation:rl-x 1.4s ease-out .1s}
.rl-row.ready .rl-saved{animation:rl-draw .5s ease-out .9s}
.rl-row.ready .rl-arc{animation:rl-fade .5s ease-out 1.5s}
.rl-row.ready .rl-cloud{animation:rl-fade .4s ease-out 1.7s}
.rl-row.ready[data-motion="offline"] .rl-ok,.rl-row.ready[data-motion="offline"] .rl-tick{animation:rl-pop .45s cubic-bezier(.3,1.6,.5,1) 2s}
@keyframes rl-signal{0%{opacity:.15}70%{opacity:.15}100%{opacity:1}}
@keyframes rl-x{0%,60%{opacity:1}100%{opacity:0}}
@keyframes rl-draw{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:none}}
.rl-art .rl-saved{transform-box:fill-box;transform-origin:left center}

.rl-row.ready .rl-dot{animation:rl-light .5s ease-out both}
.rl-row.ready .rl-dot.d1{animation-delay:.2s}.rl-row.ready .rl-dot.d2{animation-delay:.5s}.rl-row.ready .rl-dot.d3{animation-delay:.8s}
.rl-row.ready .rl-dot.late{animation:rl-late 1.6s ease-out .3s both}
.rl-row.ready .rl-count{animation:rl-fade .4s ease-out 1.9s}
@keyframes rl-light{from{fill:#e5e7eb}to{fill:var(--ok)}}
@keyframes rl-late{0%{fill:#e5e7eb}50%{fill:var(--warn)}100%{fill:var(--ok)}}

.rl-row.ready .rl-rows rect{animation:rl-draw .45s ease-out both}
.rl-row.ready .rl-rows .r1{animation-delay:.2s}.rl-row.ready .rl-rows .r2{animation-delay:.45s}.rl-row.ready .rl-rows .r3{animation-delay:.7s}.rl-row.ready .rl-rows .r4{animation-delay:.95s}
.rl-art .rl-rows rect{transform-box:fill-box;transform-origin:left center}
.rl-row.ready .rl-stamp{animation:rl-stamp .5s cubic-bezier(.3,1.6,.5,1) 1.4s both}
@keyframes rl-stamp{from{opacity:0;transform:rotate(-8deg) scale(2.2)}to{opacity:1;transform:rotate(-8deg) scale(1)}}

.rl-row.ready .rl-pain p{transition:text-decoration-color .6s ease 1.2s}
.rl-row.ready:not(.play) .rl-pain p{text-decoration-color:transparent}

@media (max-width:899px){
  .relief{padding:56px 0}
  .relief h2{margin-bottom:24px}
  .rl-row{grid-template-columns:1fr;gap:12px;padding:20px}
  .rl-art{max-width:190px;margin:0 auto}
  .rl-pain p{font-size:1.02rem}
}
@media (prefers-reduced-motion:reduce){.rl-row .rl-art *{animation:none!important}}

/* character clip (two stills of one person: the pain, then the relief) */
.rl-row.has-clip{grid-template-columns:1fr 1.35fr 1.15fr}
.rl-clip{position:relative;aspect-ratio:960/536;border-radius:14px;overflow:hidden;background:#0f172a;cursor:pointer;outline:none;box-shadow:0 10px 24px -14px rgba(15,23,42,.6)}
.rl-clip:focus-visible{box-shadow:0 0 0 3px var(--blue)}
.rl-f{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .25s}
.rl-before{opacity:1;z-index:1}.rl-after{opacity:1}
.rl-icon{position:absolute;left:41%;top:40%;width:13%;aspect-ratio:1;pointer-events:none}
.rl-icon svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 3px 6px rgba(0,0,0,.45))}
.rl-ic-pain{opacity:1}.rl-ic-pain rect{fill:#fff}.rl-ic-pain path{stroke:#ef4444;stroke-linecap:round;fill:none}
.rl-ic-ok circle{fill:var(--ok)}.rl-ic-ok path{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.rl-beats{position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(transparent,rgba(2,6,23,.82));pointer-events:none}
.rl-beat{position:absolute;left:5%;right:5%;bottom:12%;font:800 clamp(.95rem,1.6vw,1.25rem)/1.2 var(--font);color:#fff;opacity:0;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.rl-beat.b1{opacity:1}
.rl-hint{position:absolute;top:10px;right:10px;font:700 .7rem var(--font);color:#fff;background:rgba(2,6,23,.6);padding:4px 9px;border-radius:999px;letter-spacing:.04em}
.rl-illus{position:absolute;top:10px;left:10px;font:600 .65rem var(--font);color:#e2e8f0;background:rgba(2,6,23,.45);padding:3px 8px;border-radius:999px}
/* the clip: 0–1.6s pain, 1.6–3.2s relief, 3.2–5s synced; ends on the relief frame */
.rl-clip.playing .rl-hint{opacity:0}
.rl-clip.playing .rl-before,.rl-clip.playing .rl-after{animation:rl-zoom 5s ease-out both}
.rl-clip.playing .rl-before{animation-name:rl-zoom,rl-before-out}
.rl-clip.playing .rl-ic-pain{animation:rl-pain-icon 5s ease both}
.rl-clip.playing .rl-ic-ok{animation:rl-ok-icon 5s ease both}
.rl-clip.playing .b1{animation:rl-beat1 5s ease both}
.rl-clip.playing .b2{animation:rl-beat2 5s ease both}
.rl-clip.playing .b3{animation:rl-beat3 5s ease both}
@keyframes rl-zoom{from{transform:scale(1)}to{transform:scale(1.07)}}
@keyframes rl-before-out{0%,30%{opacity:1}42%,100%{opacity:0}}
@keyframes rl-pain-icon{0%{opacity:0;transform:translateY(10px) scale(.7)}8%{opacity:1;transform:none}16%{transform:scale(1.12)}24%{transform:scale(1)}30%{opacity:1}38%,100%{opacity:0;transform:scale(.6)}}
@keyframes rl-ok-icon{0%,34%{opacity:0;transform:scale(.4)}44%{opacity:1;transform:scale(1.15)}50%,100%{opacity:1;transform:none}}
@keyframes rl-beat1{0%{opacity:0;transform:translateY(12px)}6%,28%{opacity:1;transform:none}34%,100%{opacity:0;transform:translateY(-8px)}}
@keyframes rl-beat2{0%,34%{opacity:0;transform:translateY(12px)}40%,62%{opacity:1;transform:none}68%,100%{opacity:0;transform:translateY(-8px)}}
@keyframes rl-beat3{0%,68%{opacity:0;transform:translateY(12px)}74%,100%{opacity:1;transform:none}}
.rl-ic-ok{opacity:0}
@media (max-width:899px){.rl-row.has-clip{grid-template-columns:1fr}.rl-row.has-clip .rl-art{max-width:none}}
@media (prefers-reduced-motion:reduce){.rl-clip.playing *{animation:none!important}}
.rl-icon,.rl-beats,.rl-hint,.rl-illus{z-index:2}
.rl-ic-alert path:first-child{fill:#f59e0b;stroke:#fff;stroke-width:2}.rl-ic-alert path+path{stroke:#451a03;stroke-linecap:round}
/* reduced motion: no clip — show the relief frame and the last caption, still */
@media (prefers-reduced-motion:reduce){.rl-clip .rl-before{opacity:0}.rl-clip .rl-ic-pain,.rl-clip .b1{opacity:0}.rl-clip .rl-ic-ok,.rl-clip .b3{opacity:1}.rl-clip .rl-hint{display:none}}

/* ---- owner 2026-11-16: no red problem column; bigger picture; the problem told inside the picture, on top ---- */
.rl-row,.rl-row.has-clip{grid-template-columns:1.45fr 1fr;gap:36px;padding:22px}
.rl-art{width:100%}
/* clip: captions move to the TOP band (heads sit lower in every frame), hint + label to the bottom */
.rl-beats{top:0;bottom:auto;height:34%;background:linear-gradient(rgba(2,6,23,.78),transparent)}
.rl-beat{top:7%;bottom:auto;font-size:clamp(1.05rem,1.9vw,1.5rem);letter-spacing:-.01em}
.rl-hint{top:auto;bottom:12px;right:auto;left:50%;transform:translateX(-50%)}
.rl-illus{top:auto;bottom:12px;left:12px}
/* diagram rows: the same idea — the problem line sits on top of the picture card, neutral, animated in */
.rl-artcard{position:relative;border-radius:14px;background:linear-gradient(160deg,#eef4ff,#f8fafc);padding:18px 22px 10px;min-height:250px;display:flex;flex-direction:column}
.rl-say{margin:0 0 6px;font:800 clamp(1.05rem,1.8vw,1.35rem)/1.25 var(--font);color:var(--ink);letter-spacing:-.01em}
.rl-artcard svg{max-width:260px;margin:auto auto 0}
.rl-row.ready .rl-say{animation:rl-say-in .7s ease-out both}
@keyframes rl-say-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media (max-width:899px){.rl-row,.rl-row.has-clip{grid-template-columns:1fr;gap:16px;padding:16px}.rl-artcard{min-height:0}}

/* badges replace the bare icon glyphs (owner: "the antenna is not obvious") */
.rl-icon{width:auto;aspect-ratio:auto;transform:translate(-50%,-50%)}
.rl-icon .rl-badge{position:absolute;left:0;top:0;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 10px;border-radius:999px;background:#fff;color:#0f172a;box-shadow:0 8px 22px rgba(2,6,23,.45);font:800 clamp(.85rem,1.25vw,1.05rem)/1 var(--font)}
.rl-icon .rl-badge svg{position:static;width:26px;height:22px;filter:none}
.rl-icon .rl-badge rect{fill:#334155}
.rl-icon .rl-badge .slash{stroke:#ef4444;stroke-width:3.2;stroke-linecap:round;fill:none}
.rl-icon .rl-badge .tri{fill:#f59e0b}.rl-icon .rl-badge .mark{stroke:#451a03;stroke-width:2.6;stroke-linecap:round;fill:none}
.rl-icon .rl-badge.ok{background:var(--ok);color:#fff}
.rl-icon .rl-badge.ok svg{width:20px;height:20px}
.rl-icon .rl-badge.ok path{stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rl-icon .rl-ic-pain.rl-badge,.rl-icon .rl-ic-ok.rl-badge{transform-origin:left center}
.rl-icon .rl-badge .wedge{fill:#e2e8f0;stroke:#334155;stroke-width:2;stroke-linejoin:round}
.rl-icon .rl-badge .xbg{fill:#ef4444}
.rl-icon .rl-badge .x{stroke:#fff;stroke-width:2.2;stroke-linecap:round;fill:none}
.rl-icon .rl-badge svg{flex:none}
/* the owner's NO SIGNAL tile: white Wi-Fi arcs + slash, the words beneath, one colour on a dark glass tile */
.rl-icon .rl-badge.rl-tile{flex-direction:column;gap:4px;padding:10px 14px 9px;border-radius:14px;background:rgba(15,23,42,.62);backdrop-filter:blur(3px);color:#fff;box-shadow:0 8px 22px rgba(2,6,23,.35)}
.rl-icon .rl-badge.rl-tile svg{width:46px;height:38px}
.rl-icon .rl-badge.rl-tile path{stroke:#fff;stroke-width:3.4;stroke-linecap:round;fill:none}
.rl-icon .rl-badge.rl-tile .dot{fill:#fff}
.rl-icon .rl-badge.rl-tile .cut{stroke-width:3.8}
.rl-icon .rl-badge.rl-tile b{font:900 .8rem/1 var(--font);letter-spacing:.12em}
.rl-icon.rl-right .rl-badge{left:auto;right:0}
.rl-icon.rl-right .rl-ic-pain.rl-badge,.rl-icon.rl-right .rl-ic-ok.rl-badge{transform-origin:right center}
.rl-icon .rl-badge.rl-tile.ok{background:rgba(22,163,74,.9)}
.rl-icon .rl-badge.rl-tile.ok svg{width:30px;height:30px}
.rl-icon .rl-badge.rl-tile.ok b{white-space:normal;width:6.8em;text-align:center;line-height:1.15;letter-spacing:.04em;text-transform:uppercase}
.rl-icon .rl-badge.rl-tile circle{stroke:#fff;stroke-width:3.4;fill:none}
.rl-icon .rl-badge.rl-tile .gap{stroke-dasharray:3 3;opacity:.75}
.rl-icon .rl-badge.rl-tile b{max-width:9em;white-space:normal;text-align:center;line-height:1.15}
