/* Hydra's shared surface, focus and interaction treatments. Markers belong
   to website documents; on panel entries only the access form is selected. */
@media screen {
  body[data-hydra-fx] {
    --site-fx-cap: #222729;
    --site-fx-card: #171a1c;
    --site-fx-line: #373d3f;
    --site-fx-focus: #bef050;
    --site-fx-edge: #718c51;
    --site-fx-tint: #263324;
    --site-fx-action: #bce957;
    --site-fx-action-light: #cefa71;
    --site-fx-action-ink: #1a280a;
    --site-fx-shadow: 0 5px 14px rgb(0 0 0 / 15%);
    --site-fx-hover: 0 5px 15px rgb(0 0 0 / 20%);
  }
  body[data-hydra-fx][data-theme="light"],
  html[data-hydra-console-theme="light"] body[data-hydra-fx="reseller"],
  html:not([data-hydra-console-theme])[data-strimo-admin-theme="light"] body[data-hydra-fx="reseller"] {
    --site-fx-cap: #fff;
    --site-fx-card: #f8faf7;
    --site-fx-line: #cdd6cf;
    --site-fx-focus: #47661c;
    --site-fx-edge: #788e63;
    --site-fx-tint: #edf5e0;
    --site-fx-action: #b1de56;
    --site-fx-action-light: #c1ec6d;
    --site-fx-shadow: 0 4px 12px rgb(30 48 33 / 6%);
    --site-fx-hover: 0 5px 15px rgb(30 48 33 / 10%);
  }

  body[data-hydra-fx="home"] :is(.feature-card,.platform-card,.plan-card,.reseller-card,.ht-card,.legal-dialog),
  body[data-hydra-fx="partners"] .simulator,
  body[data-hydra-fx] .hydra-credit-card,
  body[data-hydra-fx="tools"] .tools-panel,
  body[data-hydra-fx="contact"] :is(.contact-panel,.help-panel),
  body[data-hydra-fx="legal"] :is(.legal-document,.legal-index),
  body[data-hydra-fx="payments"] :is(.payment-plan,.payment-pix),
  body[data-hydra-fx="reseller"] #app > .login,
  body[data-hydra-fx="admin"] #login-screen .hc-login-card {
    border-color: var(--site-fx-line);
    border-radius: 17px;
    background: linear-gradient(165deg,var(--site-fx-cap),var(--site-fx-card) 88px);
    box-shadow: var(--site-fx-shadow);
  }
  body[data-hydra-fx] :is(.hydra-credit-card--featured,.payment-plan-featured) {
    background: linear-gradient(155deg,var(--site-fx-tint),var(--site-fx-card) 65%);
    border-color: var(--site-fx-edge);
  }
  body[data-hydra-fx] .hydra-credit-card.is-selected,
  body[data-hydra-fx="tools"] .playlist-method[aria-pressed="true"] {
    border-color: var(--site-fx-focus);
    box-shadow: inset 0 0 0 1px var(--site-fx-focus);
  }

  /* Keep text and financial/validation statuses in the original hierarchy. */
  body[data-hydra-fx="home"] :is(.feature-icon,.platform-mark),
  body[data-hydra-fx="partners"] .how-icon,
  body[data-hydra-fx="contact"] .shortcut-icon {
    color: var(--site-fx-focus);
    background: var(--site-fx-tint);
  }
  body[data-hydra-fx] :is(.site-header,.legal-site-header),
  body[data-hydra-fx="contact"] .header { border-bottom-color: var(--site-fx-line); }
  body[data-hydra-fx] :is(.main-nav,.legal-nav,.tools-navigation) [aria-current="page"] {
    color: var(--site-fx-focus);
    text-decoration: underline;
    text-underline-offset: .32em;
  }
  body[data-hydra-fx] :is(.faq-list,.faq) details[open] > summary,
  body[data-hydra-fx="reseller"] #app > .login a {
    color: var(--site-fx-focus);
  }
  body[data-hydra-fx="reseller"] #app > .login a { text-underline-offset: .18em; }

  body[data-hydra-fx] :is(.button-primary,.hydra-telegram-link),
  body[data-hydra-fx="tools"] :is(.btn.primary,.site-btn:not(.outline)),
  body[data-hydra-fx="contact"] .button.primary,
  body[data-hydra-fx="payments"] .payment-button:not(.payment-secondary),
  body[data-hydra-fx="reseller"] #app > .login .btn.primary,
  body[data-hydra-fx="admin"] #login-screen .hc-button.primary {
    background: linear-gradient(150deg,var(--site-fx-action-light),var(--site-fx-action));
    color: var(--site-fx-action-ink);
    border-color: var(--site-fx-action);
    box-shadow: inset 0 1px rgb(255 255 255 / 18%);
  }
  body[data-hydra-fx="tools"] .tools-navigation a.active,
  body[data-hydra-fx="tools"] .tools-navigation [aria-current="page"] {
    border-color: var(--site-fx-edge);
    background: var(--site-fx-tint);
    color: var(--site-fx-focus);
  }

  body[data-hydra-fx]:not([data-hydra-fx="admin"],[data-hydra-fx="reseller"])
    :is(a,button,input:not([type="hidden"]),textarea,select,summary,video[controls]):focus-visible,
  body[data-hydra-fx="admin"] #login-screen :is(a,button,input):focus-visible,
  body[data-hydra-fx="reseller"] #app > .login :is(a,button,input):focus-visible {
    outline: 2px solid var(--site-fx-focus);
    outline-offset: 3px;
  }
  body[data-hydra-fx="home"] :is(.platform-card,.plan-card,.ht-card):focus-within,
  body[data-hydra-fx="contact"] .shortcut:focus-visible,
  body[data-hydra-fx="payments"] .payment-plan:focus-within {
    border-color: var(--site-fx-edge);
  }
}

