/* LexBill — Design System */
/* TechnoNet Sdn Bhd | technonet.ai */

/* Self-hosted (Local First), built by tools/build-lexbill-fonts.sh; licences in /fonts/. */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-variable.woff2') format('woff2'); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-variable.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --navy:       #0B1A2E;
  --navy-light: #152340;
  --gold:       #C9A030;
  --gold-light: #E8BB4A;
  --teal:       #0097B2;
  --white:      #FFFFFF;
  --light:      #F8F9FA;
  --grey:       #6B7280;
  --text:       #1A1A2E;
  --border:     #E5E7EB;
  /* Text-on-light shades of the brand colours, for WCAG AA contrast (WP5). */
  --gold-text:  #86650F;
  --teal-text:  #006F84;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    8px;
  --shadow:    0 4px 24px rgba(11,26,46,0.08);
  --shadow-lg: 0 8px 48px rgba(11,26,46,0.14);
  --max-w:     1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; }

/* ── Layout ── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section      { padding: 80px 0; }
.section-sm   { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { color: var(--navy); margin-bottom: 14px; }
.section-title p  { color: var(--grey); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.btn-primary      { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline      { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Alert Banner ── */
.alert-banner { background: var(--gold); color: var(--navy); text-align: center; padding: 10px 24px; font-size: 0.9rem; font-weight: 600; position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 201; }
.alert-banner a { color: var(--navy); text-decoration: underline; }

/* ── Navigation ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(11,26,46,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,160,48,0.15); }
/* The e-Invoice notice wraps to two or more lines at most widths (always in BM), so it sits in the page flow and the
   navigation sticks to the top below it; both fixed (nav at top: 40px) hid the nav behind the notice — 12 Oct 2026 */
.alert-banner { position: relative; }
.alert-banner + nav { position: sticky; top: 0; }
.alert-banner ~ .hero, .alert-banner ~ .article-hero { padding-top: 56px !important; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 64px; gap: 24px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 2px; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; gap: 10px; margin-left: 20px; }

/* ── Hero ── */
.hero { background: linear-gradient(140deg, var(--navy) 0%, #162B4A 55%, #0D2240 100%); color: var(--white); padding: 148px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A030' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,160,48,0.12); border: 1px solid rgba(201,160,48,0.3); color: var(--gold); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.3px; }
.hero h1 { max-width: 780px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,0.8); max-width: 580px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

/* Countdown */
.countdown-wrap { margin-bottom: 60px; }
.countdown-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.countdown { display: flex; gap: 14px; }
.countdown-unit { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,160,48,0.2); border-radius: var(--radius); padding: 16px 22px; text-align: center; min-width: 80px; }
.countdown-unit .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; }
.countdown-unit .lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-top: 6px; display: block; }

