/*
 * RoleRite Web — Radical Monk browser edition
 *
 * Feature Map
 * [BLOCK WEB-STYLE-00] Product tokens and shell
 * [BLOCK WEB-STYLE-10] Hero, trust, and service status
 * [BLOCK WEB-STYLE-20] Workspace, cards, forms, and file drop
 * [BLOCK WEB-STYLE-24] Alternative resume and vacancy input tabs
 * [BLOCK WEB-STYLE-25] Ordered vacancy images and insertion choices
 * [BLOCK WEB-STYLE-26] Full-screen camera, shutter, and thumbnail ribbon
 * [BLOCK WEB-STYLE-30] Actions, consent, progress, and errors
 * [BLOCK WEB-STYLE-40] Results, tabs, ordered review checklist, and generated documents
 * [BLOCK WEB-STYLE-45] Testimonials
 * [BLOCK WEB-STYLE-50] Accessibility and responsive layout
 */

/* [BLOCK WEB-STYLE-00] Product tokens and shell */
:root {
  --rr-ink: #4a2b23;
  --rr-ink-soft: #725046;
  --rr-brown: #8b5527;
  --rr-brown-dark: #653b21;
  --rr-brown-soft: #c79c69;
  --rr-purple: #7a246c;
  --rr-purple-dark: #55204f;
  --rr-purple-pale: #f2e5ef;
  --rr-cream: #fffaf2;
  --rr-cream-deep: #f6eadb;
  --rr-card: rgba(255, 250, 244, 0.97);
  --rr-line: #dfc4a8;
  --rr-good: #2f6d4f;
  --rr-warn: #8c5a15;
  --rr-error: #9b2f35;
  --rr-meter-low: #8b5527;
  --rr-meter-mid: #c79c69;
  --rr-meter-high: #7a246c;
  --rr-meter-dark: #4a2b23;
  --rr-shadow: 0 14px 34px rgba(65, 35, 29, 0.13);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--rr-ink);
}

.rolerite-web-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.rolerite-web-shell h1,
.rolerite-web-shell h2,
.rolerite-web-shell h3,
.rolerite-web-shell p {
  margin-top: 0;
}

.rolerite-web-shell h1,
.rolerite-web-shell h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.rolerite-web-shell input,
.rolerite-web-shell textarea,
.rolerite-web-shell select,
.rolerite-web-shell button {
  font: inherit;
}

/* [BLOCK WEB-STYLE-10] Hero, trust, and service status */
.rolerite-web-hero {
  position: relative;
  margin: 18px 0 22px;
  padding: 20px;
  overflow: hidden;
  color: var(--dark);
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 20px -5px var(--shadow);
}

.rolerite-web-hero::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.5;
}

.rolerite-web-hero > * {
  position: relative;
  z-index: 1;
}

