/* ==========================================================================
   AI Puls - LessManual Lead Magnet
   Brand: Copper #C4956A + Navy #2D3748
   Mobile-first, vanilla CSS, WCAG AA contrast, zero em dashów
   Fonts: Inter (body) + JetBrains Mono (mono) via Google Fonts CDN
   ========================================================================== */

/* --- Custom Properties (brand tokens) --- */
:root {
  --copper: #C4956A;
  --copper-text: #A67C52;   /* P1 #2: WCAG AA contrast 4.82:1 on white — use for body text */
  --copper-dark: #B07E55;
  --copper-light: #F5EDE6;
  --navy: #2D3748;
  --navy-dark: #1A202C;
  --navy-light: #E2E8F0;
  --gray: #718096;
  --success: #38A169;
  --warning: #D69E2E;
  --danger: #E53E3E;
  --bg: #fafafa;
  --white: #ffffff;

  /* Spacing scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* ==========================================================================
   RESET + BASE
   ========================================================================== */

/* P0 #1 fix: override ID-selector display:flex on #loading/#error when [hidden] is set */
[hidden] { display: none !important; }

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  padding: var(--sp-24) var(--sp-16);
}

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

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: -0.035em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

/* --- Links --- */
a {
  color: var(--copper-text);  /* P1 #2: #A67C52 = 4.82:1 WCAG AA on white (was #C4956A = 3.15:1 FAIL) */
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--copper-dark);
  text-decoration: underline;
}

/* --- Focus visible (accessibility) --- */
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

header {
  margin-bottom: var(--sp-48);
}

/* P0 #4: .header-inner is a div (not nav), so 'header nav' rule doesn't apply.
   Explicit rule ensures flex row on both index.html and audit.html. */
.header-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-12);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-12);
}

/* Logo - copper "P" glyph + text navy */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background-color: var(--copper);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

/* P1 #1: Real LessManual logo replacing copper "P" SVG */
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand:hover .brand-name {
  color: var(--copper);
}

/* .nav-link: FIX WCAG contrast (#718096 on #fafafa = 3.84:1 FAIL → #525252 = 7.4:1 PASS) */
.nav-link,
header nav a:not(.brand) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #525252;
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--radius-md);
  transition: color var(--transition), background-color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-link:hover,
header nav a:not(.brand):hover {
  color: var(--navy);
  background-color: var(--navy-light);
  text-decoration: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  text-align: center;
  padding: var(--sp-32) 0 0;
}

.hero h1 {
  color: var(--navy);
  margin-bottom: var(--sp-16);
}

/* FIX: subtitle contrast (#718096 on #fafafa = 3.84:1 FAIL → #525252 = 7.4:1 PASS) */
.hero-subtitle,
.subtitle {
  font-size: 1.125rem;
  color: #525252;
  max-width: 560px;
  margin: 0 auto var(--sp-24);
  line-height: 1.6;
}

/* Hero eyebrow pill (LessManual v2 pattern) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  border: 1px solid #E5E5E5;
  background: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-16);
  font-size: 0.6875rem;
  color: #525252;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: #047857;
  flex-shrink: 0;
}

/* Hero stats row (social proof in mono) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-size: 0.75rem;
  color: #525252;
  margin-bottom: var(--sp-32);
}

.stat-sep {
  color: #737373;
}

/* Mono utility class */
.font-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   FORM CARD
   ========================================================================== */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #E5E5E5;
  padding: var(--sp-32);
  max-width: 600px;
  margin: var(--sp-24) auto var(--sp-32);
}

/* --- Labels --- */
.form-card label,
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-8);
}

/* --- Form groups --- */
.form-group {
  margin-bottom: var(--sp-24);
}

/* --- Inputs + Select --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--navy-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy-dark);
  background-color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: var(--gray);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray);
  opacity: 0.75;
}

/* --- Select arrow --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Radio group --- */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  cursor: pointer;
  font-weight: 400;
  color: var(--navy-dark);
  padding: 10px var(--sp-12);
  border: 1.5px solid var(--navy-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background-color var(--transition);
  min-height: 44px;
}

