/* RDP ACE Website client area template: the look of rdpace.com laid over Horizon. Loaded
   after Horizon's base.css and client.css and after site-frame.css (the website's header
   and footer). Ink and blue on light grey, night in the dark; square corners, one-pixel
   ink button edges, small capital labels in a fixed-width face, a blue-to-teal bar under
   headings, cards that lift with a blue shadow. Light and dark follow the client area's own
   switch, which follows the device until someone chooses, as the website does. */

/* ------------------------------------------------------------------ colours and shapes */
body.hz, body.auth.client {
  --bg: #F5F6F8; --surface: #FFFFFF; --surface-2: #EEF0F4; --ink: #0E1116; --muted: #5A6170; --line: #DCE0E7;
  --accent: #2F5BFF; --accent-ink: #FFFFFF; --accent-soft: #E6ECFF;
  --bar: #0E1116; --bar-2: #1B2A6B; --bar-ink: #F2F4F8; --bar-muted: #AEB6C4;
  --head: #0E1116; --band: #EEF0F4; --band-ink: #0E1116; --label: #EEF0F4;
  --shadow: 0 1px 0 rgba(14, 17, 22, .04);
  --hz-side: #0E1116; --hz-side-2: #1A2130; --hz-side-ink: #D3D9E3; --hz-side-muted: #8E97A8;
  --rd-text: #2A303B; --rd-line-strong: #B9C0CC; --rd-mint: #0E8C86; --rd-mint-soft: #DDF6EE; --rd-edge: #0E1116;
  --radius: 0px; --ctl-h: 44px;
  --rd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15.5px; color: var(--rd-text); background: var(--bg);
}
:root[data-theme="dark"] body.hz, :root[data-theme="dark"] body.auth.client {
  --bg: #0A0D13; --surface: #11161F; --surface-2: #171E2A; --ink: #EEF1F6; --muted: #A3ACBC; --line: #232B39;
  --accent: #7C95FF; --accent-ink: #0A0D13; --accent-soft: #1A2448;
  --bar: #151B26; --bar-2: #1B2A6B; --bar-ink: #F2F4F8; --bar-muted: #AEB6C4;
  --head: #151B26; --band: #171E2A; --band-ink: #EEF1F6; --label: #171E2A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3);
  --hz-side: #070A0F; --hz-side-2: #171E2A;
  --rd-text: #D3D9E3; --rd-line-strong: #34405A; --rd-mint: #2EE6C5; --rd-mint-soft: #0F2E28; --rd-edge: #EEF1F6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.hz, :root:not([data-theme="light"]) body.auth.client {
  --bg: #0A0D13; --surface: #11161F; --surface-2: #171E2A; --ink: #EEF1F6; --muted: #A3ACBC; --line: #232B39;
  --accent: #7C95FF; --accent-ink: #0A0D13; --accent-soft: #1A2448;
  --bar: #151B26; --bar-2: #1B2A6B; --bar-ink: #F2F4F8; --bar-muted: #AEB6C4;
  --head: #151B26; --band: #171E2A; --band-ink: #EEF1F6; --label: #171E2A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3);
  --hz-side: #070A0F; --hz-side-2: #171E2A;
  --rd-text: #D3D9E3; --rd-line-strong: #34405A; --rd-mint: #2EE6C5; --rd-mint-soft: #0F2E28; --rd-edge: #EEF1F6;
  }
}
.hz h1, .hz h2, .hz h3, body.auth.client h1, body.auth.client h2 { font-family: inherit; letter-spacing: -.02em; color: var(--ink); }
.hz .page-title, .hz .section-head h2, body.auth.client .auth-title { color: var(--ink); font-weight: 800; }
.hz .page-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: .3em; }
.hz main a:not(.btn):not(.menu-link):not(.group-card):not(.fav-card), body.auth.client main a:not(.btn), body.auth.client .auth-foot a {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.hz main a:not(.btn):not(.menu-link):hover, body.auth.client main a:not(.btn):hover { text-decoration-thickness: 2px; }
.hz main .group-card a, .hz main a.group-card { text-decoration: none; }
.hz :focus-visible, body.auth.client :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* square everything the template draws, whatever the "Corners" setting says; true circles stay round */
body.hz *:not(.avatar):not(.dot):not(.count):not(.hz-count):not(.big-tick):not(.step-no):not(.avail-ico):not(.aff-join-ico):not(.auth-icon):not(input[type="radio"]):not(.switch),
body.auth.client *:not(.auth-icon):not(input[type="radio"]):not(.big-tick) { border-radius: 0 !important; }

/* buttons: one-pixel ink edge, filled on hover; blue for the main one */
.hz .btn, body.auth.client .btn {
  font-weight: 600; padding-left: 18px; padding-right: 18px; border: 1px solid var(--rd-edge); background: transparent; color: var(--ink);
  box-shadow: none; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.hz .btn:hover, body.auth.client .btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; transform: none; filter: none; text-decoration: none; }
.hz .btn-primary, body.auth.client .btn-primary, :root[data-theme="dark"] body.hz .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
.hz .btn-primary:hover, body.auth.client .btn-primary:hover, :root[data-theme="dark"] body.hz .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hz .btn-danger:hover { color: #fff; }
.hz .btn[disabled], .hz .btn[aria-disabled="true"] { opacity: .55; }

/* fields */
.hz input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), .hz select, .hz textarea,
body.auth.client input:not([type="checkbox"]):not([type="radio"]), body.auth.client select, body.auth.client textarea {
  border: 1px solid var(--rd-line-strong); background: var(--surface); color: var(--ink);
}
.hz input:focus, .hz select:focus, .hz textarea:focus, body.auth.client input:focus, body.auth.client select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); outline: 0;
}
.hz label, body.auth.client label { font-weight: 600; }

