/* Customer pages (My license, offline activation, team, checkout): the public website's look. Tokens, header,
 * footer and buttons mirror marketing-site/src/css/site.css; keep them in step. The admin panel keeps /style.css. */
:root {
  color-scheme: light;
  --h-bg: #FFFFFF; --h-ink: #0B0C10; --h-text-2: #3C4558; --h-text-3: #5B6478; --h-nav: #2A3040;
  --h-blue: #2F5BEA; --h-blue-hover: #2449C4; --h-blue-soft: #A9BDF2;
  --h-rule: #E6EBF5; --h-rule-dot: #B7C4E6; --h-tray: #EEF3FF; --h-tray-line: #DCE5FA;
  --h-card-line: #E1E8F7; --h-btn-line: #D5DDF0; --h-art: #F8FAFF;
  --h-ok-ink: #1A7F45; --h-bad-ink: #C62B2B; --h-warn-ink: #9A6200;
  --h-foot-bg: #1B1B1D; --h-foot-text: #B9BDC7; --h-foot-dim: #8D93A0;
  --h-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --h-ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--h-bg); color: var(--h-ink); font: 17px/1.55 var(--h-sans); overflow-x: hidden; }
body :focus-visible { outline: 2px solid var(--h-blue); outline-offset: 3px; }
a { color: var(--h-blue); text-decoration: underline; text-decoration-color: var(--h-blue-soft); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--h-blue); }
p { margin: 0; color: var(--h-text-2); }
p + p { margin-top: 12px; }
[hidden] { display: none !important; }
main { flex: 1; display: flex; flex-direction: column; }
main > section:last-child { flex: 1; display: flex; flex-direction: column; }
main > section:last-child > .col { flex: 1; width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Ruled centre column with the dotted corners, as on the website */
.col { position: relative; max-width: 1140px; margin: 0 auto; padding: 56px 32px 80px; border-left: 1px solid var(--h-rule); border-right: 1px solid var(--h-rule); }
.col::before, .col::after { content: ""; position: absolute; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--h-rule-dot); }
.col::before { left: -3px; }
.col::after { right: -3px; }
.page-head .col { padding: 88px 32px 40px; }
.page-head + section { border-top: 1px solid var(--h-rule); }
.eyebrow { font: 500 13px var(--h-mono); color: var(--h-blue); letter-spacing: .04em; text-transform: uppercase; }
h1 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; max-width: 20ch; }
h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
.lede { margin-top: 20px; font-size: 19px; max-width: 60ch; }

/* Content: a main card and a side column of help */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.tray { background: var(--h-tray); border: 1px solid var(--h-tray-line); border-radius: 18px; padding: 8px; }
.card { background: #fff; border: 1px solid var(--h-card-line); border-radius: 12px; padding: 28px; }
.tray > .card { box-shadow: 0 12px 30px rgba(20, 40, 100, .06); }
.card + .card { margin-top: 16px; }
.stack > .card { margin: 0; }
.card h2 + p, .card h3 + p { margin-top: 8px; }
.help { display: flex; gap: 14px; padding: 20px; }
.help .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--h-tray); color: var(--h-blue); }
.help .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help p { font-size: 15px; }
.small-print { margin-top: 24px; font-size: 15px; color: var(--h-text-3); }

/* Steps: numbered, with the website's mono numerals */
ol.steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--h-text-2); }
ol.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; }
ol.steps li::before { content: counter(step, decimal-leading-zero); flex: none; font: 500 13px var(--h-mono); color: var(--h-blue); }

