/* ==========================================================================
   The HR Suite (Vibe Crafted Software) — Design Tokens & Base Styles
   From the vibecraftedsoftware.com stylesheet: the VCS monochrome ramp (app-standards 05)
   Swap the values under :root to apply a real brand kit later; the rest of
   this file (and every page) reads from these variables, so a rebrand is a
   one-file change.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Grayscale palette — the whole theme reads from these. --gray-900 is the
     brand's exact "ink" value (#0C0C0C, per the logo/website style guide) —
     used for text, buttons, and the header lockup. The rest of the ramp is a
     softened black/white spread (not pure #000/#fff) supporting it for UI
     roles the brand kit doesn't itself define, like muted text and borders. */
  --gray-950: #050505;
  --gray-900: #0c0c0c;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #6b6b6b;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f0f0f0;
  --gray-50: #f7f7f7;

  /* Brand colors — currently mapped onto the grayscale ramp. Kept as their
     own tokens (rather than using --gray-* directly everywhere) so a real
     accent color can be reintroduced later — e.g. for the planned hover
     highlight on product tiles — by changing only these two lines. */
  --color-primary: var(--gray-900);
  --color-primary-dark: var(--gray-950);
  --color-accent: var(--gray-600);
  --color-accent-dark: var(--gray-800);

  /* Reserved for a future hover/interaction accent (not used yet — see
     products.html tiles). Intentionally unused by any rule today. */

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: var(--gray-50);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-border: var(--gray-200);
  /* A panel that floats over the page (the menu, the Log in list): its own
     surface and a firmer edge, because a shadow alone doesn't show on a dark
     page and a white panel has no edge on a white one. */
  --color-surface-raised: #ffffff;
  --color-border-strong: var(--gray-300);

  /* Theme-dependent surfaces/foregrounds that flip in dark mode below —
     kept as their own tokens (rather than hardcoded) so every rule that
     uses them adapts automatically. */
  --color-header-bg: rgba(255, 255, 255, 0.92);
  --color-icon-bg: rgba(0, 0, 0, 0.06);
  --color-primary-foreground: #ffffff;
  --color-error-bg: rgba(220, 38, 38, 0.1);
  --color-error-text: #b91c1c;

  /* Type */
  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --container-width: 1160px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
}

/* ---------- Dark mode ----------
   Automatic by default via prefers-color-scheme; an explicit
   data-theme="light"/"dark" attribute (set by the header toggle, see
   .theme-toggle below) always wins over the media query in both
   directions. The hero and footer are deliberately excluded — they read
   from the raw --gray-* constants, not these semantic tokens, so they
   stay a dark band in both themes rather than flipping. */