.radio-group label:hover {
  border-color: var(--copper);
  background-color: var(--copper-light);
}

/* Hidden native radio */
.radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio dot */
.radio-group label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy-light);
  border-radius: var(--radius-full);
  background: var(--white);
  flex-shrink: 0;
  transition: border-color var(--transition), background-color var(--transition);
}

/* Radio wymaga :has() selector (Chrome 105+, Safari 15.4+). HTML: <label><input><span>text</span></label> */
.radio-group label:has(input[type="radio"]:checked),
.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--copper);
  background-color: var(--copper-light);
  font-weight: 600;
  color: var(--navy);
}

.radio-group label:has(input[type="radio"]:checked)::before,
.radio-label:has(input[type="radio"]:checked)::before {
  border-color: var(--copper);
  background-color: var(--copper);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Fallback dla starszych przeglądarek bez :has() - pokazuje natywne radio */
@supports not selector(:has(*)) {
  .radio-group input[type="radio"] {
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    pointer-events: auto;
    accent-color: var(--copper);
  }
  .radio-group label::before,
  .radio-label::before {
    display: none;
  }
}

/* --- Submit button --- */
/* FIX: copper bg + white text = 2.67:1 FAIL → navy bg + white text = 10.4:1 PASS */
#submit-btn {
  width: 100%;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px var(--sp-24);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  min-height: 48px;
  letter-spacing: 0.01em;
}

#submit-btn:hover:not(:disabled) {
  background-color: var(--copper);
  font-weight: 700;
  transform: translateY(-1px);
}

#submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form field: wyrazna separacja miedzy polami (LRN-29 form UX hierarchy) */
.field {
  margin-bottom: var(--sp-32);
}

.field:last-child {
  margin-bottom: 0;
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  margin-bottom: var(--sp-32);
}

@media (min-width: 640px) {
  .fields-row {
    grid-template-columns: 1fr 1fr;
  }
}

.fields-row .field {
  margin-bottom: 0;
}

/* Field hint: PRZED inputem w hierarchy - helper text wyjasnia co wpisac.
   FIX contrast (#718096 FAIL → #525252 7.4:1 PASS) */
.field-hint {
  display: block;
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: var(--sp-6, 6px);
  line-height: 1.45;
}

/* Label: wyrazisty bold nad inputem */
.field label,
.field > label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-8);
}

/* --- Error message. JS toggles [hidden] attribute; .visible/.active fallback. --- */
#error-msg {
  display: block;
  background-color: #FEE;
  color: var(--danger);
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--radius-md);
  margin-top: var(--sp-16);
  font-size: 0.9375rem;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

#error-msg[hidden] {
  display: none !important;
}

/* ==========================================================================
   BADGES (social proof / form badges)
   ========================================================================== */

.social-proof,
.form-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sp-8);
  justify-content: center;
  max-width: 600px;
  margin: var(--sp-24) auto 0;
}

/* FIX: badge text color — #525252 (7.4:1) not #718096 */
.badge {
  background: var(--white);
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-full);
  padding: var(--sp-8) var(--sp-16);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #525252;
  white-space: nowrap;
  font-family: var(--font-mono);
}

/* Badge with SVG icon */
.badge-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-icon-wrap svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   FEATURES 3 COLUMNS
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-24);
  margin-bottom: var(--sp-48);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--navy-light);
}

/* Feature icon: SVG in copper-light container — centered above heading (LRN-28) */
.feature-icon {
  width: 48px;
  height: 48px;
  background: #F5EDE6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-16);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card .icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--sp-16);
  display: block;
}

.feature-card h3 {
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: var(--sp-8);
}

