/* ═══════════════════════════════════════════════════════════════════
   Public pages — Home (landing), Sign in, Sign up.
   One look for everything a visitor sees before signing in.
   Light and dark (the same "theme" choice as inside the app:
   light = light, every other theme = dark).
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --p-bg: #f4f6fb;
    --p-bg2: #e9edf6;
    --p-surface: #ffffff;
    --p-ink: #121b33;
    --p-text: #1d2742;
    --p-text2: #4a5573;
    --p-text3: #7a849e;
    --p-line: #dde3ef;
    --p-brand: #2f5bea;
    --p-brand-ink: #ffffff;
    --p-brand-soft: #e6ecfd;
    --p-accent: #f0a63a;
    --p-accent-soft: #fdf1dc;
    --p-good: #15a37f;
    --p-good-soft: #dff5ee;
    --p-bad: #d6455d;
    --p-bad-soft: #fbe5e9;
    --p-shadow: 0 1px 2px rgba(18, 27, 51, .06), 0 12px 32px -12px rgba(18, 27, 51, .18);
    --p-shadow-lg: 0 2px 4px rgba(18, 27, 51, .05), 0 30px 70px -24px rgba(18, 27, 51, .35);
    --p-panel: #121b33;          /* the dark brand panel (sign in / sign up) */
    --p-panel-text: #e8ecf6;
    --p-panel-text2: #a9b3cc;
    /* soft, rounded letters — friendly to read */
    --p-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --p-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --p-r: 14px;
    color-scheme: light;
}

html[data-public="dark"] {
    --p-bg: #0c1325;
    --p-bg2: #111a31;
    --p-surface: #151f3a;
    --p-ink: #f1f4fb;
    --p-text: #e3e8f4;
    --p-text2: #a9b3cc;
    --p-text3: #7c87a3;
    --p-line: #243051;
    --p-brand: #5b7ff5;
    --p-brand-soft: #1c2a55;
    --p-accent: #f4b45a;
    --p-accent-soft: #3a2c14;
    --p-good: #35c79d;
    --p-good-soft: #123a31;
    --p-bad: #f07489;
    --p-bad-soft: #3d1a23;
    --p-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --p-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .75);
    --p-panel: #081022;
    color-scheme: dark;
}

/* Kurdish (Sorani / Badini / Kurmanji in Arabic letters) and Arabic */
html[dir="rtl"] {
    --p-font: 'Noto Sans Arabic', 'Nunito', system-ui, Tahoma, sans-serif;
    --p-display: 'Noto Sans Arabic', 'Nunito', system-ui, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.p-body {
    margin: 0;
    min-height: 100vh;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

:where(.p-body a) { color: var(--p-brand); }
.p-body :focus-visible { outline: 2px solid var(--p-brand); outline-offset: 2px; border-radius: 6px; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── buttons ─────────────────────────────────────────────────────── */
.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: 11px;
    border: 1px solid var(--p-line); background: var(--p-surface); color: var(--p-text);
    font: 700 .96rem/1 var(--p-font); text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.p-btn:hover { border-color: var(--p-text3); color: var(--p-ink); }
.p-btn:active { transform: translateY(1px); }
.p-btn-primary { background: var(--p-brand); border-color: var(--p-brand); color: var(--p-brand-ink); }
.p-btn-primary:hover { background: color-mix(in srgb, var(--p-brand) 88%, #000); border-color: transparent; color: #fff; }
.p-btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 13px; }
.p-btn-block { width: 100%; }
.p-btn:disabled { opacity: .6; cursor: progress; }
.p-btn-quiet { background: transparent; border-color: transparent; color: var(--p-text2); }
.p-btn-quiet:hover { color: var(--p-ink); border-color: transparent; background: var(--p-bg2); }

/* ── top bar ─────────────────────────────────────────────────────── */
.p-top {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--p-bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--p-line) 70%, transparent);
}
.p-top-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.p-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--p-ink); text-decoration: none; font: 800 1.12rem/1 var(--p-display); }
.p-brand img { height: 34px; width: auto; border-radius: 9px; }
.p-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: var(--p-ink); color: var(--p-bg); font: 800 1rem/1 var(--p-display);
}
html[data-public="dark"] .p-mark { background: var(--p-brand); color: #fff; }
.p-top-nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.p-top-nav a { color: var(--p-text2); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 9px; }
.p-top-nav a:hover { color: var(--p-ink); background: var(--p-bg2); }
.p-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.p-lang select {
    height: 40px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-surface); color: var(--p-text);
    padding: 0 10px; font: 500 .88rem var(--p-font); max-width: 150px;
}
.p-icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-surface);
    color: var(--p-text2); display: grid; place-items: center; cursor: pointer; font-size: 1rem;
}
.p-icon-btn:hover { color: var(--p-ink); }