/* cards, tables, labels */
.hz .card { border: 1px solid var(--line); border-top: 3px solid var(--rd-line-strong); box-shadow: none; background: var(--surface); }
.hz .card > h2:first-child, .hz .card > .card-head { padding: 14px 20px; font-weight: 750; font-size: 1.02rem; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.hz .card > h2:first-child .ico, .hz .card-head h2 .ico { color: var(--accent); }
.hz table th { color: var(--muted); font: 600 .72rem var(--rd-mono); text-transform: uppercase; letter-spacing: .08em; }
.hz .badge { font: 700 .7rem var(--rd-mono); letter-spacing: .08em; text-transform: uppercase; }
.hz .crumbs { color: var(--muted); font-size: .86rem; }
.hz main .crumbs a:not(.btn) { color: var(--muted); }
.hz .lead { color: var(--muted); font-size: 1.08rem; }
.hz .drop { border: 1px solid var(--rd-line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); padding: 4px; }
.hz .stat { border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: none; }
.hz .steps { border: 1px solid var(--rd-line-strong); background: var(--surface); }
.hz .steps li { font-weight: 600; }
.hz .steps li.on { background: var(--ink); color: var(--bg); }
.hz .steps li.on .n { background: var(--accent); color: var(--accent-ink); }
.hz .modal { border: 1px solid var(--rd-edge); box-shadow: 12px 12px 0 var(--accent); }
.hz .section-head h2 { font-size: 1.5rem; position: relative; padding-bottom: 12px; }
.hz .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--rd-mint)); }

