/* Zanix ERP public website (spec §9.1). Brand: Zanix Red #C8102E, Deep Red #7A0E1E, Ink #1C1517, Paper #FAF8F7. */
:root { --red: #C8102E; --red-deep: #7A0E1E; --ink: #1C1517; --muted: #5E5457; --paper: #FAF8F7; --card: #FFFFFF; --line: rgba(28,21,23,.1); --soft: #F3EEEF; }
@media (prefers-color-scheme: dark) { :root { --ink: #F1ECED; --muted: #B9AEB1; --paper: #141011; --card: #1D1718; --line: rgba(255,255,255,.1); --soft: #1A1415; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; }
.center { text-align: center; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 28px; text-align: center; }
h3 { margin: 0 0 8px; font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.fine { font-size: .875rem; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; }
.langs { display: flex; gap: 10px; font-size: .875rem; }
.langs a { text-decoration: none; color: var(--muted); } .langs a.on { color: var(--red); font-weight: 600; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; gap: 14px; font-size: .95rem; } }

.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: var(--red-deep); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn-small { padding: 8px 14px; color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); } .btn-ghost:hover { background: var(--soft); }
.btn-block { width: 100%; padding: 14px; font-size: 1.05rem; }

.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px -30px rgba(122,14,30,.35); }
.hc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hc-row span { color: var(--muted); }
.hc-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 18px; }
.hc-bars i { flex: 1; background: linear-gradient(to top, var(--red), #e2475f); border-radius: 6px 6px 2px 2px; }

.section { padding: 64px 0; }
.section-alt { background: var(--soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature p { margin: 0; color: var(--muted); }

.cycle { display: flex; justify-content: center; gap: 18px; margin-bottom: 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-desc { margin: 0; color: var(--muted); font-size: .95rem; }
.price { font-size: 2rem; font-weight: 700; margin: 4px 0; } .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price .y { display: none; } body[data-cycle="yearly"] .price .y { display: inline; } body[data-cycle="yearly"] .price .m { display: none; }
.plan ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan li::before { content: "✓"; color: var(--red); font-weight: 700; margin-inline-end: 8px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form select { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.form small { color: var(--muted); font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.address { display: flex; align-items: center; gap: 6px; } .address span { color: var(--muted); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: rgba(200,16,46,.1); color: #9B0D23; padding: 12px 16px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { .alert { color: #fda4af; } }

.cta { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.cta h2, .cta .lead { color: #fff; } .cta .btn { background: #fff; color: var(--red-deep); } .cta .btn:hover { background: var(--paper); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.charts { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.charts legend { font-weight: 600; padding: 0 6px; }
.chart-option { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; cursor: pointer; }
.chart-option input { width: auto !important; margin-top: 4px; }
.chart-option span { display: flex; flex-direction: column; gap: 2px; }

/* Legal pages */
.legal .prose { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.legal .prose h1 { margin-bottom: .25em; }
.legal .prose h2 { margin-top: 1.75em; font-size: 1.25rem; }
.legal .prose p, .legal .prose li { font-size: 1rem; }
.legal .prose .muted { font-size: .9rem; opacity: .7; margin-bottom: 2rem; }
.legal .prose ul { padding-inline-start: 1.5rem; }
.legal .prose li { margin: .25rem 0; }

/* Signup consent */
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.form .agree input { width: auto !important; margin-top: 4px; }
.form .agree a { color: var(--brand, #C8102E); text-decoration: underline; }
