:root {
  --bg: #f0fdf6;
  --paper: #ffffff;
  --text: #0f1f17;
  --text-muted: #4b6358;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #d1fae5;
  --accent-dark: #065f46;
  --border: #cce8db;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --miss: #b45309;
  --miss-bg: #fef3e2;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(5, 150, 105, 0.1);
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

a { color: var(--accent); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--accent-dark);
}

.lang-btn.is-active {
  background: var(--paper);
  color: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus-visible {
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
  color: var(--accent);
  padding: 12px 20px;
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent);
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-secondary:focus-visible {
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
}

.btn-sm { font-size: 0.82rem; padding: 6px 10px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero h1,
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
}

.hero-title-line1 {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 0.32em;
  max-width: 100%;
}

.hero-title-line2 {
  display: block;
  font-size: 0.92em;
  line-height: 1.25;
}

.hero-title-brand {
  display: inline;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 52ch;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 28px;
}

.hero-bullets li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  border: 2px solid var(--accent-dark);
}

.hero-actions .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.partner-banner {
  background: linear-gradient(90deg, #065f46, #059669);
  color: #fff;
  padding: 12px 0;
}

.partner-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.partner-banner a { color: #ecfdf5; }

.partner-badge {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.funnel-step-active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.funnel-step-done { opacity: 0.7; }

.funnel-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.funnel-step-done .funnel-num { background: var(--text-muted); }

.funnel-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pricing-intro {
  color: var(--text-muted);
  margin: -12px 0 24px;
  max-width: none;
}

@media (min-width: 960px) {
  .pricing-intro {
    white-space: nowrap;
  }
}

.price-card-cta {
  width: 100%;
  margin-top: auto;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
  border-width: 2px;
  border-style: solid;
}

.price-card-cta.btn-primary {
  border-color: var(--accent);
}

.price-card-cta.btn-secondary {
  border-color: var(--accent);
}

.plan-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.plan-btn-sub {
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.85;
}

.hero-copy a:not(.btn) {
  color: var(--accent);
}

.hero-visual {
  margin: 0;
  width: 100%;
  min-width: 0;
  aspect-ratio: 520 / 418;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--accent-light);
  border-top-color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.score-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-miss { background: var(--miss-bg); color: var(--miss); }

.hero-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.greenlight-signal,
.sinalverde-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: var(--ok-bg);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.sinalverde-signal.sinalverde-signal-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.18em;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  gap: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1;
}

.sinalverde-signal.sinalverde-signal-hero .signal-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12); }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.steps { background: var(--paper); }

.por-que-falha {
  background: var(--bg);
}

.por-que-falha-head {
  max-width: 42rem;
  margin-bottom: 32px;
}