:root[data-theme="dark"] {
  --color-bg: var(--gray-950);
  --color-bg-alt: #1c1c1c;
  --color-text: var(--gray-50);
  --color-text-muted: var(--gray-400);
  --color-border: var(--gray-800);
  --color-surface-raised: #1c1c1c;
  --color-border-strong: var(--gray-700);
  --color-primary: var(--gray-50);
  --color-primary-dark: #ffffff;
  --color-primary-foreground: var(--gray-950);
  --color-accent: var(--gray-400);
  --color-accent-dark: var(--gray-200);
  --color-header-bg: rgba(5, 5, 5, 0.92);
  --color-icon-bg: rgba(255, 255, 255, 0.08);
  --color-error-bg: rgba(248, 113, 113, 0.14);
  --color-error-text: #f87171;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: var(--gray-950);
    --color-bg-alt: #1c1c1c;
    --color-text: var(--gray-50);
    --color-text-muted: var(--gray-400);
    --color-border: var(--gray-800);
    --color-surface-raised: #1c1c1c;
    --color-border-strong: var(--gray-700);
    --color-primary: var(--gray-50);
    --color-primary-dark: #ffffff;
    --color-primary-foreground: var(--gray-950);
    --color-accent: var(--gray-400);
    --color-accent-dark: var(--gray-200);
    --color-header-bg: rgba(5, 5, 5, 0.92);
    --color-icon-bg: rgba(255, 255, 255, 0.08);
    --color-error-bg: rgba(248, 113, 113, 0.14);
    --color-error-text: #f87171;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}

/* Thai script's stacked tone/vowel marks get cramped at the Latin-tuned
   line-heights above. Scoped via :lang() (matches the lang="th" on <html>)
   rather than a second stylesheet, since this is a zero-build-step site. */
:lang(th) {
  line-height: 1.8;
}

h1:lang(th),
h2:lang(th),
h3:lang(th),
h4:lang(th) {
  line-height: 1.4;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 var(--space-2);
}

ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.2em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-header p {
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: var(--space-5) 0;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  /* The open menu hangs from this box, under the menu button. */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

/* Header lockup. The brand kit's own spec (28-36px tall) reads as
   too small in practice — the wordmark all but disappears at that size,
   so this runs well past the documented range for legibility. */
.brand-lockup {
  height: 80px;
  width: auto;
}

/* lockup.svg's shapes are fixed pure black (#0C0C0C) fill / white
   stroke — invisible once the header background flips dark. Color-invert
   the vector itself for dark mode rather than swapping to the brand
   kit's separate "on dark" PNG export: that raster turned out to be a
   different, lower-resolution version of the logo (different wordmark
   font, blurry from being upscaled off a 44px-tall source), not just a
   recolor. Inversion is exact on this pure-B/W artwork and stays crisp
   at any size since it's still the same vector. */
:root[data-theme="dark"] .brand-lockup {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-lockup {
    filter: invert(1);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* a.nav-cta (not .nav-cta alone): needs to match .nav-links a's specificity
   so this rule's font-weight actually wins the cascade instead of silently
   losing to .nav-links a's font-weight: 500 above — previously masked
   because the old webfont happened to load a real 500 weight too, so the
   unintended override still looked plausible. */
a.nav-cta {
  background: var(--color-primary);
  color: var(--color-primary-foreground) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  /* .container is a 3-child flex row (brand, nav-toggle, nav) with
     justify-content: space-between. Once .nav-links is hidden, the
     wrapping <nav> collapses to ~0 width but still counts as the third
     flex item, so space-between splits the remaining room into two
     equal gaps and floats this button near the middle instead of the
     right edge. margin-left: auto claims all the space before it,
     pinning it (and the collapsed <nav> after it) to the right. */
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  border-radius: var(--radius);
  /* A button doesn't inherit the page's text colour, so without this the
     icon's currentColor stays black and vanishes on the dark header. */
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--color-icon-bg);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }
  .brand-lockup {
    height: 48px;
  }
  /* The menu opens as a panel under the button that opened it, on the
     right, not as a full-width band whose items sit at the far left of a
     half-width window. On a phone the width cap makes it the full row. */
  .nav-links {
    position: absolute;
    top: calc(100% + var(--space-1));
    right: var(--space-3);
    width: min(20rem, calc(100vw - 2 * var(--space-3)));
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    display: none;
    gap: 0.25rem;
  }
  .nav-links > li > a {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
  }
  .nav-links > li > a:not(.nav-cta):hover {
    background: var(--color-icon-bg);
  }
  .nav-links > li > a.nav-cta {
    text-align: center;
  }
  .nav-links > .login-menu,
  .nav-links > .nav-utility {
    margin-top: 0.25rem;
  }
  .nav-links.is-open {
    display: flex;
  }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* The icon shows the mode the button switches to: a moon in light mode, a sun in dark. */
.theme-toggle-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-icon--moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle-icon--sun {
    display: block;
  }
}

/* ---------- Language switcher ---------- */
/* Grouped with .theme-toggle in one shared <li> (its own tight gap, not
   .nav-links' 32px) so it doesn't reintroduce the nav-wrapping bug the
   960px breakpoint was raised to fix — see .nav-links' own comment. */
.nav-utility {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--gray-700) 0%, var(--gray-900) 55%, var(--gray-950) 100%);
  color: #fff;
  padding: var(--space-7) 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.hero h1,
.hero p {
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-2);
}

.hero-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.hero-art {
  width: 100%;
}

.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0 var(--space-5);
}

.page-hero .section-header {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-icon-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  width: fit-content;
}

/* Inverted (dark) chip — distinguishes a second tag on the same card by
   value, not color, e.g. a vertical tag next to an integration-mode tag. */
.tag-alt {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-2);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

fieldset.form-group {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-2);
  min-width: 0;
}

fieldset.form-group legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* A tick box with its caption on the right, both on one line. */
.check-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  accent-color: var(--color-primary);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Error keeps red rather than going grayscale — a functional/system signal
   (form validation, danger), not a brand color, so it's exempt from the
   monochrome palette on accessibility/convention grounds. The red itself
   still shifts to a lighter tint in dark mode (--color-error-*) so it
   keeps AA contrast against a near-black background. */