@media screen and (hover:hover) and (pointer:fine) {
  body[data-hydra-fx="home"] :is(.platform-card,.plan-card,.feature-card,.ht-card):hover,
  body[data-hydra-fx="partners"] .simulator:focus-within,
  body[data-hydra-fx] .hydra-credit-card:not(.is-selected):hover,
  body[data-hydra-fx="payments"] .payment-plan:hover,
  body[data-hydra-fx="tools"] .playlist-method:not([aria-pressed="true"]):hover,
  body[data-hydra-fx="contact"] .shortcut:hover {
    border-color: var(--site-fx-edge);
    box-shadow: var(--site-fx-hover);
  }
  body[data-hydra-fx]:not([data-hydra-fx="admin"],[data-hydra-fx="reseller"])
    :is(.main-nav a,.legal-nav a,.legal-index a,.text-link,.ht-video-link,.footer-top a,.help-link,.faq-list summary,.faq summary):hover {
    color: var(--site-fx-focus);
  }
  body[data-hydra-fx] :is(.button-primary,.hydra-telegram-link):not(:disabled,[aria-disabled="true"]):hover,
  body[data-hydra-fx="tools"] .btn.primary:enabled:hover,
  body[data-hydra-fx="contact"] .button.primary:enabled:hover,
  body[data-hydra-fx="payments"] .payment-button:not(.payment-secondary):enabled:hover,
  body[data-hydra-fx="reseller"] #app > .login .btn.primary:enabled:hover,
  body[data-hydra-fx="admin"] #login-screen .hc-button.primary:enabled:hover {
    box-shadow: inset 0 1px rgb(255 255 255 / 28%),0 0 0 3px color-mix(in srgb,var(--site-fx-action) 20%,transparent);
  }
}

@media screen and (prefers-reduced-motion:no-preference) {
  @keyframes hydra-site-title-enter {
    from { opacity: .76; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body[data-hydra-fx="home"] .hero-copy h1,
  body[data-hydra-fx="partners"] .hero-copy h1,
  body[data-hydra-fx="tools"] .tools-intro h1,
  body[data-hydra-fx="contact"] .intro h1,
  body[data-hydra-fx="legal"] .legal-main h1,
  body[data-hydra-fx="reseller"] #app > .login h1,
  body[data-hydra-fx="admin"] #login-screen h1 {
    animation: hydra-site-title-enter .24s ease-out;
  }
  body[data-hydra-fx="home"] :is(.feature-card,.platform-card,.plan-card,.ht-card),
  body[data-hydra-fx] :is(.hydra-credit-card,.button-primary,.hydra-telegram-link),
  body[data-hydra-fx="payments"] :is(.payment-plan,.payment-button),
  body[data-hydra-fx="contact"] :is(.shortcut,.button),
  body[data-hydra-fx="tools"] :is(.playlist-method,.btn),
  body[data-hydra-fx="admin"] #login-screen .hc-button,
  body[data-hydra-fx="reseller"] #app > .login .btn {
    transition: border-color .18s ease,box-shadow .18s ease,transform .16s ease;
  }
  body[data-hydra-fx] :is(.button-primary,.hydra-telegram-link):not(:disabled,[aria-disabled="true"]):active,
  body[data-hydra-fx="tools"] .btn.primary:enabled:active,
  body[data-hydra-fx="payments"] .payment-button:enabled:active,
  body[data-hydra-fx="contact"] .button.primary:enabled:active,
  body[data-hydra-fx="admin"] #login-screen .hc-button.primary:enabled:active,
  body[data-hydra-fx="reseller"] #app > .login .btn.primary:enabled:active {
    transform: translateY(1px);
  }
}

@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body[data-hydra-fx="home"] .platform-card:has(a[href],button:enabled):hover,
  body[data-hydra-fx="partners"] .hydra-credit-card:has(a[href],button:enabled):hover,
  body[data-hydra-fx="contact"] .shortcut:hover {
    transform: translateY(-2px);
  }
}