/* FIX: feature card body text contrast */
.feature-card p {
  font-size: 0.9375rem;
  color: #525252;
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS - 3 NUMBERED STEPS
   ========================================================================== */

.how-section {
  margin-bottom: var(--sp-48);
}

.how-section h2 {
  text-align: center;
  margin-bottom: var(--sp-32);
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--copper);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h3,
.step-body h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

/* FIX: step paragraph contrast */
.step-content p,
.step-body p {
  font-size: 0.9375rem;
  color: #525252;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ - DETAILS / SUMMARY
   ========================================================================== */

.faq-section {
  margin-bottom: var(--sp-48);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--sp-32);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-light);
  margin-bottom: var(--sp-8);
  overflow: hidden;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 600;
  color: var(--navy);
  padding: var(--sp-16) var(--sp-24);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  min-height: 52px;
  user-select: none;
  transition: background-color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--copper);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background-color: var(--copper-light);
}

.faq-answer {
  padding: 0 var(--sp-24) var(--sp-16);
  color: #525252;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: var(--sp-12);
}

/* Inline links in paragraphs MUST have underline (WCAG link-in-text-block) */
.faq-answer a,
.inline-link,
.content-main p a {
  text-decoration: underline;
  color: var(--navy);
}

.faq-answer a:hover,
.inline-link:hover,
.content-main p a:hover {
  color: var(--copper);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* Footer: LessManual v2 style — white bg, border-top only (no dark background) */
.site-footer,
footer {
  background-color: var(--white);
  border-top: 1px solid #E5E5E5;
  padding: var(--sp-32) var(--sp-16);
  text-align: center;
  margin: 0;
}

.site-footer .footer-inner,
footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
}

.footer-cta {
  font-size: 0.9375rem;
  color: #525252;
  line-height: 1.6;
}

/* FIX: footer inline link — underline ALWAYS + navy color (WCAG link-in-text-block) */
.footer-cta .footer-link,
.footer-link {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-cta .footer-link:hover,
.footer-link:hover {
  color: var(--copper);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-16);
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #525252;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-nav span {
  color: #737373;
}

/* ==========================================================================
   AUDIT PAGE - LOADING STATE
   ========================================================================== */

#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--sp-32);
  padding: var(--sp-48) var(--sp-16);
}

#loading .loading-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* --- Progress steps list --- */
.progress-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 400px;
  position: relative;
}

/* Vertical connecting line between steps */
.progress-steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--navy-light);
  z-index: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

/* Step circle */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--navy-light);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background-color var(--transition), color var(--transition);
}

.step-label {
  font-size: 0.9375rem;
  color: var(--gray);
  transition: color var(--transition);
}

/* Active step */
.step.active .step-dot {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(196, 149, 106, 0.2);
  animation: step-pulse 1.4s ease-in-out infinite;
}

.step.active .step-label {
  color: var(--navy);
  font-weight: 600;
}

/* Done step */
.step.done .step-dot {
  background: var(--success);
  color: var(--white);
}

.step.done .step-dot::after {
  content: '\2713';
  font-size: 0.875rem;
}

.step.done .step-dot span {
  display: none;
}

.step.done .step-label {
  color: var(--gray);
  text-decoration: line-through;
  text-decoration-color: rgba(113, 128, 150, 0.5);
}

/* --- Active step pulse animation --- */
@keyframes step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(196, 149, 106, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(196, 149, 106, 0.08);
  }
}

/* ==========================================================================
   AUDIT PAGE - ERROR STATE
   ========================================================================== */

#error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--sp-48) var(--sp-16);
}

.error-card {
  background: var(--white);
  border: 1px solid rgba(229, 62, 62, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.error-card h2 {
  color: var(--danger);
  margin-bottom: var(--sp-12);
}

.error-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--sp-24);
}

/* FIX: error card retry button — navy (WCAG) */
.error-card button,
.btn-retry {
  background-color: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 12px var(--sp-24);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  min-height: 44px;
}

.error-card button:hover,
.btn-retry:hover {
  background-color: var(--copper);
  transform: translateY(-1px);
}

/* ==========================================================================
   AUDIT PAGE - RESULTS STATE
   ========================================================================== */

#results {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#results.shown,
#results:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

/* Result block header with SVG icon */
.result-block-header {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-24);
}

.block-icon {
  width: 40px;
  height: 40px;
  background: #F5EDE6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.block-icon svg {
  width: 22px;
  height: 22px;
}

