:root {
  --matyla-brand: #F25623;
  --matyla-bg: #000000;
  --matyla-card-bg: #050505;
  --matyla-border: rgba(242, 86, 35, 0.7);
  --matyla-text: #f5f5f5;
  --matyla-muted: #a3a3a3;
  --matyla-radius-lg: 32px;
  --matyla-radius-md: 18px;
  --matyla-radius-pill: 999px;
  --matyla-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.matyla-seo-wrapper {
  padding: 40px 16px;
  background: var(--matyla-bg);
  color: var(--matyla-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

.matyla-seo-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--matyla-card-bg);
  border-radius: var(--matyla-radius-lg);
  border:1px solid var(--matyla-brand);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
  padding: 28px 24px 26px;
  position: relative;
}

.matyla-seo-header {
  margin-bottom: 24px;
}

.matyla-seo-eyebrow {
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(245, 245, 245, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px 3px;
  border-radius: 999px;
  border:1px solid var(--matyla-brand);
}

.matyla-seo-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--matyla-brand);
}

.matyla-seo-title {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 10px 0 6px;
}

.matyla-seo-subtitle {
  margin: 0;
  color: var(--matyla-muted);
  font-size: 14px;
  max-width: 460px;
  line-height: 1.6;
}

/* FORM */

.matyla-seo-form {
  margin-top: 18px;
  margin-bottom: 18px;
}

.matyla-seo-label {
  display: block;
  font-size: 13px;
  color: rgba(245, 245, 245, 0.78);
  margin-bottom: 6px;
}

.matyla-seo-input-row {
  display: flex;
  align-items: stretch;
  background: #000;
  border-radius: var(--matyla-radius-md);
  border:1px solid var(--matyla-brand);
  padding: 2px;
}

.matyla-seo-prefix {
  padding: 10px 12px 10px 14px;
  font-size: 13px;
  color: rgba(245, 245, 245, 0.7);
  border-radius: calc(var(--matyla-radius-md) - 2px);
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
}

.matyla-seo-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--matyla-text);
  padding: 10px 14px 10px 10px;
  font-size: 14px;
  font-family: inherit;
}

.matyla-seo-input::placeholder {
  color: rgba(163, 163, 163, 0.9);
}

.matyla-seo-input-error {
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.95) !important;
}

.matyla-seo-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.matyla-seo-consent input[type='checkbox'] {
  display: none;
}

.matyla-seo-consent-faux {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border:1px solid var(--matyla-brand);
  background: #000;
  position: relative;
  transition: all 0.2s var(--matyla-ease);
}

.matyla-seo-consent-faux::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: transparent;
  transform: scale(0.3);
  opacity: 0;
  transition: all 0.2s var(--matyla-ease);
}

.matyla-seo-consent input[type='checkbox']:checked + .matyla-seo-consent-faux {
  border-color: var(--matyla-brand);
  background: #000;
}

.matyla-seo-consent
  input[type='checkbox']:checked
  + .matyla-seo-consent-faux::after {
  background: var(--matyla-brand);
  opacity: 1;
  transform: scale(1);
}

.matyla-seo-consent-text {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.82);
  line-height: 1.6;
}

/* SUBMIT BUTTON — MINIMAL BLACK / WHITE */

.matyla-seo-submit {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--matyla-radius-pill);
  border: 1px solid #ffffff;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: #000000;
  box-shadow: none;
  transition: border-color 0.18s var(--matyla-ease),
    transform 0.18s var(--matyla-ease),
    background-color 0.18s var(--matyla-ease);
}

.matyla-seo-submit:hover { transform: translateY(-1px); border-color: var(--matyla-brand); box-shadow: 0 0 26px rgba(242,86,35,0.8); }

.matyla-seo-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.matyla-seo-submit.is-loading span::after {
  content: '…';
  animation: matyla-dot-pulse 1.3s infinite;
}

@keyframes matyla-dot-pulse {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.matyla-seo-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(163, 163, 163, 0.9);
}

/* LOADER */

