:root{
  /* Gotham (Bold/Book) is the brand's specified typeface; Montserrat ships
     here as the licensed stand-in until real Gotham webfont files exist. */
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', var(--font-body);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --transition: 180ms ease;
  --unit: 96px;

  --red: #E1251B;
  --red-deep-1: #64131E;
  --red-deep-2: #871C23;
  --red-mid-1: #B8252E;
  --red-mid-2: #F26A52;
  --red-mid-3: #FFB9A2;
  --red-pale-1: #F0C7BF;
  --red-pale-2: #FAECEB;
  --purple-deep-1: #4D144A;
  --purple-deep-2: #7A126B;
  --purple-pale-1: #D9C1D8;
  --purple-pale-2: #F1E1ED;
  --blue-deep-1: #11184F;
  --blue-deep-2: #294E95;
  --blue-pale-1: #C9D0F0;
  --blue-pale-2: #EAEEF5;
  --gray-deep: #4E444E;
  --gray-mid: #ABA8B1;
  --gray-pale: #E6E2E4;
  --black: #1E0013;
  --white: #FFFFFF;
}

:root {
  --bg-0: var(--white);
  --bg-1: var(--red-pale-2);
  --bg-2: var(--purple-pale-2);
  --bg-3: var(--blue-pale-2);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #2a0311;
  --muted: #67495a;
  --subtle: #815f72;
  --line: rgba(55, 0, 16, 0.15);
  --stroke: rgba(55, 0, 16, 0.22);
  --line-strong: rgba(55, 0, 16, 0.32);
  --tooltip-bg: #ffffff;
  --accent: var(--red);
  --accent-2: var(--purple-deep-2);
  --accent-soft: rgba(225, 37, 27, 0.1);
  --focus: var(--purple-deep-2);
  --hero-pattern: url('/assets/img/pattern-sg-pale-3.png');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background:
    radial-gradient(820px 460px at 52% 88%, color-mix(in srgb, var(--bg-2) 70%, transparent), transparent 72%),
    radial-gradient(720px 420px at 4% 48%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    linear-gradient(135deg, var(--bg-1), var(--bg-3) 55%, var(--bg-0));
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

main { flex: 1; }

body {
  background-image: url('/assets/img/bg-pale-creative.png');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
img, svg { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.step-request-page { max-width: 1120px; }
.step-request-page .page-card { width: 100%; }
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.region-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: flex;
  font-family: var(--font-display);
  font-weight: 500;
  justify-content: space-between;
  min-height: 104px;
  padding: 24px 26px;
  text-decoration: none;
  transition: var(--transition);
}
.region-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
  transform: translateY(-3px);
}
.region-card__arrow {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  margin-left: 20px;
  transition: var(--transition);
}
.region-card:hover .region-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(3px);
}
.coming-soon-card { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.step-form-card { max-width: 980px; }
.step-form-card form { margin-top: 32px; }
.step-section {
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
  min-width: 0;
}
.step-section > legend {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  padding-right: 16px;
}
.section-intro { color: var(--muted); margin: 8px 0 20px; }
.step-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.step-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-section > .field, .step-section > .step-form-grid { margin-top: 20px; }
.priority-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 20px; }
.priority-guidance { display: grid; gap: 12px; margin: 0; padding: 18px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.priority-guidance div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.priority-guidance div:last-child { padding-bottom: 0; border-bottom: 0; }
.priority-guidance dt { font-weight: 700; }
.priority-guidance dd { margin: 4px 0 0; color: var(--muted); }
.step-section .choice-group { border: 0; min-width: 0; }
.step-section .choice-group > legend { font-weight: 500; margin-bottom: 10px; }
.step-section .choice { display: inline-flex; align-items: flex-start; gap: 8px; margin: 5px 16px 5px 0; }
.step-section .choice[hidden] { display: none; }
.step-section .choice input { margin-top: 3px; }
.taxonomy-picker { border: 0; min-width: 0; }
.taxonomy-picker > .field-label-with-help { font-weight: 500; }
.taxonomy-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.step-section .taxonomy-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  margin: 0;
  min-height: 42px;
  padding: 8px 14px;
  transition: var(--transition);
}
.step-section .taxonomy-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.step-section .taxonomy-chip:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.step-section .taxonomy-chip input { accent-color: var(--accent); margin: 0 7px 0 0; }
.step-section .taxonomy-chip--subtopic { border-radius: 9px; min-height: 38px; }
.subtopic-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 16px;
}
.subtopic-group > legend { color: var(--muted); font-size: 13px; font-weight: 500; padding: 0 7px; }
.step-section input:not([type='radio']):not([type='checkbox']),
.step-section select,
.step-section textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 12px;
  width: 100%;
}
.step-section label { display: block; font-weight: 500; margin-bottom: 7px; }
.field-label-with-help {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
}
.field-label-with-help label { margin-bottom: 0; }
.character-count {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.help-popover { display: inline-flex; position: relative; }
.popover-trigger {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  color: var(--text);
  cursor: help;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}
.field-help-tooltip {
  background: var(--tooltip-bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  left: calc(100% + 10px);
  line-height: 1.45;
  opacity: 0;
  padding: 11px 13px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  transition: var(--transition);
  visibility: hidden;
  width: min(320px, 70vw);
  z-index: 10;
}
.popover-trigger:hover + .field-help-tooltip,
.popover-trigger:focus + .field-help-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}
.step-section select option { color: #21000a; }
.notice.warning { border-left: 4px solid var(--accent-2); margin-top: 20px; }
.notice.warning p { margin-top: 8px; }
.opportunity-result { display: block; width: 100%; text-align: left; padding: 10px; margin-top: 8px; }
.submission-pending { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 16px; margin-top: 32px; padding-top: 24px; }
.submission-pending p { color: var(--muted); }
.submission-pending .btn:disabled { cursor: not-allowed; opacity: .5; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
}

.sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--accent-2);
  color: var(--text);
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .nav {
  gap: 32px;
  height: 60px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0;
  width: calc(100% - 80px);
}

.site-header .brand {
  flex: 0 0 auto;
}

.site-header .brand-logo {
  max-height: 32px;
  object-fit: contain;
}

.site-header .sub,
.site-header .nav-links a {
  color: #1a1a1a;
}

.site-header .nav-actions {
  gap: 12px;
  margin-left: auto;
}

.site-header .nav-links {
  flex-wrap: nowrap;
  gap: 26px;
}

.site-header .nav-links a {
  border-radius: 0;
  min-height: auto;
  padding: 8px 0;
  border-bottom: none;
  transition: color 180ms ease;
}

.site-header .nav-links a:hover {
  color: var(--red);
}

.site-header .nav-request-cta {
  border-radius: 24px;
  font-size: 14px;
  min-height: 36px;
  padding: 8px 20px;
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: none;
  transition: color 180ms ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus {
  color: var(--red);
}

.nav-dropdown-chevron {
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron,
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 340px;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  z-index: 100;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  color: var(--red);
}

.nav-dropdown-menu a .nav-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover .nav-arrow {
  opacity: 1;
  transform: translateX(2px);
}

footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 48px 40px 36px;
  font-size: 14px;
}
.foot {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

.landing-hero {
  background:
    radial-gradient(1100px 600px at 82% 30%, rgba(226, 35, 26, .45), transparent 62%),
    radial-gradient(800px 500px at 65% 80%, rgba(60, 90, 160, .5), transparent 65%),
    linear-gradient(105deg, #111 40%, #1c2333 100%);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 96px;
  position: relative;
}

.landing-hero::after {
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, .045) 140px 142px);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.landing-hero__inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.landing-hero__content {
  max-width: 920px;
}

.landing-hero__eyebrow {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.landing-hero__eyebrow strong {
  color: #fff;
}

.landing-hero__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.08;
  margin-bottom: 8px;
}

.landing-hero__cap {
  color: var(--red);
}

.landing-hero__tagline {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 18px 0 12px;
}

.landing-hero__punch {
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  line-height: 1.5;
  max-width: 62ch;
}

.landing-hero .cta-row {
  justify-content: flex-start;
  margin-top: 34px;
}

.landing-hero .btn {
  border-radius: 24px;
  font-weight: 700;
}

.landing-hero .btn-ghost {
  border-color: #fff;
  color: #fff;
}

.landing-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

.cta-row,
.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 11px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 34%, transparent);
}
.btn-primary[aria-busy="true"] {
  cursor: wait;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.6em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: step-spinner-spin 0.6s linear infinite;
}
.spinner[hidden] {
  display: none;
}
@keyframes step-spinner-spin {
  to { transform: rotate(360deg); }
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--stroke);
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 48px);
  backdrop-filter: blur(18px);
}
.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--text); }
.page-card h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.page-intro {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
}
.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  line-height: 1.45;
}
.notice.success { background: rgba(40, 180, 120, 0.12); }
.notice.error { background: var(--accent-soft); }
.validation-summary[hidden] { display: none; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.field-textarea,
.field-wide { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}
.required { color: var(--accent); }
input:not([type='radio']):not([type='checkbox']), select, textarea {
  width: 100%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: var(--transition);
}
select option { color: #21000a; }
input:not([type='radio']):not([type='checkbox']):focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
}
textarea { resize: vertical; min-height: 140px; }
.field small {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
}
.choice-group {
  border: 0;
}
.choice-group legend {
  margin-bottom: 10px;
  font-weight: 500;
}
.choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 !important;
  font-weight: 500 !important;
}
.choice input[type='radio'],
.choice input[type='checkbox'] {
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--stroke);
  background-color: var(--surface-strong);
  cursor: pointer;
  transition: none;
}
.choice input[type='radio'] {
  border-radius: 50%;
}
.choice input[type='radio']:checked {
  border: 5px solid var(--accent);
}
.choice input[type='checkbox'] {
  border-radius: 4px;
}
.choice input[type='checkbox']:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'/%3E%3C/svg%3E");
}
.choice input[type='radio']:focus-visible,
.choice input[type='checkbox']:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.search-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--muted);
}
.opportunity-results {
  display: grid;
  gap: 8px;
}
.opportunity-choice {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-strong);
  text-align: left;
  cursor: pointer;
}
.opportunity-choice:hover { border-color: var(--focus); }
.field-error {
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--red-mid-1);
  border-radius: 8px;
  padding: 8px 10px 8px 32px;
  margin-top: 8px;
  font-size: 13px;
  position: relative;
}
.field-error::before {
  content: "!";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 16px;
}
.field-error:empty { display: none; }