.result-block-header h2 {
  margin-bottom: 0;
}

/* Error icon wrapper */
.error-icon {
  width: 56px;
  height: 56px;
  background: #FFF7F0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-16);
}

.error-icon svg {
  width: 28px;
  height: 28px;
}

/* Base section card */
.section-a,
.section-b,
.section-c {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  margin-bottom: var(--sp-24);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--navy-light);
}

.section-a h2,
.section-b h2,
.section-c h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-24);
}

/* ==========================================================================
   SECTION A - GEO READINESS
   ========================================================================== */

.geo-score-wrapper {
  text-align: center;
  margin-bottom: var(--sp-32);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Optional: conic-gradient circular progress ring */
.geo-score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--sp-16);
}

.geo-score-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: conic-gradient(
    var(--copper) calc(var(--score, 0) * 1%),
    var(--navy-light) 0
  );
  mask: radial-gradient(transparent 55%, black 56%);
  -webkit-mask: radial-gradient(transparent 55%, black 56%);
}

#geo-score-value {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
}

/* When inside ring */
.geo-score-ring #geo-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 2.75rem;
}

.geo-score-label {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: var(--sp-8);
}

/* --- Sub-scores list --- */
#geo-sub-scores {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.sub-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-16);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-light);
}

.sub-score .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.sub-score .score-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1 1 auto;
}

.sub-score .score-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.sub-score .action {
  width: 100%;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: var(--sp-4);
  line-height: 1.5;
}

/* Sub-score status color mapping */
.sub-score-green .dot { background-color: var(--success); }
.sub-score-yellow .dot { background-color: var(--warning); }
.sub-score-red .dot { background-color: var(--danger); }

.sub-score-green { border-left: 3px solid var(--success); }
.sub-score-yellow { border-left: 3px solid var(--warning); }
.sub-score-red { border-left: 3px solid var(--danger); }

/* ==========================================================================
   SECTION B - 3 AGENTS
   ========================================================================== */

#agents-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}

/* --- Agent card --- */
.agent-card {
  background: var(--white);
  border: 1.5px solid var(--navy-light);
  border-radius: 10px;
  padding: var(--sp-24);
  transition: transform var(--transition), box-shadow var(--transition);
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.agent-card h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

.agent-card .function {
  font-style: italic;
  color: var(--gray);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-16);
  line-height: 1.5;
}

/* Scope list */
.agent-card .scope {
  list-style: none;
  margin-bottom: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.agent-card .scope li {
  font-size: 0.9375rem;
  color: var(--gray);
  padding-left: var(--sp-16);
  position: relative;
  line-height: 1.5;
}

.agent-card .scope li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background-color: var(--copper);
  border-radius: var(--radius-full);
}

/* Stack badges */
.agent-card .stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}

.agent-card .stack-badge {
  background-color: var(--copper-light);
  border: 1px solid var(--copper);
  color: var(--copper-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Metrics grid */
.agent-card .metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--navy-light);
}

.agent-card .metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-card .metric-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-card .metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.agent-card .metric-value.price {
  font-size: 1.125rem;
  color: var(--copper-text);  /* P1 #2: WCAG AA contrast */
}

/* MRR breakdown - co zawarte w cenie utrzymania (Volvo style) */
.agent-card .mrr-includes {
  margin-top: var(--sp-16);
  padding: var(--sp-16);
  background-color: var(--copper-light);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm, 4px);
}

.agent-card .mrr-includes-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-8) 0;
}

.agent-card .mrr-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6, 6px);
}

.agent-card .mrr-includes-list li {
  position: relative;
  padding-left: var(--sp-20, 20px);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--navy-dark);
}

.agent-card .mrr-includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 2px;
  background-color: var(--copper);
  border-radius: 1px;
}