.rolerite-web-title {
  margin: 10px 0 8px;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.rolerite-web-highlight {
  max-width: 900px;
  margin: 0 auto 26px;
  padding: 14px 16px;
  color: #fff;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 20px -5px var(--shadow);
}

.hero-highlight-line {
  display: block;
  margin-top: 0.28em;
  color: inherit;
  font-size: 0.78em;
  font-weight: 600;
}

.hero-highlight-rotator {
  height: 1.35em;
  overflow: hidden;
  position: relative;
}

.hero-highlight-window {
  display: block;
  height: 100%;
  position: relative;
}

.hero-highlight-phrase {
  align-items: center;
  animation: rolerite-highlight-phrase 25s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  color: #ffe4a8;
  display: flex;
  inset: 0;
  justify-content: center;
  letter-spacing: 0.045em;
  line-height: 1.2;
  opacity: 0;
  position: absolute;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(74, 43, 35, 0.45),
    0 0 14px rgba(255, 228, 168, 0.38);
  transform: translateX(58%);
  white-space: nowrap;
}

.hero-highlight-phrase:nth-child(2) {
  animation-delay: 5s;
}

.hero-highlight-phrase:nth-child(3) {
  animation-delay: 10s;
}

.hero-highlight-phrase:nth-child(4) {
  animation-delay: 15s;
}

.hero-highlight-phrase:nth-child(5) {
  animation-delay: 20s;
}

@keyframes rolerite-highlight-phrase {
  0% {
    opacity: 0;
    transform: translateX(58%);
  }

  4% {
    opacity: 1;
    transform: translateX(0);
  }

  15% {
    opacity: 1;
    transform: translateX(0);
  }

  20% {
    opacity: 0;
    transform: translateX(-58%);
  }

  100% {
    opacity: 0;
    transform: translateX(-58%);
  }
}

.rolerite-web-trust {
  max-width: 910px;
  margin: 0 auto 14px;
  padding: 14px 17px;
  text-align: left;
  line-height: 1.55;
  background: rgba(255, 248, 234, 0.9);
  border: 1px solid var(--rr-brown-soft);
  border-radius: 11px;
}

.rolerite-web-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 15px;
  color: var(--rr-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  background: #fff9f0;
  border: 1px solid var(--rr-line);
  border-radius: 999px;
}

.rolerite-web-service.is-ready {
  color: var(--rr-good);
  border-color: #8fc0a6;
  background: #edf8f1;
}

.rolerite-web-service.is-unavailable {
  color: var(--rr-error);
  border-color: #d69b9e;
  background: #fff0f0;
}

/* [BLOCK WEB-STYLE-20] Workspace, cards, forms, and file drop */
.rolerite-web-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.rolerite-web-card,
.rolerite-web-results {
  padding: clamp(21px, 4vw, 34px);
  background: var(--rr-card);
  border: 1px solid var(--rr-line);
  border-radius: 17px;
  box-shadow: var(--rr-shadow);
}

.rolerite-web-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 19px;
}

