/*
 * SAFIR — the public site and the customer area, in the look of the BRF
 * Solutions site: navy, a yellow accent, tight large headings, rounded cards.
 *
 * One stylesheet for both, served as-is so the static landing pages generated
 * at build time and the Vue application share it. No web font file and no
 * third-party request: Inter when the machine has it, the system face
 * otherwise, and the page is readable before anything else loads.
 */

:root {
  --navy: #071220;
  --navy-2: #0c1d35;
  --navy-3: #142b4d;
  --ice: #b9d2f4;
  --ice-2: #e8f2ff;
  --yellow: #ffd84a;
  --cyan: #66e2ef;
  --green: #2cbd85;
  --paper: #f6f8fb;
  --white: #fff;
  --text: #0c1930;
  --muted: #60708a;
  --line: #d9e2ee;
  --bad: #c0362c;
  --shadow: 0 24px 70px rgba(6, 18, 34, .15);
  --radius: 19px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #fff; font-size: 16px; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }

.eyebrow { font-size: 12px; line-height: 1.3; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; color: #3668e8; margin: 0 0 15px; }
.dark .eyebrow, .hero .eyebrow { color: var(--yellow); }
.section-lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 780px; margin-top: 20px; }
.dark .section-lead { color: #c0ccdc; }

/* --- buttons ------------------------------------------------------------ */

.button, button.button {
  border: 0; border-radius: 11px; padding: 14px 19px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 14px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  background: var(--navy); color: #fff;
}
.button:hover { transform: translateY(-2px); }
.button-accent, button.button-accent { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 28px rgba(255, 216, 74, .18); }
.button-accent:hover, button.button-accent:hover { background: #ffe36f; }
.button-ghost, button.button-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.button-outline, button.button-outline { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.button-small { padding: 10px 14px; font-size: 13px; }
.button-full { width: 100%; }
button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
button.link { background: none; border: 0; color: #3668e8; padding: 0; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* --- header --------------------------------------------------------------- */

.site-header {
  height: 82px; padding: 0 clamp(20px, 4.5vw, 72px);
  display: flex; align-items: center; gap: 30px;
  background: rgba(7, 18, 32, .94); color: #fff;
  position: fixed; inset: 0 0 auto; z-index: 30;
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.wordmark { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.wordmark img { width: 124px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { text-decoration: none; color: #ced8e7; font-size: 14px; }
.site-nav a:hover { color: #fff; }
.site-nav a.button { color: var(--navy); }
.lang-switch { display: inline-flex; gap: 9px; font-size: 12px; font-weight: 700; color: #7f90a8; }
.lang-switch a { color: #7f90a8; text-decoration: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch strong { color: #fff; }
.nav-toggle { display: none; background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .3); padding: 8px 12px; border-radius: 10px; cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: var(--navy); padding: 20px clamp(20px, 4.5vw, 72px) 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav.open { display: flex; }
}

/* --- hero ------------------------------------------------------------------- */

.hero {
  background: radial-gradient(circle at 12% 18%, rgba(54, 104, 232, .18), transparent 38%), var(--navy);
  color: #fff; padding: 126px clamp(24px, 5vw, 80px) 62px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: 54px;
  position: relative; overflow: hidden;
}
.hero-copy { align-self: center; max-width: 730px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); font-weight: 300; letter-spacing: -.06em; line-height: .96; }
.hero h1 span { display: block; }
.hero-lead { font-size: clamp(18px, 2vw, 24px); color: #c0ccdc; max-width: 670px; margin: 28px 0; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; list-style: none; padding: 0; }
.chips li { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; color: #d7e0ec; }
.hero-photo {
  position: relative; border-radius: 24px; overflow: hidden; align-self: center;
  height: clamp(520px, calc(100vh - 170px), 720px); box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 18, 32, .92)); }
.hero-photo figcaption { position: absolute; left: 30px; right: 30px; bottom: 26px; z-index: 2; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-photo figcaption b { display: block; color: var(--yellow); }
.hero-photo figcaption span { color: var(--yellow); font-weight: 600; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding: 110px 20px 40px; gap: 32px; }
  .hero-photo { height: 480px; }
}

/* --- sections --------------------------------------------------------------- */

.section { padding: 104px 0; }
.section.alt { background: var(--paper); }
.section.ice { background: #eef7ff; }
.section.dark { background: var(--navy); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.stat b { display: block; font-size: 30px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; list-style: none; padding: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 13px; margin-bottom: 16px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.dark .card { background: linear-gradient(150deg, var(--navy-2), var(--navy-3)); border-color: rgba(255, 255, 255, .1); }
.dark .card p { color: #b8c5d8; }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 44px; list-style: none; padding: 0; }
.module { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px 20px; }
.module p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.module .tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1f8f63; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; list-style: none; padding: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 18px; }
.steps li::before { content: '0' counter(step); display: block; font-weight: 800; color: #3668e8; font-size: 13px; margin-bottom: 10px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 15px; }

@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

/* --- pricing ---------------------------------------------------------------- */

.price-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: center; }
.price-intro h2 span { display: block; }
.price-snapshot {
  width: 390px; background: linear-gradient(150deg, var(--navy), #183969); border-radius: 24px; padding: 19px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: #fff; box-shadow: var(--shadow);
}
.price-snapshot div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px; text-align: center; }
.price-snapshot small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.price-snapshot b { display: block; font-size: 30px; letter-spacing: -.04em; margin-top: 4px; }
.price-snapshot p { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #aab8cb; margin-top: 4px; }
.base-card { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.base-card .big { font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.base-card .big small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }

.presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 14px; }
.presets button { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 10px 14px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; }
.presets button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.calculator { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.calc-controls { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 400; }
.calc-row b { display: block; font-size: 15px; }
.calc-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.calc-row input, .calc-row select { width: 76px; border: 1px solid #cad6e5; border-radius: 10px; padding: 9px 8px; text-align: center; font-weight: 800; font-size: 16px; background: #fff; color: var(--text); }
.calc-row select { width: 130px; text-align: left; }
.calc-row.included b::after { content: ' ✓'; color: var(--green); }
.calc-result {
  background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 21px;
  padding: 25px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-head .plan { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.currency-toggle { display: inline-flex; gap: 4px; }
.currency-toggle button { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #c8d3e3; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.currency-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.result-total { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.result-total .cur { font-size: 18px; font-weight: 800; }
.result-total .amount { font-size: 76px; font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.result-total .per { font-size: 12px; color: #c0ccdc; line-height: 1.3; }
.result-summary { color: #d7e0ec; font-size: 14px; }
.result-lines { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: 13px; color: #c0ccdc; }
.result-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .12); padding-bottom: 6px; }
.result-note { display: block; color: #aab8cb; font-size: 11px; line-height: 1.45; margin-top: 12px; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 14px; }

@media (max-width: 1020px) {
  .price-intro, .calculator { grid-template-columns: 1fr; }
  .price-snapshot { width: min(100%, 430px); }
  .calc-result { position: static; }
  .base-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .calc-controls { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .result-total .amount { font-size: 60px; }
}

/* --- FAQ, CTA, footer ------------------------------------------------------------ */

.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: #3668e8; }
.faq[open] summary::after { content: '–'; }
.faq summary h3 { font-size: 18px; }
.faq p { color: var(--muted); margin-top: 12px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); max-width: 760px; }
.cta-band p { color: #c0ccdc; margin-top: 14px; }

.site-footer { background: var(--navy); color: #c0ccdc; padding: 70px clamp(20px, 4.5vw, 72px) 34px; font-size: 14px; }
.footer-columns { width: min(1180px, 100%); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px; padding-bottom: 46px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column h3 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.footer-column a { color: #c0ccdc; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { width: min(1180px, 100%); margin-inline: auto; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #7f90a8; }
@media (max-width: 800px) { .footer-columns { grid-template-columns: 1fr 1fr; } }

.root-page { background: var(--navy); color: #fff; min-height: 100vh; }
.root-choice { padding: 70px 20px; }
.root-choice .wordmark img { width: 170px; margin: 0 auto 40px; }
.root-choice section { border-top: 1px solid rgba(255, 255, 255, .14); padding: 26px 0; }
.root-choice h2 { font-size: 26px; }
.root-choice p { color: #c0ccdc; margin: 10px 0 16px; }

/* --- customer area ------------------------------------------------------------ */

.app-shell { min-height: 100vh; background: var(--paper); }
.app-main { padding: 120px 20px 80px; }
.app-main.narrow { max-width: 540px; margin: 0 auto; }
.app-main.wide { max-width: 1040px; margin: 0 auto; }
.app-main h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }
.panel h3 { margin: 22px 0 8px; }
.panel.dark-panel { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #fff; border: 0; }
.panel.dark-panel .muted { color: #c0ccdc; }

label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
label .muted { font-weight: 400; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #cad6e5; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid #3668e8; outline-offset: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hint.ok { color: #1f8f63; }
.hint.bad { color: var(--bad); }
.notice { border-radius: 12px; padding: 13px 16px; margin: 0 0 16px; background: var(--ice-2); }
.notice.error { background: #fdecea; color: var(--bad); }
.notice.ok { background: #e3f6ee; color: #17744f; }
.notice.warn { background: #fff5d1; color: #6b5200; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ice-2); color: #2450b8; }
table.history { width: 100%; border-collapse: collapse; font-size: 14px; }
table.history th, table.history td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.history td.num, table.history th.num { text-align: right; white-space: nowrap; }

.configurator { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.configurator .calc-controls { grid-template-columns: 1fr; padding: 4px 20px; }
.configurator .calc-result { top: 100px; }
.segmented { display: inline-flex; gap: 4px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: inline-block; border: 1px solid #cad6e5; border-radius: 9px; padding: 7px 14px; font-weight: 800; font-size: 13px; cursor: pointer; background: #fff; }
.segmented input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.segmented input:focus-visible + span { outline: 2px solid #3668e8; }
.module-group { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 2px; }
@media (max-width: 900px) { .configurator { grid-template-columns: 1fr; } .configurator .calc-result { position: static; } }

.calc-intro { margin-top: 80px; }
.faq-list { margin-top: 30px; }

.app-nav { display: flex; align-items: center; gap: 18px; }
.app-nav a { color: #ced8e7; text-decoration: none; font-size: 14px; }
.config-title { margin-top: 28px; }
.actions-row { margin-top: 16px; }
.dark-panel p + p { margin-top: 10px; }

/* --- announced modules and the package ------------------------------------- */
.calc-row.soon b, .module.soon h3 { color: var(--muted); }
.badge.soon, .tag.soon { background: #fff5d1; color: #6b5200; }
.module .tag.soon { color: #8a6a00; }
.result-lines li.package { color: #fff; font-weight: 800; border-bottom-style: solid; }
.result-lines li.saving { color: var(--yellow); font-weight: 700; }
.price-snapshot .hot { background: var(--yellow); color: var(--navy); }
.price-snapshot .hot small { color: var(--navy); }
.package-card { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #fff; border: 0; margin-top: 16px; }
.package-card .eyebrow { color: var(--yellow); }
.package-card .big small, .package-card .fineprint { color: #c0ccdc; }

/* --- the signup's captcha ----------------------------------------------------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.captcha-box { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid #cad6e5; border-radius: 6px; font-weight: 800; }
.captcha.working .captcha-box { border-color: #3668e8; border-right-color: transparent; border-radius: 50%; animation: captcha-spin .8s linear infinite; }
.captcha.done { color: #17744f; border-color: #bfe6d4; background: #f0faf5; }
.captcha.done .captcha-box { background: var(--green); border-color: var(--green); color: #fff; }
.captcha.failed { color: var(--bad); }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha.working .captcha-box { animation: none; } }
