/* Candidate 026 — Home and Results visual logic.
   One causal story per scene; navigation remains separate from explanation. */

.screen-readable-detail{display:none!important}

/* Preserve the complete consultation photograph and real LCD plane at every width. */
html #acasa .home-pos-stage {height:auto!important;min-height:0!important;aspect-ratio:auto!important}
html #acasa .home-pos-stage>picture {position:relative!important;display:block!important;height:auto!important}
html #acasa .home-pos-stage>picture>img {position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important;transform:none!important}
@media(min-width:901px){
  html #acasa.td-hero {display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);align-items:center;gap:32px;min-height:0;padding:48px clamp(24px,4vw,64px);background:var(--bg)}
  html #acasa.td-hero>.td-copy {position:relative;width:auto;max-width:none;padding:0;z-index:auto}
  html #acasa.td-hero .td-copy h1 {font-size:clamp(32px,3.5vw,52px);line-height:1.05}
  html #acasa.td-hero>.td-media-hero {position:relative;inset:auto;z-index:auto;width:100%;height:auto;aspect-ratio:auto;align-self:center;overflow:hidden}
  html #acasa.td-hero>.td-media-hero::before,html #acasa.td-hero>.td-media-hero::after {display:none!important}
  html #acasa.td-hero .td-media-hero figcaption {position:relative;inset:auto;width:100%;margin:0;padding:16px;background:var(--surface);color:var(--text)}
}
@media(max-width:900px){
  html #acasa .td-media-hero {height:auto!important;aspect-ratio:auto!important}
  html #acasa .screen-readable-detail {display:block!important;margin:24px 0 18px}
}

/* Home: the hero explains one route instead of repeating the service menu. */
#acasa .home-causal-route{
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin:clamp(22px,3vw,34px) 0 18px;
  padding:0;
  list-style:none;
  border-block:1px solid var(--line);
}
#acasa .home-causal-route li{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-width:0;
  padding:16px 16px 16px 0;
  border-bottom:1px solid var(--line);
}
#acasa .home-causal-route li:nth-child(even){padding-left:16px;border-left:1px solid var(--line)}
#acasa .home-causal-route li:nth-last-child(-n+2){border-bottom:0}
#acasa .home-causal-route svg{width:38px;height:38px;fill:none;stroke:var(--accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#acasa .home-causal-route b{display:block;color:var(--text);font-size:.86rem;line-height:1.25}
#acasa .home-causal-route small{display:block;margin-top:4px;color:var(--muted);font-size:.7rem;line-height:1.4}

/* The photographed POS must carry the story itself, including on phones. */
@media(max-width:900px){
  #acasa .td-media-hero{max-height:none!important}
  #acasa .home-pos-stage{min-height:0!important}
  #acasa .home-causal-route{grid-template-columns:1fr;margin-top:20px}
  #acasa .home-causal-route li,
  #acasa .home-causal-route li:nth-child(even){padding:14px 0;border-left:0;border-bottom:1px solid var(--line)}
  #acasa .home-causal-route li:last-child{border-bottom:0}
  #acasa .home-causal-route li:nth-last-child(2){border-bottom:1px solid var(--line)}
}

