/* base-erp.eu – Base brand: Skywave blue, Black coal, Be Vietnam Pro + Mulish.
   Sizes follow the approved pen.dev design (~/Documents/baseerp-web.pen, frame 1440 px wide, content 1280 px). */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-800.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url("../fonts/mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-display: swap; src: url("../fonts/mulish-600.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url("../fonts/mulish-700.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 800; font-display: swap; src: url("../fonts/mulish-800.woff2") format("woff2"); }

:root {
  --blue: #2F7DFF;
  --blue-ink: #1F5FD6;
  --blue-soft: #E8F0FF;
  --coal: #0C0212;
  --coal-2: #1B1322;
  --white: #FFFFFF;
  --paper: #F4F4F6;
  --muted: #5A5462;
  --muted-dark: #B9B4C0;
  --line: #E2E1E6;
  --line-dark: #2C2433;
  --ok: #1E9E62;
  --font-head: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--coal); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.022em; }
.h-lg { font-size: clamp(32px, 3.9vw, 48px); }
.h-xl { font-size: clamp(34px, 4.2vw, 52px); }
h3 { letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media (max-width: 1199px) { .wrap { padding: 0 40px; } }
@media (max-width: 699px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.i { width: 18px; height: 18px; flex: none; }

/* Logo lockup: official base. mark + "erp" in Be Vietnam Pro, like Base sub-brands. Design: 118×34 mark, "erp" 45 px. */
.logo { display: inline-flex; align-items: flex-end; gap: 3px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 45px; line-height: 0.74; color: var(--blue); letter-spacing: -0.02em; }
.logo img { height: 34px; width: auto; }
.logo span { transform: translateY(-1px); }

/* Buttons: 48 px high pills, label Mulish 800 16 px. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); font-family: var(--font-body); font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-lg { min-height: 59px; padding: 0 32px; font-size: 18px; }
.btn-ghost, .btn-outline { background: transparent; color: var(--coal); border-color: var(--coal); }
.btn-ghost:hover, .btn-outline:hover { background: var(--coal); border-color: var(--coal); color: var(--white); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn-dark { background: var(--coal); border-color: var(--coal); }
.btn-dark:hover { background: var(--coal-2); border-color: var(--coal-2); }

/* Small labels */
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 16px; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.tag-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag-dark { background: var(--coal); color: var(--white); font-weight: 800; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }

/* Navigation (paper like the hero) */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 244, 246, 0.94); backdrop-filter: saturate(1.4) blur(10px); }
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 224px; }
.nav-login { padding: 0 12px; font-weight: 700 !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--coal); }
.nav-toggle .i { width: 26px; height: 26px; }
@media (max-width: 1199px) { .nav-actions { margin-left: 24px; } }
@media (max-width: 899px) {
  .nav-row { height: 72px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 16px 0 0; }
  .nav-login { padding: 0; text-align: center; border: 0 !important; }
}

/* Hero: text column fills, visual 580 px, gap 64 */
.hero { background: var(--paper); padding: 64px 0 96px; overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 580px; gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero .lead { font-size: 20px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; font-weight: 600; }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes .i { color: var(--blue); }

.hero-visual { position: relative; padding: 0 0 42px 40px; }
.sync-card { display: flex; flex-direction: column; gap: 18px; background: var(--white); border-radius: 28px; box-shadow: 0 24px 60px rgba(12, 2, 18, 0.08); padding: 28px; }
.sync-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sync-head strong { white-space: nowrap; font-family: var(--font-head); font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.pill .i { width: 14px; height: 14px; color: var(--blue); }
.pill .dot { width: 8px; height: 8px; }
.pill-ok { gap: 8px; background: #E7F6EE; color: #13744A; }
.pill-ok .dot { color: var(--ok); }
.pill-wait { background: var(--paper); color: var(--muted); }
.pill-wait .i { color: var(--muted); }
.sync-rows { margin: -18px 0; }
.sync-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sync-rows li:first-child { margin-top: 18px; }
.sync-rows b { display: block; font-weight: 700; line-height: 20px; }
.sync-rows small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 18px; }
.sync-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 0; font-size: 14px; color: var(--muted); }
.sync-foot .i { width: 16px; height: 16px; }
.ai-chip { position: absolute; left: 190px; bottom: 8px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--coal); color: var(--white); font-size: 14px; line-height: 18px; font-weight: 700; box-shadow: 0 12px 30px rgba(12, 2, 18, 0.2); white-space: nowrap; }
.ai-chip .i { color: var(--blue); }
@media (max-width: 1099px) { .hero-visual { max-width: 580px; } }
@media (max-width: 599px) {
  .hero-visual { padding: 0; }
  .sync-card { padding: 20px; border-radius: 24px; }
  .sync-rows li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ai-chip { position: static; margin-top: 16px; white-space: normal; }
}

