/* YamX ERP — landing page */
:root {
  --accent: #0B7A83;
  --accent-dark: #075A61;
  --accent-ink: #0B5F66;
  --ink: #0E2A33;
  --muted: #4A6470;
  --muted-2: #33505B;
  --line: #E3EEF0;
  --line-2: #CFE1E4;
  --tint: #EEF7F8;
  --tint-2: #D7E7EA;
  --amber: #F2A93B;
  --amber-bg: #FFF4E2;
  --amber-ink: #6B4A12;
  --red-bg: #FDE8E4;
  --red-ink: #8A2A1B;
  --on-accent: #E3F4F5;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 12px 22px; min-height: 44px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { font-size: 15px; padding: 9px 18px; }
.btn-lg { font-size: 17px; padding: 15px 28px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.btn-dark-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-light { background: #fff; color: var(--accent-ink); align-self: flex-start; }
.btn-light:hover { background: var(--tint); color: var(--accent-ink); }

/* Announcement */
.announce {
  background: var(--accent); color: #fff; font-size: 14px; padding: 10px 24px;
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.announce a { color: #fff; font-weight: 600; text-decoration: underline; }
.badge-new { background: var(--amber); color: #3A2500; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -.3px; direction: ltr; }
.brand-name small { font-size: 15px; font-weight: 500; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: var(--ink); }
.main-nav a:not(.btn):hover { color: var(--accent); }
.lang-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; min-height: 40px; }
.lang-link:hover { border-color: var(--accent); }
[dir=rtl] .send-ico { transform: scaleX(-1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { background: var(--tint); }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chip { align-self: flex-start; background: #fff; border: 1px solid var(--line-2); color: var(--accent-ink); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.25; }
:lang(en) .hero h1, :lang(en) h2 { letter-spacing: -.5px; }
.accent { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.8; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--muted-2); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A83' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }

/* Tour */
.tour { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--tint-2); border-radius: 20px; box-shadow: 0 24px 60px rgba(14,42,51,.12); overflow: hidden; }
.tour-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #F7FBFB; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #E6B1A9; } .d2 { background: #EFD39A; } .d3 { background: #A9D8B8; }
.tour-url { margin-inline-start: 12px; font-size: 13px; color: var(--muted); direction: ltr; }
.tour-body { display: flex; min-height: 340px; }
.tour-side { width: 56px; background: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; }
.tour-side span { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.tour-side span.on { background: rgba(255,255,255,.9); }
.tour-stage { flex: 1; min-width: 0; padding: 20px; }
.scene { display: none; flex-direction: column; gap: 12px; animation: fade .45s ease; }
.scene.is-active { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scene-title { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--tint); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.kpi span, .kpi small { font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 18px; margin-top: 4px; }
.kpi.warn { background: var(--amber-bg); }
.kpi.warn span, .kpi.warn small { color: var(--amber-ink); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bars i { flex: 1; background: #BFE2E5; border-radius: 6px 6px 0 0; }
.bars i.hi { background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; display: flex; flex-direction: column; }
.tile small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tile.sel { border: 2px solid var(--accent); }
.total { display: flex; justify-content: space-between; background: var(--tint); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.task { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.warn { background: var(--amber-bg); color: var(--amber-ink); }
.pill.bad { background: var(--red-bg); color: var(--red-ink); }
.bubble { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.bubble.q { align-self: flex-start; background: var(--tint); max-width: 80%; }
.bubble.a { align-self: flex-end; background: var(--accent); color: #fff; max-width: 85%; }
.chips-row { align-self: flex-end; display: flex; gap: 8px; }
.chips-row span { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.tour-controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.play-btn .i-play { display: none; }
.tour.is-paused .play-btn .i-play { display: block; }
.tour.is-paused .play-btn .i-pause { display: none; }
.tour-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tour-caption { font-size: 14px; font-weight: 600; }
.segs { display: flex; gap: 6px; }
.seg { flex: 1; height: 6px; border: none; padding: 0; border-radius: 3px; background: var(--tint-2); cursor: pointer; position: relative; }
.seg::after { content: ""; position: absolute; inset: -10px 0; }
.seg.is-active { background: var(--accent); }

/* Sections */
.section { padding-block: 88px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2, .faq h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { font-size: 18px; line-height: 1.8; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
#modules { padding-bottom: 40px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(14,42,51,.06); }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feature { background: var(--tint); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 22px; }
.feature p { font-size: 16px; line-height: 1.8; color: var(--muted-2); }
.feature-hero { background: var(--accent); color: #fff; }
.feature-hero svg { stroke: #fff; }
.feature-hero p { color: var(--on-accent); }

/* Pricing */
.pricing { background: var(--tint); }
.currency { display: flex; justify-content: center; margin: -16px auto 36px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; width: max-content; }
.cur { font: inherit; font-size: 15px; font-weight: 600; border: none; border-radius: 999px; padding: 10px 22px; min-height: 44px; cursor: pointer; background: transparent; color: var(--muted-2); }
.cur.is-active { background: var(--accent); color: #fff; }
.plans { align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--tint-2); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan h3 { font-size: 22px; }
.plan-for { font-size: 15px; color: var(--muted); margin-top: -12px; }
.price { font-size: 16px; color: var(--muted); }
.price strong { font-size: 46px; font-weight: 700; color: var(--ink); }
.plan-pop { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(11,122,131,.15); }
.pop-badge { position: absolute; top: -14px; inset-inline-start: 32px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A83' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.usd-note { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.onprem { margin-top: 24px; background: #fff; border: 1px solid var(--tint-2); border-radius: 22px; padding: 26px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.onprem > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.onprem h3 { font-size: 20px; }
.onprem p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding-inline: 24px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { text-align: center; margin-bottom: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 26px; color: var(--accent); transition: transform .2s; line-height: 1; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--muted); }

/* CTA */
.cta-wrap { padding-bottom: 88px; }
.cta { background: var(--accent); color: #fff; border-radius: 28px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 36px); }
.cta p { font-size: 18px; line-height: 1.8; color: var(--on-accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-block: 40px; }
.footer-about { max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.footer-about strong { font-size: 20px; color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { color: var(--ink); }
.copy { text-align: center; font-size: 13px; padding: 0 24px 28px; }

/* Chat */
.chat { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { font: inherit; display: flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 12px 20px 12px 16px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px rgba(11,122,131,.35); min-height: 52px; }
.chat-fab:hover { background: var(--accent-dark); }
.chat-panel { width: 360px; max-width: calc(100vw - 48px); background: #fff; border: 1px solid var(--tint-2); border-radius: 20px; box-shadow: 0 24px 60px rgba(14,42,51,.2); overflow: hidden; display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--accent); color: #fff; padding: 12px 8px 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-head div { display: flex; flex-direction: column; }
.chat-head span { font-size: 12px; color: var(--on-accent); }
.chat-close { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.chat-log { padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; background: #F7FBFB; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg a { font-weight: 600; text-decoration: underline; }
.chat-quick { padding: 10px 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick button { font: inherit; font-size: 13px; color: var(--accent-ink); background: var(--tint); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.chat-quick button:hover { border-color: var(--accent); }
.chat-form { padding: 12px 14px 14px; display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
.chat-form button { width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Mobile */
@media (max-width: 860px) {
  .lang-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; min-height: 40px; }
.lang-link:hover { border-color: var(--accent); }
[dir=rtl] .send-ico { transform: scaleX(-1); }
.menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 24px 20px; }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 10px 0; }
  .site-header { position: sticky; }
  .header-row { position: relative; }
  .hero-row { padding-block: 48px 56px; gap: 36px; }
  .section { padding-block: 64px; }
  .tiles, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 40px 24px; }
  .chat { inset-inline-end: 16px; bottom: 16px; }
  .lang-link { align-self: flex-start; margin-block: 6px; }
  .chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-fab .fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { animation: none; }
}
