/* ==========================================================================
   Valzexa · shared site stylesheet
   Light, modern SaaS look. Mobile-first responsive.
   Used by every page under /en/ (root pages use assets/site.css,
   pages inside docs/ use ../assets/site.css).
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --brand-line: #c7d2fe;

  --ai: #7c3aed;
  --ai-soft: #f5f3ff;
  --shop: #059669;
  --shop-soft: #ecfdf5;
  --ps: #2563eb;
  --ps-soft: #eff6ff;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --paper: #ffffff;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.narrow { width: min(860px, 92%); margin: 0 auto; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; font-size: 17px; font-weight: 900;
}
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--ink-soft); }
.nav-links > a { padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links > a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links > a.active { color: var(--brand); font-weight: 600; }

.nav-tail { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  border: 1px solid var(--ink); padding: 8px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: #fff; }

/* hamburger (mobile) */
.mnav-btn {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.mnav-btn svg { width: 22px; height: 22px; }

.mnav-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .42);
  opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 90;
}
.mnav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 86vw);
  background: #fff; z-index: 100; transform: translateX(100%);
  transition: transform .24s ease; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(15, 23, 42, .16); overflow-y: auto;
}
html.mnav-open .mnav-backdrop { opacity: 1; visibility: visible; }
html.mnav-open .mnav-panel { transform: translateX(0); }
html.mnav-lock { overflow: hidden; }

.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mnav-title { font-weight: 800; font-size: 16px; }
.mnav-close { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.mnav-close svg { width: 20px; height: 20px; }
.mnav-list { display: flex; flex-direction: column; padding: 10px 8px; }
.mnav-list a { padding: 12px 14px; border-radius: 10px; font-size: 15.5px; color: var(--ink-soft); }
.mnav-list a:hover, .mnav-list a.mnav-cur { background: var(--bg-soft); color: var(--brand); }
.mnav-foot { margin-top: auto; padding: 16px 18px 26px; border-top: 1px solid var(--line); }
.mnav-foot .btn { width: 100%; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 60px; text-align: center;
  background: radial-gradient(1200px 420px at 50% -120px, #eef2ff 0%, rgba(255,255,255,0) 70%), #fff;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); background: #fff; padding: 6px 15px; border-radius: 999px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; margin: 22px auto 16px; max-width: 880px; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section.tight { padding: 44px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- generic grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .icon { font-size: 28px; margin-bottom: 14px; }

/* product cards on home */
.prod-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.prod-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 27px; margin-bottom: 18px; }
.prod-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.01em; }
.prod-card .tag { font-size: 12.5px; color: var(--faint); letter-spacing: .02em; margin-bottom: 14px; }
.prod-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.prod-card .link { margin-top: 20px; color: var(--brand); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.prod-card .link:hover { gap: 11px; }
.prod-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature.rev .f-media { order: -1; }
.feature h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }
.feature ul { list-style: none; margin-top: 16px; }
.feature li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; color: var(--ink-soft); }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--shop); font-weight: 800; }
.f-media {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 22px; display: grid; place-items: center; gap: 16px;
}
.f-media img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.phones { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.phone { width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 8px; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 19px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.step .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.step .t { font-size: 14px; font-weight: 700; }
.step .d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.plan.hot { border-color: var(--brand); box-shadow: 0 18px 44px rgba(79, 70, 229, .16); }
.plan .rec { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font-size: 18px; font-weight: 800; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price s { font-size: 16px; color: var(--faint); font-weight: 500; }
.plan .for { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 22px; }
.plan li { position: relative; padding: 6px 0 6px 26px; font-size: 14px; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--shop); font-weight: 800; }
.plan li.no { color: var(--faint); }
.plan li.no::before { content: "—"; color: var(--faint); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th { background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.yes { color: var(--shop); font-weight: 700; }
table.cmp td.no { color: var(--faint); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq details[open] { border-color: var(--brand-line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }

/* notices */
.notice {
  border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--ink-soft);
  border-radius: 12px; padding: 16px 20px; font-size: 14px;
}
.notice.warn { border-color: #fde68a; background: #fffbeb; }
.notice b { color: var(--ink); }

/* final CTA */
.final { text-align: center; padding: 76px 0; background: linear-gradient(180deg, #fff, #eef2ff); }
.final h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.final p { color: var(--muted); margin-top: 12px; }
.final .hero-cta { margin-top: 26px; }

/* ---------- docs layout ---------- */
.docs-shell { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; padding: 40px 0 70px; }
.docs-nav { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; box-shadow: var(--shadow); }
.docs-nav h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 6px 10px; }
.docs-nav a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.docs-nav a:hover { background: var(--bg-soft); }
.docs-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.docs-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }

.article { min-width: 0; }
.article h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.article .lead { font-size: 16.5px; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 22px; font-weight: 800; margin: 40px 0 14px; padding-top: 8px; scroll-margin-top: 84px; }
.article h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.article p { margin-bottom: 14px; color: var(--ink-soft); font-size: 15.5px; }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--ink-soft); font-size: 15.5px; }
.article li { margin-bottom: 7px; }
.article code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article img { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 6px 0 18px; }
.article .shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 10px 0 22px; }
.article .shot-row figure { margin: 0; }
.article .shot-row img { margin: 0; }
.article .shot-row figcaption { font-size: 12.5px; color: var(--muted); text-align: center; padding-top: 8px; }
.article .callout { border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14.5px; margin: 18px 0; color: var(--ink-soft); }
.article .callout.tip { border-color: var(--shop); background: var(--shop-soft); }
.article .callout.warn { border-color: #f59e0b; background: #fffbeb; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand); }

.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.doc-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.doc-card .icon { font-size: 26px; margin-bottom: 10px; }
.doc-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.doc-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 20px; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer-brand .logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #7c3aed); font-size: 16px; }
.footer-desc { font-size: 13.5px; color: #94a3b8; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 13.5px; color: #94a3b8; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: 12.5px; color: #64748b; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .docs-shell { grid-template-columns: 1fr; gap: 26px; }
  .docs-nav { position: static; }
  .docs-nav .nav-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .mnav-btn { display: inline-flex; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.rev .f-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .hero { padding: 52px 0 44px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav .nav-groups { grid-template-columns: 1fr; }
  .card, .plan, .prod-card { padding: 24px 20px; }
  .phone { width: 168px; }
}
