/*
  The public page of b-free.pt (phase 16, owner 2026-10-18). Every colour is a variable the page
  writes from the theme (BFreeTheme), in both modes; nothing here chooses one, except the red of
  «byte», which is the company's and the same everywhere.
*/
@font-face { font-family: Inter; src: url(_content/BFree.UI/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Sniglet; src: url(_content/BFree.UI/fonts/sniglet-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: BioRhyme; src: url(_content/BFree.UI/fonts/biorhyme-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Comfortaa; src: url(_content/BFree.UI/fonts/comfortaa-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root { --soft: rgba(128,128,128,.14); --muted-text: color-mix(in srgb, var(--text) 72%, transparent); }
:root[data-theme="dark"] { --shadow: 0 2px 10px rgba(0,0,0,.6); }
:root[data-theme="light"] { --shadow: 0 2px 10px rgba(0,0,0,.08); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.55 Inter, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.up { color: var(--gain); }
.down { color: var(--loss); }
.accent { color: var(--accent); font-weight: 600; }

/* Top bar */
header { position: sticky; top: 0; z-index: 10; background: var(--window); border-bottom: 1px solid var(--lines); box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; }
.words { display: flex; flex-direction: column; align-items: center; gap: 2px; }
/* The letter-spacing follows the last letter too; taken back so the name sits centred over the slogan. */
.name { font-family: Sniglet, "Segoe UI", sans-serif; font-size: 1.8rem; letter-spacing: .14em; margin-right: -.14em; color: var(--accent); line-height: 1; white-space: nowrap; }
.slogan { font-family: BioRhyme, Georgia, serif; font-size: .62rem; color: var(--accent); white-space: nowrap; line-height: 1.2; }
.menu { display: flex; gap: 2px; margin-left: 12px; }
.menu a { padding: 8px 9px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.menu a:hover { color: var(--accent); background: var(--soft); }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lines); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text); font-size: 18px; list-style: none; }
.round::-webkit-details-marker { display: none; }
.round img { width: 24px; height: 24px; border-radius: 50%; }
.languages { position: relative; }
.language-list { position: absolute; right: 0; top: 48px; background: var(--window); border: 1px solid var(--lines); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: grid; gap: 2px; min-width: 170px; }
.language-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.language-list a:hover { background: var(--soft); }
.language-list a.chosen { color: var(--accent); font-weight: 600; }
.language-list img { width: 20px; height: 20px; border-radius: 50%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid var(--accent); white-space: nowrap; }
.btn.filled { background: var(--accent); color: var(--on-accent); }
.btn.outlined { background: transparent; color: var(--accent); }
.btn.big { height: 48px; padding: 0 26px; font-size: 1rem; }

/* Opening */
.hero { padding: 72px 24px 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: BioRhyme, Georgia, serif; color: var(--accent); font-size: 1rem; }
h1 { font-size: 3rem; line-height: 1.12; margin: 12px 0 18px; font-weight: 700; }
.lead { color: var(--muted-text); font-size: 1.15rem; max-width: 34rem; }
.cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; margin-top: 26px; color: var(--muted-text); font-size: .9rem; flex-wrap: wrap; }
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.shot { background: var(--window); border: 1px solid var(--lines); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.shot-top { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--lines); }
.shot-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--lines); }
.shot-body { display: grid; grid-template-columns: 120px 1fr; min-height: 320px; }
.shot-side { background: var(--deep); padding: 14px 10px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid var(--lines); }
.shot-side b { height: 8px; border-radius: 4px; background: rgba(128,128,128,.3); }
.shot-side b.on { background: var(--accent); width: 70%; }
.shot-main { padding: 16px; background: var(--page); display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); align-content: start; }
.kpi { background: var(--window); border: 1px solid var(--lines); border-radius: 10px; padding: 10px; min-width: 0; }
.kpi small { display: block; color: var(--muted-text); font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi strong { font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi em { font-style: normal; font-size: .7rem; }
.chart { grid-column: span 3; background: var(--window); border: 1px solid var(--lines); border-radius: 10px; padding: 12px; display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.chart div { flex: 1; border-radius: 4px 4px 0 0; }
.ringbox { background: var(--window); border: 1px solid var(--lines); border-radius: 10px; display: grid; place-items: center; }
.ring { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--g1) 0 34%, var(--g2) 0 55%, var(--g3) 0 72%, var(--g4) 0 88%, var(--g5) 0 100%); -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%); mask: radial-gradient(circle, transparent 55%, #000 56%); }
.ring.big { width: 120px; height: 120px; }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--window); border-top: 1px solid var(--lines); border-bottom: 1px solid var(--lines); }
h2 { font-size: 2rem; margin: 0 0 10px; }
.sub { color: var(--muted-text); margin: 0 0 36px; max-width: 46rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.tag.soon { color: var(--muted-text); border-color: var(--lines); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--page); border: 1px solid var(--lines); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.window, .trustgrid .card { background: var(--window); }
.card-head { display: flex; align-items: center; gap: 16px; }
.big-icon { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.big-icon svg { width: 34px; height: 34px; }
.card-head h3, .card h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--text); }
.card p { margin: 0; color: var(--muted-text); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted-text); }
.card ul li { margin: 4px 0; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .95rem; }