.inference-sizing-page { max-width: 1120px; }
.inference-sizing-card { display: grid; gap: 28px; }
.inference-sizing-card > .back-link { justify-self: start; margin-bottom: 0; }
.sizing-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sizing-caveat-banner {
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  line-height: 1.5;
}
.sizing-section {
  position: relative;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
}
.sizing-section h2 { margin-left: 44px; font-size: 24px; }
.sizing-section > .sizing-step { position: absolute; top: 24px; left: 26px; }
.sizing-step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.sizing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.sizing-advanced {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
}
.sizing-advanced summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 21px;
  font-weight: 700;
}
.sizing-advanced > p { margin: 16px 0 0 44px; color: var(--muted); }
.sizing-action .btn { margin-top: 20px; }
.sizing-results {
  scroll-margin-top: 24px;
  display: grid;
  gap: 24px;
  margin-top: 34px;
}
.sizing-results[hidden] { display: none; }
.sizing-recommendation {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 260px at 70% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%),
    linear-gradient(120deg, var(--black), var(--red-deep-1));
  color: #fff;
}
.sizing-recommendation h2 { margin: 8px 0 12px; color: #fff; font-size: clamp(28px, 5vw, 46px); }
.sizing-recommendation strong { display: block; margin-top: 18px; color: var(--accent); }
.sizing-result-label { color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sizing-sla-grid,
.sizing-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.sizing-metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}
.sizing-metric h3 { font-size: 14px; color: var(--muted); }
.sizing-metric p { margin-top: 8px; }
.roofline-chart { overflow-x: auto; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-strong); }
.roofline-chart svg { display: block; min-width: 620px; width: 100%; height: auto; }
.roofline-axis { stroke: var(--stroke); stroke-width: 1; }
.roofline-memory,
.roofline-compute { fill: none; stroke-width: 3; }
.roofline-memory { stroke: var(--accent); }
.roofline-compute { stroke: var(--focus); }
.roofline-operating-point { fill: var(--text); stroke: var(--surface); stroke-width: 3; }
.roofline-crossover { fill: var(--focus); }
.roofline-label { fill: var(--muted); font: 11px var(--font-body); text-anchor: middle; }
.roofline-label-y { text-anchor: end; dominant-baseline: middle; }
.roofline-axis-title { fill: var(--muted); font: 600 12px var(--font-body); text-anchor: middle; }
.roofline-legend-bg { fill: color-mix(in srgb, var(--surface-strong) 92%, transparent); stroke: var(--line); }
.roofline-legend-swatch { stroke-width: 3; stroke-linecap: round; }
.roofline-legend-label {
  fill: var(--muted);
  font: 600 11px var(--font-body);
  letter-spacing: .01em;
}
.roofline-legend-value { font: 700 12px var(--font-body); text-anchor: end; }
.roofline-legend-memory { stroke: var(--accent); fill: var(--accent); }
.roofline-legend-compute { stroke: var(--focus); fill: var(--focus); }
.roofline-legend-operating { stroke: var(--text); fill: var(--text); }
.roofline-overlay { fill: transparent; pointer-events: all; cursor: crosshair; }
.roofline-hover { opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.roofline-hover.roofline-hover-active { opacity: 1; }
.roofline-hover-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.roofline-hover-dot { stroke: var(--surface-strong); stroke-width: 2; }
.roofline-tooltip-bg { fill: var(--tooltip-bg); stroke: var(--line-strong); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .18)); }
.roofline-tooltip-title { fill: var(--text); font: 700 12px var(--font-body); }
.roofline-tooltip-label { fill: var(--muted); font: 600 11px var(--font-body); }
.roofline-tooltip-value { font: 700 12px var(--font-body); text-anchor: end; }
.roofline-hint { fill: var(--subtle); font: italic 11px var(--font-body); text-anchor: end; }
.sizing-collapsible {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}
.sizing-collapsible summary {
  cursor: pointer;
  list-style: none;
}
.sizing-collapsible summary::-webkit-details-marker { display: none; }
.sizing-collapsible summary h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sizing-collapsible summary h2::before {
  content: '▸';
  color: var(--accent);
  transition: transform var(--transition);
}
.sizing-collapsible[open] summary h2::before { transform: rotate(90deg); }
.sizing-methodology { border-left: 4px solid var(--accent); }
.sizing-methodology ul,
[data-talking-points] ul { margin: 14px 0 0 20px; line-height: 1.6; }
[data-copy-status] textarea { margin-top: 12px; }

