/* Ferramentas Floty (12/10/2026) — calculadoras e checklists. Usa só os tokens do /style.css.
   Linguagem: cartões brancos de borda fina, números grandes em Instrument Sans, azul-piscina nos controles,
   amarelo-flutuador (--float) só no número principal de cada resultado. */

[hidden] { display: none !important; }   /* .ft-field e .ft-seg usam display: grid/flex, que venceria o atributo hidden */

.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chip { font: 700 .8rem/1.2 var(--f-ui); color: var(--pool); background: rgba(11,95,134,.07); border: 1px solid rgba(11,95,134,.25); border-radius: 999px; padding: .4rem .75rem; cursor: pointer; }
.ft-chip:hover { background: rgba(11,95,134,.14); }
.ft-chip:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.ft-hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 22px 24px; }
.ft-hero-card h2 { margin: 0 0 .6rem; font: 700 1.05rem var(--f-display); color: #fff; letter-spacing: .02em; }
.ft-hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ft-hero-card li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,.86); font-size: .98rem; }
.ft-hero-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(94,211,224,.22); }

/* layout da ferramenta: entradas à esquerda, resultado à direita (empilha no telemóvel) */
.ft-app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.ft-app.ft-app--larga { grid-template-columns: minmax(0, 1fr); }
.ft-form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 22px; min-width: 0; }
.ft-step { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.ft-step + .ft-step { border-top: 1px solid var(--line); padding-top: 20px; }
.ft-step legend { padding: 0; margin: 0 0 4px; font: 700 1.05rem/1.25 var(--f-display); color: var(--ink); display: flex; gap: .6rem; align-items: center; }
.ft-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pool); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--f-display); }
.ft-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ft-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-field { display: grid; gap: .3rem; min-width: 0; align-content: start; }
.ft-field > label, .ft-lab { font: 700 .8rem/1.25 var(--f-ui); color: var(--deep); }
.ft-field input, .ft-field select {
  font: 600 1rem/1.2 var(--f-ui); padding: .65rem .75rem; border: 1px solid #CFCFCF; border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%; min-width: 0; min-height: 44px;
}
.ft-field input:focus, .ft-field select:focus { outline: 3px solid rgba(11,95,134,.25); border-color: var(--pool); }
.ft-un { position: relative; }
.ft-un input { padding-right: 2.6rem; }
.ft-un i { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); font: 700 .8rem var(--f-ui); color: var(--muted); font-style: normal; pointer-events: none; }
.ft-help { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0; }
.ft-help a { color: var(--pool); }

/* botões de escolha (rádio/caixa com cara de pílula) */
.ft-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-seg label { position: relative; cursor: pointer; }
.ft-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ft-seg span { display: inline-block; padding: .5rem .85rem; border: 1px solid #CFCFCF; border-radius: 999px; font: 700 .86rem/1.2 var(--f-ui); color: var(--ink); background: #fff; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ft-seg label:hover span { border-color: var(--pool); }
.ft-seg input:checked + span { background: var(--pool); border-color: var(--pool); color: #fff; }
.ft-seg input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.ft-seg--meses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ft-seg--meses span { width: 100%; text-align: center; padding: .45rem 0; }

/* resultado */
.ft-res { display: grid; gap: 16px; min-width: 0; }
.ft-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 2.2vw, 22px); min-width: 0; }
.ft-card > h3 { margin: 0 0 .7rem; font: 700 1.12rem/1.25 var(--f-display); }
.ft-card > p { margin: 0 0 .6rem; color: #33464F; }
.ft-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ft-kpi { background: var(--tile); border-radius: 10px; padding: 14px 14px 12px; display: grid; gap: .25rem; align-content: start; min-width: 0; }
.ft-kpi b { font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.1 var(--f-display); color: var(--pool); overflow-wrap: anywhere; }
.ft-kpi span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.ft-kpi--forte { background: var(--deep); }
.ft-kpi--forte b { color: var(--float); }
.ft-kpi--forte span { color: rgba(255,255,255,.78); }
.ft-reco { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.ft-reco img { width: 112px; height: 112px; object-fit: contain; background: var(--tile); border-radius: 10px; }
.ft-reco h4 { margin: 0 0 .25rem; font: 700 1.25rem/1.2 var(--f-display); }
.ft-reco p { margin: 0; color: #33464F; font-size: .95rem; }
.ft-tag { display: inline-block; font: 700 .72rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--pool); background: rgba(11,95,134,.08); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .35rem; }

/* gráfico de 12 meses (barras em CSS) */
.ft-meses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding-top: 18px; }
.ft-mes { display: grid; grid-template-rows: 1fr auto; height: 100%; min-width: 0; }
.ft-mes .b { align-self: end; background: var(--pool); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.ft-mes .b.alt { background: #B9D7E6; }
.ft-mes .b.fora { background: #DADADA; }
.ft-mes .b em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 700 .66rem var(--f-ui); color: var(--muted); font-style: normal; white-space: nowrap; padding-bottom: 2px; }
.ft-mes small { font: 700 .7rem var(--f-ui); color: var(--muted); text-align: center; padding-top: 4px; }
.ft-legenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.ft-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.ft-tab { width: 100%; border-collapse: collapse; font: 600 .9rem/1.4 var(--f-ui); }
.ft-tab th, .ft-tab td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ft-tab thead th { font: 700 .72rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ft-tab td.n, .ft-tab th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-tab tr.on td { background: rgba(245,180,30,.12); font-weight: 800; }
.ft-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .2rem; }
.ft-actions .btn { min-height: 46px; }
.ft-aviso { margin: 0; font-size: .86rem; line-height: 1.5; color: #4A4A4A; border-left: 3px solid var(--float); padding: .55rem .8rem; background: #FFF8E6; border-radius: 0 8px 8px 0; }
.ft-ok { border-left-color: #2E9E6A; background: #EAF7F0; }
.ft-vazio { color: var(--muted); font-size: .95rem; }

/* texto de método, fontes e FAQ */
.ft-passos { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 880px; }
.ft-passos li { counter-increment: p; position: relative; padding: 2px 0 0 3rem; color: #33464F; }
.ft-passos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--pool); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--f-display); }
.ft-passos b { color: var(--ink); }
.ft-passos a, .ft-fontes a, .ft-faq a { color: var(--pool); }
.ft-fontes { font: 600 .9rem/1.6 var(--f-ui); padding-left: 1.2rem; color: var(--muted); max-width: 900px; }
.ft-faq { display: grid; gap: 10px; max-width: 900px; }
.ft-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.ft-faq summary { cursor: pointer; padding: 16px 0; font: 700 1.02rem/1.35 var(--f-display); list-style: none; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; float: right; color: var(--pool); font-size: 1.3rem; line-height: 1; }
.ft-faq details[open] summary::after { content: "–"; }
.ft-faq details p { margin: 0 0 16px; color: #33464F; }

@media (max-width: 960px) {
  .ft-app { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ft-row--2 { grid-template-columns: minmax(0, 1fr); }
  .ft-seg--meses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-reco { grid-template-columns: 76px minmax(0, 1fr); }
  .ft-reco img { width: 76px; height: 76px; }
  .ft-meses { height: 140px; gap: 3px; }
  .ft-mes .b em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-seg span { transition: none; }
}
@media print {
  .lp-header, .site-footer, .final-cta, .ft-actions, .lp-hero .actions { display: none !important; }
  .ft-app { grid-template-columns: minmax(0, 1fr); }
}