.form-status.is-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

/* ---------- Blog ---------- */
.post-card .post-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.article h2 {
  margin-top: var(--space-4);
}

/* ---------- Footer ---------- */
.site-footer {
  /* Raw --gray-900, not the semantic --color-text token, so the footer
     stays a dark band in both themes instead of flipping to light
     alongside the rest of the page in dark mode. */
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-6);
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin-bottom: 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Headings are small white capitals; the links under them are a quieter
   grey that turns white on hover, so a column reads as heading, then list. */
.footer-grid h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid ul a:hover {
  color: #fff;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-partner-note {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-partner-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 3px 7px;
}

.footer-partner-logo {
  display: block;
  height: 28px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

/* ==========================================================================
   HR Suite additions (components only; tokens above unchanged). Most came from the
   Time and Attendance site, which this site replaces.
   ========================================================================== */
.container--narrow { max-width: 720px; }
.lead-muted { color: var(--color-text-muted); max-width: 640px; margin: var(--space-3) auto 0; }
.note { color: var(--color-text-muted); font-size: 0.875rem; }
.status-pill { display: inline-flex; align-items: center; gap: var(--space-1); border: 1px solid var(--color-border); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.8125rem; color: var(--color-text-muted); }
.check-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.check-list li { padding-left: 1.5rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0.25rem; top: 0.55em; width: 0.5rem; height: 0.28rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-icon-bg); display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.spec-table th { color: var(--color-text-muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.form-privacy { margin-top: var(--space-2); }
.brand-lockup--wide { height: 40px; }
@media (min-width: 768px) { .brand-lockup--wide { height: 44px; } }
.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 100; background: var(--color-primary); color: var(--color-primary-foreground); padding: var(--space-1) var(--space-2); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--space-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero .status-pill { color: inherit; border-color: currentColor; }

/* ---------- Screenshots ---------- */
/* A real app screenshot in a light browser frame (the app is shown in its light theme in both site
   themes, so the frame is fixed light too). */
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--gray-300); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.shot-frame::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--gray-200); background-color: var(--gray-100); background-image: radial-gradient(circle at 14px 11px, var(--gray-300) 4px, transparent 4.5px), radial-gradient(circle at 30px 11px, var(--gray-300) 4px, transparent 4.5px), radial-gradient(circle at 46px 11px, var(--gray-300) 4px, transparent 4.5px); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: var(--space-1); font-size: 0.875rem; color: var(--color-text-muted); }
.shot--phone .shot-frame, .shot--tablet .shot-frame { border: 8px solid var(--gray-900); border-radius: 28px; }
.shot--phone .shot-frame::before, .shot--tablet .shot-frame::before { display: none; }
.shot--phone { max-width: 280px; }
.hero-shots { position: relative; }
.hero-shots .shot--phone { position: absolute; right: -12px; bottom: -40px; width: 34%; max-width: 200px; }
.hero-shots .shot--phone .shot-frame { border-width: 6px; border-radius: 22px; }
.feature-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-5); align-items: center; }
.feature-row + .feature-row { margin-top: var(--space-6); }
.feature-row--flip > :first-child { order: 2; }
.feature-row h2, .feature-row h3 { margin-top: 0; }
.feature-row .check-list { margin-top: var(--space-2); }
.shot-pair { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: end; }
.shot-pair .shot--phone { width: 220px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.gallery a { color: inherit; text-decoration: none; }
@media (max-width: 900px) {
  .feature-row, .shot-pair { grid-template-columns: 1fr; }
  .feature-row--flip > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-shots .shot--phone { display: none; }
  .shot-pair .shot--phone { margin: 0 auto; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Role benefits ---------- */
.role-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-card { text-align: center; padding: var(--space-4); }
.price-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--color-text); }
.price-amount small { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.price-then { font-size: 1.125rem; }
.calc { display: grid; gap: var(--space-2); }
.calc-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.calc-row label { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
/* The apps: one outlined box with the same space above and below the tick
   boxes (a bare fieldset keeps the browser's uneven padding and groove). */
.calc fieldset.calc-row { margin: 0; min-width: 0; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius); gap: var(--space-1) var(--space-3); }
.calc fieldset.calc-row label { font-weight: 400; }
.calc-row input[type="number"] { width: 8rem; }
.calc-row input[type="range"] { flex: 1; min-width: 160px; padding: 0; accent-color: var(--color-primary); }
.calc-total { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.calc-breakdown { color: var(--color-text-muted); font-size: 0.9375rem; }

/* ---------- Call and subscribe ---------- */
/* The call button stays hidden until the portal's widget says that list answered
   (web-builder-skills website-call-button); the tel: link and the contact form never depend on it. */
.btn[data-voice-call] { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn[data-voice-call][hidden] { display: none; }
.btn[data-voice-call] svg { width: 18px; height: 18px; }
.hero .btn[data-voice-call] { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.footer-subscribe { display: flex; gap: var(--space-1); margin-top: var(--space-1); }
.footer-subscribe input { padding: 0.5rem 0.75rem; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; min-width: 0; }
.footer-subscribe input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-subscribe .btn { font-size: 0.875rem; padding: 0.5rem 1rem; background: #fff; color: var(--gray-900); border-color: #fff; white-space: nowrap; }
.footer-grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
@media (max-width: 900px) { .footer-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid--4 { grid-template-columns: 1fr; } }
.contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
@media (max-width: 760px) { .contact-routes { grid-template-columns: 1fr; } }
.shot--tablet .shot-frame { border-width: 6px; border-radius: 18px; }
.gallery .shot--tablet .shot-frame { border-width: 4px; border-radius: 12px; }
.shot-pair .shot--phone { width: 170px; }
.shot-pair .shot--phone .shot-frame { border-width: 6px; border-radius: 22px; }
.hero .note { margin-top: var(--space-2); }

/* ---------- Login menu ---------- */
/* WAI-ARIA Disclosure (website-build-standards): a button that shows a list of
   the suite's sign-in pages. Click or Enter/Space opens it, Escape and a click
   elsewhere close it (main.js). Inside the open mobile menu it is an accordion. */
.login-menu { position: relative; }
.login-toggle { display: inline-flex; align-items: center; gap: 0.375rem; background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.5rem 0.875rem; font: inherit; font-weight: 500; color: var(--color-text); cursor: pointer; }
.login-toggle:hover { border-color: var(--color-text); }
.login-toggle svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.login-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.login-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60; width: 20rem; background: var(--color-surface-raised); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-2); }
.login-panel[hidden] { display: none; }
.login-panel__title { margin: 0 0 var(--space-1); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.login-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.login-panel__item { display: grid; gap: 0.125rem; padding: 0.625rem 0.75rem; border-radius: var(--radius); color: var(--color-text); text-decoration: none; }
a.login-panel__item:hover, a.login-panel__item:focus-visible { background: var(--color-icon-bg); }
.login-panel__name { font-weight: 700; }
.login-panel__desc { font-size: 0.8125rem; color: var(--color-text-muted); }
.login-panel__item--soon { opacity: 0.65; }
.login-panel__item--soon .login-panel__name::after { content: " · Coming soon"; font-weight: 400; font-size: 0.8125rem; color: var(--color-text-muted); }
@media (max-width: 1180px) {
  .login-menu { width: 100%; }
  .login-toggle { width: 100%; justify-content: space-between; }
  .login-panel { position: static; width: auto; box-shadow: none; margin-top: var(--space-1); background: var(--color-bg); border-color: var(--color-border); }
}

/* ---------- Suite ---------- */
/* One card per app on Home, each linking to its page. */
.app-card { display: flex; flex-direction: column; gap: var(--space-1); }
.app-card .role-label { margin-bottom: 0; }
.app-card .check-list { margin-bottom: var(--space-2); }
.app-card .btn { margin-top: auto; align-self: flex-start; }
.app-switch { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; margin-top: var(--space-3); }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
/* Seven items and a theme toggle: no label wraps, a tighter gap than the
   one-app sites, and the menu button from 1180px (the breakpoint above). */
.nav-links a, .login-toggle { white-space: nowrap; }
@media (min-width: 1181px) { .nav-links { gap: var(--space-3); } }
/* A row of buttons outside the hero (.hero-actions is styled for the dark hero). */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-1); }

/* ---------- Skills matrix example (HR page) ---------- */
/* A made-up matrix: level 0–4 as a shade of the text colour, the thin column outlined. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.feature-row > * { min-width: 0; }
.skills-demo { margin: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2); }
.skills-demo__scroll { overflow-x: auto; position: relative; }
.skills-demo table { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 0.8125rem; }
.skills-demo th { font-weight: 600; text-align: left; vertical-align: bottom; padding: 0.25rem; }
.skills-demo thead th:not(:first-child) { text-align: center; min-width: 4.5rem; }
.skills-demo td { text-align: center; padding: 0; }
.skills-demo tfoot td, .skills-demo tfoot th { padding-top: 0.5rem; font-size: 0.75rem; color: var(--color-text-muted); }
.skills-demo .is-thin { outline: 2px dashed var(--color-error-text); outline-offset: -1px; border-radius: 4px; }
.skills-demo tfoot .is-thin { color: var(--color-error-text); }
.skills-demo figcaption { margin-top: var(--space-1); font-size: 0.8125rem; color: var(--color-text-muted); }
.lv { display: block; padding: 0.4rem 0; border-radius: 4px; font-weight: 700; }
.lv0 { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.lv1 { background: color-mix(in srgb, var(--color-text) 12%, transparent); }
.lv2 { background: color-mix(in srgb, var(--color-text) 28%, transparent); }
.lv3 { background: color-mix(in srgb, var(--color-text) 70%, transparent); color: var(--color-bg); }
.lv4 { background: var(--color-text); color: var(--color-bg); }
.section-header .status-pill { margin-left: var(--space-1); }

/* ---------- Example panels (Advise, the pack, Review Contract) ---------- */
/* Static mock-ups of coming features: the page's own tokens, no images. */
.chat-demo, .pack-demo, .review-demo { margin: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2); font-size: 0.875rem; display: grid; gap: var(--space-1); }
.chat-demo figcaption, .pack-demo figcaption, .review-demo figcaption { font-size: 0.8125rem; color: var(--color-text-muted); }
.chat-demo__bar, .pack-demo__title, .review-demo__title { font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.chat-demo__msg { margin: 0; padding: 0.75rem 0.875rem; border-radius: var(--radius); background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.chat-demo__msg p { margin: 0 0 0.5rem; }
.chat-demo__msg p:last-child { margin-bottom: 0; }
.chat-demo__msg--user { justify-self: end; max-width: 88%; background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.chat-demo__cite, .finding__cite { font-size: 0.75rem; color: var(--color-text-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; }
.chip--solid { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.pack-demo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.pack-demo li { position: relative; padding-left: 1.75rem; color: var(--color-text-muted); }
.pack-demo li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--color-border); border-radius: 4px; }
.pack-demo li.is-on { color: var(--color-text); }
.pack-demo li.is-on::before { background: var(--color-primary); border-color: var(--color-primary); }
.pack-demo li.is-on::after { content: ""; position: absolute; left: 0.33rem; top: 0.33em; width: 0.4rem; height: 0.22rem; border-left: 2px solid var(--color-primary-foreground); border-bottom: 2px solid var(--color-primary-foreground); transform: rotate(-45deg); }
.pack-demo li small { color: var(--color-text-muted); margin-left: 0.25rem; }
.pack-demo__warn { margin: 0; padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--color-error-bg); color: var(--color-error-text); font-weight: 600; font-size: 0.8125rem; }
.pack-demo__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1); font-size: 0.8125rem; color: var(--color-text-muted); }
.finding { padding: 0.75rem 0.875rem; border: 1px solid var(--color-border); border-left-width: 4px; border-radius: var(--radius); background: var(--color-bg-alt); }
.finding p { margin: 0.25rem 0 0; }
.finding__sev { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.finding--high { border-left-color: var(--color-error-text); }
.finding--high .finding__sev { color: var(--color-error-text); }
.finding__clause { font-style: italic; }
.finding__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1); }

/* ---------- Start anywhere: the three layers of staff data ---------- */
.layers { margin: var(--space-4) 0 var(--space-3); display: grid; gap: var(--space-1); }
.layers > div > div, .layers__shared { display: grid; gap: 0.25rem; padding: var(--space-2); border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-bg); }
.layers__shared { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); text-align: center; }
.layers__own { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
.layers span { font-size: 0.875rem; }
.layers__own span { color: var(--color-text-muted); }
.layers figcaption { text-align: center; font-size: 0.875rem; color: var(--color-text-muted); }
@media (max-width: 640px) { .layers__own { grid-template-columns: 1fr; } }
.feature-row .check-list + .note { margin-top: var(--space-2); }
section[id] { scroll-margin-top: 4.5rem; }