/* ERP strip */
.erp-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.erp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding-top: 28px; padding-bottom: 28px; }
.erp-label { font-size: 15px; font-weight: 700; color: var(--muted); }
.erp { display: inline-flex; align-items: center; gap: 12px; }
.erp b { font-family: var(--font-head); font-size: 22px; line-height: 28px; }
.erp-soon b { color: var(--muted); }

/* Sections */
.section { background: var(--paper); padding: 112px 0; }
.section-white { background: var(--white); }
.dark { background: var(--coal); color: var(--white); padding: 112px 0; }
.dark .lead { color: var(--muted-dark); }
.title-block { display: flex; flex-direction: column; gap: 16px; }
.dark h2 { letter-spacing: -1px; }

.split-head { display: grid; gap: 24px; align-items: end; margin-bottom: 64px; }
@media (min-width: 1000px) { .split-head { grid-template-columns: minmax(0, 640px) minmax(0, 440px); justify-content: space-between; gap: 64px; } }

.steps { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li + li { border-left: 1px solid var(--line-dark); padding-left: 40px; } }
.steps li { display: flex; flex-direction: column; gap: 20px; padding: 32px 40px 8px 0; }
@media (max-width: 899px) { .steps li { padding: 32px 0; } .steps li + li { border-top: 1px solid var(--line-dark); } }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-no { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 71px; color: var(--blue); }
.icon-box { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--coal-2); color: var(--white); }
.icon-box .i { width: 24px; height: 24px; }
.steps h3 { font-size: 26px; line-height: 33px; }
.steps p { font-size: 17px; line-height: 1.6; color: var(--muted-dark); }
.note-dark { display: inline-flex; align-items: center; gap: 10px; margin-top: 64px; padding: 16px 20px; border-radius: 16px; background: var(--coal-2); font-size: 15px; font-weight: 600; }
.note-dark .i { width: 20px; height: 20px; color: var(--blue); }