/* ── Trust Bar ── */
.trust { background: var(--light); padding: 24px 0; border-bottom: 1px solid var(--border); }
.trust-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey); white-space: nowrap; font-weight: 600; }
.trust-names { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.trust-names span { font-size: 0.88rem; font-weight: 600; color: #5F6672; }

/* ── Feature Cards ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: rgba(201,160,48,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem; }
.feature-card h3 { color: var(--navy); margin-bottom: 10px; }
.feature-card p  { color: var(--grey); font-size: 0.93rem; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px; }
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p  { color: var(--grey); font-size: 0.93rem; }

/* ── Pricing Card ── */
.pricing-card { max-width: 480px; margin: 0 auto; background: var(--white); border: 2px solid var(--gold); border-radius: 16px; padding: 48px 40px; box-shadow: var(--shadow-lg); text-align: center; }
.pricing-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 4px 14px; border-radius: 100px; margin-bottom: 24px; }
.pricing-amount { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.pricing-amount sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period { color: var(--grey); font-size: 0.9rem; margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 36px; }
.pricing-features li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Two-col ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ── Screenshot ── */
.screenshot-wrap { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ── CTA Section ── */
.cta-section { background: linear-gradient(140deg, var(--navy) 0%, #162B4A 100%); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section .lead { color: rgba(255,255,255,0.72); margin-bottom: 36px; font-size: 1.08rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-q { color: var(--navy); font-size: 1.02rem; font-weight: 600; margin-bottom: 10px; font-family: var(--font-body); }
.faq-a { color: var(--grey); font-size: 0.95rem; }

/* ── Articles ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: box-shadow 0.2s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-tag { display: inline-block; background: rgba(0,151,178,0.1); color: var(--teal-text); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.article-card h2, .article-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.02rem; }
.article-card p  { color: var(--grey); font-size: 0.88rem; margin-bottom: 16px; }
.read-more { color: var(--gold-text); font-weight: 600; font-size: 0.88rem; }
.read-more:hover { text-decoration: underline; }

/* ── Article body ── */
.article-hero { background: var(--light); padding: 80px 0 48px; border-bottom: 1px solid var(--border); }
.article-meta { font-size: 0.82rem; color: var(--grey); margin-bottom: 12px; }
.article-body { max-width: 740px; margin: 0 auto; padding: 60px 24px 80px; }
.article-body h2 { color: var(--navy); margin: 44px 0 16px; font-size: 1.55rem; }
.article-body h3 { color: var(--navy); margin: 28px 0 10px; font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.article-body p  { margin-bottom: 20px; color: #374151; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: #374151; }
.article-body li { margin-bottom: 8px; font-size: 0.97rem; }
.highlight-box { background: rgba(201,160,48,0.08); border-left: 4px solid var(--gold); padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.highlight-box p { margin: 0; font-weight: 500; color: var(--navy); }
.article-cta { background: var(--navy); color: var(--white); border-radius: 12px; padding: 32px; text-align: center; margin: 48px 0; }
.article-cta h3 { color: var(--white); margin-bottom: 10px; font-size: 1.2rem; }
.article-cta p  { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-bottom: 20px; }

/* ── Footer ── */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { font-size: 1.35rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h3, .footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); margin-left: 16px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ── WhatsApp float ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 300; background: #25D366; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── Table ── */
.tbl-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--light); }

/* ── Utilities ── */
.text-gold    { color: var(--gold); }
.text-gold-on-light { color: var(--gold-text); }
.text-navy    { color: var(--navy); }
.text-grey    { color: var(--grey); }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }
.bg-light     { background: var(--light); }
.bg-navy      { background: var(--navy); }
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.84rem; }
  .nav-cta { margin-left: 12px; gap: 8px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.85rem; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col     { grid-template-columns: 1fr !important; gap: 36px !important; }   /* some pages set two columns inline */
}
@media (max-width: 640px) {
  .hero        { padding: 128px 0 72px; }
  .section     { padding: 56px 0; }
  .nav-links   { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown   { gap: 8px; }
  .countdown-unit { padding: 12px 14px; min-width: 60px; }
  .countdown-unit .num { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .pricing-card { padding: 32px 24px; }
}

/* Language button (BM / EN) — 12 Oct 2026 */
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: rgba(255,255,255,0.85); }
.lang-toggle:hover { color: var(--gold); }

/* Phones: compact notice and navigation, nothing wider than the screen — 12 Oct 2026 */
@media (max-width: 640px) {
  .alert-banner { padding: 8px 16px; font-size: 0.82rem; }
  .alert-banner ~ .hero, .alert-banner ~ .article-hero { padding-top: 40px !important; }
  .nav-inner { padding: 0 12px; gap: 8px; }
  .nav-logo { font-size: 1.25rem; }
  .nav-cta { margin-left: auto; gap: 6px; }
  .nav-cta .btn { padding: 8px 10px; font-size: 0.78rem; white-space: nowrap; }
  .lang-toggle { min-width: 40px; padding: 4px 8px; }
  .btn { white-space: normal; max-width: 100%; justify-content: center; text-align: center; }
  .nav-cta .btn { white-space: nowrap; }
  .two-col > *, body .demo-wrap > * { min-width: 0; }
  body .demo-form-card { padding: 24px; }
  a[href^="mailto:"] { overflow-wrap: anywhere; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  .two-col { direction: ltr !important; }   /* the desktop rtl trick (image left/right) is not needed in one column */
  .articles-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .nav-inner { padding: 0 8px; gap: 4px; }
  .nav-logo { font-size: 1rem; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn { padding: 7px 8px; font-size: 0.72rem; }
  .lang-toggle { min-width: 36px; min-height: 34px; padding: 3px 6px; font-size: 12px; }
}

/* Navigation fits one row at every width: Book Demo (also in the page body) leaves the bar below 1100px,
   the four page links below 820px (as on phones) — 12 Oct 2026 */
@media (max-width: 1100px) { .nav-cta .btn-outline + .btn-outline { display: none; } }
@media (max-width: 820px)  { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
