/* ==========================================================================
   vitaremote.com — the product site's own layer, on the VITABYTE design system
   (css/index.css, copied unedited from packages/design at build).

   Tokens only: every colour, font, radius and shadow is a var(). A shade that
   does not exist is mixed from one that does, and test/site.test.ts measures
   every text pair below in light AND dark (WCAG AA). System fonts only, as the
   tokens set them. One memorable thing: the consent prompt on the navy stage.
   Everything else is quiet.
   ========================================================================== */

:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

body { background: var(--surface); color: var(--text); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
main:focus { outline: none; }

.sx-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sx-narrow > * { max-width: 780px; }
.sx-lead { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 10px 0 0; max-width: 60ch; }

/* ---------------------------------------------------------------- the header */

.sx-top {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px);
}
/* The quiet header runs the full width; its contents line up with the page's 1160px column. */
body > .sx-top:not(.sx-top-stage) {
  max-width: none; width: 100%; background: var(--panel); border-bottom: 1px solid var(--line);
  padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - 1160px) / 2 + clamp(16px, 4vw, 40px)));
}
/* On the home page the header lies over the top of the navy stage. */
.sx-top-stage { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.sx-lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
.sx-lockup img { display: block; height: 28px; width: auto; }
.sx-lockup-rule { width: 1px; align-self: stretch; margin: 8px 0; background: color-mix(in srgb, var(--text) 26%, transparent); }
.sx-lockup-word { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.sx-nav { display: flex; gap: 4px; flex: 1 1 auto; }
.sx-nav-a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap;
}
.sx-nav-a:hover, .sx-nav-a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sx-top-end { display: flex; align-items: center; gap: 8px; flex: none; }
.sx-signin, .sx-theme { min-height: 44px; }
.sx-theme { min-width: 44px; }

/* On the stage: the same header in the stage's own ink. */
.sx-top-stage .sx-lockup-rule { background: color-mix(in srgb, var(--stage-ink) 34%, transparent); }
.sx-top-stage .sx-lockup-word, .sx-top-stage .sx-nav-a { color: var(--stage-ink); }
.sx-top-stage .btn-ghost { background: transparent; color: var(--stage-ink); border-color: color-mix(in srgb, var(--stage-ink) 72%, transparent); }
.sx-top-stage .btn-ghost:hover { background: color-mix(in srgb, var(--stage-ink) 12%, transparent); border-color: var(--stage-ink); color: var(--stage-ink); }
.sx-stage :focus-visible { outline-color: var(--stage-ink); }

/* ---------------------------------------------------------------- the stage and the hero */

/* The sign-in page's navy stage (lifted auth.css), as a band across the top. */
.sx-stage {
  position: relative; overflow: hidden; color: var(--stage-ink);
  background:
    radial-gradient(1100px 620px at 12% 0%, var(--stage-lift) 0%, transparent 58%),
    radial-gradient(900px 700px at 90% 100%, var(--stage-deep) 0%, transparent 55%),
    linear-gradient(155deg, var(--stage-mid) 0%, var(--stage-deep) 55%, var(--stage-floor) 100%);
}
.sx-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: calc(72px + clamp(32px, 7vw, 96px)) clamp(16px, 4vw, 40px) clamp(56px, 9vw, 120px);
}
.sx-hero h1 {
  color: var(--stage-ink); font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em;
  max-width: 11ch;
}
.sx-hero-lead { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 30ch; color: color-mix(in srgb, var(--stage-ink) 94%, transparent); }
.sx-hero-act { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
/* The one filled button, inverted for the stage: its ground is the stage's own ink. */
.sx-btn-stage { min-height: 52px; padding: 0 26px; font-size: 17px; background: var(--stage-ink); color: var(--vb-navy); }
.sx-btn-stage:hover { background: color-mix(in srgb, var(--stage-ink) 86%, var(--vb-navy)); color: var(--vb-navy); }

/* The consent prompt, drawn: a client's screen, dimmed, with the question over it. */
.sx-prompt { margin: 0; display: grid; }
.sx-prompt > * { grid-area: 1 / 1; }
.sx-screen {
  position: relative; min-height: 340px; border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-lift) 55%, var(--stage-floor)) 0%, var(--stage-floor) 100%);
  border: 1px solid color-mix(in srgb, var(--stage-ink) 18%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--shadow-ink) 80%, transparent);
}
/* Two of the client's own windows, faint, so it reads as somebody's screen. */
.sx-screen::before, .sx-screen::after {
  content: ''; position: absolute; border-radius: 8px;
  background: color-mix(in srgb, var(--stage-ink) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--stage-ink) 14%, transparent);
}
.sx-screen::before { left: 7%; top: 9%; width: 52%; height: 58%; }
.sx-screen::after { right: 6%; top: 22%; width: 38%; height: 50%; background: color-mix(in srgb, var(--stage-ink) 6%, transparent); }
/* The client's taskbar along the foot of their screen. */
.sx-screen-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; gap: 8px; align-items: center; padding: 0 12px;
  background: color-mix(in srgb, var(--shadow-ink) 45%, transparent);
}
.sx-screen-bar span { width: 18px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--stage-ink) 22%, transparent); }
.sx-screen-bar span:first-child { background: color-mix(in srgb, var(--stage-ink) 42%, transparent); }
.sx-dialog {
  position: relative; z-index: 1; place-self: center; width: min(390px, calc(100% - 32px)); margin: 24px 0 48px;
  padding: 20px 20px 18px; border-radius: var(--radius-lg); background: var(--panel); color: var(--text);
  box-shadow: var(--shadow-drawer);
}
.sx-dialog-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.sx-dialog-text { margin: 8px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.35; }
.sx-dialog-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.sx-fake { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.sx-fake-ghost { border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel); }
.sx-fake-fill { background: var(--brand); color: var(--accent-ink); animation: sx-ask 1.8s var(--ease-standard, ease-out) 0.9s 2 both; }
/* The one motion on the site, twice and then still: the Allow button asks. */
@keyframes sx-ask {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .sx-fake-fill { animation: none; } }