/* Results hero: two real displays, two distinct roles, no duplicate text card. */
html .results-role-story>.results-proof-hero{background:#111715}
html .results-role-story>.results-proof-hero>picture{display:block;width:100%;overflow:hidden}
html .results-role-story>.results-proof-hero>picture>img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
  object-fit:cover;
  object-position:center;
}
html .results-role-story .results-screen{
  padding:24px!important;
  gap:24px!important;
  border:0!important;
  background:#071d18!important;
  color:#f2fbf7!important;
  box-shadow:inset 0 0 0 2px rgba(116,237,181,.12)!important;
}
html .results-role-story .results-screen>span{color:#9ac9b4!important}
html .results-role-story .results-screen>small{color:#75edb5!important}
html .results-role-story .results-proof-hero figcaption{
  border-top:1px solid var(--line);
  background:var(--surface)!important;
}

/* Production progress: credible hardware and physical cables are the diagram. */
.results-production-photo{
  position:relative!important;
  display:block!important;
  align-self:start!important;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  overflow:hidden!important;
  background:#090e0c!important;
}
.results-production-photo picture,
.results-production-photo picture img{display:block;width:100%;height:auto}
.results-production-photo picture img{object-fit:cover;object-position:center}
.production-device-labels{position:absolute;z-index:2;inset:0 0 58px;pointer-events:none}
.production-device-labels span{
  position:absolute;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:1px 9px;
  min-width:150px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.52);
  background:rgba(6,13,11,.9);
  color:#f4faf7;
  box-shadow:0 12px 34px rgba(0,0,0,.3);
}
.production-device-labels b{grid-row:1/3;color:#70eebb;font-size:11px;letter-spacing:.1em}
.production-device-labels strong{font-size:13px;line-height:1.1}
.production-device-labels small{color:#c2d2ca;font-size:10px;line-height:1.2}
.production-device-labels [data-device="source"]{left:4%;top:13%}
.production-device-labels [data-device="rule"]{left:38%;top:11%}
.production-device-labels [data-device="state"]{right:4%;top:12%}
.results-production-photo figcaption{position:relative!important;z-index:3!important;inset:auto!important;padding:13px 16px!important;border-top:1px solid rgba(255,255,255,.14)!important;background:#0d1714!important;color:#dbe9e2!important;font-size:12px!important;line-height:1.5!important}

@media(max-width:700px){
  html .results-role-story>.results-proof-hero>picture{height:auto}
  html .results-role-story>.results-proof-hero>picture>img{width:100%;margin-left:0}
  html .results-role-story .results-proof-hero figcaption{padding:13px 15px!important;font-size:13px!important}
  html .results-role-story .results-screen{padding:20px!important;gap:16px!important}
  .results-production-photo picture img{width:100%;height:auto}
  .production-device-labels{inset:0 0 78px}
  .production-device-labels span{min-width:118px;padding:7px 8px}
  .production-device-labels b{font-size:9px}
  .production-device-labels strong{font-size:11px}
  .production-device-labels small{font-size:8px}
  .production-device-labels [data-device="source"]{left:3%;top:4%}
  .production-device-labels [data-device="rule"]{left:3%;top:34%}
  .production-device-labels [data-device="state"]{right:3%;top:67%}
}

@media(prefers-reduced-motion:reduce){
  #acasa .home-causal-route *,
  .results-production-photo *{animation:none!important;transition:none!important}
}

/* Home problems: real work scenes with one concise, accessible causal strip. */
.problem-story-photo{
  display:block;
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface);
}
.problem-story-photo picture{
  display:block;
  width:100%;
  overflow:hidden;
  background:#0c1411;
}
.problem-story-photo picture img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center;
}
.problem-story-photo__steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid rgba(255,255,255,.16);
  background:#0b1713;
  color:#f3faf6;
}
.problem-story-photo__steps li{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-width:0;
  padding:12px 14px;
  border-right:1px solid rgba(255,255,255,.14);
  font-size:.75rem;
  font-weight:760;
  line-height:1.3;
}
.problem-story-photo__steps li:last-child{border-right:0}
.problem-story-photo__steps b{
  color:#70eebb;
  font-size:.68rem;
  letter-spacing:.11em;
}
.problem-story-photo__steps span{min-width:0;overflow-wrap:normal;word-break:normal}
.problem-story-photo figcaption{
  display:block!important;
  margin:0!important;
  padding:12px 15px 14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  background:var(--surface);
  font-size:.78rem!important;
  font-weight:600!important;
  line-height:1.45!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-transform:none!important;
}

/* Results HoReCa: the photograph shows the real equipment; HTML labels explain the route. */
.sp-scene figure.results-photo--horeca{
  display:block!important;
  align-self:start!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  background:#0b1411;
}
.sp-scene .results-photo--horeca picture{display:block;width:100%;overflow:hidden}
.sp-scene .results-photo--horeca picture img{
  display:block;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center;
}
.results-horeca-route{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid rgba(255,255,255,.16);
  background:#0b1713;
  color:#f3faf6;
}
.results-horeca-route li{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-width:0;
  padding:12px 13px;
  border-right:1px solid rgba(255,255,255,.14);
  font-size:.72rem;
  font-weight:760;
  line-height:1.3;
}
.results-horeca-route li:last-child{border-right:0}
.results-horeca-route b{color:#70eebb;font-size:.66rem;letter-spacing:.1em}
.results-horeca-route span{min-width:0;overflow-wrap:normal;word-break:normal}
.sp-scene .results-photo--horeca figcaption{
  position:static;
  width:100%;
  margin:0;
  padding:13px 16px 15px;
  border-top:1px solid var(--line);
  background:var(--surface);
  color:var(--muted);
  font-size:.78rem;
  line-height:1.45;
}

@media(max-width:900px){
  .problem-story-photo__steps{grid-template-columns:1fr}
  .problem-story-photo__steps li{padding:10px 12px;border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}
  .problem-story-photo__steps li:last-child{border-bottom:0}
  .results-horeca-route{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-horeca-route li:nth-child(2){border-right:0}
  .results-horeca-route li:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.12)}
}

@media(max-width:700px){
  .problem-story-photo picture img{object-position:center center}
  .problem-story-photo figcaption{font-size:.74rem!important}
  .sp-scene .results-photo--horeca picture img{object-position:center center}
  .results-horeca-route li{padding:10px 9px;font-size:.66rem}
}
