/* fx/houses: "Onde o gato mora" (#open), security items by mode (#seguranca) and the FAQ switch (#faq).
   Default (no JS / reduced motion) = final state. */

/* ---------- shared ---------- */
.hs-wrap { max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--focus); }
.hs-h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.hs-sub { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.hs-broken { visibility: hidden; }
.hs-lnk {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; box-sizing: border-box;
  border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.hs-lnk:hover { opacity: .88; }

/* ---------- #open: two houses ---------- */
#open .hs-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(70px, 8vw, 92px); }
.hs-houses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.hs-col { min-width: 0; display: flex; }
.hs-card {
  --ink-c: #fff; --ink-c2: rgba(255, 255, 255, .8); --chip-bg: #f5c26b; --chip-ink: #3a2606; --mark: rgba(255, 255, 255, .18);
  position: relative; flex: 1; display: flex; flex-direction: column; box-sizing: border-box; min-width: 0;
  border-radius: 32px; padding: 124px 32px 32px; color: var(--ink-c);
  transform: scale(.985); box-shadow: 0 0 0 0 transparent;
  transition: transform .45s cubic-bezier(.34, 1.3, .64, 1), box-shadow .45s;
}
.hs-pc .hs-card { background: #1f3f78; }
.hs-cloud .hs-card {
  background: #8ab4f8; --ink-c: #0d2147; --ink-c2: rgba(13, 33, 71, .82); --chip-bg: #0d2147; --chip-ink: #fff; --mark: rgba(13, 33, 71, .14);
}
/* the card of the current mode: lifted, with a ring */
html[data-ty-mode="local"] .hs-pc .hs-card,
html[data-ty-mode="host"] .hs-cloud .hs-card { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--canvas), 0 0 0 7px var(--focus), 0 26px 44px rgba(15, 25, 60, .22); }
.hs-ill { position: absolute; z-index: 2; top: -74px; right: 18px; width: 214px; height: 214px; transform: rotate(var(--tilt, 0deg)); pointer-events: none; }
.hs-ill img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(10, 20, 50, .26)); }
.hs-label { position: absolute; top: 30px; left: 32px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hs-big { position: relative; display: flex; align-items: flex-end; height: clamp(64px, 8vw, 96px); margin: 0 0 22px; padding-top: 0; }
.hs-big b { display: block; font-weight: 300; letter-spacing: -.05em; line-height: .95; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-pc .hs-big b { font-size: clamp(64px, 8vw, 96px); }
.hs-cloud .hs-big b { font-size: clamp(36px, 4.2vw, 56px); padding-bottom: .06em; }
.hs-chip {
  position: absolute; z-index: 2; top: -22px; left: -6px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  transform: rotate(var(--tilt, 0deg)); transform-origin: 0 100%;
}
.hs-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.hs-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--ink-c); }
.hs-list .hs-mk { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 50%; background: var(--mark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.hs-list .hs-no { color: var(--ink-c2); }
.hs-list .hs-no .hs-mk { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 14px; }
.hs-btns { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hs-btn { border-color: transparent; }
.hs-pc .hs-btn-main { background: #fff; color: #0d2147; }
.hs-pc .hs-btn-alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hs-cloud .hs-btn-main { background: #0d2147; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .hs-card:hover .hs-ill { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
}

/* demo strip */
.hs-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 28px clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 36px); border-radius: 32px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px;
}
.hs-demo-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hs-demo-copy h3 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.hs-demo-copy p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.hs-win { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--sub); min-width: 0; }
.hs-win-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.hs-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hs-win-bar span { margin-left: 8px; font-size: 11px; color: var(--ink3); }
.hs-win img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }

@media (max-width: 860px) {
  .hs-houses { grid-template-columns: 1fr; gap: 88px 0; }
  .hs-demo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  #open .hs-head { margin-bottom: 78px; }
  .hs-houses { gap: 84px 0; }
  .hs-card { border-radius: 26px; padding: 96px 22px 24px; }
  .hs-ill { width: 156px; height: 156px; top: -64px; right: 10px; }
  .hs-label { top: 26px; left: 22px; font-size: 11.5px; }
  .hs-list li { font-size: 15px; }
  .hs-demo { border-radius: 26px; padding: 18px; }
}

/* ---------- #seguranca: item sets ---------- */
.hs-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.hs-sec-head > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.hs-sec-head > div:last-child { margin-bottom: 6px; }
.hs-sec-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hs-item { display: flex; gap: 14px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; box-sizing: border-box; }
.hs-ok { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--okbg); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.hs-item .hs-t { font-size: 16px; font-weight: 700; }
.hs-item .hs-d { font-size: 14px; line-height: 1.5; color: var(--ink2); margin-top: 3px; }
.hs-item .hs-src { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--focus); text-decoration: none; }
.hs-item .hs-src:hover { text-decoration: underline; opacity: 1; }
@media (min-width: 600px) {
  .hs-sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-sec-grid .hs-item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hs-sec-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hs-sec-grid .hs-item { grid-column: span 2; }
  .hs-sec-grid .hs-item:nth-child(n + 4) { grid-column: span 3; }
}
.hs-code {
  position: relative; display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: 16px; padding: 18px 28px 18px 112px;
  border-radius: 24px; background: #1f3f78; color: #fff; box-sizing: border-box; min-height: 88px;
}
.hs-code .hs-code-ill { position: absolute; left: 16px; top: 50%; width: 84px; height: 84px; margin-top: -48px; transform: rotate(-7deg); pointer-events: none; }
.hs-code .hs-code-ill img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(10, 20, 50, .3)); }
.hs-code p { margin: 0; flex: 1 1 320px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.hs-code p b { color: #fff; font-weight: 800; }
.hs-code .hs-lnk { background: #fff; color: #0d2147; border-color: transparent; }
@media (max-width: 560px) {
  .hs-code { padding: 18px 20px 20px 20px; padding-top: 52px; margin-top: 26px; }
  .hs-code .hs-code-ill { left: 16px; top: -26px; margin-top: 0; width: 84px; height: 84px; }
}

/* ---------- #faq ---------- */
.hs-faq-sw { margin-top: 6px; }
.hs-faq-sw .mode-sw { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hs-card { transition: none; }
}
@media (max-width: 420px) {
  .hs-sec-head .mode-sw .mode-tag, .hs-faq-sw .mode-sw .mode-tag { display: none; }
  .hs-sec-head .mode-sw, .hs-faq-sw .mode-sw { display: grid; width: 100%; }
}