/* ---------------------------------------------------------------- the bands */

.sx-band { padding: clamp(56px, 8vw, 96px) 0; }
.sx-band-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sx-band h2, .sx-page h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.sx-band h3 { font-size: 19px; font-weight: 700; }

/* The three steps are a sequence, so they are numbered, on one rule that runs through them. */
.sx-steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line-2); }
.sx-steps li { counter-increment: step; position: relative; padding-top: 28px; }
.sx-steps li::before {
  content: counter(step); position: absolute; top: -1px; left: 0; padding-top: 12px; border-top: 3px solid var(--brand);
  font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; color: var(--brand-ink); min-width: 40px;
}
.sx-steps h3 { margin-top: 24px; }
.sx-steps p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.55; max-width: 38ch; }
.sx-angie { margin: 40px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.sx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; margin-top: 32px; }
.sx-list { margin: 12px 0 0; padding: 0 0 0 20px; display: grid; gap: 10px; line-height: 1.55; color: var(--ink-2); }
.sx-list li::marker { color: var(--brand); }
.sx-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 700; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.sx-more:hover { text-decoration-thickness: 2px; }

.sx-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.sx-reach { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.sx-reach li { border-bottom: 1px solid var(--line-2); }
.sx-reach a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 4px; flex-wrap: wrap; }
.sx-reach a:hover .sx-reach-v { text-decoration: underline; text-underline-offset: 4px; }
.sx-reach-k { color: var(--muted); font-weight: 600; font-size: 15px; }
.sx-reach-v { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-ink); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- inner pages */

.sx-page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.sx-page section { margin-top: 44px; }
.sx-page h2 { font-size: 22px; font-weight: 700; }
.sx-page .sx-list { color: var(--text); }
.sx-page-act { margin-top: 48px; }
.sx-page-act .btn { min-height: 48px; padding: 0 22px; }
.sx-prose h2 { margin-top: 36px; }
.sx-prose p, .sx-prose li { line-height: 1.6; max-width: 68ch; }
.sx-prose ul { padding-left: 20px; display: grid; gap: 8px; }
.sx-prose a:not(.btn), .sx-page section a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sx-draft {
  margin: 0 0 28px; padding: 12px 16px; border-radius: var(--radius); color: var(--text); font-size: 15px;
  background: color-mix(in srgb, var(--gold) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.sx-missing { min-height: 50vh; }

/* ---------------------------------------------------------------- the footer */

.sx-foot { border-top: 1px solid var(--line); background: var(--panel); }
.sx-foot-in { max-width: 1160px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; color: var(--muted); font-size: 15px; }
.sx-foot-in p { margin: 0; }
.sx-foot-brand a, .sx-foot-links a { color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.sx-foot-brand a:hover, .sx-foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-foot-links { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.sx-foot-fine { margin-left: auto !important; }

/* ---------------------------------------------------------------- narrow windows */

@media (max-width: 960px) {
  .sx-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sx-hero h1 { max-width: 14ch; }
  .sx-two, .sx-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sx-top { column-gap: 12px; }
  .sx-hero { padding-top: calc(132px + 24px); }
  .sx-nav { order: 3; flex-basis: 100%; margin: 0 -12px; }
  .sx-top-end { margin-left: auto; }
}
@media (max-width: 720px) {
  .sx-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sx-screen { min-height: 260px; }
  .sx-foot-fine { margin-left: 0 !important; }
}
@media (max-width: 420px) {
  .sx-lockup { gap: 9px; }
  .sx-lockup img { height: 22px; }
  .sx-lockup-word { font-size: 15px; }
  .sx-signin { padding: 0 12px; font-size: 15px; }
  .sx-nav-a { padding: 0 10px; font-size: 15px; }
  .sx-dialog-text { font-size: 17px; }
}

/* A telephone number never breaks across lines. */
a[href^="tel:"] { white-space: nowrap; }
