/* opa.menu — página pública Funcionalidades (funcionalidades/index.php, DM-520 parte 2, 30/11/2026). Camada do site: carrega
   depois de opa-tokens.css, landing.css e home.css e reaproveita os componentes da home (topo, botões, seções, telas reais,
   selo de plano, fechamento e rodapé). Aqui fica só o que é da página, com prefixo .fx-: abertura, índice dos grupos, grupos de
   funções (texto ao lado das telas reais), integrações, tabela dos planos e o botão de contorno sobre o claro.
   Só tokens da marca (teto 0 de cores literais); raios: controles 12, cartões 16, selo pequeno 6; nada em pílula. */

/* ---------- Abertura ---------- */
.fx-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(128px, 14vw, 168px) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(55% 60% at 80% 40%, rgba(var(--opa-primary-rgb), .16), transparent 72%),
    radial-gradient(120% 70% at 62% 38%, color-mix(in srgb, var(--hp-noite) 94%, var(--opa-on-ink)) 0%, var(--hp-noite) 60%); }
.fx-hero :focus-visible, .fx-int :focus-visible { outline-color: var(--opa-on-ink); }
.fx-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.fx-hero-copy h1 { margin: 0; font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.fx-hero-copy h1 span { display: block; }
.fx-hero-copy h1 span + span { margin-top: .04em; color: var(--opa-on-ink-secondary); }
.fx-hero-lead { max-width: 46ch; }
.fx-hero-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--opa-on-ink-secondary); }
/* Telas reais: o painel de pedidos e, por cima, o produto no celular do cliente */
.fx-hero-art { position: relative; padding: 0 0 clamp(28px, 4vw, 48px) clamp(36px, 6vw, 84px); }
.fx-hero-panel { border-color: color-mix(in srgb, var(--opa-on-ink) 14%, transparent); box-shadow: 0 40px 90px -40px rgba(var(--opa-ink-rgb), .95), 0 0 0 1px color-mix(in srgb, var(--opa-on-ink) 6%, transparent); }
.fx-hero-panel img { aspect-ratio: 1600 / 1296; }
.fx-hero-phone { position: absolute; left: 0; bottom: 0; width: clamp(110px, 25%, 176px); container-type: inline-size;
  filter: drop-shadow(0 28px 40px rgba(var(--opa-ink-rgb), .7)); }

/* ---------- Índice dos grupos ---------- */
.fx-index { padding: clamp(40px, 5vw, 64px) 0; }
.fx-index-title { margin: 0 0 20px; font-size: 13px; font-weight: 800; letter-spacing: var(--opa-tracking-label); text-transform: uppercase; color: var(--opa-text-secondary); }
.fx-index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-index-list a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; height: 100%;
  padding: 18px 18px 16px; border-radius: var(--opa-radius-card); border: 1px solid var(--opa-border); background: var(--opa-background); color: var(--opa-text);
  transition: border-color var(--opa-duration), box-shadow var(--opa-duration), transform var(--opa-duration); }
.fx-index-list a:hover { border-color: var(--opa-text); box-shadow: var(--opa-shadow-sm); transform: translateY(-2px); }
.fx-index-list .hp-ico { grid-row: span 3; width: 40px; height: 40px; padding: 9px; border-radius: var(--opa-radius-control); background: var(--opa-primary-soft); color: var(--opa-primary-action); }
.fx-index-n { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; color: var(--opa-text-secondary); font-variant-numeric: tabular-nums; }
.fx-index-list strong { font-size: 17px; letter-spacing: -.02em; padding-right: 24px; }
.fx-index-list small { font-size: 13.5px; line-height: 1.4; color: var(--opa-text-secondary); }
.fx-index-list em { margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--opa-primary-action); }

/* ---------- Grupos: título e telas reais de um lado, funções do outro ---------- */
.fx-head { max-width: 640px; }
.fx-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--opa-primary-action); }
.fx-eyebrow span { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--opa-primary-soft); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fx-eyebrow .hp-tag { margin-left: 0; letter-spacing: 0; text-transform: none; }
.fx-group .hp-sec-title { font-size: clamp(30px, 3.4vw, 48px); }
.fx-group-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.fx-aside { position: sticky; top: 96px; display: grid; gap: clamp(28px, 3vw, 40px); }
.fx-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* duas telas de computador: a primeira grande, a segunda menor, alinhada à direita; com celular, celular ao lado */
.fx-shots:has(.fx-shot-phone):not(.fx-shots-phones) { grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); align-items: end; }
.fx-shots-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.fx-shots .fx-shot:not(.fx-shot-phone) + .fx-shot:not(.fx-shot-phone) { width: 78%; margin-left: auto; }
.fx-shot .hp-shot-frame img { aspect-ratio: 1200 / 750; }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.fx-feat { padding: 22px 0 24px; border-top: 1px solid var(--opa-border); }
.fx-feat h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.fx-feat h3 .hp-tag { vertical-align: 2px; }
.fx-feat p { margin: 0; font-size: 15px; line-height: 1.58; color: var(--opa-text-secondary); }

/* ---------- Integrações (faixa escura) ---------- */
.fx-int { background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--opa-ink) 86%, var(--opa-on-ink)) 0%, var(--opa-ink) 72%); color: var(--opa-on-ink); }
.fx-int .hp-sec-lead { color: var(--opa-on-ink-secondary); }
.fx-int .fx-eyebrow { color: var(--opa-primary-on-ink); }
.fx-int .fx-eyebrow span { background: rgba(var(--opa-primary-rgb), .18); }
.fx-int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
.fx-int-card { padding: 24px 22px; border-radius: var(--opa-radius-card); background: var(--opa-ink-raised); border: 1px solid var(--opa-on-ink-border); }
.fx-int-card h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.02em; }
.fx-int-card p { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--opa-on-ink-secondary); }
.fx-int .fx-shot { max-width: 880px; margin: 0 auto; }
.fx-int .hp-shot-frame { border-color: var(--opa-on-ink-border); }
.fx-int .fx-shot figcaption { color: var(--opa-on-ink-secondary); text-align: center; }