/* CTA below agents - primary button large */
.agents-cta {
  margin-top: var(--sp-32);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   PRIMARY CTA BUTTON
   ========================================================================== */

/* FIX: .cta-primary navy bg (WCAG) with copper hover */
.cta-primary {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 20px var(--sp-32);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  transition: background-color var(--transition), transform var(--transition);
  width: 100%;
  max-width: 100%;
  min-height: 60px;
  text-align: center;
  letter-spacing: 0.01em;
}

.cta-primary:hover {
  background-color: var(--copper);
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}

.cta-primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   SECTION C - BURNOUT CALCULATOR
   ========================================================================== */

.burnout-score {
  text-align: center;
  margin-bottom: var(--sp-32);
}

#burnout-months {
  font-size: clamp(4rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: var(--sp-8);
}

/* Risk level color variants - JS adds .risk-{level} to #burnout-months and #burnout-risk */
#burnout-months.risk-low { color: var(--success); }
#burnout-months.risk-medium { color: var(--copper); }
#burnout-months.risk-high { color: var(--warning); }
#burnout-months.risk-critical { color: var(--danger); }

/* Risk pill badge */
#burnout-risk {
  display: inline-block;
  padding: var(--sp-4) var(--sp-16);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-16);
}

#burnout-risk.risk-low,
.burnout-risk-badge.risk-low {
  background-color: var(--success);
  color: var(--white);
}

#burnout-risk.risk-medium,
.burnout-risk-badge.risk-medium {
  background-color: var(--copper);
  color: var(--white);
}

#burnout-risk.risk-high,
.burnout-risk-badge.risk-high {
  background-color: var(--warning);
  color: var(--white);
}

#burnout-risk.risk-critical,
.burnout-risk-badge.risk-critical {
  background-color: var(--danger);
  color: var(--white);
}

/* Burnout message */
#burnout-message {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: var(--sp-32);
  text-align: center;
}

/* Delegate list */
#burnout-delegate {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-bottom: var(--sp-32);
}

.delegate-item {
  border-left: 4px solid var(--navy-light);
  padding: var(--sp-12) var(--sp-16);
  background: var(--bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.delegate-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

.delegate-item .meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gray);
  margin-bottom: var(--sp-8);
}

.delegate-item p {
  font-size: 0.9375rem;
  color: var(--navy-dark);
  line-height: 1.5;
}

/* ==========================================================================
   SHARE + BOTTOM CTA
   ========================================================================== */

.share-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--navy-light);
  margin-top: var(--sp-24);
}

/* Secondary share button — navy border + navy text (FIX: copper = 2.91:1 FAIL) */
#share-btn {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px var(--sp-24);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
}

#share-btn:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* Share URL display */
#share-url {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gray);
  word-break: break-all;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom CTA wrapper in results */
.results-cta {
  margin-top: var(--sp-32);
}

/* ==========================================================================
   PRIVACY / ABOUT PAGES
   ========================================================================== */

.content-main,
.content-container,
.privacy-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-48) 0;
}

.content-main h1,
.content-container h1,
.privacy-container h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: var(--sp-32);
}

.content-main h2,
.content-container h2,
.privacy-container h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: var(--sp-32);
  margin-bottom: var(--sp-16);
}

.content-main h3,
.content-container h3,
.privacy-container h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: var(--sp-12);
}

/* FIX WCAG AA body text: #718096 (3.84:1 FAIL) -> #525252 (7.4:1 PASS) */
.content-main p,
.content-container p,
.privacy-container p {
  color: #525252;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-16);
}

.content-main ul,
.content-main ol,
.content-container ul,
.content-container ol,
.privacy-container ul,
.privacy-container ol {
  margin-left: var(--sp-24);
  margin-bottom: var(--sp-16);
}

.content-main li,
.content-container li,
.privacy-container li {
  color: #525252;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--sp-8);
}

/* ==========================================================================
   GENERIC BUTTONS (.btn-primary / .btn-secondary)
   Używane dla CTA poza formularzem (error retry, about CTA, audit CTAs)
   ========================================================================== */

/* FIX: .btn-primary navy bg + white text (10.4:1) NOT copper (2.67:1 FAIL) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
  min-height: 48px;
}

.btn-primary:hover {
  background-color: var(--copper);
  font-weight: 700;
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
}

/* FIX: .btn-secondary navy border + navy text (9.8:1) NOT copper text (2.91:1 FAIL) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  background-color: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
  min-height: 44px;
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ==========================================================================
   FIELDSET / LEGEND RESET (dla radio group w formularzu)
   ========================================================================== */

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-8);
  padding: 0;
}