/* Modules: intro 460 px, gap 96 */
.modules-grid { display: grid; gap: 56px; }
@media (min-width: 1100px) { .modules-grid { grid-template-columns: 460px minmax(0, 1fr); gap: 96px; align-items: start; } .modules-intro { position: sticky; top: 128px; } }
.modules-intro { display: flex; flex-direction: column; gap: 20px; }
.modules-intro .lead { margin-bottom: 20px; }
.included { display: flex; flex-direction: column; gap: 12px; background: var(--white); border-radius: 20px; padding: 24px; }
.included h3 { font-family: var(--font-body); font-size: 16px; letter-spacing: 0; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 19px; }
.checks .i { color: var(--blue); }
.module { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.module:first-child { padding-top: 0; }
.m-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--coal); }
.m-icon .i { width: 22px; height: 22px; }
.module-base .m-icon { background: var(--blue); color: var(--white); }
.m-body { display: flex; flex-direction: column; gap: 6px; }
.m-body h3 { font-size: 22px; line-height: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-body p { font-size: 16px; color: var(--muted); }
.m-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.m-price b { font-family: var(--font-head); font-size: 22px; line-height: 28px; }
.m-price small { font-size: 13px; color: var(--muted); }
@media (max-width: 599px) {
  .module { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .m-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; }
}

/* Pricing */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.pricing-head .title-block { max-width: 700px; }
.pricing-head h2 { letter-spacing: -1px; }
.currency { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); }
.currency button { padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-body); font-size: 15px; line-height: 19px; font-weight: 800; color: var(--muted); cursor: pointer; }
.currency button[aria-pressed="true"] { background: var(--coal); color: var(--white); }
.plans { display: grid; gap: 20px; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 24px; min-height: 540px; padding: 32px; border-radius: 28px; background: var(--paper); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 24px; line-height: 30px; }
.plan-price { display: flex; flex-direction: column; gap: 4px; }
.plan-price b { font-family: var(--font-head); font-size: 52px; line-height: 1.2; letter-spacing: -1px; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-desc { font-size: 16px; }
.plan .checks { flex: 1; padding-top: 20px; border-top: 1px solid var(--line); gap: 10px; }
.plan .btn { width: 100%; }
.plan-featured { background: var(--blue); color: var(--white); }
.plan-featured .plan-price small { color: rgba(255, 255, 255, 0.8); }
.plan-featured .checks { border-color: rgba(255, 255, 255, 0.25); }
.plan-featured .checks .i { color: var(--white); }
@media (max-width: 999px) { .plan { min-height: 0; } .plan-price b { font-size: 44px; } }
.extras { display: grid; margin: 48px 0 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 700px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(4, 1fr); } }
.extras div { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.extras div + div { border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .extras div + div { border-top: 0; border-left: 1px solid var(--line); } }
.extras dt { font-size: 14px; color: var(--muted); }
.extras dd { margin: 0; font-family: var(--font-head); font-size: 20px; line-height: 25px; font-weight: 800; }
.pricing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 48px; font-size: 15px; color: var(--muted); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-align: left; }
.link-btn:hover span { text-decoration: underline; }
.link-btn .i { width: 16px; height: 16px; }
.pricing-error { margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--paper); font-weight: 600; }
.pricing-error[hidden] { display: none; }
.is-loading [data-price] { color: transparent; background: linear-gradient(90deg, var(--line) 0, #ECEBF0 50%, var(--line) 100%); border-radius: 8px; }

/* Operations: text 480 px, cards 2×2 */
.ops-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1100px) { .ops-grid { grid-template-columns: 480px minmax(0, 1fr); gap: 80px; } }
.ops-text { display: flex; flex-direction: column; gap: 20px; }
.ops-text h2 { line-height: 1.12; letter-spacing: -1px; }
.ops { display: grid; gap: 16px; }
@media (min-width: 640px) { .ops { grid-template-columns: repeat(2, 1fr); } }
.ops li { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--coal-2); }
.ops .i { width: 26px; height: 26px; color: var(--blue); }
.ops h3 { font-size: 20px; line-height: 1.25; }
.ops p { font-size: 15px; color: var(--muted-dark); }

/* FAQ: intro 420 px, gap 96 */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); } }
.faq-intro { display: flex; flex-direction: column; gap: 20px; }
.faq-intro h2 { letter-spacing: -1px; }
.faq-intro .lead a { color: var(--blue); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 25px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; }
.faq summary:hover { color: var(--blue); }
.faq details[open] summary { padding-bottom: 12px; }
.faq details[open] .i-plus, .faq details:not([open]) .i-minus { display: none; }
.faq details p { padding: 0 48px 24px 0; font-size: 16px; color: var(--muted); }

/* Call to action */
.cta { background: var(--blue); color: var(--white); padding: 96px 0; }
.cta-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .cta-row { grid-template-columns: minmax(0, 760px) auto; justify-content: space-between; gap: 48px; } }
.cta h2 { line-height: 1.08; letter-spacing: -1px; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 1000px) { .cta-action { align-items: flex-end; } }
.cta-action small { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* Footer */
.footer { background: var(--coal); color: var(--white); padding: 64px 0 40px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 360px auto auto auto; justify-content: space-between; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.claim { font-size: 15px; color: var(--muted-dark); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.footer-col a { font-size: 15px; color: var(--muted-dark); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: var(--muted-dark); text-decoration: none; }

/* Legal and simple pages */
.page { background: var(--white); padding: 88px 0 112px; }
.page .wrap { max-width: 980px; }
.page h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 28px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { font-size: 17px; color: #3b3742; }
.page p + p { margin-top: 14px; }
.page ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.page a { color: var(--blue); font-weight: 700; }
.page-nav .nav-row { height: 80px; }

@media (max-width: 699px) {
  .section, .dark { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .cta { padding: 72px 0; }
  .split-head { margin-bottom: 40px; }
  .note-dark { margin-top: 40px; }
}
.is-loading [data-price] { display: inline-block; min-width: 3.5ch; }
