:root {
  --ink: #171b25;
  --body: #2d373d;
  --muted: #666;
  --green: #02ad87;
  --green-dark: #008461;
  --mint: #86ffe0;
  --line: #e3e6e8;
  --gray-card: #e8ebed;
  --soft: #fafafa;
  --white: #fff;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

p {
  margin: 0;
  line-height: 1.5;
  text-align: justify;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 70px;
  border-bottom: 1px solid #eaeaea;
  background: #fff;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 150px;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
}

.button {
  display: inline-flex;
  min-height: 56px;
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-small {
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 100vh;
  margin-top: 50px;
  color: #fff;
  background: url("./assets/medium-shot-woman-laying-couch-2-1.png") center
    right / cover no-repeat;
}

.hero-inner {
  display: flex;
  min-height: 100vh;
  align-items: center;
}

.hero-copy {
  width: 54%;
  max-width: 650px;
  padding: 100px 0 70px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
}

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

.eyebrow i {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hero .eyebrow {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

.hero h1 {
  margin-top: 25px;
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.286;
}

.hero p {
  max-width: 610px;
  margin-top: 25px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.hero-actions {
  display: flex;
  margin-top: 25px;
  gap: 8px;
}

.hero-actions a {
  text-align: center;
}

.button-ghost {
  border-color: #fff;
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}

.section {
  position: relative;
}

.section-header {
  margin: 0 auto 36px;
  text-align: center;
}

.section-header h2,
.split-heading h2,
.business-copy h2,
.payments-copy h2,
.api-copy h2 {
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.section-header > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 20px;
  line-height: 28px;
}

.services-section {
  min-height: 1222px;
  padding: 112px 0;
  background: url("./assets/direitabaixo.png") right bottom no-repeat;
}

.services-grid {
  display: grid;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  display: flex;
  min-height: 315px;
  padding: 48px;
  flex-direction: column;
  align-items: center;
  background: var(--gray-card);
  text-align: center;
}

.service-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.service-card h3 {
  margin-top: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}

.service-card p {
  margin-top: 10px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.service-card a {
  margin-top: auto;
  padding-top: 16px;
  color: var(--body);
  font-size: 12px;
  line-height: 16px;
}

.service-card a span {
  display: none;
}

.app-card {
  display: flex;
  min-height: 190px;
  padding: 56px 88px;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 10px 10px;
  background: var(--gray-card);
  text-align: center;
}

.app-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.app-card h3 {
  margin-top: 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 24px;
}

.app-card p {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.business-section {
  display: flex;
  min-height: 936px;
  padding: 90px 0;
  align-items: center;
  background:
    url("./assets/direitaalto.png") right top no-repeat,
    url("./assets/esquerdabaixo.png") left bottom no-repeat;
}

.business-layout {
  display: grid;
  align-items: center;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
}

.business-visual img {
  width: 100%;
}

.business-copy > p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.business-grid {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(2, 1fr);
}

.business-item {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.business-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.channels-section {
  display: flex;
  min-height: 1028px;
  padding: 96px 0;
  align-items: center;
  color: #fff;
  background:
    url("./assets/esquerdalto.png") left top no-repeat,
    var(--green-dark);
}

.split-heading {
  margin-bottom: 32px;
  text-align: center;
}

.split-heading h2 {
  color: #fff;
}

.split-heading > p {
  max-width: 780px;
  margin: 10px auto 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.channels-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

.channel-card {
  border-radius: 8px;
  display: flex;
  min-height: 168px;
  padding: 20px;
  align-items: center;
  gap: 28px;
  color: var(--body);
  background: var(--soft);
}

.channel-card img {
  width: 105px;
  height: 105px;
  flex: 0 0 auto;
  object-fit: contain;
}

.channel-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.payments-section {
  display: flex;
  min-height: 100vh;
  padding: 80px 0;
  align-items: center;
}

.payments-layout {
  display: grid;
  align-items: center;
  gap: 60px;
  grid-template-columns: 0.9fr 1.1fr;
}

.section-header-left {
  margin: 0 0 25px;
  text-align: left;
}

.payment-list {
  display: grid;
  gap: 22px;
}

.payment-item {
  display: grid;
  align-items: start;
  gap: 12px 16px;
  grid-template-columns: 52px 1fr;
}

.payment-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.payment-item h3 {
  color: var(--body);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.payment-item p {
  margin-top: 5px;
  color: #526570;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.payments-image {
  width: 100%;
  max-height: 690px;
  object-fit: contain;
}

.easy-section {
  display: flex;
  min-height: 100vh;
  margin-top: 60px;
  padding: 80px 0;
  align-items: center;
  color: #fff;
  background: var(--green-dark);
}

.easy-layout {
  display: grid;
  align-items: center;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
}

.easy-copy h2 {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 72px;
}

.easy-copy p {
  margin-top: 22px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.easy-copy strong {
  color: #fff;
}

.easy-copy .button {
  margin-top: 28px;
  border-color: #fff;
  color: var(--green-dark);
  background: #fff;
}

.easy-image {
  width: 100%;
}

.api-section {
  display: flex;
  min-height: 1231px;
  padding: 100px 0;
  align-items: center;
  background: url("./assets/BACKGROUND-1.png") center / cover no-repeat;
}

.api-layout {
  display: block;
}

.api-copy {
  text-align: center;
}

.api-copy .eyebrow {
  color: var(--green);
}

.api-device {
  width: min(82%, 918px);
  margin: 35px auto 0;
}

.api-copy p {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.button-light {
  margin-top: 34px;
  padding-inline: 32px;
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.contact-section {
  position: relative;
  display: flex;
  min-height: 1020px;
  padding: 150px 0 80px;
  align-items: center;
  background: url("./assets/Wave_Pattern_RGB_FandP_Gradient-01-1.png") top right
    no-repeat;
}

.contact-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 85px;
  background: var(--white);
  border-radius: 0 0 50% 50%;
  content: "";
}

.contact-layout {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: stretch;
  border: 3px solid #cccfd2;
  border-radius: 8px;
  background: #fff;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto 1fr;
}

.contact-copy {
  display: contents;
}

.contact-copy .eyebrow {
  margin: 36px 45px 0;
  color: var(--green);
  font-size: 56px;
  line-height: 72px;
}

.contact-copy h2 {
  margin: 0 45px;
  color: var(--body);
  font-size: 24px;
  line-height: 32px;
}

.contact-copy > p {
  display: none;
}

.contact-copy > img {
  width: 100%;
  height: 100%;
  grid-column: 2;
  grid-row: 1 / -1;
  object-fit: cover;
  object-position: center;
}

.contact-form {
  padding: 22px 45px 42px;
  grid-column: 1;
  grid-row: 3;
}

.form-field {
  margin-bottom: 17px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--body);
  font-size: 14px;
}

.form-field input {
  width: 100%;
  height: 43px;
  padding: 8px 14px;
  border: 1px solid #c7ccd0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  border-radius: 8px;
}

.form-field input:focus {
  border-color: var(--green);
}

.form-field input[aria-invalid="true"] {
  border-color: #b42318;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  border-radius: 8px;
}

.form-note {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note.is-success {
  color: #237a4b;
}

.form-note.is-error {
  color: #b42318;
}

.site-footer {
  padding: 16px 0 24px;
  color: var(--body);
  background: #fff;
}

.footer-top {
  display: grid;
  padding: 18px 0 28px;
  gap: 35px;
  grid-template-columns: repeat(4, 1fr);
}

.footer-brand {
  justify-self: center;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 16px;
  font-weight: 600;
}

.footer-column p,
.footer-column a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  padding-top: 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.back-to-top {
  display: grid;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  place-items: center;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero-copy {
    padding-inline: 30px;
  }

  .business-layout,
  .payments-layout,
  .easy-layout {
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 70px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-menu summary {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 9px;
    align-content: center;
    cursor: pointer;
    list-style: none;
  }

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

  .mobile-menu summary span {
    width: 24px;
    height: 2px;
    margin: 3px 0;
    background: var(--green);
  }

  .mobile-menu nav {
    position: fixed;
    inset: 70px 0 auto;
    display: flex;
    padding: 10px 24px 22px;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 25px rgb(0 0 0 / 8%);
  }

  .mobile-menu nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    margin-top: 50px;
    background-position: 68% center;
  }

  .hero-copy {
    width: 68%;
    padding-inline: 28px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.22;
  }

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

  .service-card {
    padding: 35px 24px;
  }

  .business-layout,
  .payments-layout,
  .easy-layout {
    grid-template-columns: 1fr;
  }

  .business-visual {
    max-width: 520px;
    margin: auto;
  }

  .channels-grid {
    gap: 18px;
  }

  .channel-card {
    padding: 18px;
    gap: 16px;
  }

  .channel-card img {
    width: 80px;
    height: 80px;
  }

  .payments-image {
    max-height: 520px;
  }

  .easy-copy {
    order: 1;
  }

  .easy-image {
    order: 2;
  }

  .api-section {
    min-height: 900px;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .contact-form {
    padding: 38px 30px;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand img {
    width: 128px;
  }

  .hero {
    min-height: 720px;
    background-position: 63% center;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    background: rgb(0 40 34 / 38%);
    content: "";
  }

  .hero-inner,
  .hero-copy {
    position: relative;
  }

  .hero-copy {
    width: 100%;
    padding: 90px 0 60px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: 34px;
    line-height: 43px;
  }

  .hero p {
    font-size: 14px;
  }

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

  .section-header h2,
  .split-heading h2,
  .business-copy h2,
  .payments-copy h2,
  .api-copy h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .services-section {
    min-height: 0;
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 290px;
    padding: 40px 28px;
  }

  .app-card {
    padding: 42px 20px;
  }

  .business-section,
  .channels-section,
  .payments-section,
  .easy-section {
    min-height: 0;
    padding: 80px 0;
  }

  .business-copy > p {
    font-size: 20px;
    line-height: 28px;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    min-height: 130px;
  }

  .easy-section {
    margin-top: 0;
  }

  .easy-copy h2 {
    font-size: 40px;
    line-height: 50px;
  }

  .api-section {
    min-height: 760px;
    padding: 80px 0;
  }

  .api-device {
    width: 100%;
  }

  .api-copy p {
    font-size: 17px;
    line-height: 26px;
  }

  .contact-section {
    min-height: 0;
    padding: 110px 0 60px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .contact-copy {
    display: contents;
  }

  .contact-copy .eyebrow {
    margin: 30px 24px 0;
    font-size: 42px;
    line-height: 52px;
  }

  .contact-copy h2 {
    margin: 0 24px;
  }

  .contact-copy > img {
    display: none;
  }

  .contact-form {
    padding: 25px 24px 35px;
    grid-column: 1;
    grid-row: 3;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-column p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
