/* posMate website. Palette from the app / Penpot design (tools/penpot/pp_lib.py). */
:root {
  --ink: #2A3440;
  --navy: #3A4654;
  --blue: #1E6FD9;
  --blue-d: #0A5BC4;
  --slate: #7B8B9C;
  --yellow: #F5C400;
  --green: #2E7D32;
  --red: #C62828;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --alt: #F2F5F8;
  --line: #D9DFE6;
  --text: #1C242E;
  --muted: #5D6B7A;
  --info: #CFE0F2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 8px 24px rgba(20, 30, 45, .08);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171D;
    --surface: #1A2129;
    --alt: #202833;
    --line: #2E3946;
    --text: #E7ECF2;
    --muted: #9AA7B5;
    --info: #1C3350;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, monospace; font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--blue); }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--slate); color: var(--text); }
.nav .btn { padding: 8px 16px; color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }
body { overflow-x: hidden; }

/* Device mock-ups (drawn in HTML, made-up data) */
.devices { position: relative; min-height: 400px; }
.tablet {
  background: #9FAFC1; border-radius: 26px; padding: 18px; box-shadow: var(--shadow);
  width: 100%; max-width: 520px;
}
.screen { background: #fff; border-radius: 6px; overflow: hidden; color: #1C242E; font-size: 12px; }
.tablet .screen { overflow-x: hidden; }
.tbl { table-layout: fixed; }
.tbl td, .tbl th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: #7B8B9C; color: #fff; font-weight: 600; font-size: 10.5px; padding: 6px 8px; text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid #E3E8EE; text-align: right; }
.tbl tr:nth-child(even) td { background: #F2F5F8; }
.tbl tr.sel td { background: #C6D8EC; }
.tbl tr.warn td { background: #FCEBEB; }
.tbl .neg { color: #C62828; }
.tbl .tot { font-weight: 700; }
.bar { display: flex; gap: 6px; background: #7B8B9C; padding: 7px 8px; }
.bar span { color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; padding: 3px 6px; border-radius: 4px; }
.bar span.on { background: #F5C400; color: #2A3440; }
.nav-strip { display: flex; justify-content: space-between; background: #E6F2E8; padding: 6px 10px; font-size: 9px; font-weight: 600; color: #2A3440; }
.nav-strip .cnt { display: flex; gap: 10px; }
.nav-strip .cnt b { font-size: 12px; }
.phone {
  position: absolute; right: -6px; bottom: -28px; width: 190px;
  background: #2A3440; border-radius: 26px; padding: 9px; box-shadow: var(--shadow);
}
.phone .screen { border-radius: 18px; font-size: 11px; }
.ph-top { background: #1E6FD9; color: #fff; padding: 12px 12px 10px; font-weight: 700; font-size: 12px; }
.ph-top small { display: block; font-weight: 400; opacity: .85; font-size: 10px; }
.ph-card { margin: 9px; background: #CFE0F2; border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.ph-card i { font-style: normal; background: #0A5BC4; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 9px; }
.ph-line { display: flex; justify-content: space-between; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #EEF1F5; }
.ph-line .mono { white-space: nowrap; }
.ph-line small { color: #6B7886; display: block; font-size: 9px; }
.ph-total { display: flex; justify-content: space-between; padding: 9px 12px 4px; font-weight: 700; }
.ph-total b { color: #1E6FD9; }
.meter { margin: 4px 12px 12px; height: 6px; border-radius: 6px; background: #E3E8EE; overflow: hidden; }
.meter span { display: block; height: 100%; width: 31%; background: #0A5BC4; }
@media (max-width: 560px) {
  .devices { min-height: 0; padding-bottom: 40px; }
  .tablet { padding: 10px; border-radius: 18px; }
  .phone { width: 150px; right: 0; bottom: 0; }
  .tbl td:nth-child(3), .tbl th:nth-child(3) { display: none; }
  .nav-strip span:first-child { display: none; }
}
@media (max-width: 760px) { .nav { margin-left: auto; } .site-header .wrap { gap: 12px; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 46em; margin: 0 0 40px; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }

/* Strip of key points */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point { padding: 4px 0; }
.point .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--info); display: grid; place-items: center; margin-bottom: 12px; }
.point .ic svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.point p { margin: 0; color: var(--muted); font-size: 15.5px; }
.point h3 { font-size: 17px; margin-bottom: 4px; }
@media (max-width: 900px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card .who { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; margin: 7px 0; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.card.wide { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--info); color: var(--blue-d); margin-left: 6px; vertical-align: 3px; }
@media (prefers-color-scheme: dark) { .tag { color: #8FBBF2; } }
@media (max-width: 800px) { .apps { grid-template-columns: 1fr; } }

/* Load shedding band */
.band { background: var(--ink); color: #E7ECF2; }
.band h2 { color: #fff; }
.band .section-lead { color: #B8C4D1; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 .card { background: #333F4D; border-color: #46546A; box-shadow: none; color: #E7ECF2; }
.steps3 .card p { color: #C2CDD8; margin: 0; font-size: 15.5px; }
.steps3 .card .who { color: var(--yellow); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.how .card { position: relative; padding-top: 58px; }
.how .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 26px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.how p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 15px; color: var(--muted); margin: 2px 0 6px; }
.plan.featured { border: 2px solid var(--blue); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan ul { margin-bottom: 22px; }
.plan .plus { font-size: 14px; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact a.mail { font-size: 19px; font-weight: 600; text-decoration: none; }
.contact p { color: var(--muted); margin: 4px 0 14px; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .legal { flex-basis: 100%; font-size: 13px; }

/* Text pages (privacy, 404) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: var(--text); }
.page .updated { color: var(--muted); font-size: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
