/* =====================================================================
   The Micro POS Solutions — company website.
   Premium light and minimal: near-white surfaces, hairline borders, ink-black actions,
   one warm accent for the company and one colour per product.
   ===================================================================== */
:root {
    --bg: #fafaf8; --surface: #ffffff; --alt: #f3f2ee; --line: #e7e5e0; --line-2: #d8d5ce;
    --ink: #111214; --text: #2b2d31; --muted: #62656c; --faint: #85888f;
    --accent: #c4512b; --accent-ink: #a3401f; --accent-soft: #fbeee8;
    --rms: #c4512b; --rms-soft: #fbeee8; --rms-ink: #a3401f;
    --pos: #2f5fd0; --pos-soft: #eaf0fd; --pos-ink: #234aa8;
    --ok: #276e4f;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, Consolas, monospace;
    --shadow-sm: 0 1px 2px rgba(17, 18, 20, .05);
    --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 24px 48px -28px rgba(17, 18, 20, .22);
    --shadow-lg: 0 1px 2px rgba(17, 18, 20, .04), 0 50px 90px -45px rgba(17, 18, 20, .3);
    --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Type */
.h1 { font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.045em; }
.h2 { font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.h1 span, .h2 span { color: var(--faint); }
.label { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }
.lead { font-size: 1.12rem; line-height: 1.65; color: var(--muted); margin: 0; }
.sub { font-size: 1.04rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: 36rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 500; color: var(--muted); margin: 0 0 1.6rem;
    padding: .3rem .8rem .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .62rem 1.1rem; border-radius: 8px;
    font: 500 .94rem/1.2 var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: #2c2e33; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-lg { min-height: 50px; padding: .85rem 1.45rem; font-size: 1rem; }
.textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); text-decoration: underline;
    text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: text-decoration-color .15s ease; }
.textlink:hover { text-decoration-color: var(--ink); }
.arrow { width: 14px; height: 14px; flex-shrink: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.8rem; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 248, .86); backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(196, 81, 43, .3); }
.brand-text { display: flex; align-items: baseline; gap: .4rem; line-height: 1; }
.brand-text strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-text small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.links { display: flex; gap: .3rem; margin-left: auto; }
.links a { font-size: .9rem; font-weight: 500; color: var(--muted); padding: .45rem .7rem; border-radius: 6px; transition: color .15s ease, background-color .15s ease; }
.links a:hover, .links a[aria-current] { color: var(--ink); background: var(--alt); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--alt); }
.menu-panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; padding: .4rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; }
.menu-panel a { padding: .75rem .8rem; border-radius: 7px; font-weight: 500; color: var(--text); }
.menu-panel a:hover { background: var(--alt); }
.menu-panel .sep { height: 1px; background: var(--line); margin: .3rem 0; }