.matyla-seo-loader {
  margin-top: 20px;
  padding: 12px 12px 11px;
  border-radius: 14px;
  border:1px solid var(--matyla-brand);
  background: #050505;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--matyla-ease),
    transform 0.25s var(--matyla-ease);
}

.matyla-seo-loader.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.matyla-seo-loader-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.matyla-seo-loader-progress {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f25623, #ff9f68);
  transition: width 0.4s ease-out;
}

.matyla-seo-loader-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.matyla-seo-loader-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px 3px;
  border-radius: 999px;
  border: 1px solid rgba(242, 86, 35, 0.7);
  background: #000;
  color: rgba(245, 245, 245, 0.9);
}

.matyla-seo-loader-message {
  font-size: 12px;
  color: rgba(245, 245, 245, 0.9);
}

/* RESULTS — SINGLE COLUMN STACK */

.matyla-seo-results {
  margin-top: 24px;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.28s var(--matyla-ease),
    transform 0.28s var(--matyla-ease), max-height 0.4s var(--matyla-ease);
}

.matyla-seo-results.visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 3000px;
}

.matyla-seo-section-title {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.matyla-seo-block,
.matyla-seo-diagnosis,
.matyla-seo-block-full {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505;
  padding: 12px 12px 13px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.matyla-seo-block-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(245, 245, 245, 0.9);
  margin: 0 0 6px;
}

.matyla-seo-value {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.matyla-seo-value-multi {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.matyla-seo-empty {
  color: rgba(245, 245, 245, 0.6);
  font-style: italic;
}

.matyla-seo-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(163, 163, 163, 0.9);
}

.matyla-seo-desc.small {
  font-size: 11px;
}

/* HEADINGS LIST */

.matyla-seo-block-full {
  padding-top: 11px;
}

.matyla-seo-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.matyla-seo-headings-list {
  margin-top: 10px;
}

.matyla-seo-heading-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.matyla-seo-heading-tag {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 86, 35, 0.9);
  padding-top: 2px;
}

.matyla-seo-heading-text {
  font-size: 12px;
  color: rgba(245, 245, 245, 0.9);
}

.matyla-seo-empty-text {
  font-size: 12px;
  color: rgba(245, 245, 245, 0.7);
}

/* DIAGNOSIS */

.matyla-seo-diagnosis-list {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matyla-seo-diagnosis-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(245, 245, 245, 0.95);
}

.matyla-seo-diagnosis-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--matyla-brand);
  margin-top: 6px;
}

.matyla-seo-diagnosis-text {
  line-height: 1.6;
}

.matyla-seo-diagnosis-footnote {
  font-size: 11px;
  color: rgba(163, 163, 163, 0.9);
  margin: 6px 0 0;
}

/* CTA */

.matyla-seo-cta-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.matyla-seo-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--matyla-radius-pill);
  background: #000;
  border: 1px solid var(--matyla-brand);
  text-decoration: none;
  overflow: hidden;
}

.matyla-seo-cta-label {
  position: relative;
  z-index: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.matyla-seo-cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 0 0, rgba(242, 86, 35, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.matyla-seo-cta:hover::before {
  opacity: 1;
}

/* Responsive */

@media (max-width: 768px) {
  .matyla-seo-wrapper {
    padding: 26px 12px;
  }

  .matyla-seo-card {
    padding: 22px 16px 20px;
    border-radius: 24px;
  }

  .matyla-seo-title {
    font-size: 24px;
  }

  .matyla-seo-subtitle {
    font-size: 13px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .matyla-seo-card {
    padding-inline: 14px;
  }

  .matyla-seo-input-row {
    padding: 1px;
  }

  .matyla-seo-prefix {
    padding-inline: 10px;
  }

  .matyla-seo-submit {
    width: 100%;
    justify-content: center;
  }
}

.matyla-seo-input:focus,
.matyla-seo-input-row:focus-within {
    border-color: var(--matyla-brand) !important;
    box-shadow: 0 0 18px rgba(242,86,35,0.55) !important;
}