.rolerite-web-step-heading h2 {
  margin-bottom: 4px;
  color: var(--rr-brown-dark);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.rolerite-web-step-heading p {
  margin-bottom: 0;
  color: var(--rr-ink-soft);
  line-height: 1.45;
}

.rolerite-web-action-heading {
  margin-bottom: 16px;
}

.rolerite-web-action-heading h2 {
  margin-bottom: 4px;
  color: var(--rr-brown-dark);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.rolerite-web-action-heading p {
  margin-bottom: 0;
  color: var(--rr-ink-soft);
  line-height: 1.45;
}

.rolerite-web-step-number {
  display: inline-grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  color: white;
  font-weight: 800;
  background: var(--rr-purple);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--rr-purple-dark);
}

.rolerite-web-shell label:not(.rolerite-web-drop):not(.rolerite-web-consent) {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.rolerite-web-shell input[type="text"],
.rolerite-web-shell input[type="url"],
.rolerite-web-shell textarea,
.rolerite-web-shell select {
  width: 100%;
  color: var(--rr-ink);
  background: #fffdfa;
  border: 1px solid #cfb9a8;
  border-radius: 9px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rolerite-web-shell input[type="text"],
.rolerite-web-shell input[type="url"],
.rolerite-web-shell select {
  min-height: 46px;
  padding: 10px 12px;
}

.rolerite-web-shell textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.48;
}

.rolerite-web-shell input::placeholder,
.rolerite-web-shell textarea::placeholder {
  color: #9a8178;
}

.rolerite-web-drop {
  display: grid;
  min-height: 105px;
  padding: 20px;
  place-items: center;
  text-align: center;
  color: var(--rr-purple-dark);
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(145deg, #faf0f7, #fffaf5);
  border: 2px dashed #b385aa;
  border-radius: 12px;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.rolerite-web-drop:hover,
.rolerite-web-drop.is-dragging {
  background: var(--rr-purple-pale);
  border-color: var(--rr-purple);
  transform: translateY(-1px);
}

.rolerite-web-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rolerite-web-inline-status,
.rolerite-web-counter,
.rolerite-web-limit-note {
  color: var(--rr-ink-soft);
  font-size: 0.86rem;
}

.rolerite-web-inline-status {
  min-height: 23px;
  margin: 7px 0 10px;
}

.rolerite-web-inline-status.is-error {
  color: var(--rr-error);
  font-weight: 700;
  padding: 11px 13px;
  background: #fff0f0;
  border: 1px solid #c85a61;
  border-radius: 9px;
}

.rolerite-web-inline-status.is-success {
  color: var(--rr-good);
  font-weight: 700;
  padding: 11px 13px;
  background: #eef8f0;
  border: 1px solid #62906a;
  border-radius: 9px;
}

.rolerite-web-inline-status.is-working {
  color: var(--rr-purple-dark);
  font-weight: 700;
  padding: 11px 13px;
  background: var(--rr-purple-pale);
  border: 1px solid #b385aa;
  border-radius: 9px;
}

.rolerite-web-counter {
  margin-top: 5px;
  text-align: right;
}

.rolerite-web-free-tier-budget {
  margin: 16px 0 20px;
  padding: 13px 15px;
  color: var(--rr-purple-dark);
  background: var(--rr-purple-pale);
  border: 1px solid #b385aa;
  border-radius: 10px;
}

.rolerite-web-budget-intro {
  margin: 0;
}

.rolerite-web-free-tier-budget > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rolerite-web-free-tier-budget p {
  margin: 5px 0 0;
  color: var(--rr-ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.rolerite-web-free-tier-budget.is-near {
  color: var(--rr-warn);
  background: #fff5df;
  border-color: #cf9a4d;
}

.rolerite-web-free-tier-budget.is-over {
  color: var(--rr-error);
  background: #fff0f0;
  border-color: #c85a61;
  box-shadow: inset 4px 0 0 var(--rr-error);
}

.rolerite-web-free-tier-budget.is-over [data-combined-summary],
.rolerite-web-free-tier-budget.is-over [data-combined-guidance] {
  font-weight: 700;
}

.rolerite-web-url-row {
  margin-bottom: 4px;
}

.rolerite-web-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

/* [BLOCK WEB-STYLE-24] Alternative resume and vacancy input tabs */
:is(.vacancy-input-tabs, .resume-input-tabs) {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rr-line);
}
.resume-input-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
:is(.vacancy-input-tabs, .resume-input-tabs) [role="tab"] {
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--rr-ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  overflow-wrap: anywhere;
}
:is(.vacancy-input-tabs, .resume-input-tabs) [aria-selected="true"] {
  color: var(--rr-brown-dark);
  border-bottom-color: var(--rr-brown);
  background: rgba(164, 114, 65, 0.08);
}
:is(.vacancy-input-tabs, .resume-input-tabs) [role="tab"]:focus-visible {
  outline: 2px solid var(--rr-purple);
  outline-offset: -3px;
}

/* [BLOCK WEB-STYLE-25] Ordered vacancy images and insertion choices */
.vacancy-images {
  border-top: 1px solid var(--rr-line);
  border-bottom: 1px solid var(--rr-line);
  padding: 14px 0 4px;
  margin: 12px 0 18px;
  min-width: 0;
}

.vacancy-images.is-dragging {
  outline: 2px dashed var(--rr-purple);
  outline-offset: 4px;
}

.vacancy-image-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.vacancy-images .vacancy-image-toolbar .rolerite-web-button {
  gap: 7px;
  white-space: normal;
  min-height: 44px;
  max-width: 100%;
}

.vacancy-image-toolbar img,
.vacancy-image-icon img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.vacancy-image-toolbar .vacancy-camera-button { display: none; }

@media (pointer: coarse), (max-width: 640px) {
  .vacancy-image-toolbar .vacancy-camera-button { display: inline-flex; }
}

.vacancy-image-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.vacancy-image-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rr-line);
  padding: 10px 0;
}

.vacancy-image-thumbnail {
  display: block;
  width: 56px;
  height: 72px;
  object-fit: contain;
  background: white;
  border: 1px solid #cfb9a8;
  border-radius: 4px;
}

.vacancy-image-detail { min-width: 0; }
.vacancy-image-detail strong,
.vacancy-image-note {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 0.85rem;
}
.vacancy-image-note { color: var(--rr-ink-soft); margin-top: 4px; }
.vacancy-image-note.is-error { color: var(--rr-error); font-weight: 700; }
.vacancy-image-actions { display: flex; gap: 4px; }
.vacancy-image-actions .vacancy-image-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 6px;
}
.vacancy-image-choice { margin: 12px 0; }
.vacancy-image-choice > strong { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.rolerite-web-inline-status.is-warning {
  color: #6c4612;
  padding: 11px 13px;
  font-weight: 700;
  background: #fff8e5;
  border: 1px solid #bc934b;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .vacancy-image-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .vacancy-image-thumbnail { width: 48px; height: 64px; }
  .vacancy-image-actions { grid-column: 2; }
}

/* [BLOCK WEB-STYLE-26] Full-screen camera, shutter, and thumbnail ribbon */
.vacancy-camera-open, .vacancy-camera-open body { overflow: hidden; }
.vacancy-camera {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #111;
  overflow: hidden;
}
.vacancy-camera::backdrop { background: #111; }
.vacancy-camera-surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: #111;
}
.vacancy-camera-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  font-size: 0.95rem;
  line-height: 1.4;
}
.vacancy-camera-header strong { overflow-wrap: anywhere; }
.vacancy-camera-header span { font-variant-numeric: tabular-nums; color: #ddd; }
.vacancy-camera-stage { min-height: 0; min-width: 0; overflow: hidden; background: #000; }
.vacancy-camera-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.vacancy-camera-footer {
  min-width: 0;
  margin: 0;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  border: 0;
  text-align: initial;
}
.vacancy-camera-thumbnails {
  display: flex;
  gap: 8px;
  height: 66px;
  margin: 0 0 12px;
  padding: 0 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #777 #111;
}
.vacancy-camera-thumbnails li { position: relative; flex: 0 0 48px; height: 60px; }
.vacancy-camera-thumbnails img { width: 48px; height: 60px; object-fit: cover; border: 1px solid #777; border-radius: 4px; }
.vacancy-camera-thumbnails span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 4px;
  min-width: 18px;
  color: #fff;
  background: #111;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
}
.vacancy-camera-controls { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; gap: 12px; }
.vacancy-camera button { display: inline-flex; justify-content: center; align-items: center; font: inherit; cursor: pointer; }
.vacancy-camera button:disabled { opacity: 0.45; cursor: default; }
.vacancy-camera button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vacancy-camera-dismiss { width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; }
.vacancy-camera-dismiss img, .vacancy-camera-done img { filter: invert(1); }
.vacancy-camera-shutter {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
  border: 5px solid #111;
  outline: 3px solid #fff;
  outline-offset: -1px;
  background: #fff;
}
.vacancy-camera-shutter img { width: 28px; height: 28px; }
.vacancy-camera-done {
  justify-self: end;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px;
  color: #fff;
  background: #286a50;
  border: 1px solid #71b99a;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  flex-wrap: wrap;
}
.vacancy-camera #vacancy-camera-status {
  min-height: 32px;
  margin: 8px 0 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ddd;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}
.vacancy-camera #vacancy-camera-status.is-error { color: #ffb4b4; }
.vacancy-camera #vacancy-camera-status.is-success { color: #a0dfba; }

@media (max-height: 480px) and (min-aspect-ratio: 4/3) {
  .vacancy-camera-surface { grid-template-columns: minmax(0, 1fr) 120px; grid-template-rows: auto minmax(0, 1fr) 72px; }
  .vacancy-camera-header { grid-column: 1 / -1; }
  .vacancy-camera-stage { grid-area: 2 / 1; }
  .vacancy-camera-footer { display: contents; }
  .vacancy-camera-thumbnails { grid-area: 3 / 1 / 4 / -1; height: 66px; margin: 0; padding: 0 16px 4px; }
  .vacancy-camera-controls { grid-area: 2 / 2; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-right: env(safe-area-inset-right); }
  .vacancy-camera-controls > span { display: none; }
  .vacancy-camera #vacancy-camera-status { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* [BLOCK WEB-STYLE-30] Actions, consent, progress, and errors */
.rolerite-web-button,
.rolerite-web-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  color: white;
  font-weight: 750;
  cursor: pointer;
  background: var(--rr-brown);
  border: 1px solid var(--rr-brown-dark);
  border-radius: 9px;
  box-shadow: 0 3px 0 rgba(83, 45, 27, 0.28);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.rolerite-web-button:hover,
.rolerite-web-generate:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.rolerite-web-button:active,
.rolerite-web-generate:active {
  box-shadow: none;
  transform: translateY(2px);
}

.rolerite-web-button.secondary {
  white-space: nowrap;
  color: var(--rr-ink);
  background: #e4c49c;
  border-color: #a76f36;
}

.rolerite-web-button.quiet {
  min-height: 39px;
  padding: 8px 13px;
  color: var(--rr-ink);
  background: #f7eadb;
  border-color: #b98a5c;
  box-shadow: none;
}

.rolerite-web-button.rolerite-web-download-bundle {
  color: white;
  background: linear-gradient(135deg, var(--rr-purple), var(--rr-purple-dark));
  border-color: var(--rr-purple-dark);
  box-shadow: 0 3px 0 rgba(63, 20, 58, 0.28);
}

.rolerite-web-button.rolerite-web-higher-usage-button {
  color: #4b270f;
  text-decoration: none;
  background: linear-gradient(135deg, #f7c96b 0%, #d8862c 52%, #8b5a2b 100%);
  border-color: #8b5a2b;
  box-shadow: 0 3px 0 rgba(75, 39, 15, 0.3);
  text-shadow: 0 1px 0 rgba(255, 236, 188, 0.45);
}

.rolerite-web-button:disabled,
.rolerite-web-generate:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.62;
  transform: none;
}

.rolerite-web-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin: 19px 0;
  padding: 14px;
  line-height: 1.45;
  background: #fff5e6;
  border: 1px solid #d3aa77;
  border-radius: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rolerite-web-consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--rr-purple);
}

.rolerite-web-consent.is-missing {
  color: #6f2028;
  background: #fff0f1;
  border-color: var(--rr-error);
  box-shadow: 0 0 0 3px rgba(122, 36, 108, 0.16), inset 4px 0 0 var(--rr-error);
}

.rolerite-web-consent.is-missing input {
  outline: 2px solid var(--rr-error);
  outline-offset: 2px;
}

.rolerite-web-draft-actions,
.rolerite-web-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rolerite-web-draft-actions {
  margin: 0 0 20px;
}

.rolerite-web-generate {
  width: 100%;
  min-height: 55px;
  font-size: 1.04rem;
  background: linear-gradient(145deg, var(--rr-purple), var(--rr-purple-dark));
  border-color: #48193f;
}

.rolerite-web-limit-note {
  margin: 9px 0 0;
  text-align: center;
}

.rolerite-web-error {
  margin-top: 16px;
  padding: 12px 14px;
  color: #6f151d;
  font-weight: 700;
  background: #ffeded;
  border: 1px solid #d58d93;
  border-radius: 9px;
}

.rolerite-web-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 16px;
  padding: 14px;
  color: var(--rr-purple-dark);
  font-weight: 750;
  background: var(--rr-purple-pale);
  border: 1px solid #c399bc;
  border-radius: 9px;
}

.rolerite-web-spinner {
  width: 21px;
  height: 21px;
  border: 3px solid rgba(122, 36, 108, 0.23);
  border-top-color: var(--rr-purple);
  border-radius: 50%;
  animation: rr-spin 850ms linear infinite;
}

@keyframes rr-spin {
  to { transform: rotate(360deg); }
}

/* [BLOCK WEB-STYLE-40] Results, tabs, ordered review checklist, and generated documents */
.rolerite-web-results {
  margin-top: 22px;
}

.rolerite-web-results {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.99), rgba(249, 239, 227, 0.96));
  border-top: 0;
}