/* ── landing: hero ───────────────────────────────────────────────── */
.p-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.p-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.p-hero h1 {
    font: 800 clamp(2.2rem, 4.2vw, 3.4rem)/1.15 var(--p-display);
    letter-spacing: -.012em; color: var(--p-ink); margin: 0 0 20px; text-wrap: balance;
}
html[dir="rtl"] .p-hero h1 { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
.p-lead { font-size: 1.15rem; line-height: 1.7; color: var(--p-text2); margin: 0 0 30px; max-width: 34em; }
.p-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.p-trial { margin: 18px 0 0; color: var(--p-text3); font-size: .9rem; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.p-trial span { display: inline-flex; align-items: center; gap: 6px; }
.p-trial i { color: var(--p-good); }

/* the system preview — a picture of the real app, built in HTML */
.p-shot { position: relative; animation: p-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes p-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.p-frame { border-radius: 18px; background: var(--p-surface); border: 1px solid var(--p-line); box-shadow: var(--p-shadow-lg); overflow: hidden; }
.p-frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--p-line); background: var(--p-bg2); }
.p-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--p-line); }
.p-frame-url { margin-inline-start: 10px; flex: 1; max-width: 300px; height: 24px; border-radius: 7px; background: var(--p-surface); border: 1px solid var(--p-line); color: var(--p-text3); font-size: .72rem; display: flex; align-items: center; padding: 0 10px; direction: ltr; }
.p-app { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 360px; }
.p-side { background: var(--p-ink); color: #c6cde0; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: .76rem; }
html[data-public="dark"] .p-side { background: #0a1122; }
.p-side b { color: #fff; font: 700 .82rem var(--p-display); padding: 2px 8px 12px; }
.p-side span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-side span.on { background: rgba(255, 255, 255, .1); color: #fff; }
.p-main { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.p-main-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-main-h strong { font: 700 .95rem var(--p-display); color: var(--p-ink); }
.p-main-h em { font-style: normal; font-size: .7rem; color: var(--p-text3); }
.p-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-kpi { border: 1px solid var(--p-line); border-radius: 11px; padding: 10px; min-width: 0; }
.p-kpi small { display: block; font-size: .66rem; color: var(--p-text3); }
.p-kpi b { display: block; font: 700 1rem var(--p-display); color: var(--p-ink); white-space: nowrap; direction: ltr; text-align: start; }
.p-kpi u { text-decoration: none; font-size: .66rem; font-weight: 600; color: var(--p-good); }
.p-chart { border: 1px solid var(--p-line); border-radius: 11px; padding: 10px 12px; }
.p-chart small { font-size: .68rem; color: var(--p-text3); }
.p-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: 8px; }
.p-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--p-brand-soft); }
.p-bars span.hi { background: var(--p-brand); }
.p-rows { border: 1px solid var(--p-line); border-radius: 11px; overflow: hidden; font-size: .72rem; }
.p-rows div { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 6px; padding: 7px 10px; border-top: 1px solid var(--p-line); align-items: center; }
.p-rows div:first-child { border-top: 0; color: var(--p-text3); font-size: .64rem; }
.p-rows b { font-weight: 600; color: var(--p-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-rows .amt { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
.p-tag { justify-self: start; padding: 2px 7px; border-radius: 99px; font-size: .62rem; font-weight: 700; background: var(--p-good-soft); color: var(--p-good); }
.p-tag.wait { background: var(--p-accent-soft); color: color-mix(in srgb, var(--p-accent) 70%, #5a3a00); }
html[data-public="dark"] .p-tag.wait { color: var(--p-accent); }
/* the POS receipt that sits over the corner */
.p-receipt {
    position: absolute; inset-inline-end: -18px; bottom: -28px; width: 200px;
    background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 14px; box-shadow: var(--p-shadow-lg);
    padding: 14px; font-size: .74rem;
}
.p-receipt-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--p-ink); margin-bottom: 8px; }
.p-receipt-h i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--p-accent-soft); color: var(--p-accent); }
.p-receipt p { display: flex; justify-content: space-between; margin: 3px 0; color: var(--p-text2); }
.p-receipt p span:last-child { direction: ltr; font-variant-numeric: tabular-nums; }
.p-receipt hr { border: 0; border-top: 1px dashed var(--p-line); margin: 8px 0; }
.p-receipt .tot { color: var(--p-ink); font-weight: 700; font-size: .82rem; }

/* ── landing: sections ───────────────────────────────────────────── */
.p-sec { padding: 72px 0; border-top: 1px solid var(--p-line); }
.p-sec-h { max-width: 640px; margin-bottom: 36px; }
.p-sec-h h2 { font: 800 clamp(1.6rem, 2.8vw, 2.2rem)/1.25 var(--p-display); letter-spacing: -.01em; color: var(--p-ink); margin: 0 0 12px; text-wrap: balance; }
html[dir="rtl"] .p-sec-h h2 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
.p-sec-h p { color: var(--p-text2); margin: 0; font-size: 1.05rem; line-height: 1.7; }

/* apps: one row per group — the group on one side, its apps on the other */
.p-groups { border-top: 1px solid var(--p-line); }
.p-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--p-line); }
.p-group h3 { margin: 4px 0 0; font: 800 1.05rem var(--p-display); color: var(--p-ink); }
.p-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 28px; }
.p-appi { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.p-appi i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; background: var(--p-brand-soft); color: var(--p-brand); }
.p-appi b { display: block; color: var(--p-ink); font-weight: 600; margin-bottom: 2px; }
.p-appi span { display: block; color: var(--p-text2); font-size: .89rem; line-height: 1.45; }

