:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --line: #d9e2ec;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-ink: #102a43;
  --success: #0f9f6e;
  --danger: #d94841;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.masthead {
  max-width: 860px;
  padding: 12px 0 34px;
}

.masthead-label,
.site-logo,
.section-kicker,
.result-topline {
  display: inline-flex;
  align-items: center;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead-copy {
  display: grid;
  gap: 16px;
}

.masthead-copy h1,
.section-heading h2,
.block-head h3,
.result-headline,
.result-section h3,
.report-copy h3,
.seo-card h2,
.seo-block h3,
.legal-head h1,
.legal-copy h2 {
  margin: 0;
}

.masthead-copy h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-accent {
  color: var(--brand);
}

.masthead-sub,
.section-sub,
.block-head p,
.result-insight,
.report-copy p,
.seo-intro p,
.legal-head p,
.legal-copy p,
.helper-note,
.disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.masthead-sub {
  max-width: 600px;
  font-size: clamp(1.08rem, 2.3vw, 1.22rem);
}

.masthead-actions {
  display: flex;
  justify-content: flex-start;
}

.trust-line,
.micro-proof,
.hero-audience {
  margin: 0;
  font-size: 0.92rem;
}

.trust-line {
  color: #475467;
  font-weight: 600;
}

.micro-proof {
  color: var(--brand-ink);
  font-weight: 600;
}

.hero-audience {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

.cta-btn {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

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

.btn-secondary {
  background: #ffffff;
  border-color: #c4cfdb;
  color: var(--ink);
}

.btn-share {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #163d8f;
}

.btn-share:hover,
.btn-secondary:hover {
  border-color: #9db0c4;
}

.whatsapp-btn {
  background: #ecfdf3;
  border-color: #b7ebcb;
  color: #1f7a48;
}

.hero-cta {
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 1.02rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.form-section {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.workspace > * {
  min-width: 0;
}

.form-card,
.results-card,
.seo-card,
.legal-card {
  padding: 28px;
}

.form-card,
.results-card,
.seo-card,
.legal-card,
.lead-form,
.seo-intro,
.seo-block,
.report-panel {
  display: grid;
}

.form-card,
.results-card,
.seo-card {
  gap: 22px;
}

.form-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.form-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-card:hover {
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.form-card:hover::after {
  opacity: 1;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2,
.seo-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-sub {
  font-size: 0.95rem;
}

.form-cluster {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e6edf5;
}

.form-cluster:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.block-head {
  display: grid;
  gap: 6px;
}

.block-head h3,
.result-section h3,
.share-row h3,
.report-copy h3,
.seo-block h3,
.legal-copy h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.block-head p {
  font-size: 0.88rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  align-content: start;
}

label > span {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #7a8798;
  opacity: 1;
}

input:hover,
select:hover {
  border-color: #9ca3af;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 15px;
  border: 1.5px solid #c4cfdb;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.checkbox-row span {
  margin: 0;
  color: #223247;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

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

.actions .btn-primary {
  flex: 1 1 240px;
}

.actions .btn-secondary {
  flex: 0 0 auto;
  min-width: 120px;
}

.disclaimer {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: var(--surface-soft);
  font-size: 0.82rem;
}

.results-card {
  position: sticky;
  top: 18px;
}

.result-card,
.results-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.result-shell,
.report-copy,
.legal-head {
  display: grid;
  gap: 10px;
}

.result-headline {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.result-amount {
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
  transition: all 0.3s ease;
}

.result-amount.refund {
  color: var(--success);
}

.result-amount.due {
  color: var(--danger);
}

.result-insight {
  font-size: 0.95rem;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.btn-inline {
  width: 100%;
}

.result-breakdown,
.share-box,
.report-panel {
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid #e6edf5;
}

.result-section {
  display: grid;
  gap: 12px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5edf5;
  background: var(--surface-soft);
}

.result-row span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.result-row strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.share-box {
  display: grid;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.share-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.share-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--ink);
}

.share-card.refund .share-card-amount {
  color: var(--success);
}

.share-card.due .share-card-amount {
  color: var(--danger);
}

.share-card-title,
.share-card-copy {
  margin: 0;
}

.share-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.share-card-amount {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.share-card-copy {
  color: #334155;
  font-size: 0.95rem;
}

.share-card-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-preview {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5edf5;
  background: var(--surface-soft);
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-line;
}

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

.share-actions .btn {
  flex: 1 1 140px;
}

.share-canvas {
  display: none;
}

.lead-form {
  gap: 14px;
}

.lead-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.lead-grid > :last-child:nth-child(odd) {
  grid-column: auto;
}

.bonus-options {
  display: grid;
  gap: 12px;
}

.bonus-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bonus-option:hover {
  border-color: #9cb7e8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.bonus-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.bonus-option span {
  display: grid;
  gap: 4px;
}

.bonus-option strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.bonus-option small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.save-btn {
  width: 100%;
}

.helper-note {
  font-size: 0.82rem;
}

.lead-status {
  min-height: 22px;
  font-size: 0.88rem;
  font-weight: 700;
}

.lead-status.success {
  color: var(--success);
}

.lead-status.error {
  color: var(--danger);
}

.seo-content {
  margin-top: 28px;
}

.seo-intro {
  gap: 8px;
  max-width: 680px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-block {
  gap: 12px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 14px;
  border: 1px solid #e5edf5;
  background: var(--surface-soft);
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hidden {
  display: none !important;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.footer-links a {
  color: #475467;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--brand-deep);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-version {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.site-logo {
  color: #475467;
}

.legal-card {
  gap: 24px;
}

.legal-head h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-copy {
  display: grid;
  gap: 20px;
}

.legal-copy h2 {
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .page {
    padding-top: 18px;
  }

  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 22px;
  }

  .results-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .page,
  .site-footer,
  .legal-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-card,
  .results-card,
  .seo-card,
  .legal-card {
    padding: 22px;
  }

  .grid-2,
  .grid-3,
  .result-actions,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .actions .btn-primary,
  .actions .btn-secondary,
  .share-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .masthead {
    padding-bottom: 28px;
  }

  .masthead-copy h1 {
    font-size: 2.65rem;
  }

  .headline-line {
    white-space: normal;
  }

  .masthead-sub {
    font-size: 1rem;
  }

  .trust-line,
  .micro-proof,
  .hero-audience {
    font-size: 0.86rem;
  }

  .footer-meta {
    flex-direction: column;
  }
}