.rolerite-web-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.rolerite-web-results-heading h2 {
  margin-bottom: 4px;
  color: var(--rr-brown-dark);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}

.rolerite-web-results-heading p {
  margin-bottom: 0;
  color: var(--rr-ink-soft);
}

.rolerite-web-results-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(236px, 268px));
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.rolerite-web-results-actions > .rolerite-web-button,
.rolerite-web-results-download > .rolerite-web-button,
.rolerite-web-higher-usage .rolerite-web-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  font-size: 1rem;
}

.rolerite-web-higher-usage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 268px;
}

.rolerite-web-higher-usage small {
  color: var(--rr-ink-soft);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.rolerite-web-score-card {
  display: grid;
  grid-template-columns: minmax(148px, 1fr) minmax(196px, 250px) minmax(148px, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  min-height: 154px;
  margin: 15px 0 18px;
  padding: 16px clamp(16px, 3vw, 24px);
  overflow: hidden;
  color: #f8fbf6;
  font-weight: 700;
  background:
    radial-gradient(circle at 50% 118%, rgba(122, 36, 108, 0.2), transparent 38%),
    radial-gradient(circle at 76% 24%, rgba(199, 156, 105, 0.16), transparent 34%),
    linear-gradient(135deg, var(--rr-meter-dark), var(--rr-brown-dark) 58%, var(--rr-purple-dark));
  border: 1px solid rgba(246, 234, 219, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(25, 13, 18, 0.24);
}

.rolerite-web-score-card > small {
  justify-self: end;
  max-width: 190px;
  color: rgba(248, 251, 246, 0.86);
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.rolerite-web-score-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rolerite-web-score-copy span {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.rolerite-web-score-copy small {
  color: rgba(248, 251, 246, 0.76);
  font-weight: 550;
  line-height: 1.35;
}

.rolerite-web-speedometer {
  --score-angle: 0deg;
  --needle-angle: -90deg;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  justify-self: center;
  width: min(250px, 56vw);
  min-width: 196px;
}

.rolerite-web-speedometer-face {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
}

.rolerite-web-speedometer-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from -90deg at 50% 100%,
    var(--rr-meter-low) 0 45deg,
    var(--rr-meter-mid) 45deg 112deg,
    var(--rr-meter-high) 112deg 180deg,
    transparent 180deg 360deg
  );
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.2);
}

.rolerite-web-speedometer-face::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2px;
  z-index: 1;
  height: 82%;
  background: linear-gradient(180deg, #4a2b23, #2d1c18);
  border: 1px solid rgba(246, 234, 219, 0.16);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.rolerite-web-speedometer-band {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: conic-gradient(
    from -90deg at 50% 100%,
    rgba(255, 250, 242, 0.7) 0 var(--score-angle),
    rgba(255, 250, 242, 0.12) var(--score-angle) 180deg,
    transparent 180deg 360deg
  );
  border-radius: inherit;
  mix-blend-mode: soft-light;
  opacity: 0.74;
}

.rolerite-web-speedometer-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: 5px;
  height: 76%;
  background: linear-gradient(180deg, var(--rr-cream), var(--rr-brown-soft));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(199, 156, 105, 0.42);
  transform: translateX(-50%) rotate(var(--needle-angle));
  transform-origin: 50% 100%;
  will-change: transform;
}

.rolerite-web-speedometer-pivot {
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: 5;
  width: 20px;
  height: 20px;
  background: var(--rr-cream);
  border: 5px solid var(--rr-brown-soft);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(122, 36, 108, 0.34);
  transform: translate(-50%, 50%);
}

.rolerite-web-speedometer strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1;
}

.rolerite-web-results-download {
  display: grid;
  grid-template-columns: repeat(2, minmax(236px, 268px));
  align-items: flex-start;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rr-line);
}

