/* Roi Apps LLC — company site. Plain CSS, no build step. */

:root {
  --paper: #ffffff;
  --ink: #16211b;
  --pitch: #1e6b3c;
  --felt: #8fbf5a;
  --lime: #c6e39b;
  --lime-soft: #eef6e2;
  --chalk: #b9d2bd;
  --rule: #dde6df;
  --mute: #5e6b63;
  --wash: #f2f8ec;
  --max: 1120px;
  --gutter: 24px;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}

a {
  color: var(--pitch);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--felt);
}

:focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.wordmark small {
  font-weight: 450;
  font-size: 15px;
  color: var(--mute);
}

.top nav {
  display: flex;
  gap: 26px;
  font-size: 16px;
}

.top nav a {
  color: var(--ink);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--pitch);
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 80px;
}

/* With the pitch present the hero splits in two; without it (institutional-only) it stays one
   column, so removing the <figure> never leaves an empty half. */
.hero:has(.pitch) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 96, "wdth" 92;
  text-wrap: balance;
}

.hero p {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: 19px;
  color: var(--mute);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 550;
  text-decoration: none;
}

.button:hover {
  background: var(--pitch);
  text-decoration: none;
}

/* Marca-texto de limão sob a ideia-chave do título */
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
  color: inherit;
}

/* The pitch: a lineup sheet with Beto on the centre spot */

.pitch {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 380px;
  justify-self: end;
}

.pitch svg {
  display: block;
  width: 100%;
  height: auto;
}

.pitch line,
.pitch rect,
.pitch path,
.pitch circle {
  fill: none;
  stroke: var(--chalk);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pitch .spot {
  fill: var(--chalk);
  stroke: none;
}

.pitch .field {
  fill: var(--wash);
}

.pitch .stripe {
  fill: var(--lime-soft);
  stroke: none;
}

.pitch .centre {
  stroke: var(--felt);
  stroke-width: 2.2;
}

.pitch .ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21%;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 10px 14px rgba(22, 33, 27, 0.16));
}

.pitch figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
}

/* Sections: name in the left gutter, like a match sheet */

.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px 56px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}

.section > h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.section .lead {
  margin: 0 0 40px;
  max-width: 30em;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 48, "wdth" 96;
  text-wrap: pretty;
}

.section p {
  max-width: 62ch;
}

/* A seção do produto vira uma faixa de limão de borda a borda */
.band {
  background: var(--lime-soft);
}

.band .section {
  border-top: 0;
}

.band .facts,
.band .facts > div {
  border-color: var(--lime);
}

/* Feature list: term + description, separated by rules */

.facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.facts > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  margin: 0;
  font-weight: 600;
}

.facts dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--felt);
}

.facts dd {
  margin: 0;
  color: var(--mute);
  max-width: 56ch;
}

.facts dd a {
  color: var(--pitch);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  max-width: 720px;
}

.contact h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.contact p {
  margin: 0;
  color: var(--mute);
}

.contact address {
  font-style: normal;
  color: var(--mute);
}

.contact .big {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

/* Footer */

.foot {
  margin-top: 24px;
  padding: 36px 0 48px;
  border-top: 3px solid var(--lime);
  font-size: 15px;
  color: var(--mute);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot p {
  margin: 0;
}

.foot strong {
  color: var(--ink);
  font-weight: 600;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot nav a {
  color: var(--mute);
}

/* Legal pages */

.doc {
  max-width: 68ch;
  padding: 24px 0 80px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96, "wdth" 94;
}

.doc .meta {
  margin: 0 0 40px;
  color: var(--mute);
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.doc p,
.doc li {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 600;
  color: var(--ink);
}

.doc td {
  color: var(--mute);
}

.doc td:first-child {
  color: var(--ink);
}

/* Small screens */

@media (max-width: 860px) {
  .hero,
  .hero:has(.pitch) {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 0 64px;
  }

  .pitch {
    max-width: 300px;
    justify-self: center;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 56px 0;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .top nav {
    gap: 18px;
    font-size: 15px;
  }

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

  .doc table,
  .doc thead,
  .doc tbody,
  .doc tr,
  .doc th,
  .doc td {
    display: block;
  }

  .doc thead {
    display: none;
  }

  .doc tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .doc td {
    padding: 2px 0;
    border: 0;
  }

  .doc td::before {
    content: attr(data-th) ": ";
    font-weight: 600;
    color: var(--ink);
  }

  .doc td:first-child::before {
    content: none;
  }
}
