:root {
  --ayar-font-sans: 'Inter', 'Noto Sans Myanmar', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ayar-font-mm: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', system-ui, sans-serif;
  --ayar-ink: #0f172a;
  --ayar-muted: #64748b;
  --ayar-line: #e2e8f0;
  --ayar-blue: #2563eb;
  --ayar-navy: #071b4d;
  --ayar-soft: #f8fafc;
  --ayar-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; padding-top: 64px; overflow-x: hidden; background: #fff; color: var(--ayar-ink); font-family: var(--ayar-font-sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.mm,
html.lang-my,
html.lang-my body,
html.lang-my button,
html.lang-my input,
html.lang-my textarea,
html.lang-my select {
  font-family: var(--ayar-font-mm) !important;
  letter-spacing: 0 !important;
}
html.lang-my body { line-height: 1.75; }
html.lang-my h1,
html.lang-my h2,
html.lang-my h3,
html.lang-my .h2,
html.lang-my .h3 { line-height: 1.42 !important; font-weight: 700 !important; }
html.lang-my .body-txt,
html.lang-my p,
html.lang-my li,
html.lang-my summary { line-height: 1.85; }
html.lang-my .label { letter-spacing: .04em; }
.my-only { display: none !important; }
html.lang-my .en-only { display: none !important; }
html.lang-my .my-only { display: block !important; }
html.lang-my span.my-only,
html.lang-my a.my-only,
html.lang-my li.my-only { display: inline !important; }
html.lang-my .my-only.flex { display: flex !important; }

/* Shared low-level marketing primitives. Existing page classes remain supported. */
.marketing-container { width: min(var(--ayar-container), calc(100% - 48px)); margin-inline: auto; }
.marketing-section { padding-block: 88px; }
.marketing-card { background: #fff; border: 1px solid var(--ayar-line); border-radius: 16px; }
.marketing-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* Reusable Phase 2 content components */
.marketing-section-heading { margin-bottom: 40px; text-align: center; }
.marketing-section-heading .section-title { margin: 0 auto 12px; }
.marketing-related-card {
  display: block; padding: 20px; border: 1px solid var(--ayar-line); border-radius: 12px;
  background: var(--related-surface, #f8fafc); text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.marketing-related-card:hover { box-shadow: 0 8px 24px rgba(7,27,77,.1); }
.marketing-related-card-icon {
  width: 40px; height: 40px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--related-icon-bg); color: var(--related-color);
}
.marketing-related-card-title { display: block; margin-bottom: 4px; color: var(--ayar-ink); font-size: 14px; font-weight: 700; }
.marketing-related-card-description { display: block; color: var(--ayar-muted); font-size: 13px; }
.marketing-related-card--compact .marketing-related-card-icon { width: 38px; height: 38px; border-radius: 8px; }
.marketing-related-card--compact .marketing-related-card-description { font-size: 12px; line-height: 1.55; }
.marketing-faq-item--pricing { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--ayar-line); border-radius: 12px; background: #fff; }
.marketing-faq-item--pricing summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  color: var(--ayar-ink); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; -webkit-appearance: none;
}
.marketing-faq-item--pricing summary::-webkit-details-marker { display: none; }
.marketing-faq-chevron { flex-shrink: 0; }
.marketing-faq-answer { padding: 0 18px 16px; border-top: 1px solid #f1f5f9; color: #475569; font-size: 14px; line-height: 1.75; }

/* Navigation */
#mktg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
  width: 100%; background: #fff;
  border-bottom: 1px solid #dfe3e8; box-shadow: none;
}
.mktg-nav-inner { max-width: 1200px; height: 64px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.mktg-nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.mktg-nav-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.mktg-nav-brand span { color: #071b4d; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.mktg-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.mktg-dropdown { position: relative; }
.mktg-dropdown-toggle,
.mktg-nav-link,
.mktg-login-link {
  padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #334155;
  font: 500 14px var(--ayar-font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.mktg-dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.mktg-dropdown-toggle:hover,
.mktg-nav-link:hover,
.mktg-login-link:hover { background: #f1f5f9; }
.mktg-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; display: none; width: 580px; padding: 16px;
  grid-template-columns: 1fr 1fr; gap: 6px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; box-shadow: 0 16px 48px rgba(7,27,77,.12);
}
.mktg-dropdown-panel.open { display: grid; }
.mktg-dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.mktg-dd-item:hover { background: #f8fafc; }
.mktg-dd-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mktg-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mktg-language-toggle {
  display: flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; background: #f8fafc; color: #334155; font: 600 13px var(--ayar-font-sans);
  white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s;
}
.mktg-language-toggle:hover { color: #2563eb; border-color: #2563eb; }
.mktg-trial-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 6px;
  background: #174f91; color: #fff; box-shadow: none;
  font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .15s;
}
.mktg-trial-link:hover { background:#123b6d; }
.ayar-mobile-menu, .ayar-mobile-menu-toggle { display: none; }

/* Footer */
.marketing-footer { padding: 60px 24px 32px; background: linear-gradient(135deg,#071b4d 0%,#0f2f75 60%,#1a3a8a 100%); color: #fff; }
.marketing-footer-inner { max-width: 1200px; margin: 0 auto; }
.marketing-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.marketing-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.marketing-footer-brand-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.15); }
.marketing-footer-brand-name { color: #fff; font-size: 16px; font-weight: 700; }
.marketing-footer-description { max-width: 280px; margin: 0 0 20px; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.8; }
.marketing-footer-contact { color: rgba(255,255,255,.5); font-size: 13px; }
.marketing-footer-contact > div { margin-bottom: 4px; }
.marketing-footer-heading { margin-bottom: 16px; color: rgba(255,255,255,.4); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.marketing-footer-links { display: flex; flex-direction: column; gap: 10px; }
.marketing-footer-links a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; transition: color .15s; }
.marketing-footer-links a:hover { color: #fff; }
.marketing-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: 13px; }

@media (max-width: 991px) {
  #mktg-nav { top: 0 !important; margin: 0 !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
  .mktg-nav-inner { width: 100% !important; max-width: none !important; height: 64px !important; padding: 0 18px !important; gap: 12px !important; justify-content: space-between !important; }
  .mktg-nav-brand img { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .mktg-nav-brand { gap: 12px !important; }
  .mktg-nav-brand span { color: #16162f !important; font-size: 18px !important; font-weight: 800 !important; }
  .mktg-nav-links, .mktg-nav-cta { display: none !important; }
  .ayar-mobile-menu-toggle { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 44px !important; height: 44px !important; margin-left: auto !important; padding: 0 !important; position: relative !important; z-index: 10001 !important; flex: 0 0 44px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #4b5568 !important; cursor: pointer !important; }
  html.ayar-mobile-menu-open, html.ayar-mobile-menu-open body { height: 100% !important; overflow: hidden !important; touch-action: none; }
  html.ayar-mobile-menu-open .ayar-mobile-menu { display: block !important; }
  .ayar-mobile-menu { position: fixed !important; inset: 0 !important; z-index: 999999 !important; width: 100vw !important; height: 100dvh !important; min-height: 100vh !important; padding: 20px !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; border: 0 !important; background: #fff !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; box-shadow: none; }
  .ayar-mobile-menu-inner { min-height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; background: #fff; }
  .ayar-mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 56px; flex-shrink: 0; }
  .ayar-mobile-menu-brand { display: flex; align-items: center; gap: 10px; color: #16162f; text-decoration: none; }
  .ayar-mobile-menu-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
  .ayar-mobile-menu-brand span { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
  .ayar-mobile-menu-close { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #4b5568; font-size: 38px; font-weight: 300; line-height: 1; cursor: pointer; }
  .ayar-mobile-menu-links { display: flex; flex-direction: column; gap: 0; padding-top: 24px; }
  .ayar-mobile-menu-links a { display: block; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(15,23,42,.08); border-radius: 0; background: transparent; color: #071426; box-shadow: none; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; text-align: left; text-decoration: none; }
  .ayar-mobile-menu-links a b { margin: 0; font: inherit; }
  .ayar-mobile-menu-links a small { display: block; margin-top: 2px; color: #64748b; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.25; }
  .ayar-mobile-menu-links a em { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: middle; }
  .ayar-mobile-menu-icon { display: none; }
  .ayar-mobile-menu-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
  .ayar-mobile-menu-action { width: 170px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 2px solid #2457c5; border-radius: 10px; background: #fff; color: #2457c5; box-shadow: none; font: 600 15px var(--ayar-font-sans); text-decoration: none; cursor: pointer; }
}
@media (min-width: 992px) { .ayar-mobile-menu, .ayar-mobile-menu-toggle { display: none !important; } }
@media (max-width: 768px) {
  .marketing-container { width: min(100% - 32px, var(--ayar-container)); }
  .marketing-section { padding-block: 64px; }
  .marketing-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) { .marketing-footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .mktg-nav-inner { padding: 0 16px !important; }
  .ayar-mobile-menu { padding-right: 18px !important; padding-left: 18px !important; }
  .ayar-mobile-menu-links a { padding: 10px 0; font-size: 20px; }
  .ayar-mobile-menu-links a small { font-size: 11px; }
  .ayar-mobile-menu-action { min-height: 40px; }
}