/* Forms */
label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 500; color: var(--h-nav); }
form > label:first-of-type, .card > label:first-child { margin-top: 0; }
input, textarea, select { width: 100%; font: 16px var(--h-sans); color: var(--h-ink); background: #fff; border: 1px solid var(--h-btn-line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #98A1B5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--h-blue); box-shadow: 0 0 0 4px rgba(47, 91, 234, .12); }
textarea { min-height: 96px; font: 14px/1.5 var(--h-mono); }
select { width: auto; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions { margin-top: 24px; }

/* Buttons: the website's pills */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--h-sans); color: #fff; background: var(--h-blue); border: 1px solid transparent; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
button:hover, .btn:hover { background: var(--h-blue-hover); }
button.secondary, .btn-o { background: #fff; color: var(--h-ink); border-color: var(--h-btn-line); font-weight: 500; }
button.secondary:hover, .btn-o:hover { background: #fff; border-color: var(--h-blue); color: var(--h-blue); }
button.small, .btn-sm { padding: 8px 16px; font-size: 14px; }
button.danger { background: #fff; color: var(--h-bad-ink); border-color: var(--h-btn-line); font-weight: 500; }
button.danger:hover { background: #fff; border-color: var(--h-bad-ink); }
button:disabled { opacity: .5; cursor: default; }

/* Text bits */
.key { font: 500 20px/1.4 var(--h-mono); letter-spacing: .03em; word-break: break-all; color: var(--h-ink); }
.key-box { margin-top: 12px; padding: 18px 20px; border-radius: 12px; background: var(--h-art); border: 1px dashed var(--h-blue-soft); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--h-tray); border: 1px solid var(--h-tray-line); color: var(--h-blue-hover); font: 500 12px var(--h-mono); letter-spacing: .04em; text-transform: uppercase; }
code { font: .88em var(--h-mono); background: var(--h-tray); border: 1px solid var(--h-tray-line); border-radius: 6px; padding: 1px 6px; }
.dim { color: var(--h-text-3); }
.note { margin-top: 8px; font-size: 15px; }
.ok { color: var(--h-ok-ink); }
.error { color: var(--h-bad-ink); }
#status:not(:empty), #signinStatus:not(:empty), #appStatus:not(:empty) { margin-top: 16px; font-size: 15px; }

/* Header: the website's floating pill */
.site-header { position: sticky; top: 12px; z-index: 5; padding: 12px 16px 0; pointer-events: none; }
.site-header nav { pointer-events: auto; max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid var(--h-btn-line); border-radius: 999px; box-shadow: 0 0 0 6px rgba(47, 91, 234, .08), 0 8px 24px rgba(20, 40, 100, .06); padding: 8px 10px 8px 20px; display: flex; align-items: center; gap: 24px; }
.site-header a { text-decoration: none; color: inherit; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; flex: 1; justify-content: center; font-size: 15px; font-weight: 500; color: var(--h-nav); }
.site-nav a { padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--h-ink); background: var(--h-art); }
.site-header .account { font-size: 14px; color: var(--h-nav); white-space: nowrap; }
.site-header .account:hover, .site-header .account[aria-current="page"] { color: var(--h-blue); }
.site-header .account[aria-current="page"] { font-weight: 600; }
.site-header .btn { color: #fff; padding: 10px 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid var(--h-btn-line); background: #fff; color: var(--h-ink); }
.menu-btn:hover { background: #fff; }
.menu-btn svg path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-origin: 9px 9px; transition: transform .28s var(--h-ease); }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { pointer-events: auto; max-width: 1120px; margin: 8px auto 0; padding: 8px; display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--h-btn-line); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0 0 6px rgba(47, 91, 234, .08), 0 18px 40px rgba(20, 40, 100, .14); }
.mobile-menu a { padding: 13px 16px; border-radius: 14px; font-size: 17px; font-weight: 500; color: var(--h-nav); }
.mobile-menu a:hover { background: var(--h-tray); color: var(--h-ink); }
.mobile-menu .sub { margin-top: 4px; border-top: 1px solid var(--h-rule); border-radius: 0 0 14px 14px; font-size: 15px; color: var(--h-text-3); }

/* Footer: the website's dark band, trimmed to a line of links */
.site-footer { margin-top: 0; background: var(--h-foot-bg); color: var(--h-foot-text); font-size: 15px; }
.site-footer .foot-in { max-width: 1140px; margin: 0 auto; padding: 40px 32px 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer b { color: #fff; font-size: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--h-foot-text); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { width: 100%; border-top: 1px solid #333; padding-top: 18px; font-size: 13px; color: var(--h-foot-dim); }

@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 900px) {
  .site-nav, .site-header .account { display: none; }
  .site-header nav { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .col { padding: 40px 16px 56px; }
  .page-head .col { padding: 64px 16px 32px; }
  .card { padding: 20px; }
  .site-footer .foot-in { padding: 32px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) { button, .btn, .site-nav a, .menu-btn svg path, input { transition: none; } }