.module-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.module-head h2 { margin: 0 0 4px; }
.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; margin-bottom: 36px; }
.panel { background: var(--window); border: 1px solid var(--lines); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.alt .panel { background: var(--page); }
.panel h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-text); font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--lines); font-size: .92rem; }
.row:last-child { border-bottom: none; }
.row > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-label { margin-top: 14px; font-size: .85rem; color: var(--muted-text); }
.meter { height: 8px; border-radius: 4px; background: rgba(128,128,128,.2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.stack { display: grid; gap: 16px; min-width: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ring-side { display: grid; place-items: center; gap: 10px; }
.legend { display: grid; gap: 6px; font-size: .85rem; color: var(--muted-text); }
.legend.inline { grid-auto-flow: column; justify-content: start; gap: 18px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.check { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 5px 0; }
.ok { color: var(--gain); font-weight: 600; }
.ko { color: var(--loss); font-weight: 600; text-align: right; }
.goal { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.gauge { position: relative; width: 128px; height: 128px; }
.gauge-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--g5) 0 38%, rgba(128,128,128,.2) 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-text strong { font-size: 1.6rem; line-height: 1; }
.gauge-text small { color: var(--muted-text); font-size: .78rem; margin-top: 4px; }
svg.line { width: 100%; margin-top: 14px; }
svg.line text { fill: var(--muted-text); font: 10px Inter, sans-serif; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--window); border: 1px solid var(--lines); border-radius: 12px; padding: 18px; display: flex; gap: 14px; }
.alt .feat { background: var(--page); }
.feat .mini { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.feat .mini svg { width: 22px; height: 22px; }
.feat h5 { margin: 0 0 4px; font-size: 1rem; }
.feat p { margin: 0; color: var(--muted-text); font-size: .9rem; }
.feat-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; margin: 28px 0 12px; }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; align-self: flex-start; padding: 8px 14px; border: 1px solid var(--lines); border-radius: 10px; background: var(--window); color: var(--text); font-size: .85rem; line-height: 1.2; }
.store svg { width: 22px; height: 22px; flex: 0 0 22px; }
.store small { display: block; color: var(--muted-text); font-size: .7rem; }
.store.off { opacity: .55; }
a.store:hover { border-color: var(--accent); }
.note { color: var(--muted-text); font-size: .85rem; margin-top: 18px; }

.periods { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--lines); border-radius: 10px; padding: 4px; margin-bottom: 28px; background: var(--window); }
.periods button { border: 0; background: transparent; color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .9rem; }
.periods button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price { background: var(--window); border: 1px solid var(--lines); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.price.best { border: 2px solid var(--accent); }
.price .tag { align-self: flex-start; }
.price h3 { margin: 0; }
.price .amount { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: .9rem; color: var(--muted-text); font-weight: 400; }
.price .per-month { display: block; font-size: .85rem; font-weight: 400; color: var(--muted-text); }
.price .undecided { font-size: 1.1rem; color: var(--muted-text); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 0; color: var(--muted-text); font-size: .92rem; }
.price li { padding: 5px 0; }
.price li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.price .btn { margin-top: auto; }
.compare { margin-top: 28px; background: var(--window); border: 1px solid var(--lines); border-radius: 12px; padding: 16px 20px; }
.compare summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.compare-scroll { overflow-x: auto; margin-top: 14px; }
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 9px 10px; border-bottom: 1px solid var(--lines); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare thead th { border-bottom: 2px solid var(--accent); }

.trustgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
#perguntas details { background: var(--window); border: 1px solid var(--lines); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
#perguntas summary { cursor: pointer; font-weight: 600; }
#perguntas details p { color: var(--muted-text); margin: 10px 0 0; }
.final { text-align: center; }
.final .sub { margin: 0 auto 8px; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--lines); padding: 28px 0 22px; color: var(--muted-text); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 4px; flex-wrap: wrap; }
.foot-links a { padding: 4px 10px; }
.foot-links a:hover, .theme-link:hover { color: var(--accent); }
.theme-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 10px; }
.peta { font-family: Comfortaa, sans-serif; }
.peta b { font-weight: 400; color: var(--peta); }
.peta i { font-style: normal; color: #FF0000; }

/* Shown only where the whole bar fits, in the longest language (French). */
@media (max-width: 1240px) { .menu { display: none; } }
@media (max-width: 960px) {
  .hero, .showcase, .cards, .groups, .features { grid-template-columns: 1fr; }
  .apps, .prices, .trustgrid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.3rem; }
}
@media (max-width: 600px) {
  .apps, .prices, .trustgrid, .duo { grid-template-columns: 1fr; }
  .goal { grid-template-columns: 1fr; justify-items: center; }
  /* The bar holds the mark, the language and «Entrar»; creating an account and the theme are
     on the page itself — the opening and the last section. */
  .right .btn.filled, #bf-theme { display: none; }
  .right .btn { padding: 0 12px; }
  .brand img { width: 36px; height: 36px; }
  .name { font-size: 1.45rem; }
  .slogan { font-size: .5rem; }
  .bar { gap: 12px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 16px; }
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .shot-main { grid-template-columns: 1fr 1fr; }
  .chart { grid-column: span 2; }
  .ringbox { display: none; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