/* ---------- Planos: tabela da configuração ---------- */
.fx-plans .fx-head { margin-bottom: clamp(32px, 4vw, 48px); }
.fx-table-wrap { overflow-x: auto; border: 1px solid var(--opa-border); border-radius: var(--opa-radius-card); background: var(--opa-background); -webkit-overflow-scrolling: touch; }
.fx-table-wrap:focus-visible { outline: 2px solid var(--opa-primary-action); outline-offset: 2px; }
.fx-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.fx-table th, .fx-table td { padding: 14px 18px; border-bottom: 1px solid var(--opa-border); text-align: center; vertical-align: middle; }
.fx-table tbody th { text-align: left; font-weight: 600; line-height: 1.4; }
.fx-table thead th { position: sticky; top: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; background: var(--opa-surface); }
.fx-table thead th:first-child { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: var(--opa-tracking-label); text-transform: uppercase; color: var(--opa-text-secondary); }
/* primeira coluna fixa ao deslizar a tabela no celular */
.fx-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--opa-background); width: 40%; box-shadow: 1px 0 0 var(--opa-border); }
.fx-table thead th:first-child { z-index: 2; background: var(--opa-surface); }
.fx-table tbody tr:hover th, .fx-table tbody tr:hover td { background: var(--opa-surface); }
.fx-row-price td { font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-yes { display: inline-grid; place-items: center; color: var(--opa-success); }
.fx-yes .hp-ico { width: 20px; height: 20px; stroke-width: 2.4; }
.fx-no { color: var(--opa-border-strong); font-weight: 700; }
.fx-table tfoot th, .fx-table tfoot td { border-bottom: 0; padding-top: 18px; padding-bottom: 18px; }
.fx-table tfoot .hp-btn { min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.fx-btn-line { background: var(--opa-background); color: var(--opa-text); border-color: var(--opa-border-strong); }
.fx-btn-line:hover { border-color: var(--opa-text); }
.fx-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; line-height: 1.5; color: var(--opa-text-secondary); }
.fx-rules li { display: flex; gap: 10px; align-items: flex-start; }
.fx-rules .hp-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--opa-primary-action); }

/* ---------- Telas menores ---------- */
@media (max-width: 1200px) {
  .fx-index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .fx-hero-in { grid-template-columns: minmax(0, 1fr); }
  .fx-hero-art { max-width: 620px; }
  .fx-group-in { grid-template-columns: minmax(0, 1fr); }
  .fx-aside { position: static; }
  .fx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-shots { max-width: 680px; }
}
@media (max-width: 760px) {
  .fx-hero { padding-top: 112px; }
  .fx-hero-copy h1 { font-size: clamp(36px, 10.4vw, 56px); }
  .fx-hero .hp-ctas { flex-wrap: wrap; }
  .fx-hero .hp-ctas .hp-btn { flex: 1 1 auto; }
  .fx-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fx-index-list a { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .fx-index-list .hp-ico { grid-row: auto; width: 34px; height: 34px; padding: 7px; margin-bottom: 8px; }
  .fx-index-n { top: 14px; right: 14px; }
  .fx-index-list small { display: none; }
  .fx-index-list em { margin-top: 4px; }
  .fx-list { grid-template-columns: minmax(0, 1fr); }
  .fx-feat { padding: 18px 0 20px; }
  .fx-int-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fx-rules { grid-template-columns: minmax(0, 1fr); }
  /* Tabela no celular: cada recurso vira um bloco (nome em cima, um quadro por plano embaixo), com os nomes dos planos fixos
     no alto enquanto a lista rola. Sem rolagem lateral. */
  .fx-table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .fx-table, .fx-table thead, .fx-table tbody, .fx-table tfoot { display: block; min-width: 0; }
  .fx-table tr { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .fx-table th, .fx-table td { padding: 10px 6px; font-size: 13.5px; }
  .fx-table th:first-child { position: static; width: auto; box-shadow: none; background: none; }
  .fx-table thead { position: sticky; top: 66px; z-index: 3; }  /* abaixo do topo fixo (sólido, 66 px) */
  .fx-table thead tr { border-radius: var(--opa-radius-control); background: var(--opa-surface); box-shadow: 0 0 0 1px var(--opa-border); }
  .fx-table thead th { position: static; font-size: 13.5px; line-height: 1.25; background: none; border-bottom: 0; }
  .fx-table thead th:first-child { display: none; }
  .fx-table tbody th[scope="row"], .fx-table tfoot th { grid-column: 1 / -1; padding: 14px 4px 2px; border-bottom: 0; font-size: 14.5px; }
  .fx-table tbody td { border-bottom: 1px solid var(--opa-border); }
  .fx-table tbody tr:hover th, .fx-table tbody tr:hover td { background: none; }
  .fx-table tfoot th { display: none; }
  .fx-table tfoot td { padding: 16px 4px 0; }
  .fx-table tfoot .hp-btn { width: 100%; min-height: 44px; padding: 6px 8px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .fx-index-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-index-list a { transition: none; }
  .fx-index-list a:hover { transform: none; }
}