.auth-nav {
  max-width: 1440px;
  margin: 0 auto;
}

.auth-shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 24px 100px;
}

.auth-shell > * {
  position: relative;
  z-index: 1;
}

.auth-heading {
  text-align: center;
}

.auth-eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-heading h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 86px);
  line-height: .95;
  letter-spacing: -.055em;
}

.auth-heading h1 span {
  color: var(--accent);
}

.auth-heading > p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
}

.auth-error {
  max-width: 720px;
  margin: 34px auto 0;
}

.auth-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 54px;
}

.auth-option {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: var(--transition);
}

.auth-option::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: var(--transition);
}

.auth-option:hover {
  transform: translateY(-5px);
  border-color: var(--stroke);
  background: var(--surface-strong);
}

.auth-option:hover::after {
  transform: scale(1.18);
}

.auth-kicker {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-option strong {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.05;
}

.auth-description {
  max-width: 330px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-arrow {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.auth-bypass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  text-align: center;
}

.auth-bypass a {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.auth-bypass a:hover {
  border-color: var(--stroke);
  color: var(--text);
  background: var(--surface-strong);
}

.auth-bypass span {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section { max-width: 1240px; margin: 0 auto; padding: var(--unit) 40px; }
.band { background: var(--surface); }
#what {
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
#engage-cards {
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
#focus { background: #f5f6f8; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 66ch; line-height: 1.25; }
.textlink {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.textlink:hover { text-decoration: underline; }
.textlink::after { content: "›"; font-size: 18px; line-height: 1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.feature { display: flex; flex-direction: column; padding-top: 22px; border-top: 3px solid var(--accent); }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: 15px; line-height: 1.25; margin-bottom: 14px; }
.feature > .textlink { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.tag {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 100px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 22px;
  font-size: 15px;
  text-decoration: none;
}
.tag.hot { border-color: var(--accent); color: var(--accent); }
.tag.hi { background: var(--purple-deep-1); border-color: var(--purple-deep-1); color: #fff; }
.tag.big { font-size: 17px; padding: 12px 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--stroke); }
.card-img { height: 170px; position: relative; }
.card-img span {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.img-a {
  background:
    radial-gradient(420px 260px at 70% 20%, color-mix(in srgb, var(--red) 55%, transparent), transparent 65%),
    linear-gradient(120deg, var(--black), var(--red-deep-1));
}
.img-b {
  background:
    radial-gradient(420px 260px at 30% 80%, color-mix(in srgb, var(--blue-deep-2) 55%, transparent), transparent 65%),
    linear-gradient(120deg, var(--black), var(--blue-deep-1));
}
.img-c {
  background:
    radial-gradient(420px 260px at 60% 60%, color-mix(in srgb, var(--red) 35%, transparent), transparent 60%),
    radial-gradient(300px 200px at 20% 20%, color-mix(in srgb, var(--purple-deep-2) 45%, transparent), transparent 60%),
    linear-gradient(120deg, var(--black), var(--purple-deep-1));
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.card-body p { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 18px; line-height: 1.25; }

.promo {
  position: relative;
  overflow: hidden;
  padding: var(--unit) 40px;
  color: #fff;
}
.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/img/pattern-sg-deep-3.png');
  background-size: cover;
  background-position: center;
}
.promo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(30, 0, 19, .78), rgba(30, 0, 19, .38));
}
.promo-grid {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.25; margin-bottom: 30px; }
.promo .cta-row { justify-content: flex-start; }
.promo .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.promo .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.promo-visual {
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 36px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-sm);
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stat .v {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: .95;
}
.stat .v.accent,
.stat-accent { color: var(--accent); }
.stat .l { font-size: 14px; color: rgba(255, 255, 255, .72); margin-top: 4px; line-height: 1.25; }

.resources-page .page-card h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 8px; }
.resources-page .page-intro { margin-bottom: 32px; }
.resource-product { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.resource-product:first-of-type { margin-top: 24px; padding-top: 0; border-top: 0; }
.resource-product__title { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.resource-product__desc { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.resource-section { margin-top: 28px; }
.resource-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.resource-file-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.resource-file-table th { text-align: left; padding: 12px 16px; background: color-mix(in srgb, var(--surface-strong) 92%, transparent); border-bottom: 2px solid var(--line); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.resource-file-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.resource-file-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.resource-download { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 100px; transition: var(--transition); white-space: nowrap; }
.resource-download:hover { background: var(--accent); color: #fff; }
.resource-download__ext { font-size: 10px; font-weight: 700; letter-spacing: .05em; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 4px; }
.resource-download:hover .resource-download__ext { background: rgba(255,255,255,.2); color: #fff; }

@media (max-width: 860px) {
  .nav { flex-direction: column; align-items: stretch; padding: 20px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; }
  .site-header .nav {
    align-items: center;
    flex-direction: row;
    gap: 18px;
    padding: 0;
    width: calc(100% - 40px);
  }
  .site-header .nav-actions {
    align-items: center;
    flex-direction: row;
  }
  .site-header .nav-links { display: none; }
  .landing-hero { padding: 68px 0 76px; }
  .landing-hero__inner { padding-inline: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sizing-grid,
  .sizing-sla-grid,
  .sizing-metric-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .auth-options { grid-template-columns: 1fr; }
  .auth-option { min-height: 230px; }
  .cards { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .foot { flex-direction: column; align-items: flex-start; text-align: left; }
  .nav {
    gap: 14px;
    padding: 16px;
  }
  .brand { justify-content: center; }
  .nav-actions { gap: 8px; }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .nav-links a { padding-inline: 8px; text-align: center; }
  .site-header .nav { gap: 10px; width: calc(100% - 24px); }
  .site-header .brand { justify-content: flex-start; }
  .site-header .brand-logo { width: 86px; }
  .site-header .sub { display: none; }
  .site-header .nav-actions { gap: 8px; }
  .site-header .nav-request-cta { font-size: 13px; padding-inline: 12px; }

  .landing-hero { padding: 52px 0 60px; }
  .landing-hero__inner { padding-inline: 20px; }
  .landing-hero__eyebrow { font-size: 12px; letter-spacing: .14em; }
  .landing-hero__title { font-size: clamp(32px, 10vw, 44px); }
  .landing-hero__punch { font-size: 15.5px; }
  .cta-row,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .cta-row .btn,
  .form-actions .btn { width: 100%; }

  .page-shell { padding: 28px 14px 56px; }
  .page-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .page-card h1 { font-size: clamp(32px, 12vw, 48px); }
  .form-grid { gap: 18px; margin-top: 28px; }
  .sizing-section { padding: 22px 16px; }
  .sizing-section > .sizing-step { left: 16px; top: 20px; }
  .sizing-section h2 { margin-left: 42px; font-size: 21px; }
  .sizing-advanced { padding: 18px 16px; }
  .sizing-advanced > p { margin-left: 0; }
  .roofline-chart { margin-inline: 0; padding: 12px; }
  .region-grid,
  .step-form-grid,
  .step-form-grid.three,
  .priority-layout { grid-template-columns: 1fr; }
  .priority-guidance { order: -1; }
  .field-help-tooltip {
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(-4px);
  }
  .popover-trigger:hover + .field-help-tooltip,
  .popover-trigger:focus + .field-help-tooltip { transform: translateY(0); }
  input, select, textarea { font-size: 16px; }

  .auth-nav {
    flex-direction: row;
    align-items: center;
  }
  .auth-nav .brand { justify-content: flex-start; }
  .auth-shell { padding: 40px 14px 64px; }
  .auth-heading h1 {
    margin-top: 14px;
    font-size: clamp(42px, 14vw, 62px);
  }
  .auth-options { gap: 14px; margin-top: 36px; }
  .auth-option {
    min-height: 210px;
    padding: 24px 20px;
  }
  .auth-option strong { overflow-wrap: anywhere; }
  .stat-row { grid-template-columns: 1fr; }
  .resource-file-table th,
  .resource-file-table td { padding: 10px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.cases-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.cases-heading { max-width: 760px; margin-bottom: 32px; }
.cases-list { display: grid; gap: 18px; }
.case-card { overflow: hidden; border: 1px solid #d8dcdf; border-top: 6px solid var(--case-status); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 8%); }
.case-card summary { display: grid; grid-template-columns: .7fr 1.5fr 1fr; gap: 24px; padding: 24px; cursor: pointer; }
.case-card summary small, .case-meta dt { display: block; margin-bottom: 6px; color: #5b6063; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.case-body { padding: 0 24px 24px; border-top: 1px solid #eceeef; }
.case-description { padding: 24px 0; }.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0; }
.case-status { display: flex; align-items: center; gap: 8px; }.case-status span { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--case-status); box-shadow: 0 0 0 1px #555; }
.case-feedback { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eceeef; }.case-feedback h3 { margin-bottom: 16px; }.readonly-rating { display: flex; justify-content: space-between; max-width: 360px; }.readonly-rating .filled { color: #e86310; }
.cases-empty, .form-error, .form-notice { padding: 24px; border-radius: 10px; background: #fff; }.form-error { border-left: 5px solid #c5221f; }.form-notice { border-left: 5px solid #6ac346; }
.cases-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(33 0 10 / 70%); backdrop-filter: blur(5px); }.cases-modal[hidden] { display: none; }.cases-modal-panel { position: relative; width: min(660px, 100%); max-height: 90vh; overflow: auto; padding: clamp(26px, 5vw, 46px); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }.cases-modal-panel h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); letter-spacing: -.035em; }.cases-modal-case { margin-top: 4px; color: var(--muted); font-weight: 700; }.cases-rating-instruction { margin: 24px 0 18px; color: var(--muted); }.cases-modal form { display: grid; gap: 20px; }.cases-modal-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface-strong); font-size: 1.7rem; line-height: 1; cursor: pointer; }.cases-modal-close:hover { border-color: var(--accent); color: var(--accent); }.modal-open { overflow: hidden; }
.rating-field { min-width: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }.rating-field legend { margin-bottom: 8px; font-weight: 700; }.rating-stars { display: inline-flex; gap: 4px; }.rating-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }.rating-stars label { margin: 0; color: #a2a6a8; font-size: 2.15rem; line-height: 1; cursor: pointer; transition: color 120ms ease, transform 120ms ease; }
.rating-stars[data-selected="1"] label[data-rating="1"],
.rating-stars[data-selected="2"] label[data-rating="1"], .rating-stars[data-selected="2"] label[data-rating="2"],
.rating-stars[data-selected="3"] label[data-rating="1"], .rating-stars[data-selected="3"] label[data-rating="2"], .rating-stars[data-selected="3"] label[data-rating="3"],
.rating-stars[data-selected="4"] label[data-rating="1"], .rating-stars[data-selected="4"] label[data-rating="2"], .rating-stars[data-selected="4"] label[data-rating="3"], .rating-stars[data-selected="4"] label[data-rating="4"],
.rating-stars[data-selected="5"] label { color: #e86310; }
.rating-stars.is-previewing[data-selected] label { color: #a2a6a8; }.rating-stars.is-previewing[data-selected] label.is-preview { color: #e86310; transform: translateY(-2px) scale(1.06); }.rating-stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 700px) { .case-card summary { grid-template-columns: 1fr; }.cases-page { width: min(100% - 24px, 1240px); padding-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .cases-page *, .cases-modal * { scroll-behavior: auto; transition: none !important; } }

.notice-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(33 0 10 / 70%); backdrop-filter: blur(5px); }
.notice-modal[hidden] { display: none; }
.notice-modal__panel { position: relative; width: min(500px, 100%); padding: 32px 40px; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.notice-modal__panel h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; margin-bottom: 16px; }
.notice-modal__panel p { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.notice-modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface-strong); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.notice-modal__close:hover { border-color: var(--accent); color: var(--accent); }
/* Presale workload dashboard POC */
.workload-dashboard {
  --chart-burgundy-soft: #a95f72;
  --chart-purple-soft: #9876a7;
  --chart-blue-soft: #7695bb;
  --chart-coral-soft: #d58d7f;
  --chart-warning: #d98200;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 96px;
}
.workload-heading { margin-bottom: 30px; }
.workload-heading h1 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 60px); letter-spacing: -.045em; line-height: 1; }
.workload-heading > div > p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.workload-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.workload-kpi, .workload-card { border: 1px solid var(--line); background: rgb(255 255 255 / 88%); box-shadow: 0 12px 34px rgb(42 3 17 / 10%); backdrop-filter: blur(12px); }
.workload-kpi { min-height: 128px; padding: 22px; border-radius: 14px; }
.workload-kpi p { min-height: 38px; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.35; }
.workload-kpi strong { display: block; margin-top: 12px; color: var(--red-deep-2); font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; line-height: 1; }
.workload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.workload-card { min-width: 0; padding: 25px; border-radius: 16px; }
.workload-engineers { grid-column: 1 / -1; }
.workload-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.workload-card-heading .eyebrow { margin-bottom: 4px; font-size: .72rem; }
.workload-card-heading h2 { font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); letter-spacing: -.025em; }
.workload-card-heading > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 100px; color: var(--muted); background: var(--red-pale-2); font-size: .72rem; font-weight: 700; }
.workload-table-scroll { overflow-x: auto; }
.workload-engineers table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.workload-engineers th, .workload-engineers td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.workload-engineers th:first-child { text-align: left; }
.workload-engineers thead th { color: var(--muted); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; }
.workload-engineers tbody th { font-weight: 500; }
.workload-engineers tbody tr.is-warning { background: #fff7e6; color: #864b00; }
.workload-engineers tfoot { font-weight: 700; }
.workload-warning-icon { display: inline-grid; width: 22px; height: 22px; margin-right: 8px; place-items: center; border: 1px solid #e3a33e; border-radius: 50%; color: #8b5200; background: #fff3d2; font-size: .75rem; font-weight: 700; }
.workload-insight { display: flex; align-items: center; margin-top: 18px; padding: 14px 16px; border: 1px solid #efcc8d; border-radius: 10px; color: #714600; background: #fff8e8; font-size: .86rem; }
.workload-insight strong { margin-right: .3em; }
.workload-bars, .workload-sla ul { display: grid; gap: 15px; list-style: none; }
.workload-bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 7px; font-size: .83rem; }
.workload-bar-label > span { overflow-wrap: anywhere; }
.workload-bar-label strong { flex: 0 0 auto; font-size: .8rem; font-variant-numeric: tabular-nums; }
.workload-bar-label small { color: var(--muted); font-size: inherit; font-weight: 500; }
.workload-track { display: block; overflow: hidden; height: 9px; border-radius: 100px; background: #eee9ec; }
.workload-track > span { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: var(--bar-color, var(--chart-burgundy-soft)); }
.workload-bar-item.color-1 { --bar-color: var(--chart-burgundy-soft); }
.workload-bar-item.color-2 { --bar-color: var(--chart-purple-soft); }
.workload-bar-item.color-3 { --bar-color: var(--chart-blue-soft); }
.workload-bar-item.color-4 { --bar-color: var(--chart-coral-soft); }
.workload-bar-item.is-warning { --bar-color: var(--chart-warning); color: #8b5200; }
.workload-sla { --bar-color: var(--chart-blue-soft); }
.workload-sla li { display: grid; gap: 8px; }
.workload-sla li > div { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline; font-size: .88rem; }
.workload-sla li > div > span:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.workload-sla li strong { color: var(--red-deep-2); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .workload-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workload-dashboard { width: min(100% - 24px, 1240px); padding-top: 36px; }
  .workload-kpis, .workload-grid { grid-template-columns: 1fr; }
  .workload-engineers { grid-column: auto; }
  .workload-kpi { min-height: 0; }
}

.workload-card-heading-controls { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.workload-card-heading-controls > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.workload-card-heading-controls small { font-size: inherit; font-weight: 500; }
.workload-forecast-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--text); background: var(--surface-strong); cursor: pointer; font-size: .72rem; font-weight: 700; }
.workload-forecast-toggle:hover { border-color: var(--accent-2); }
.workload-switch { display: flex; width: 34px; height: 20px; padding: 2px; border-radius: 100px; background: var(--gray-mid); transition: background var(--transition); }
.workload-switch i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 24%); transition: transform var(--transition); }
.workload-forecast-toggle[aria-pressed="true"] .workload-switch { background: var(--accent-2); }
.workload-forecast-toggle[aria-pressed="true"] .workload-switch i { transform: translateX(14px); }
.workload-forecast-toggle strong { min-width: 18px; color: var(--muted); }
.workload-forecast-panel[hidden], [data-queue-actual][hidden] { display: none; }
.workload-forecast-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: var(--blue-pale-2); }
.workload-forecast-intro > div { display: grid; gap: 2px; }
.workload-forecast-intro span { color: var(--muted); font-size: .75rem; }
.workload-ml-label { display: inline-flex; width: fit-content; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--chart-purple-soft) 55%, transparent); border-radius: 100px; color: var(--purple-deep-1) !important; background: var(--purple-pale-2); font-size: .68rem !important; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.workload-forecast-bars { display: grid; gap: 17px; list-style: none; }
.workload-forecast-label, .workload-forecast-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.workload-forecast-label { margin-bottom: 7px; font-size: .81rem; }
.workload-forecast-label > span:last-child { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.workload-forecast-label b { color: var(--text); }
.workload-forecast-track { display: block; overflow: hidden; height: 11px; border-radius: 100px; background: #eee9ec; }
.workload-forecast-total { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--forecast-color) 26%, white) 0 4px, color-mix(in srgb, var(--forecast-color) 10%, white) 4px 8px); }
.workload-forecast-current { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: var(--forecast-color); }
.workload-forecast-bars .color-1 { --forecast-color: var(--chart-burgundy-soft); }
.workload-forecast-bars .color-2 { --forecast-color: var(--chart-purple-soft); }
.workload-forecast-bars .color-3 { --forecast-color: var(--chart-blue-soft); }
.workload-forecast-bars .color-4 { --forecast-color: var(--chart-coral-soft); }
.workload-forecast-meta { margin-top: 6px; color: var(--muted); font-size: .69rem; }
.workload-confidence { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: #f7f5f6; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.workload-forecast-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; color: var(--muted); font-size: .69rem; }
.workload-forecast-legend span { display: inline-flex; align-items: center; gap: 6px; }
.workload-forecast-legend i { display: inline-block; width: 26px; height: 8px; border-radius: 100px; background: var(--chart-blue-soft); }
.workload-forecast-legend i.is-predicted { border: 1px solid color-mix(in srgb, var(--chart-blue-soft) 55%, transparent); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--chart-blue-soft) 25%, white) 0 4px, color-mix(in srgb, var(--chart-blue-soft) 8%, white) 4px 8px); }
.workload-forecast-note { margin-top: 14px; color: var(--muted); font-size: .72rem; }
.workload-detail-link { display: inline-flex; gap: 7px; margin-top: 16px; color: var(--purple-deep-2); font-size: .79rem; font-weight: 700; text-decoration: none; }
.workload-detail-link:hover { color: var(--accent); }

.workload-forecast-page > .back-link { display: inline-flex; margin-bottom: 30px; color: var(--purple-deep-2); font-size: .82rem; font-weight: 700; text-decoration: none; }
.workload-forecast-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.workload-forecast-heading > div:first-child { max-width: 760px; }
.workload-model-status { display: grid; justify-items: end; gap: 10px; text-align: right; }
.workload-model-status p { color: var(--muted); font-size: .73rem; line-height: 1.5; }
.workload-forecast-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.workload-forecast-summary article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 88%); box-shadow: 0 12px 34px rgb(42 3 17 / 10%); }
.workload-forecast-summary p { min-height: 34px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.workload-forecast-summary strong { display: block; margin: 9px 0 7px; color: var(--red-deep-2); font-size: 2rem; letter-spacing: -.035em; }
.workload-forecast-summary span { color: var(--muted); font-size: .67rem; }
.workload-planning-card { margin-bottom: 20px; }
.workload-forecast-table, .workload-performance-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.workload-forecast-table th, .workload-forecast-table td, .workload-performance-table th, .workload-performance-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.workload-forecast-table th:first-child, .workload-performance-table th:first-child { text-align: left; }
.workload-forecast-table thead th, .workload-performance-table thead th { color: var(--muted); font-size: .7rem; letter-spacing: .025em; text-transform: uppercase; }
.workload-forecast-table tbody th, .workload-performance-table tbody th { font-weight: 500; }
.workload-forecast-visual td { padding: 4px 12px 15px; border-bottom: 0; }
.workload-forecast-visual td > span { position: relative; display: block; height: 8px; border-radius: 100px; background: #eee9ec; }
.workload-forecast-visual i { position: absolute; top: 0; left: 0; display: block; height: 8px; border-radius: 100px; }
.workload-forecast-visual i:nth-child(4) { width: var(--september); background: color-mix(in srgb, var(--chart-coral-soft) 30%, white); }
.workload-forecast-visual i:nth-child(3) { width: var(--august); background: color-mix(in srgb, var(--chart-purple-soft) 40%, white); }
.workload-forecast-visual i:nth-child(2) { width: var(--july); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--chart-blue-soft) 45%, white) 0 4px, color-mix(in srgb, var(--chart-blue-soft) 18%, white) 4px 8px); }
.workload-forecast-visual i:nth-child(1) { z-index: 1; width: var(--july-current); background: var(--chart-blue-soft); }
.workload-performance-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.workload-forecast-explainer { background: color-mix(in srgb, var(--blue-pale-2) 72%, white); }
.workload-forecast-explainer h2 { margin-bottom: 22px; font-size: 1.45rem; }
.workload-forecast-explainer > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
@media (max-width: 1000px) {
  .workload-forecast-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workload-performance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .workload-card-heading, .workload-forecast-heading { align-items: flex-start; flex-direction: column; }
  .workload-card-heading-controls, .workload-model-status { align-items: flex-start; justify-items: start; text-align: left; }
  .workload-forecast-summary { grid-template-columns: 1fr; }
}