/* sizes: a growing line from a shop to a factory */
.p-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-size { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.p-size-scale { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-bottom: 18px; }
.p-size-scale span { width: 12px; border-radius: 3px; background: var(--p-line); }
.p-size-scale span.on { background: var(--p-brand); }
.p-size h3 { margin: 0 0 6px; font: 700 1.2rem var(--p-display); color: var(--p-ink); }
.p-size > p { margin: 0 0 16px; color: var(--p-text2); font-size: .95rem; }
.p-size ul { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--p-line); display: grid; gap: 8px; font-size: .92rem; }
.p-size li { display: flex; gap: 10px; align-items: baseline; }
.p-size li i { color: var(--p-good); flex: none; }

/* made for here: languages, currency, payments */
.p-local { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.p-langs { display: flex; flex-wrap: wrap; gap: 10px; }
.p-langs span { padding: 10px 16px; border-radius: 12px; background: var(--p-surface); border: 1px solid var(--p-line); font-weight: 600; color: var(--p-ink); }
.p-facts { display: grid; gap: 14px; }
.p-fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.p-fact i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--p-accent-soft); color: var(--p-accent); font-size: 1.15rem; }
.p-fact b { display: block; color: var(--p-ink); }
.p-fact span { color: var(--p-text2); font-size: .93rem; }