.rolerite-web-keyword-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 15px 0 20px;
}

.rolerite-web-keyword-grid > div {
  padding: 15px 18px;
  background: var(--rr-cream-deep);
  border: 1px solid var(--rr-line);
  border-radius: 10px;
}

.rolerite-web-keyword-grid h3 {
  margin-bottom: 9px;
  color: var(--rr-brown-dark);
}

.rolerite-web-keyword-grid ul,
.rolerite-web-audit ol {
  margin: 0;
  padding-left: 20px;
}

.rolerite-web-audit li + li {
  margin-top: 8px;
}

.rolerite-web-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 2px 2px;
  border-bottom: 2px solid var(--rr-purple);
}

.rolerite-web-tabs button {
  flex: 0 0 auto;
  padding: 11px 14px;
  color: var(--rr-ink);
  font-weight: 750;
  cursor: pointer;
  background: #f3e5d5;
  border: 1px solid var(--rr-line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.rolerite-web-tabs button[aria-selected="true"] {
  color: white;
  background: var(--rr-purple);
  border-color: var(--rr-purple);
}

.rolerite-web-result-panel {
  min-height: 350px;
  padding: 18px 3px 3px;
}

.rolerite-web-document-actions {
  justify-content: flex-end;
  margin-bottom: 13px;
}

.rolerite-web-result-panel pre {
  min-height: 285px;
  margin: 0;
  padding: clamp(16px, 3vw, 25px);
  overflow: auto;
  color: #35201a;
  font: 400 0.97rem/1.64 Inter, system-ui, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fffdfa;
  border: 1px solid #d7c5b7;
  border-radius: 10px;
}

.rolerite-web-result-panel pre strong {
  color: var(--rr-purple-dark);
  font-weight: 850;
}

.rolerite-web-audit {
  margin-top: 16px;
  padding: 16px 18px;
  background: #fff4dc;
  border: 1px solid #d6a662;
  border-radius: 10px;
}

.rolerite-web-audit h3 {
  margin-bottom: 8px;
  color: var(--rr-warn);
}

/* [BLOCK WEB-STYLE-45] Testimonials */
.rolerite-testimonials {
  margin-top: 22px;
  border-top: 6px solid #b47a26;
}

.rolerite-testimonials-heading {
  margin: 12px auto 0;
  text-align: left;
}

.rolerite-testimonials-heading h2 {
  margin-bottom: 3px;
}

.rolerite-testimonials-heading p {
  margin-bottom: 0;
}

.rolerite-testimonial-summary {
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 15px 17px;
  text-align: center;
  background: linear-gradient(145deg, #fff5dd, #f3d7a5);
  border: 1px solid #d1a15c;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(94, 57, 23, 0.11);
}

.rolerite-testimonial-summary-stars {
  color: #9c641e;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 1px 0 #fff1c9;
}

.rolerite-testimonial-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--rr-brown-dark);
  font-size: 1.05rem;
}

.rolerite-testimonial-summary span {
  display: block;
  margin-top: 3px;
  color: var(--rr-ink-soft);
  font-size: 0.85rem;
}

.rolerite-testimonial-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.rolerite-testimonial-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.rolerite-testimonial-form-prompt {
  margin: 0 0 -2px;
  color: var(--rr-ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rolerite-testimonial-rating-field legend {
  margin-bottom: 7px;
  color: var(--rr-ink);
  font-weight: 800;
}

.rolerite-testimonial-rating {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  background: linear-gradient(145deg, #fff8ea, #f8e5bc);
  border: 1px solid #d1a15c;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 5px 12px rgba(94, 57, 23, 0.08);
}

.rolerite-testimonial-rating button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #b99b6a;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: color 140ms ease, transform 140ms ease;
}

.rolerite-testimonial-rating button.is-active {
  color: #9c641e;
  text-shadow: 0 1px 0 #fff1c9;
}

.rolerite-testimonial-rating button[aria-checked="true"] {
  color: #875111;
}

.rolerite-testimonial-rating button:hover {
  transform: translateY(-1px);
}

.rolerite-testimonial-selected {
  margin: 5px 0 0 16px;
  color: var(--rr-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.rolerite-testimonial-optional,
.rolerite-testimonial-note,
.rolerite-testimonial-empty {
  color: var(--rr-ink-soft);
  font-size: 0.86rem;
}

.rolerite-testimonial-submit {
  justify-self: start;
  min-width: 220px;
  background: linear-gradient(135deg, #a06623 0%, #7a246c 100%);
}

.rolerite-testimonial-note {
  margin: -2px 0 0;
  line-height: 1.45;
}

.rolerite-testimonial-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rolerite-testimonial-recent {
  margin-top: 24px;
}

.rolerite-testimonial-recent h3 {
  margin-bottom: 12px;
  color: var(--rr-brown-dark);
}

.rolerite-testimonial-list {
  display: grid;
  gap: 12px;
}

.rolerite-testimonial-card {
  padding: 15px 17px;
  background: linear-gradient(145deg, #fffaf2, #f7ead7);
  border: 1px solid var(--rr-line);
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(75, 43, 35, 0.08);
}

.rolerite-testimonial-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.rolerite-testimonial-card-name {
  color: var(--rr-ink);
  font-weight: 850;
}

.rolerite-testimonial-card-meta {
  color: var(--rr-ink-soft);
  font-size: 0.82rem;
  font-style: italic;
}

.rolerite-testimonial-card-stars {
  color: #9c641e;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.rolerite-testimonial-card-comment {
  margin: 8px 0 0;
  color: var(--rr-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

/* [BLOCK WEB-STYLE-50] Accessibility and responsive layout */
.rolerite-web-shell :focus-visible {
  outline: 3px solid #c02fa7;
  outline-offset: 3px;
}

.rolerite-web-shell input:focus,
.rolerite-web-shell textarea:focus,
.rolerite-web-shell select:focus {
  border-color: var(--rr-purple);
  box-shadow: 0 0 0 3px rgba(122, 36, 108, 0.14);
}

@media (max-width: 820px) {
  .rolerite-web-shell {
    width: var(--trm-mobile-tool-width, min(100%, 680px));
  }

  .rolerite-web-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .rolerite-web-results-actions,
  .rolerite-web-results-download {
    align-items: stretch;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .rolerite-web-higher-usage {
    max-width: none;
  }

  .rolerite-web-results-heading .rolerite-web-button {
    width: 100%;
  }

  .rolerite-web-score-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .rolerite-web-score-copy {
    align-items: center;
  }

  .rolerite-web-score-card > small {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .rolerite-web-shell {
    width: var(--trm-mobile-tool-width, min(100%, 680px));
  }

  .rolerite-web-hero {
    margin-top: 18px;
    padding: 20px 14px;
    border-radius: 14px;
  }

  .rolerite-web-card,
  .rolerite-web-results {
    padding: 19px 15px;
    border-radius: 13px;
  }

  .rolerite-web-control-row,
  .rolerite-web-keyword-grid {
    grid-template-columns: 1fr;
  }

  .rolerite-web-control-row .rolerite-web-button {
    width: 100%;
  }

  .rolerite-web-draft-actions > *,
  .rolerite-web-document-actions > * {
    flex: 1 1 auto;
  }

  .rolerite-web-free-tier-budget > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .rolerite-web-score-card {
    gap: 13px;
    padding: 17px 14px 16px;
  }

  .rolerite-web-speedometer {
    min-width: 180px;
    width: min(236px, 78vw);
  }

  .rolerite-web-results-download .rolerite-web-button,
  .rolerite-web-results-actions .rolerite-web-button,
  .rolerite-testimonial-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-highlight-phrase {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .hero-highlight-phrase:first-child {
    opacity: 1;
  }
}