.por-que-falha-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.por-que-falha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.por-que-falha-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.por-que-falha-icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.por-que-falha-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.por-que-falha-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.por-que-falha-cta {
  text-align: center;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.step-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-list p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Analyzer form */
.section-head {
  margin-bottom: 24px;
}

.free-tier-status {
  color: var(--text-muted);
  margin-top: 8px;
}

.free-tier-status strong { color: var(--accent); }

.plan-quota {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-footer .plan-quota--footer {
  margin-top: 0;
  min-width: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
}

.form-footer .plan-quota--footer .free-tier-status {
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.form-footer .plan-quota--footer .plan-quota-metrics {
  margin-top: 8px;
}

.form-footer .plan-quota--footer .plan-quota-detail {
  margin-top: 8px;
}

.plan-quota-rule {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-footer .plan-quota--footer .plan-quota-rule {
  margin-top: 10px;
}

.plan-quota-rule strong {
  color: var(--text);
  font-weight: 600;
}

.plan-quota[data-quota-kind="free"] {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #fff 0%, var(--ok-bg) 100%);
}

.plan-quota[data-quota-kind="credits"] {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}

.plan-quota[data-quota-kind="unlimited"] {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--ok-bg) 100%);
}

.plan-quota[data-quota-kind="none"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.plan-quota-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quota-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.quota-metric strong {
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.quota-metric-ok {
  background: var(--ok-bg);
  border-color: #a7f3d0;
  color: var(--accent-dark);
}

.quota-metric-unlimited {
  background: var(--accent-light);
  border-color: #6ee7b7;
  color: var(--accent-dark);
}

.quota-metric-days {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.quota-metric-renew {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.quota-metric-none {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.plan-quota-detail {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-quota-detail a {
  color: var(--green-dark, #2d6a4f);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.plan-quota-detail a:hover {
  color: var(--accent);
}

.analyze-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.form-panel {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 520px;
}

.form-panel-job {
  border-top: 4px solid #0ea5e9;
}

.form-panel-cv {
  border-top: 4px solid var(--accent);
}

.form-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafcfb 0%, var(--paper) 100%);
}

.form-panel-step {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-panel-job .form-panel-step {
  background: #e0f2fe;
  color: #0369a1;
}

.form-panel-cv .form-panel-step {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.form-panel-header h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 2px;
}

.form-panel-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  flex: 1;
}

.form-panel-body .field {
  margin: 0;
}

.form-panel-body .field-grow {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-panel-body .field-grow textarea {
  flex: 1;
  min-height: 240px;
}

.form-footer {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: stretch;
}

.form-footer .field-inline {
  margin-bottom: 18px;
}

.form-footer .consent {
  margin-bottom: 0;
  max-width: none;
}

.form-footer-options {
  display: contents;
}

.form-footer-options .field-lang-output {
  margin-bottom: 0;
  min-width: 0;
  grid-column: 1 / -1;
}

.form-footer-options .field-lang-output select {
  max-width: none;
}

.form-footer-actions {
  display: contents;
}

.form-footer-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.form-footer-cta .btn-lg {
  width: 100%;
  max-width: none;
  white-space: normal;
}

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

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 200px;
}

.field textarea:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-hint[data-kind="ok"] { color: var(--ok); }
.field-hint[data-kind="error"] { color: #b42318; }
.field-hint[data-kind="loading"] { color: var(--accent); }

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.input-row input[type="url"] {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

.input-row input[type="url"]:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--ok-bg);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.dropzone-active {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.01);
}

.dropzone-ok {
  border-color: var(--ok);
  border-style: solid;
}

.dropzone-loading {
  opacity: 0.7;
  pointer-events: none;
}

.dropzone-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.dropzone-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.dropzone-sub,
.dropzone-file {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dropzone-file {
  margin-top: 8px;
  color: var(--ok);
  font-weight: 500;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.65rem;
  align-items: start;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2em 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent span {
  min-width: 0;
}

.api-status {
  font-size: 0.82rem;
  margin-top: 6px;
  color: var(--text-muted);
}

.api-status[data-kind="ok"] { color: var(--ok); }
.api-status[data-kind="warn"] { color: var(--miss); }

.error-banner {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a1f17;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.payment-success-banner {
  background: var(--ok-bg);
  border: 1px solid #b8e6d0;
  color: var(--ok);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-success-banner[data-kind="verifying"] {
  background: #fff8e6;
  border-color: #f0d78c;
  color: #7a5b00;
  font-weight: 500;
}

.paywall-mode-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
}

.paywall-result-recap {
  background: linear-gradient(135deg, var(--ok-bg) 0%, var(--paper) 100%);
  border: 1px solid #b8e6d0;
  border-radius: calc(var(--radius) + 2px);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.paywall-recap-anchor {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 12px;
}

.paywall-recap-anchor .score-pill {
  font-size: 1.05em;
  vertical-align: baseline;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
}

.paywall-recap-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.paywall-recap-badge {
  flex-shrink: 0;
  font-size: 1.75rem;
  padding: 6px 16px;
}

.paywall-urgency {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 16px;
}

.paywall-objection {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.paywall-plans-heading {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  margin: 0 0 10px;
}

.modal.is-upsell {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
}

.modal.is-upsell .plan-btn {
  text-align: left;
  background: var(--paper);
  position: relative;
}

.modal.is-upsell .plan-btn-popular {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.15);
}

.plan-popular-badge {
  display: none;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 2px;
}

.modal.is-upsell .plan-btn-popular .plan-popular-badge {
  display: inline-block;
}

.modal.is-upsell .plan-btn:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.modal.is-upsell .plan-btn:hover .plan-btn-cta {
  background: var(--accent-hover);
  color: #fff;
}

.modal-close--view-resume {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid #b8e6d0;
}

.modal-close--view-resume:hover {
  background: #b8e6d0;
  color: var(--accent-dark);
}

.field-inline {
  margin-bottom: 16px;
}

.field-inline select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 220px;
}

.field-inline label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

/* Results */
.results {
  margin-top: 32px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

.results-stale-notice {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 36em;
}

.results-top {
  margin-bottom: 14px;
}

.results-top h3 {
  margin-bottom: 4px;
}

.results-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 20px;
}

.results-score-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.results-download-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.results-download-col .panel-locked,
.results-download-col .download-area {
  flex: 1;
  margin-bottom: 0;
}

.score-block {
  text-align: center;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

.score-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.score-badge {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  line-height: 1.1;
  display: inline-block;
}

.score-badge[data-tier="low"] {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.score-badge[data-tier="mid"] {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.score-badge[data-tier="high"] {
  color: #065f46;
  background: var(--accent-light);
  border-color: #6ee7b7;
}

.score-badge-sm {
  font-size: 1.35rem;
  padding: 6px 14px;
}

.score-tier-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.35;
  text-align: center;
}

.score-delta {
  margin: 0;
  line-height: 1.4;
  max-width: 100%;
}

.score-delta--up {
  /* visual handled by score-compare */
}

.score-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.score-compare-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.score-compare-step--after {
  align-items: center;
}

.score-compare-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.score-compare-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.score-compare-pill--low {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.score-compare-pill--mid {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.score-compare-pill--high {
  color: #065f46;
  background: var(--accent-light);
  border-color: #6ee7b7;
}

.score-compare-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 4px;
}

.score-compare-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.score-compare-item--after {
  align-items: flex-end;
  text-align: right;
}

.score-compare-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.score-compare-item--after .score-compare-score {
  justify-content: flex-end;
}

.score-delta .score-pill {
  font-size: 1.05rem;
  font-weight: 700;
}

.score-delta-arrow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.score-delta-gain {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #bbf7d0;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.score-context {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.score-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.score-panels-grid .panel {
  margin-bottom: 0;
  height: 100%;
}

.score-improve-panel {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 16px 20px;
}

.score-improve-panel h4 {
  color: #9a3412;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  margin-bottom: 8px;
}

.score-improve-msg {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.score-improve-panel .btn {
  margin-top: 12px;
}

.score-improve-panel--focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35);
  animation: improvePulse 1.2s ease-in-out 2;
}

.score-improve-panel--focus .btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@keyframes improvePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.18); }
}

.score-pass-panel {
  background: var(--ok-bg);
  border: 1px solid #6ee7b7;
  padding: 16px 20px;
}

.score-pass-panel h4 {
  color: var(--accent-dark);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  margin-bottom: 8px;
}

.score-pass-msg {
  font-size: 0.92rem;
  color: var(--accent-dark);
  font-weight: 500;
}

.score-legend-intro {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
}

.score-tier-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.score-tier-item {
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 4px solid;
}

.score-tier-item span {
  font-weight: 700;
  margin-right: 6px;
}

.score-tier-low {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.score-tier-mid {
  background: #fff7ed;
  border-color: #f97316;
  color: #7c2d12;
}

.score-tier-high {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--accent-dark);
}

.score-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.score-pill-low { background: #fecaca; color: #991b1b; }
.score-pill-mid { background: #fed7aa; color: #9a3412; }
.score-pill-high { background: #bbf7d0; color: #065f46; }

/* CV coaching (AnaliseCV → SinalVerde) */
.cv-coaching-panel {
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cv-coaching-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.cv-coaching-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.cv-coaching-tier {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cv-coaching-intro {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.cv-coaching-block {
  margin-bottom: 12px;
}

.cv-coaching-block h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.coaching-list {
  padding-left: 1.1rem;
  font-size: 0.86rem;
}

.coaching-list li {
  margin-bottom: 4px;
}

.cv-coaching-cta {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.field-hint-inline {
  margin-top: 6px;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 0;
}

.testimonial-card p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.testimonial-score {
  font-size: 0.78rem !important;
  font-weight: 600;
  margin-bottom: 10px !important;
}

.testimonial-card footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-full { margin-bottom: 16px; }

.panel h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
}

.tag-list-miss li {
  background: var(--miss-bg);
  color: var(--miss);
}

.badge-free {
  font-size: 0.68rem;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  vertical-align: middle;
}

.preview-quote {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}

.panel-locked {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

.locked-overlay h4 {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.locked-overlay p {
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.blurred-preview {
  filter: blur(5px);
  user-select: none;
  padding: 8px;
  color: var(--text-muted);
}

.download-area {
  background: var(--ok-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.results-download-zone {
  margin-bottom: 0;
}

.results-download-zone .panel-locked {
  margin-bottom: 0;
  height: 100%;
}

.download-area-head h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.download-area-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.download-area--highlight {
  animation: downloadPulse 1.2s ease-out 1;
}

@keyframes downloadPulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.28); }
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: none; }
}

.download-area-hint {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.74rem;
}

.results-output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.results-output-grid .panel {
  margin-bottom: 0;
  height: 100%;
}

.results-summary-panel .preview-quote {
  margin-bottom: 0;
}

.success-msg {
  color: var(--ok);
  font-weight: 600;
  margin-bottom: 12px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-actions .btn {
  width: 100%;
  justify-content: center;
}

.download-actions .btn-ghost {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.14);
}

.price-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 8px;
}

/* Como funciona — dois caminhos */
.steps-intro {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 42em;
}

.flow-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.flow-path {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.flow-path h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.flow-path-list {
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-path-list li {
  margin-bottom: 8px;
}

.flow-path-list li:last-child {
  margin-bottom: 0;
}

.steps-footer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-region-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -8px 0 20px;
}

.field-lang-output {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field-lang-output label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.field-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-lang-output select {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

.lang-detect-status {
  font-size: 0.82rem;
  color: var(--green-dark, #2d6a4f);
  margin: 10px 0 0;
  line-height: 1.4;
}

.lang-detect-status--manual {
  color: var(--text-muted);
}

.lang-detect-cta {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.plan-btn-prices {
  font-weight: 600;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.price-card li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 8px;
}

.price-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.coupon-section {
  margin-top: 40px;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px dashed var(--accent);
  box-shadow: var(--shadow);
}

.coupon-section h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 8px;
}

.coupon-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.coupon-hints {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.coupon-hints code {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
}

.coupon-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coupon-form input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.coupon-form input:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.coupon-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.coupon-msg[data-kind="ok"] { color: var(--ok); }
.coupon-msg[data-kind="error"] { color: #b42318; }

.coupon-box {
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.coupon-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2fr) 1fr;
  align-items: center;
  gap: 12px 20px;
}

.site-footer-copy {
  margin: 0;
  justify-self: start;
}

.site-footer-center {
  text-align: center;
  justify-self: center;
  max-width: 36rem;
}

.site-footer-nav {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 16px;
}

.site-footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

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

.footer-aside {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.footer-aside a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-aside a:hover {
  color: var(--accent);
}

/* Modal */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  max-height: min(calc(100vh - 32px), 92vh);
  margin: auto;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: fixed;
  inset: 0;
  height: fit-content;
}

.modal-wide {
  width: min(900px, calc(100vw - 32px));
  max-width: min(900px, 94vw);
  max-height: min(calc(100vh - 24px), 92vh);
}

.modal::backdrop {
  background: rgba(26, 29, 35, 0.5);
}

.modal-inner {
  padding: 28px;
  position: relative;
}

.modal-inner:has(.modal-x) {
  padding-right: 44px;
}

.modal h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 12px;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.modal-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-btn {
  border: 2px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.plan-btn-head {
  display: block;
  width: 100%;
}

.plan-btn-cta {
  display: none;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.modal.is-upsell .plan-btn-cta {
  display: block;
}

.plan-btn-sub {
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.9;
}

.plan-btn:hover {
  background: var(--accent);
  color: #fff;
}

.modal-close { width: 100%; }

.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 2;
}

.modal-x:hover,
.modal-x:focus-visible {
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.modal-wide .modal-inner {
  position: relative;
  padding: 0;
  height: 80vh;
}

.preview-modal-inner {
  display: flex;
  flex-direction: column;
  height: 85vh;
}

.preview-download-bar {
  flex-shrink: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.preview-download-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.preview-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-download-hint {
  margin: 10px 0 0;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 52px 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.preview-toolbar-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--border);
  background: var(--swatch-color, var(--accent));
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}

.theme-swatch:hover {
  transform: scale(1.06);
}

.theme-swatch.is-active {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--swatch-color, var(--accent));
}

#preview-frame {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
}

@media (max-width: 800px) {
  .results-hero,
  .hero-grid,
  .form-grid,
  .results-grid,
  .score-panels-grid,
  .results-output-grid,
  .pricing-grid,
  .por-que-falha-grid {
    grid-template-columns: 1fr;
  }

  .results-hero {
    gap: 12px;
  }

  .form-grid {
    gap: 20px;
  }

  .form-panel {
    min-height: auto;
  }

  .form-panel-body .field-grow textarea {
    min-height: 200px;
  }

  .form-footer {
    grid-template-columns: 1fr;
  }

  .form-footer-options .field-lang-output,
  .form-footer .plan-quota--footer {
    min-height: 0;
  }

  .results-score-col {
    padding: 14px;
  }

  .score-compare {
    gap: 8px;
    padding: 10px;
  }

  .score-badge {
    font-size: 2.4rem;
  }

  .download-actions {
    flex-direction: column;
  }

  .nav a:not([href]) { display: none; }
}

@media (max-width: 640px) {
  .container {
    width: min(1080px, 94vw);
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 0;
    gap: 10px 0;
  }

  .logo {
    font-size: 1.15rem;
    margin-right: auto;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .nav .btn-sm {
    margin-left: auto;
  }

  .hero {
    padding: 36px 0 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 0.72rem;
    line-height: 1.55;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    margin-bottom: 14px;
  }

  .lead {
    font-size: 0.98rem;
    margin-bottom: 18px;
    line-height: 1.6;
  }

  .hero-bullets {
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .por-que-falha-cta .btn {
    width: 100%;
  }

  .hero-visual {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .sinalverde-signal.sinalverde-signal-hero {
    margin-top: 0.22em;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .site-footer-copy,
  .site-footer-nav {
    justify-self: center;
  }

  .site-footer-nav {
    justify-content: center;
  }

  .site-footer-center {
    max-width: none;
  }

  .results-score-col {
    padding: 14px;
  }

  .score-compare {
    gap: 6px;
    padding: 8px 10px;
  }

  .score-tier-label {
    font-size: 0.82rem;
  }

  .download-area {
    padding: 14px 16px;
  }
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-page h1 {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 8px;
}

.legal-page .legal-updated {
  color: var(--muted, #666);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal-page section {
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin: 0 0 10px;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
  color: var(--text-secondary, #333);
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}