.p-final { margin: 0 0 72px; padding: 44px; border-radius: 24px; background: var(--p-ink); color: #e8ecf6; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
html[data-public="dark"] .p-final { background: var(--p-surface); border: 1px solid var(--p-line); }
.p-final h2 { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.3 var(--p-display); margin: 0 0 6px; color: #fff; letter-spacing: -.01em; }
html[data-public="dark"] .p-final h2 { color: var(--p-ink); }
.p-final p { margin: 0; color: #a9b3cc; }
.p-final .p-btn:not(.p-btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
html[data-public="dark"] .p-final .p-btn:not(.p-btn-primary) { color: var(--p-text); border-color: var(--p-line); }

.p-foot { border-top: 1px solid var(--p-line); padding: 26px 0 34px; color: var(--p-text3); font-size: .88rem; }
.p-foot .p-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.p-foot a { color: var(--p-text2); text-decoration: none; margin-inline-start: 16px; }

/* ── sign in / sign up: brand panel + form ───────────────────────── */
.p-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.p-auth-panel {
    position: relative; overflow: hidden; background: var(--p-panel); color: var(--p-panel-text);
    padding: 40px 48px; display: flex; flex-direction: column;
}
.p-auth-panel .p-brand { color: #fff; }
.p-auth-panel .p-mark { background: #fff; color: var(--p-panel); }
.p-auth-panel h2 { font: 800 clamp(1.8rem, 2.8vw, 2.4rem)/1.25 var(--p-display); letter-spacing: -.01em; margin: auto 0 16px; color: #fff; max-width: 13em; text-wrap: balance; }
html[dir="rtl"] .p-auth-panel h2 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
.p-auth-panel > p { color: var(--p-panel-text2); margin: 0 0 28px; max-width: 30em; }
.p-auth-list { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 12px; }
.p-auth-list li { display: flex; gap: 12px; align-items: center; color: var(--p-panel-text); }
.p-auth-list i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #9db3ff; flex: none; }
.p-auth-foot { margin-top: 32px; color: var(--p-panel-text2); font-size: .84rem; }
/* the grid of small squares in the corner of the panel: stock on shelves */
.p-auth-panel::after {
    content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 260px; height: 260px; opacity: .14; pointer-events: none;
    background-image: radial-gradient(circle, #9db3ff 2px, transparent 2.5px); background-size: 22px 22px;
    mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
}

.p-auth-side { display: flex; flex-direction: column; min-width: 0; }
.p-auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 18px 24px; }
.p-auth-top .p-back { margin-inline-end: auto; }
.p-auth-body { flex: 1; display: grid; place-items: center; padding: 12px 24px 48px; }
.p-form-card { width: 100%; max-width: 420px; }
.p-form-card.wide { max-width: 640px; }
.p-form-card h1 { font: 800 1.85rem/1.25 var(--p-display); letter-spacing: -.01em; color: var(--p-ink); margin: 0 0 8px; }
html[dir="rtl"] .p-form-card h1 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
.p-form-card .p-sub { color: var(--p-text2); margin: 0 0 28px; }

.p-field { display: block; margin-bottom: 16px; }
.p-field > span, .p-label-row > span { display: block; font-weight: 600; font-size: .88rem; color: var(--p-text); margin-bottom: 6px; }
.p-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.p-label-row a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.p-in {
    width: 100%; height: 48px; border-radius: 11px; border: 1.5px solid var(--p-line); background: var(--p-surface);
    color: var(--p-text); padding: 0 14px; font: 400 1rem var(--p-font); outline: none; transition: border-color .15s, box-shadow .15s;
}
select.p-in { padding-inline-end: 8px; }
.p-in::placeholder { color: var(--p-text3); }
.p-in:focus { border-color: var(--p-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-brand) 18%, transparent); }
.p-in.input-validation-error { border-color: var(--p-bad); }
.p-pw { position: relative; }
.p-pw .p-in { padding-inline-end: 48px; }
.p-pw button { position: absolute; inset-inline-end: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; background: transparent; color: var(--p-text3); border-radius: 8px; cursor: pointer; }
.p-pw button:hover { color: var(--p-text); }
.p-err { display: block; color: var(--p-bad); font-size: .82rem; margin-top: 5px; }
.p-check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--p-text2); margin: 4px 0 22px; cursor: pointer; }
.p-check input { width: 18px; height: 18px; accent-color: var(--p-brand); }
.p-hint { color: var(--p-text3); font-size: .8rem; margin-top: 5px; }
.p-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.p-part { font: 700 1rem var(--p-display); color: var(--p-ink); margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid var(--p-line); }
.p-part:first-of-type { border-top: 0; padding-top: 0; }

.p-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; border: 1px solid transparent; }
.p-alert.err { background: var(--p-bad-soft); color: var(--p-bad); border-color: color-mix(in srgb, var(--p-bad) 30%, transparent); }
.p-alert.ok { background: var(--p-good-soft); color: var(--p-good); border-color: color-mix(in srgb, var(--p-good) 30%, transparent); }
.p-alert.warn { background: var(--p-accent-soft); color: color-mix(in srgb, var(--p-accent) 65%, #4a3000); border-color: color-mix(in srgb, var(--p-accent) 40%, transparent); }
html[data-public="dark"] .p-alert.warn { color: var(--p-accent); }

.p-alt { text-align: center; margin-top: 24px; color: var(--p-text2); font-size: .94rem; }
.p-alt a { font-weight: 700; text-decoration: none; }
.p-secure { text-align: center; margin-top: 18px; color: var(--p-text3); font-size: .8rem; }

.p-demo { margin-top: 22px; border: 1px dashed var(--p-line); border-radius: 12px; padding: 12px 14px; font-size: .82rem; color: var(--p-text2); }
.p-demo b { color: var(--p-text); }
.p-demo div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.p-demo code { color: var(--p-brand); }

.p-center-card { max-width: 520px; margin: 0 auto; text-align: center; }
.p-center-card .p-big { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--p-brand-soft); color: var(--p-brand); }
.p-center-card .p-big.bad { background: var(--p-bad-soft); color: var(--p-bad); }
.p-center-card .p-big.off { background: var(--p-bg2); color: var(--p-text3); }
.p-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .p-hero { grid-template-columns: minmax(0, 1fr); padding: 48px 0 70px; gap: 40px; }
    .p-receipt { inset-inline-end: 8px; }
    .p-sizes { grid-template-columns: minmax(0, 1fr); }
    .p-local { grid-template-columns: minmax(0, 1fr); }
    .p-group { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .p-auth { grid-template-columns: minmax(0, 1fr); }
    .p-auth-panel { padding: 22px 20px; }
    .p-auth-panel h2, .p-auth-panel > p, .p-auth-list, .p-auth-foot { display: none; }
    .p-auth-panel::after { display: none; }
}
@media (max-width: 720px) {
    .p-top-nav { display: none; }
    .p-top-in { padding: 10px 16px; gap: 8px; }
    .p-top-end .p-btn-quiet, .p-top-end .p-hide-sm { display: none; }
    .p-wrap { padding: 0 16px; }
    .p-app { grid-template-columns: minmax(0, 1fr); }
    .p-side { display: none; }
    .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-kpis .p-kpi:nth-child(3) { display: none; }
    .p-receipt { display: none; }
    .p-sec { padding: 52px 0; }
    .p-final { padding: 28px 22px; }
    .p-grid2 { grid-template-columns: minmax(0, 1fr); }
    .p-auth-top { padding: 14px 16px; }
    .p-auth-body { padding: 4px 16px 36px; }
    .p-lang select { max-width: 104px; }
    .p-top .p-brand > span:not(.p-mark) { display: none; }
    .p-top-end { min-width: 0; gap: 6px; }
    .p-top-end .p-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .p-shot { animation: none; }
    .p-btn { transition: none; }
}

/* ── PUBLISH: Privacy Policy and Terms of Use (Views/Legal/Page.cshtml) ── */
.p-legal { max-width: 820px; padding-top: 32px; padding-bottom: 48px; }
.p-legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 6px; }
.p-legal-date { opacity: .7; font-size: .9rem; margin: 0 0 18px; }
.p-legal-toc { border: 1px solid rgba(127, 127, 127, .25); border-radius: 14px; padding: 14px 18px; margin: 22px 0 28px; }
.p-legal-toc ol { margin: 8px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 28px; }
.p-legal-toc li { margin: 3px 0; break-inside: avoid; }
.p-legal-sec { scroll-margin-top: 90px; margin-bottom: 22px; }
.p-legal-sec h2 { font-size: 1.15rem; margin: 0 0 8px; }
.p-legal-sec p { line-height: 1.7; margin: 0 0 8px; }
.p-legal-other { margin-top: 30px; font-weight: 600; }
.p-foot a + a { margin-inline-start: 14px; }
@media (max-width: 640px) { .p-legal-toc ol { columns: 1; } }
