/* ============================================================================
   Funil de estudo — design claro com seções dark estratégicas
   ============================================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfaf5;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.12);
  --brand: #6c5ce7;
  --brand-hover: #5849d4;
  --brand-soft: rgba(108, 92, 231, 0.08);
  --brand-2: #00b8a9;
  --accent: #f59e0b;
  --danger: #dc2626;
  --success: #10b981;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.10);
  --max-w: 1080px;
  --max-w-narrow: 760px;

  /* Torn-paper effect */
  --desk: #3a342c;
  --tear-h: 11px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); }

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: var(--max-w-narrow); }

section { padding: 88px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 14px;
}

.eyebrow-light {
  color: var(--brand-2);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.28);
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
  text-decoration: none;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-alt);
  text-decoration: none;
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cta-row {
  text-align: center;
  margin: 32px 0 12px;
}

/* ============================================================================
   Hero — light
   ============================================================================ */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(108, 92, 231, 0.06), transparent 60%),
    var(--bg);
}

.hero h1 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 strong {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero .sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero .reassure {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================================================
   Agitation — light com acento vermelho de dor
   ============================================================================ */

.agitation {
  background: var(--bg-alt);
}

.pain-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  margin: 32px 0 24px;
}

.pain-bullets li {
  padding: 18px 22px 18px 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
}

.agitation-close {
  font-size: 19px;
  text-align: center;
  margin-top: 24px;
  color: var(--text);
}

/* ============================================================================
   Solution — light
   ============================================================================ */

.solution {
  background: var(--bg);
}

.solution h2 em {
  color: var(--brand);
  font-style: italic;
}

.solution p {
  color: var(--text-muted);
}

/* ============================================================================
   Modules — light com cards
   ============================================================================ */

.modules {
  background: var(--bg-alt);
}

.modules h2 {
  text-align: center;
  margin-bottom: 16px;
}

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

.module-card {
  background: var(--bg);
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.mod-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.module-card h3 {
  margin-bottom: 8px;
}

.module-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ============================================================================
   Stack — light com card central
   ============================================================================ */

.stack {
  background: var(--bg);
}

.stack h2 {
  text-align: center;
  margin-bottom: 8px;
}

.stack-list {
  list-style: none;
  padding: 8px 32px;
  margin: 32px 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stack-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.stack-list li:last-child { border-bottom: 0; }

.stack-list .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-list .item strong {
  font-size: 16px;
  color: var(--text);
}

.stack-list .item small {
  color: var(--text-muted);
  font-size: 14px;
}

.stack-list .price {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.stack-list li.highlight {
  background: linear-gradient(90deg, var(--brand-soft), transparent);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 10px;
  border-bottom-color: transparent;
}

.stack-totals {
  text-align: center;
  margin: 36px 0 24px;
}

.total-line {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.total-final {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--text);
}

.total-final strong { color: var(--brand); }

.urgency {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

/* ============================================================================
   Guarantee — DARK (impact)
   ============================================================================ */

.guarantee {
  background: var(--bg-dark);
  color: #f8fafc;
}

.guarantee .container.narrow {
  text-align: center;
}

.guarantee-card {
  padding: 16px 0;
}

.guarantee .eyebrow,
.guarantee .eyebrow-light {
  color: var(--brand-2);
}

.guarantee h2 {
  color: #f8fafc;
  max-width: 760px;
  margin: 0 auto 20px;
}

.guarantee p {
  color: rgba(248, 250, 252, 0.78);
  max-width: 640px;
  margin: 0 auto 14px;
}

.risk-line {
  font-style: italic;
  margin-top: 18px !important;
  color: rgba(248, 250, 252, 0.92) !important;
}

/* ============================================================================
   Who-for — light, grid em 2 colunas
   ============================================================================ */

.who-for {
  background: var(--bg-alt);
}

.who-for h2 {
  text-align: center;
  margin-bottom: 12px;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.who-col {
  padding: 28px 26px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.who-col h3 {
  margin-bottom: 16px;
  font-size: 19px;
}

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

.check-list li, .cross-list li {
  padding-left: 30px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--success);
  font-weight: 800;
  font-size: 16px;
}

.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--danger);
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================================
   FAQ — light
   ============================================================================ */

.faq {
  background: var(--bg);
}

.faq h2 {
  text-align: center;
  margin-bottom: 32px;
}

.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

.faq summary {
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.18s ease;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   Final CTA — DARK (impact)
   ============================================================================ */

.final-cta {
  background: var(--bg-dark);
  color: #f8fafc;
  text-align: center;
  padding: 96px 0;
}

.final-cta h2 {
  color: #f8fafc;
  max-width: 760px;
  margin: 0 auto 24px;
}

.final-cta p {
  color: rgba(248, 250, 252, 0.78);
  max-width: 640px;
  margin: 0 auto 14px;
}

.final-cta .ps {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.6);
  font-style: italic;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .ps strong {
  color: rgba(248, 250, 252, 0.92);
  font-style: normal;
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
  background: var(--bg);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

footer p { margin: 0; }

/* ============================================================================
   Form base
   ============================================================================ */

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

label {
  display: grid;
  gap: 8px;
}

label > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

.micro {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   Modal — light card
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.18s ease;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.22s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================================================
   Thank-you page
   ============================================================================ */

.thankyou .hero-success {
  background:
    radial-gradient(ellipse at top, rgba(0, 184, 169, 0.08), transparent 60%),
    var(--bg);
  padding: 88px 0 48px;
  text-align: left;
}

.thankyou .hero-success h1 {
  max-width: 720px;
  margin: 0 0 18px;
}

.thankyou .hero-success .eyebrow {
  color: var(--success);
}

.thankyou .form-section {
  padding: 32px 0 96px;
  background: var(--bg-alt);
}

.thankyou .form-section .container.narrow {
  position: relative;
}

.thankyou .form-section .form-eyebrow {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ============================================================================
   Survey — sequential typeform-like flow
   ============================================================================ */

.survey-flow {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 56px 48px;
  box-shadow: var(--shadow-lg);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.survey-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.survey-flow .step {
  display: none;
  animation: fadeStep 0.28s ease;
}

.survey-flow .step.active {
  display: block;
}

.survey-flow .step-label {
  display: grid;
  gap: 22px;
}

.survey-flow .step-q {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.015em;
}

.survey-flow .step input,
.survey-flow .step select,
.survey-flow .step textarea {
  font-size: 17px;
  padding: 16px 18px;
  border-radius: 12px;
}

.survey-flow .step textarea {
  min-height: 140px;
}

/* Multiple choice — opções como cards clicáveis */
.choices {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.choices legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 24px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.015em;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice:active {
  transform: scale(0.997);
}

.choice input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.choice input[type="radio"]:checked {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--bg);
}

.choice input[type="radio"]:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.3);
  outline-offset: 2px;
}

.choice:has(input[type="radio"]:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.choices[aria-invalid="true"] .choice {
  border-color: rgba(220, 38, 38, 0.4);
}

.choices[aria-invalid="true"] .choice input[type="radio"] {
  border-color: var(--danger);
}

.survey-flow .step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

/* Bonus card after submit */
.bonus-card {
  margin-top: 24px;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(0, 184, 169, 0.04));
  border: 1px solid var(--border);
}

.bonus-card h3 {
  color: var(--brand);
  margin-bottom: 16px;
}

.bonus-card ol {
  padding-left: 22px;
  margin: 16px 0;
}

.bonus-card li {
  margin-bottom: 12px;
  color: var(--text);
}

#thanks-block {
  text-align: center;
  padding: 48px 40px;
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#thanks-block h2 { margin-bottom: 12px; }
#thanks-block > p { color: var(--text-muted); }
#thanks-block .bonus-card { text-align: left; }

/* ============================================================================
   Mobile
   ============================================================================ */

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .container { padding: 0 20px; }
  .module-grid { gap: 14px; }
  .who-grid { gap: 16px; }
  .stack-list { padding: 4px 20px; }
  .stack-list li { grid-template-columns: 1fr; gap: 6px; }
  .stack-list .price { font-size: 14px; color: var(--text-muted); }
  .stack-list li.highlight { margin: 0; padding: 16px; }
  .btn-lg { width: 100%; }
  .modal { padding: 28px 22px 22px; }
  .survey-flow { padding: 32px 22px; min-height: 380px; }
  .final-cta { padding: 64px 0; }
  #thanks-block { padding: 32px 22px; }
}

/* ============================================================================
   Torn-paper edges between sections
   --------------------------------------------------------------------------
   Same curve used for top + bottom tear, so a section's bottom rip aligns
   horizontally with the next section's top rip. The constant-width band of
   --desk visible between them reads as the shadow underneath torn paper.
   ============================================================================ */

.hero,
.thankyou .hero-success,
section,
footer {
  position: relative;
  -webkit-mask:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,22L400,22L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      top / 100% var(--tear-h) no-repeat,
    linear-gradient(#000, #000)
      0 var(--tear-h) / 100% calc(100% - (var(--tear-h) * 2)) no-repeat,
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,0L400,0L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      bottom / 100% var(--tear-h) no-repeat;
  mask:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,22L400,22L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      top / 100% var(--tear-h) no-repeat,
    linear-gradient(#000, #000)
      0 var(--tear-h) / 100% calc(100% - (var(--tear-h) * 2)) no-repeat,
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,0L400,0L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      bottom / 100% var(--tear-h) no-repeat;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.28));
}

/* First piece — clean top, only bottom torn */
.hero,
.thankyou .hero-success {
  -webkit-mask:
    linear-gradient(#000, #000)
      top / 100% calc(100% - var(--tear-h)) no-repeat,
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,0L400,0L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      bottom / 100% var(--tear-h) no-repeat;
  mask:
    linear-gradient(#000, #000)
      top / 100% calc(100% - var(--tear-h)) no-repeat,
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,0L400,0L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      bottom / 100% var(--tear-h) no-repeat;
}

/* Last piece — torn top, clean bottom */
footer {
  -webkit-mask:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,22L400,22L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      top / 100% var(--tear-h) no-repeat,
    linear-gradient(#000, #000)
      0 var(--tear-h) / 100% calc(100% - var(--tear-h)) no-repeat;
  mask:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0,22L400,22L400,11L388,9L376,14L364,11L352,12L340,8L328,15L316,10L304,13L292,7L280,9L268,14L256,11L244,8L232,12L220,15L208,9L196,13L184,7L172,11L160,14L148,8L136,12L124,9L112,16L100,10L88,13L76,7L64,11L52,14L40,9L28,12L16,8L4,13L0,10Z' fill='black'/%3E%3C/svg%3E")
      top / 100% var(--tear-h) no-repeat,
    linear-gradient(#000, #000)
      0 var(--tear-h) / 100% calc(100% - var(--tear-h)) no-repeat;
}