/* ==========================================================================
   SKIP-TO-CONTENT LINK (A11y)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 999;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-copper { color: var(--copper-text); }  /* P1 #2: WCAG AA contrast */
.text-navy { color: var(--navy); }
.text-gray { color: var(--gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-8 { margin-top: var(--sp-8); }
.mt-16 { margin-top: var(--sp-16); }
.mt-24 { margin-top: var(--sp-24); }
.mt-32 { margin-top: var(--sp-32); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-16 { margin-bottom: var(--sp-16); }
.mb-24 { margin-bottom: var(--sp-24); }
.mb-32 { margin-bottom: var(--sp-32); }
.mb-48 { margin-bottom: var(--sp-48); }

/* ==========================================================================
   RESPONSIVE - TABLET (640px+)
   ========================================================================== */

@media (min-width: 640px) {
  body {
    padding: var(--sp-32) var(--sp-24);
  }

  h2 { font-size: 1.625rem; }

  .form-card {
    padding: var(--sp-48);
  }

  .radio-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .radio-group label {
    flex: 1 1 auto;
  }

  .step-item {
    gap: var(--sp-24);
  }

  .agents-cta .cta-primary {
    max-width: 400px;
  }

  #burnout-months {
    font-size: 6rem;
  }
}

/* ==========================================================================
   RESPONSIVE - DESKTOP (900px+)
   ========================================================================== */

@media (min-width: 900px) {
  body {
    padding: var(--sp-48) var(--sp-32);
  }

  /* Nav expand */
  header nav {
    gap: var(--sp-24);
  }

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

  /* How it works horizontal on desktop */
  .steps-list {
    flex-direction: row;
    gap: var(--sp-32);
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  /* Agents 3 columns */
  #agents-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA max-width center on desktop */
  .cta-primary {
    max-width: 500px;
  }

  /* Results CTA centered */
  .results-cta {
    display: flex;
    justify-content: center;
  }

  /* Section A score ring bigger */
  .geo-score-ring {
    width: 200px;
    height: 200px;
  }

  .geo-score-ring #geo-score-value {
    font-size: 3.5rem;
  }

  /* Loading centered with more room */
  #loading {
    min-height: 70vh;
  }

  .progress-steps {
    max-width: 480px;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in for results sections */
#results.shown .section-a,
#results.shown .section-b,
#results.shown .section-c {
  animation: fade-in 0.5s ease both;
}

#results.shown .section-b { animation-delay: 0.1s; }
#results.shown .section-c { animation-delay: 0.2s; }

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  #results {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   D7 WOW ADDITIONS
   ========================================================================== */

/* --- Issue #1: Powered by LessManual header --- */
.powered-by {
  display: none;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.powered-by:hover { opacity: 1; }
.powered-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray);
  white-space: nowrap;
}
.lm-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 600px) {
  .powered-by { display: flex; }
}

/* --- Issue #12: Hero 2-col layout --- */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
  align-items: center;
}
@media (min-width: 800px) {
  .hero-two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-64);
  }
}
.hero-copy { order: 1; }
.hero-visual { order: 2; }

.hero-heading-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-cta {
  display: inline-block;
  margin-top: var(--sp-24);
}

/* Hero dashboard mockup */
.hero-mockup {
  background: var(--white);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.8125rem;
}
.mockup-header {
  background: #F7F7F7;
  border-bottom: 1px solid var(--navy-light);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FEBC2E; }
