:root {
    --brand: #4a6076;
    --brand-deep: #38495c;
    --ink: #25303b;
    --muted: #6b7684;
    --line: #e4e9ef;
    --bg: #eef2f6;
    --card: #ffffff;
    --ok-bg: #e7f4ec; --ok-fg: #1c7a41;
    --wait-bg: #fdf3e2; --wait-fg: #9a6b12;
    --err-bg: #fdecec; --err-fg: #b3261e;
    /* landing accents (logo blue + warm highlight) */
    --pr-blue: #216093; --pr-blue-deep: #17496f; --pr-accent: #e0913a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg); color: var(--ink);
    font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; line-height: 1.5;
    display: flex; flex-direction: column; min-height: 100vh;
}
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; color: var(--brand-deep); }
h2 { font-size: 1.15rem; color: var(--brand-deep); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.fineprint { color: #8a96a3; font-size: .78rem; margin-top: 14px; line-height: 1.5; }

/* Header / footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub { font-weight: 600; color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav .who { color: var(--muted); font-size: .82rem; }
.main { flex: 1 0 auto; padding: 28px 16px 48px; }
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 20px 0; margin-top: auto; }
.foot-name { font-weight: 700; color: #556270; }
.foot-line { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.foot-fine { color: #a7b0bb; font-size: .78rem; margin-top: 6px; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--brand-deep); color: #fff; border: 0; border-radius: 9px; padding: 11px 20px; font-size: .95rem; font-weight: 600; cursor: pointer; margin-top: 8px; }
.btn-primary:hover { background: #2f3e4e; text-decoration: none; color: #fff; }
.btn-ghost { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--brand-deep); }
.btn-ghost:hover { background: #f6f8fb; text-decoration: none; }
.btn-small { display: inline-block; background: var(--brand-deep); color: #fff; border-radius: 7px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.btn-small:hover { background: #2f3e4e; text-decoration: none; color: #fff; }
.btn-grad { display: block; width: 100%; background: linear-gradient(90deg, var(--pr-blue), var(--pr-blue-deep)); color: #fff; border: 0; border-radius: 9px; padding: 12px 20px; font-size: .98rem; font-weight: 600; cursor: pointer; margin-top: 8px; box-shadow: 0 8px 18px rgba(16,63,110,.22); transition: filter .15s, transform .15s; }
.btn-grad:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; color: #fff; }

/* Hero + sign-in (landing) */
.landing { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 14px 0 8px; }
.landing::before { content: ""; position: absolute; z-index: 0; width: 460px; height: 460px; left: -180px; top: -150px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(33,96,147,.16), rgba(33,96,147,0) 70%); pointer-events: none; }
.landing::after { content: ""; position: absolute; z-index: 0; width: 400px; height: 400px; right: -160px; bottom: -170px; border-radius: 50%; background: radial-gradient(circle at 60% 60%, rgba(224,145,58,.14), rgba(224,145,58,0) 70%); pointer-events: none; }
.landing > * { position: relative; z-index: 1; }

.hero { padding: 2px; }
.hero .eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-blue); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; }
.hero-title { font-size: 2.1rem; line-height: 1.16; color: var(--brand-deep); margin: 0 0 14px; font-weight: 800; letter-spacing: -.015em; }
.hero-title .u { white-space: nowrap; background: linear-gradient(transparent 62%, rgba(224,145,58,.34) 0); padding: 0 3px; border-radius: 2px; }
.lead { font-size: 1.05rem; color: #4a5561; line-height: 1.6; max-width: 46ch; }
.hero-devices { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-devices li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; font-size: .85rem; font-weight: 600; color: var(--brand-deep); box-shadow: 0 1px 2px rgba(20,40,60,.04); }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 16px; }
.trust .t { display: flex; align-items: center; gap: 8px; color: #5b6672; font-size: .82rem; font-weight: 500; }
.trust svg { width: 17px; height: 17px; stroke: var(--pr-blue); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }

.signin-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,40,60,.05), 0 20px 46px rgba(20,40,60,.12); }
.signin-card .bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--pr-blue), var(--pr-blue-deep) 55%, var(--pr-accent)); }
.signin-card h2 { margin: 6px 0 4px; font-size: 1.25rem; color: var(--ink); }

/* Generic card / narrow column */
.narrow { max-width: 460px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(20,40,60,.04); }
.card.center { text-align: center; }
.check { width: 54px; height: 54px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); font-size: 28px; line-height: 54px; margin: 0 auto 8px; }

/* Forms */
label { display: block; font-weight: 600; font-size: .88rem; margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=number], select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .95rem; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(74,96,118,.12); }
.code-input { letter-spacing: .3em; font-size: 1.3rem; text-align: center; font-weight: 700; }
.field { margin: 14px 0; }
.is-collapsed { display: none !important; }

/* Alerts + notice */
.alert { border-radius: 9px; padding: 10px 13px; font-size: .9rem; margin: 12px 0; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert-err { background: var(--err-bg); color: var(--err-fg); }
.notice { background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: #4a5561; margin: 16px 0; }

/* Order grid */
.order-grid { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin: 8px 0; }
.li { display: grid; grid-template-columns: 1fr 110px 90px 110px; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid #f0f3f7; }
.li:first-child { border-top: 0; }
.li-head { background: #f6f8fb; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8a96a3; font-weight: 700; }
.li-name { font-weight: 600; color: var(--ink); }
.li .num { text-align: right; }
.li-qty { width: 100%; }
.li-unit, .li-total { color: var(--ink); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; background: #eef1f5; color: #6b7684; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.order-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.15rem; color: var(--brand-deep); padding: 12px 4px; border-top: 2px solid var(--line); margin-top: 4px; }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.orders-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8a96a3; background: #f6f8fb; padding: 10px 12px; }
.orders-table td { padding: 11px 12px; border-top: 1px solid #f0f3f7; font-size: .92rem; }
.orders-table .num { text-align: right; }
.orders-table .ctr { text-align: center; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-wait { background: var(--wait-bg); color: var(--wait-fg); }

@media (max-width: 760px) {
    .landing { grid-template-columns: 1fr; gap: 26px; }
    .hero { text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .hero-devices, .trust { justify-content: center; }
    .li { grid-template-columns: 1fr 70px; grid-auto-rows: auto; }
    .li-head { display: none; }
    .li .li-unit::before { content: "Unit: "; color: #8a96a3; }
    .li .li-total::before { content: "Total: "; color: #8a96a3; }
    .li-unit, .li-total { text-align: left; }
}