/* Hero */
.hero { padding: 4.5rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.hero .lead { margin-top: 1.5rem; max-width: 34rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 16px; height: 16px; color: var(--ok); }

/* Hero visual: the two products, one over the other */
.stack { position: relative; min-height: 590px; }
.win { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .9rem; border-bottom: 1px solid var(--line); background: #fbfbfa;
    font-size: .74rem; font-weight: 500; color: var(--muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e1dc; }
.win-bar span { margin-left: .5rem; }
.win-bar em { margin-left: auto; font-style: normal; font-size: .68rem; padding: .12rem .5rem; border-radius: 999px; }
.win-rms { top: 0; left: 0; width: 84%; }
.win-rms .win-bar em { color: var(--rms-ink); background: var(--rms-soft); }
.win-pos { bottom: 0; right: 0; width: 60%; }
.win-pos .win-bar em { color: var(--pos-ink); background: var(--pos-soft); }
.win-body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .8rem; font-size: .82rem; }
.w-title { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.w-title b { color: var(--ink); font-size: .95rem; font-weight: 600; display: block; }
.w-title small { color: var(--muted); font-size: .74rem; }
.w-pill { font-size: .7rem; font-weight: 500; color: var(--ink); background: var(--alt); padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.w-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.w-items div { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .6rem; display: grid; gap: .1rem; }
.w-items div.on { border-color: var(--ink); }
.w-items span { color: var(--ink); font-weight: 500; font-size: .78rem; }
.w-items small { font-family: var(--mono); color: var(--muted); font-size: .7rem; }
.w-items em { position: absolute; top: .4rem; right: .4rem; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
    background: var(--rms); color: #fff; font-style: normal; font-size: .6rem; font-family: var(--mono); }
.w-total { display: flex; justify-content: space-between; align-items: center; padding-top: .6rem; border-top: 1px dashed var(--line-2); }
.w-total span { color: var(--muted); }
.w-total b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.w-total strong { background: var(--ink); color: #fff; font-weight: 600; font-size: .76rem; padding: .4rem .8rem; border-radius: 7px; }
.w-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.w-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
.w-kpis small { display: block; color: var(--muted); font-size: .7rem; }
.w-kpis b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: .92rem; }
.w-rows div { display: flex; justify-content: space-between; align-items: center; padding: .42rem 0; border-top: 1px solid var(--line); color: var(--text); }
.w-rows em { font-style: normal; font-size: .68rem; font-weight: 500; padding: .12rem .5rem; border-radius: 999px; }
.w-rows .paid { color: var(--ok); background: #e8f3ed; }
.w-rows .part { color: var(--pos-ink); background: var(--pos-soft); }
.w-rows .cred { color: #4b4d52; background: var(--alt); }

/* Sections */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--alt); }
.head { max-width: 46rem; margin: 0 0 3.2rem; }
.head .sub { margin-top: 1rem; }
.head-split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.head-split .sub { margin: 0; padding-bottom: .3rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem;
    transition: border-color .2s ease, box-shadow .2s ease; }
.product:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.pmark { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font: 600 .85rem/1 var(--mono); letter-spacing: .02em; }
.pmark.rms { background: var(--rms); }
.pmark.pos { background: var(--pos); }
.tag { font-size: .72rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.tag.rms { color: var(--rms-ink); background: var(--rms-soft); }
.tag.pos { color: var(--pos-ink); background: var(--pos-soft); }
.product h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.product .for { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.product > p { margin: 1rem 0 0; color: var(--text); line-height: 1.6; }
.ticks { list-style: none; margin: 1.3rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .55rem; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.product.is-pos .ticks li::before { border-color: var(--pos); }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.6rem; }
.product.soon { background: transparent; border-style: dashed; border-color: var(--line-2); justify-content: center; align-items: flex-start; }
.product.soon:hover { box-shadow: none; }
.product.soon .pmark { background: var(--alt); color: var(--muted); border: 1px dashed var(--line-2); }
.product.soon p { color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.service { padding: 1.7rem 1.6rem 0; border-left: 1px solid var(--line-2); }
.service:first-child { border-left: 0; padding-left: 0; }
.service .num { font-family: var(--mono); font-size: .75rem; color: var(--accent-ink); }
.service h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; margin: .8rem 0 .55rem; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.why article { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.why .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--alt); color: var(--ink); }
.why .ic svg { width: 20px; height: 20px; }
.why h3 { font-size: 1.06rem; font-weight: 600; margin: .1rem 0 .4rem; }
.why p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.steps li:first-child { border-top-color: var(--ink); }
.steps .num { font-family: var(--mono); font-size: .75rem; color: var(--accent-ink); }
.steps h3 { font-size: 1.1rem; font-weight: 600; margin: .8rem 0 .5rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* Contact */
.final { padding: 2rem 0 6.5rem; }
.final-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5rem; padding: 3.5rem; border-radius: 18px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow); }
.final-card .sub { margin-top: 1rem; }
.contacts { list-style: none; margin: 0; padding: 0; align-self: center; }
.contacts li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contacts li:first-child { border-top: 1px solid var(--line); }
.contacts small { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contacts a, .contacts span { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contacts a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid p { max-width: 22rem; line-height: 1.6; margin: 1.1rem 0 0; }
.footer h3 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .3rem 0 1rem; }
.footer-grid a:not(.brand) { display: block; padding: .3rem 0; color: var(--text); font-size: .94rem; overflow-wrap: anywhere; }
.footer-grid a:not(.brand):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Product pages */
.crumbs { font-size: .86rem; color: var(--muted); margin: 0 0 1.4rem; display: flex; gap: .5rem; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.p-hero { padding: 3.5rem 0 5rem; }
.p-hero .pmark { width: 52px; height: 52px; border-radius: 13px; font-size: .95rem; margin-bottom: 1.6rem; }
.p-hero .lead { margin-top: 1.4rem; max-width: 40rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 3.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .35rem 0 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.feature h3 { font-size: 1.04rem; font-weight: 600; margin: 0 0 .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.feature .fi { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 1rem; }
.feature .fi svg { width: 18px; height: 18px; }
.theme-rms .feature .fi { background: var(--rms-soft); color: var(--rms-ink); }
.theme-pos .feature .fi { background: var(--pos-soft); color: var(--pos-ink); }
.theme-pos .label { color: var(--pos-ink); }
.theme-pos .eyebrow .dot { background: var(--pos); }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.audience div { padding: 1.4rem 1.5rem; border-top: 1px solid var(--ink); }
.audience h3 { font-size: 1.04rem; font-weight: 600; margin: 0 0 .4rem; }
.audience p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.next small { display: block; color: var(--muted); font-size: .86rem; margin-bottom: .2rem; }
.next b { font-size: 1.15rem; color: var(--ink); font-weight: 600; }

/* Reveal on scroll (only when the script turns it on) */
.anim .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease var(--d, 0s), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.anim .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1099.98px) {
    .products { grid-template-columns: 1fr 1fr; }
    .services { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 3rem; }
    .service, .service:first-child { padding: 1.6rem 0 1.6rem; border-left: 0; border-top: 1px solid var(--ink); }
    .stack { min-height: 560px; }
}
@media (max-width: 899.98px) {
    .links { display: none; }
    .menu { display: block; }
    .nav-actions { margin-left: auto; gap: .6rem; }
    .hero { padding: 3rem 0 4.5rem; }
    .hero-grid, .head-split, .final-card { grid-template-columns: 1fr; gap: 3rem; }
    .head-split { gap: 1.2rem; }
    .section { padding: 4.5rem 0; }
    .why { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .features { grid-template-columns: 1fr 1fr; }
    .audience { grid-template-columns: 1fr; gap: 0; }
    .facts { grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
    .final-card { padding: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) {
    .wrap { padding: 0 16px; }
    .nav-inner { gap: .6rem; min-height: 62px; }
    .brand-text small { display: none; }
    .nav-actions .btn { padding: .5rem .85rem; font-size: .88rem; }
    .cta-row .btn { flex: 1 1 auto; }
    .stack { min-height: 0; display: grid; gap: 1rem; }
    .win { position: static; width: 100%; }
    .w-items { grid-template-columns: 1fr 1fr; }
    .w-items div:nth-child(n+5) { display: none; }
    .products, .services, .steps, .features { grid-template-columns: 1fr; }
    .product { padding: 1.4rem; }
    .section { padding: 3.8rem 0; }
    .final-card { padding: 1.8rem 1.3rem; border-radius: 14px; }
    .contacts li { grid-template-columns: 5.5rem 1fr; }
    .facts { grid-template-columns: 1fr; gap: 0; }
    .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .facts dd { margin: 0; text-align: right; }
    .next { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359.98px) { .brand-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .links a, .product { transition: none; } }