.mockup-dot.green { background: #28C840; }
.mockup-title {
  margin-left: 8px;
  font-size: 0.6875rem;
  color: var(--gray);
}
.mockup-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mockup-gauge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-gauge-svg {
  width: 80px;
  height: 50px;
}
.mockup-score {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.75rem;
}
.green-badge {
  display: inline-block;
  background: rgba(56,161,105,0.12);
  color: #38A169;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  margin-top: 2px;
}
.mockup-agents {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-agent-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F9F9F9;
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid var(--navy-light);
}
.mockup-agent-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--copper);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mockup-agent-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mockup-agent-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
}
.mockup-agent-price {
  font-size: 0.625rem;
  color: var(--copper);
}
.mockup-burnout-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--navy-light);
}
.mockup-burnout-label {
  font-size: 0.625rem;
  color: var(--gray);
}
.mockup-burnout-months {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}
.mockup-risk-badge {
  background: rgba(229,62,62,0.12);
  color: #E53E3E;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.5625rem;
  font-weight: 600;
}

/* --- Issue #2: decisions field --- */
.field-decisions {
  border-left: 3px solid rgba(196,149,106,0.3);
  padding-left: var(--sp-12);
  margin-top: var(--sp-8);
}
.field-decisions label { color: var(--navy); }

/* --- Issue #3: Empathetic error card --- */
.error-card-empathetic {
  background: #FFF4E6;
  border: 1px solid rgba(196,149,106,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-48) var(--sp-32);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.error-icon-empathetic svg {
  width: 100px;
  height: 50px;
  margin: 0 auto var(--sp-24);
  display: block;
}
.error-icon-empathetic {
  animation: pulse-wave 2s ease-in-out infinite;
}
@keyframes pulse-wave {
  0%, 100% { opacity: 0.7; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.02); }
}
.error-checklist {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: var(--sp-16) auto;
  max-width: 360px;
}
.error-checklist li {
  padding: var(--sp-8) 0 var(--sp-8) var(--sp-24);
  position: relative;
  font-size: 0.9375rem;
  color: var(--navy-dark);
  border-bottom: 1px solid rgba(226,232,240,0.5);
}
.error-checklist li:last-child { border-bottom: none; }
.error-checklist li::before {
  content: "·";
  position: absolute;
  left: 8px;
  color: var(--copper);
  font-size: 1.5rem;
  line-height: 1;
  top: 6px;
}
.error-checklist code {
  background: rgba(196,149,106,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--copper-dark);
}
.error-actions {
  display: flex;
  gap: var(--sp-12);
  justify-content: center;
  margin-top: var(--sp-24);
  flex-wrap: wrap;
}

/* --- Issue #4: Professional GEO gauge --- */
.geo-dial-svg {
  width: 240px;
  height: 150px;
  display: block;
  margin: 0 auto;
}
.geo-dial {
  position: relative;
  display: inline-block;
}
.geo-score-center {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.geo-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}
.geo-score-max {
  font-size: 0.875rem;
  color: var(--gray);
  margin-left: 2px;
}
.geo-score-label {
  text-align: center;
  margin-top: var(--sp-8);
  font-size: 0.875rem;
  color: var(--gray);
  font-style: italic;
}
.dial-label {
  font-family: var(--font-mono);
}

/* --- Issue #8: Volvo MRR 5-category display --- */
.mrr-includes {
  background: #FFF4E6;
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: var(--sp-16);
  margin-top: var(--sp-16);
}
.mrr-includes-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-bottom: var(--sp-8);
}
.mrr-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mrr-include-item {
  display: flex;
  gap: var(--sp-12);
  padding: 7px 0;
  border-bottom: 1px solid rgba(226,232,240,0.5);
  align-items: flex-start;
}
.mrr-include-item:last-child { border-bottom: none; }
.mrr-cat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--copper);
  fill: none;
  margin-top: 1px;
}
.mrr-cat-label {
  font-weight: 600;
  font-size: 0.8125rem;
  display: block;
  color: var(--navy);
}
.mrr-cat-desc {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.4;
}
.sla-badge {
  display: inline-block;
  background: rgba(196,149,106,0.1);
  border: 1px solid rgba(196,149,106,0.3);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--copper-dark);
  margin-top: var(--sp-12);
}

