@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fafaf9;
  --ink: #181818;
  --muted: #525252;
  --line: #dededc;
  --panel: #f0f0ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.frame {
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.logo {
  --wordmark-width: 134px;
  position: relative;
  padding-inline-start: 9px;
}

.logo img {
  display: block;
  width: var(--wordmark-width);
  height: auto;
  clip-path: inset(0 0 0 25%);
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 23%;
  background: url('assets/gadiro.webp') left center / var(--wordmark-width) auto no-repeat;
  transform: scale(1.35);
  transform-origin: left center;
}

a {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.email {
  color: var(--muted);
  font-size: 0.875rem;
  padding-block: 10px;
}

.email span {
  margin-left: 4px;
}

.email:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 39%;
  min-height: 496px;
  padding-block: 70px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.071em;
}

h1 em {
  color: #4a711c;
  font-style: normal;
}

.intro {
  max-width: 34ch;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--background);
  font-weight: 500;
}

.cta:hover {
  background: #4a711c;
}

.hero-art {
  container-type: inline-size;
  display: grid;
  place-items: center;
}

.paper-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(74cqw, 278px);
  aspect-ratio: 0.79;
  padding: min(5.5cqw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #181818;
  font-size: min(3.2cqw, 13px);
  line-height: 1.3;
}

.paper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.paper-title {
  font-size: min(9cqw, 39px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.paper-items {
  display: grid;
  gap: min(1.3cqw, 5px);
  padding-block: min(1.8cqw, 8px);
  border-block: 1px solid #2828284d;
}

.paper-total {
  font-size: min(3.8cqw, 16px);
}

.paper-label {
  color: #454545;
  font-family: monospace;
  font-size: 0.8em;
  text-transform: uppercase;
}

.paper-qr {
  align-self: flex-end;
  width: min(18cqw, 68px);
  height: auto;
  image-rendering: pixelated;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.features li {
  padding: 27px 22px 29px 0;
}

.features li + li {
  padding-left: 27px;
  border-left: 1px solid var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: 0.875rem monospace;
}

.features h2 {
  margin: 12px 0 5px;
  font-size: 1.125rem;
  font-weight: 600;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 250px;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
  padding-block: clamp(44px, 7vw, 88px);
}

.details-copy h2 {
  max-width: 14ch;
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.75vw, 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.details-copy p,
.details dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.details-copy p {
  max-width: 38ch;
}

.details dl {
  margin: 0;
}

.details dt {
  margin-bottom: 4px;
  font-weight: 600;
}

.document-list > div {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.document-list > div:first-child {
  padding-top: 0;
}

.pricing {
  padding-block: clamp(44px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 48px;
  margin-bottom: 32px;
}

.pricing-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.75vw, 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.pricing-head p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.plan h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
}

.price {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price strong {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.price span,
.plan-features {
  color: var(--muted);
}

.price span {
  display: block;
  white-space: nowrap;
}

.quota {
  margin: 18px 0 4px;
  font-weight: 600;
}

.unit {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.plan-features li::before {
  content: '✓';
  margin-right: 8px;
  color: #4a711c;
}

@media (max-width: 1024px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) and (min-width: 761px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .features li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .frame {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 68px;
  }

  .logo {
    --wordmark-width: 112px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-block: 52px 25px;
  }

  h1 {
    font-size: clamp(2.125rem, 10.4vw, 4.875rem);
  }

  .hero-art {
    width: min(90%, 360px);
    justify-self: center;
  }

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

  .features li,
  .features li + li {
    padding: 20px 0;
    border-left: 0;
  }

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

  .details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

.site-footer {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 16px;
  white-space: nowrap;
}