/* ------------------------------------------------------------------ the client area's own menu, under the header */
/* visitors: Horizon's header becomes a plain store bar; the logo is in the header above */
body.hz-public { background: var(--bg); }
.hz-header { position: relative; /* not static: the phone menu opens above the dimmed page only when the bar has a stacking order */ background: var(--surface); backdrop-filter: none; border-bottom: 1px solid var(--line); }
.hz-header-in { min-height: 50px; width: 100%; max-width: 1200px; padding: 0 20px; gap: 12px; }
.hz-header .hz-brand { display: none; }
.hz-menus { margin: 0 auto 0 0; }
.hz-menus > ul { background: none; padding: 0; gap: 22px; }
.hz-menus .menu-btn, .hz-menus .menu-link { height: 50px; padding: 0; font-weight: 500; color: var(--muted); font-size: .93rem; background: none; }
.hz-menus .menu:hover > .menu-btn, .hz-menus .menu:hover > .menu-link, .hz-menus .menu.open > .menu-btn { background: none; color: var(--ink); box-shadow: none; }
.hz-menus .menu.current > .menu-btn, .hz-menus .menu.current > .menu-link { background: none; color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.hz-menus .menu > .drop { left: 0; transform: none; }
.hz-header .hz-signin { color: var(--ink); font-weight: 600; }
/* visitors sign in from the website header above (on phones: in its menu), so the store bar does not repeat those two links */
.hz-header .hz-signin, .hz-header .hz-signin + .btn { display: none; }
body.hz-public .hz-content { padding: 34px 20px 72px; max-width: 1200px; width: 100%; }
@media (max-width: 860px) {
  .hz-menus > ul { background: var(--surface); border: 1px solid var(--rd-line-strong); padding: 6px 14px; gap: 0; }
  .hz-menus .menu-btn, .hz-menus .menu-link { height: 44px; }
  .hz-header .nav-toggle { margin-right: auto; }
}

/* signed in: the header sits above the frame and does not follow the page; the side menu does */
body.hz-app .rd-header { position: static; backdrop-filter: none; background: var(--bg); }
.hz-side .hz-brand { display: none; }
.hz-side-top { min-height: 0; }
.hz-nav a, .hz .hz-nav a { color: var(--hz-side-ink); text-decoration: none; }
.hz .hz-nav a:hover { color: #fff; }
.hz-nav a.on { background: var(--hz-side-2); color: #fff; box-shadow: inset 3px 0 0 #7C95FF; }
.hz-nav a.on .ico { color: #9DB2FF; }
.hz-nav h2 { font-family: var(--rd-mono); letter-spacing: .12em; }
.hz-top { background: var(--surface); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.hz .hz-search input { background: none !important; border: 0 !important; box-shadow: none !important; }
.hz-search { border: 1px solid var(--rd-line-strong); }
@media (max-width: 960px) { .hz-side:not(.open) { box-shadow: none; } }

/* sign-in, register and password pages: the same header and footer around the card */
body.auth.client { padding: 0; justify-content: flex-start; background: var(--bg); }
body.auth.client .auth-brand, body.auth.client .auth-foot-line { display: none; }
body.auth.client .auth-box { margin: 56px 16px 0; width: calc(100% - 32px); border: 1px solid var(--rd-edge); padding: 32px 34px; box-shadow: 12px 12px 0 var(--accent); background: var(--surface); }
body.auth.client .auth-foot { margin: 30px auto 56px; padding: 0 16px; }
body.auth.client .rd-footer { margin-top: auto; }
body.auth.client .btn-block { height: 46px; }
@media (max-width: 560px) { body.auth.client .auth-box { padding: 24px 20px; margin-top: 28px; box-shadow: 8px 8px 0 var(--accent); } }

/* ------------------------------------------------------------------ the store and the order pages */
.hz .page-head { align-items: flex-end; margin-bottom: 20px; }
.hz .hero { position: relative; overflow: hidden; border: 1px solid var(--line); padding: 52px 40px 46px; color: var(--rd-text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--line) 70%, transparent) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--line) 70%, transparent) 39px 40px), var(--bg); }
.hz .hero::after { content: ""; display: block; position: absolute; right: -120px; top: -120px; left: auto; bottom: auto; width: 420px; height: 420px; background: var(--accent); opacity: .10; transform: rotate(45deg); pointer-events: none; border-radius: 0; }
.hz .hero > * { position: relative; z-index: 1; }
.hz .hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.15; margin-bottom: .35em; background: linear-gradient(90deg, var(--ink) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hz .hero p { color: var(--muted); font-size: 1.1rem; }
.hz .hero .btn-light, .hz .hero .btn:not(.btn-primary) { background: var(--surface); color: var(--ink); border-color: var(--rd-edge); }
.hz .hero .btn:not(.btn-primary):hover { background: var(--ink); color: var(--bg); }
.hz .quick { background: linear-gradient(135deg, #0E1116 60%, #1B2A6B); border-top: 4px solid var(--accent); margin-top: 0; }
.hz .quick a, .hz main .quick a:not(.btn):not(.menu-link):not(.group-card):not(.fav-card) { color: #F2F4F8; font-family: var(--rd-mono); letter-spacing: .1em; text-decoration: none; }
.hz .quick a .ico { color: #9DB2FF; }
.hz .quick a:hover { background: rgba(124, 149, 255, .12); }
.hz .group-card { border: 1px solid var(--line); border-top: 3px solid var(--rd-line-strong); transition: transform .15s, border-color .15s, box-shadow .15s; }
.hz .group-card:hover { border-top-color: var(--accent); transform: translateY(-3px); box-shadow: 8px 8px 0 var(--accent-soft); }
.hz .group-card .ico { color: var(--accent); }
.hz .plan { border: 1px solid var(--line); border-top: 3px solid var(--rd-line-strong); }
.hz .plan-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.hz .plan-head h2 { color: var(--ink); }
.hz .plan.featured { border: 1px solid var(--rd-edge); box-shadow: 10px 10px 0 var(--accent); }
.hz .plan-buy .amount { color: var(--ink); font-weight: 800; }
.hz .choice { border: 1px solid var(--rd-line-strong); }
.hz .choice:hover { border-color: var(--ink); }
.hz input:checked + .choice, .hz .choice:has(input:checked), .hz .choice.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.hz .store-side .sb-head { font: 600 .76rem var(--rd-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hz main .store-side a:not(.btn) { color: var(--ink); text-decoration: none; }
.hz main .store-side a.on { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); font-weight: 700; }
@media (max-width: 600px) { .hz .hero { padding: 34px 22px 30px; } .hz .hero::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .hz .group-card { transition: none; } .hz .group-card:hover { transform: none; } }