/* Agent price block (Issue #6) */
.agent-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin: var(--sp-8) 0;
  padding: var(--sp-8) var(--sp-12);
  background: rgba(196,149,106,0.06);
  border-radius: var(--radius-sm);
}
.price-from {
  font-size: 0.8125rem;
  color: var(--gray);
}
.price-setup {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.price-mrr {
  font-size: 1rem;
  font-weight: 700;
  color: var(--copper-dark);
}
.price-sep {
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 0 2px;
}
.agent-product-badge {
  display: inline-block;
  background: rgba(45,55,72,0.07);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-8);
}

/* --- Issue #9: CTA premium block z awatarem --- */
.cta-premium-block {
  background: #FFF4E6;
  border-radius: var(--radius-lg);
  padding: var(--sp-48) var(--sp-32);
  text-align: center;
  margin: var(--sp-32) 0;
  border: 1px solid rgba(196,149,106,0.2);
}
.cta-premium-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-12);
  color: var(--navy);
}
.cta-premium-sub {
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto var(--sp-24);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.cta-large {
  padding: 18px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}
.cta-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  margin-top: var(--sp-20);
}
.cta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--copper);
}
.cta-author-name {
  font-size: 0.875rem;
  color: var(--gray);
}
.cta-trust-signals {
  display: flex;
  gap: var(--sp-24);
  justify-content: center;
  margin-top: var(--sp-16);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--gray);
  min-height: 48px;   /* P1 #2: WCAG 2.5.8 target-size */
  padding: 8px 12px;  /* P1 #2: adequate touch target */
}
.trust-item svg { flex-shrink: 0; }

/* --- Burnout ratio badge (Issue #2) --- */
.burnout-ratio-badge {
  display: inline-block;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray);
}
.burnout-ratio-badge.ratio-operational { color: #E53E3E; }
.burnout-ratio-badge.ratio-strategic { color: #D69E2E; }

/* --- Issue #11: WOW loading animation (5 scenes) --- */
.loading-anim {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-24);
}
.loading-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  text-align: center;
}
.scene-icon {
  width: 48px;
  height: 48px;
  display: block;
}
.scene-label {
  font-size: 0.6875rem;
  color: var(--gray);
  margin-top: 4px;
  white-space: nowrap;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

/* P1 #3: 5-scene loading animation — 15s infinite cycle, each scene visible for ~3s
   Keyframe covers 1 full 15s period:
   visible window = 20% of 15s = 3s per scene, offset by scene index * 20% */
@keyframes loadingScene {
  0%, 90%, 100% { opacity: 0; }
  10%, 70%      { opacity: 1; }
}
.loading-scene[data-scene="1"] { animation: loadingScene 15s linear 0s infinite; }
.loading-scene[data-scene="2"] { animation: loadingScene 15s linear 3s infinite; }
.loading-scene[data-scene="3"] { animation: loadingScene 15s linear 6s infinite; }
.loading-scene[data-scene="4"] { animation: loadingScene 15s linear 9s infinite; }
.loading-scene[data-scene="5"] { animation: loadingScene 15s linear 12s infinite; }
.loading-section .loading-anim {
  animation-fill-mode: both;
}

/* Neural line draw animation for scene 4 */
@keyframes draw-neural {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
.neural-line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-neural 1.5s ease 12s forwards;
}

/* Gauge fill animation for scene 5 */
@keyframes fill-gauge {
  0% { stroke-dashoffset: 44; }
  100% { stroke-dashoffset: 0; }
}
.gauge-fill {
  animation: fill-gauge 1.5s ease 16s forwards;
}

/* --- Issue #13: FAQ custom chevron --- */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: var(--sp-12) var(--sp-16);  /* P1 #2: min target-size WCAG AA */
  min-height: 48px;                     /* P1 #2: WCAG 2.5.8 target-size */
  color: var(--navy);
  -webkit-user-select: none;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: var(--sp-12);
  margin-top: -2px;
}
.faq-item[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* --- Loading subtitle (moved outside card) --- */
.loading-section .loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loading-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 0.9375rem;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-16);
}

/* --- Field hint BEFORE input (LRN-29) --- */
.field-hint {
  display: block;
  margin-bottom: var(--sp-8);
  margin-top: 4px;
}

