@font-face {
        font-family: "League Spartan";
        src: url("assets/league-spartan-400.woff2") format("woff2");
        font-weight: 400;
        font-style: normal;
        font-display: swap;
      }

      @font-face {
        font-family: "League Spartan";
        src: url("assets/league-spartan-700.woff2") format("woff2");
        font-weight: 700;
        font-style: normal;
        font-display: swap;
      }

      :root {
        --bg: #f4f1ea;
        --ink: #1c1915;
        --muted: #6b645b;
        --line: rgba(28, 25, 21, 0.1);
        --paper: #fffcf7;
        --roxo: #6b4de6;
        --roxo-suave: #c4b1ff;
        --negativo: #b42318;
      }

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

      html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
      }

      body {
        margin: 0;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        font-family: "League Spartan", Arial, Helvetica, sans-serif;
        background:
          radial-gradient(ellipse 90% 40% at 50% -8%, rgba(196, 177, 255, 0.28), transparent 55%),
          var(--bg);
        color: var(--ink);
        -webkit-font-smoothing: antialiased;
      }

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

      a {
        color: inherit;
      }

      a:focus-visible,
      button:focus-visible,
      input:focus-visible,
      select:focus-visible {
        outline: 2px solid var(--roxo);
        outline-offset: 3px;
      }

      .skip-link {
        position: absolute;
        left: 16px;
        top: -48px;
        z-index: 10;
        padding: 10px 14px;
        background: var(--ink);
        color: #fff;
        border-radius: 8px;
      }

      .skip-link:focus {
        top: 16px;
      }

      .shell {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 0 16px;
      }

      .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 8;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
        background: rgba(244, 241, 234, 0.92);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(10px);
      }

      .brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
        text-decoration: none;
      }

      .brand img {
        height: 18px;
        width: auto;
      }

      .brand-sep {
        color: var(--muted);
        font-size: 13px;
        line-height: 1;
      }

      .brand-tag {
        font-size: 12px;
        line-height: 1.2;
        color: var(--muted);
      }

      @media (max-width: 639px) {
        .brand {
          flex-wrap: wrap;
          row-gap: 2px;
          column-gap: 6px;
          text-align: center;
        }

        .brand-tag {
          font-size: 11px;
        }
      }

      main {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: calc(58px + env(safe-area-inset-top)) 0 32px;
      }

      .stage {
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

      .greeting-copy {
        order: 1;
        text-align: left;
        min-width: 0;
      }

      .greeting-copy h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.15;
      }

      .greeting-lead {
        margin: 10px 0 0;
        font-size: 0.9375rem;
        line-height: 1.45;
        color: var(--muted);
      }

      .greeting-stats {
        order: 2;
      }

      .proof {
        order: 3;
      }

      .capture {
        order: 4;
        min-width: 0;
      }

      .composer {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(28, 25, 21, 0.05);
        overflow: hidden;
      }

      .lead-form {
        margin: 0;
      }

      .field {
        position: relative;
      }

      .field + .field {
        border-top: 1px solid var(--line);
      }

      .field label {
        display: block;
        padding: 8px 16px 0;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--muted);
      }

      .lead-form input[type="text"],
      .lead-form input[type="email"],
      .lead-form input[type="tel"],
      .lead-form select {
        width: 100%;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 4px 16px 10px;
        font-family: inherit;
        font-size: 16px;
        line-height: 1.4;
        color: var(--ink);
        appearance: none;
        -webkit-appearance: none;
      }

      .lead-form select {
        padding-right: 40px;
        text-overflow: ellipsis;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239a9389' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        cursor: pointer;
      }

      .lead-form select:invalid {
        color: #9a9389;
      }

      .lead-form select option {
        color: var(--ink);
      }

      .lead-form input::placeholder {
        color: #9a9389;
      }

      .lead-form input:focus,
      .lead-form select:focus {
        outline: none;
        background-color: rgba(196, 177, 255, 0.08);
      }

      .lead-form input[aria-invalid="true"],
      .lead-form select[aria-invalid="true"] {
        background-color: rgba(180, 35, 24, 0.06);
      }

      .phone-field {
        display: flex;
        align-items: center;
      }

      .phone-prefix {
        flex: none;
        padding: 4px 0 10px 16px;
        font-size: 16px;
        line-height: 1.4;
        color: #9a9389;
      }

      .phone-field input[type="tel"] {
        padding-left: 8px;
      }

      .field-error {
        min-height: 0;
        margin: 0;
        padding: 0 16px;
        font-size: 13px;
        color: var(--negativo);
      }

      .field-error:empty {
        display: none;
      }

      .field-error:not(:empty) {
        padding-bottom: 12px;
      }

      .composer-foot {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px 12px;
        border-top: 1px solid var(--line);
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        border: 0;
        border-radius: 12px;
        background: var(--ink);
        color: #fff;
        font-family: inherit;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
      }

      .btn-icon {
        width: 20px;
        height: 20px;
        flex: none;
      }

      .btn:hover {
        background: #2a241e;
      }

      .btn:disabled {
        cursor: wait;
        opacity: 0.7;
      }

      .btn--ghost {
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--line);
      }

      .btn--ghost:hover {
        background: rgba(28, 25, 21, 0.04);
      }

      .hint,
      .privacy,
      .form-status {
        margin: 0;
        text-align: center;
        font-size: 13px;
        line-height: 1.45;
        color: var(--muted);
      }

      .privacy {
        margin-top: 12px;
        padding: 0 2px;
      }

      .privacy a {
        color: var(--ink);
      }

      .greeting-stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1px;
        margin: 0;
        background: var(--line);
        border: 1px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
      }

      .greeting-stats div {
        background: var(--paper);
        padding: 12px 10px 12px;
      }

      .greeting-stats dt {
        margin: 0;
        font-size: 1.625rem;
        font-weight: 700;
        letter-spacing: -0.04em;
        line-height: 1;
      }

      .greeting-stats dd {
        margin: 8px 0 0;
      }

      .stat-name {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink);
      }

      .stat-note {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.3;
        color: var(--muted);
      }

      .proof {
        width: 100%;
        margin-top: 0;
      }

      .proof-kicker {
        margin: 0 0 14px;
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .proof-rows {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

      .proof-viewport {
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
      }

      .proof-track {
        display: flex;
        width: max-content;
        animation: proof-marquee 40s linear infinite;
        will-change: transform;
      }

      .proof-track:not(:has([aria-hidden="true"])) {
        animation: none;
      }

      @media (hover: hover) {
        .proof:hover .proof-track {
          animation-play-state: paused;
        }
      }

      .proof-logos {
        display: flex;
        align-items: center;
        gap: 40px;
        margin: 0;
        padding: 0 40px;
        list-style: none;
      }

      .proof-logos li {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        flex: none;
      }

      .proof-logos img {
        max-height: 32px;
        max-width: 120px;
        width: auto;
        object-fit: contain;
        filter: brightness(0);
        opacity: 0.72;
      }

      @keyframes proof-marquee {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(-50%);
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .proof-track {
          animation: none;
          width: 100%;
          justify-content: center;
          flex-wrap: wrap;
        }

        .proof-track [aria-hidden="true"] {
          display: none;
        }

        .proof-logos {
          flex-wrap: wrap;
          justify-content: center;
          gap: 20px 28px;
          padding: 0 16px;
        }
      }

      .form-status {
        color: var(--negativo);
      }

      .form-status:empty {
        display: none;
      }

      .result {
        padding: 24px 16px 20px;
        text-align: left;
      }

      .result[hidden],
      .lead-form[hidden],
      .btn[hidden] {
        display: none !important;
      }

      .result h2 {
        margin: 0 0 10px;
        font-size: 1.5rem;
        letter-spacing: -0.03em;
      }

      .result p {
        margin: 0 0 20px;
        font-size: 16px;
        line-height: 1.5;
        color: var(--muted);
      }

      .site-footer {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        padding: 0 16px calc(16px + env(safe-area-inset-bottom));
        font-size: 13px;
        color: var(--muted);
      }

      .site-footer a {
        color: var(--muted);
      }

      .site-footer a:hover {
        color: var(--ink);
      }

      @media (min-width: 640px) {
        .shell {
          padding: 0 24px;
        }

        .topbar {
          padding: calc(8px + env(safe-area-inset-top)) 24px 8px;
        }

        .brand img {
          height: 20px;
        }

        .brand-tag {
          font-size: 13px;
        }

        main {
          padding: calc(64px + env(safe-area-inset-top)) 0 40px;
        }

        .greeting-copy h1 {
          font-size: 2rem;
        }

        .greeting-lead {
          font-size: 1.0625rem;
        }

        .greeting-stats {
          margin-top: 0;
        }

        .greeting-stats div {
          padding: 12px 12px 14px;
        }

        .greeting-stats dt {
          font-size: 1.75rem;
        }

        .proof {
          margin-top: 0;
        }

        .proof-rows {
          gap: 16px;
        }

        .proof-logos {
          gap: 48px;
          padding: 0 48px;
        }

        .proof-logos img {
          max-height: 36px;
        }

        .composer {
          border-radius: 22px;
          box-shadow: 0 18px 50px rgba(28, 25, 21, 0.06);
        }

        .field label {
          padding: 8px 20px 0;
        }

        .lead-form input[type="text"],
        .lead-form input[type="email"],
        .lead-form input[type="tel"],
        .lead-form select {
          padding: 4px 20px 10px;
        }

        .lead-form select {
          padding-right: 44px;
          background-position: right 20px center;
        }

        .phone-prefix {
          padding: 4px 0 10px 20px;
        }

        .phone-field input[type="tel"] {
          padding-left: 8px;
        }

        .field-error {
          padding-left: 20px;
          padding-right: 20px;
        }

        .composer-foot {
          padding: 10px 14px 12px;
        }

        .result {
          padding: 28px 24px 24px;
          text-align: center;
        }

        .result h2 {
          font-size: 1.625rem;
        }

        .privacy {
          margin-top: 14px;
          padding: 0 8px;
        }

        .site-footer {
          padding-bottom: calc(22px + env(safe-area-inset-bottom));
        }
      }

      @media (min-width: 960px) {
        .shell {
          max-width: 1100px;
          padding: 0 32px;
        }

        .topbar {
          padding: calc(10px + env(safe-area-inset-top)) 32px 10px;
        }

        .brand img {
          height: 20px;
        }

        .brand-sep,
        .brand-tag {
          font-size: 14px;
        }

        main {
          padding: calc(68px + env(safe-area-inset-top)) 0 40px;
        }

        .stage {
          display: grid;
          grid-template-columns: minmax(0, 1fr) 400px;
          grid-template-areas:
            "copy form"
            "stats form"
            "proof form";
          gap: 20px 48px;
          align-items: start;
        }

        .greeting-copy {
          grid-area: copy;
          order: unset;
        }

        .greeting-copy h1 {
          font-size: 2.35rem;
          max-width: 12em;
        }

        .greeting-stats {
          grid-area: stats;
          order: unset;
          margin-top: 0;
        }

        .proof {
          grid-area: proof;
          order: unset;
          margin-top: 0;
        }

        .capture {
          grid-area: form;
          order: unset;
          min-width: 0;
          align-self: start;
          height: fit-content;
          position: sticky;
          top: calc(68px + env(safe-area-inset-top));
        }

        .composer {
          height: fit-content;
        }

        .greeting-lead {
          max-width: 42ch;
          font-size: 1.125rem;
        }

        .greeting-stats dt {
          font-size: 2rem;
        }

        .proof-rows {
          gap: 18px;
        }

        .proof-track {
          animation-duration: 48s;
        }
      }

.thank-you-main {
  justify-content: center;
}

.thank-you-shell.shell {
  max-width: 520px;
}

.thank-you-card .result {
  text-align: center;
}

.thank-you-card .result h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .thank-you-card .result h1 {
    font-size: 1.625rem;
  }
}
