/* topuva.com.br: mobile-first, light theme. Colors match the apps' themes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-var.woff2?v=3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-var.woff2?v=3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --mint: #3eb489;
  --mint-600: #2e9e74;
  --mint-700: #1e7d5a;
  --mint-800: #17614a;
  --mint-50: #ecf8f2;
  --mint-100: #d5f0e3;

  --blue: #4169e1;
  --blue-700: #2f50b8;
  --blue-50: #eef2fd;
  --blue-100: #dbe4fb;

  --accent: #ffd166;
  --accent-50: #fff6de;

  --ink: #1e1f2b;
  --ink-2: #282a3a;
  --grey: #696d77;
  --grey-2: #5a5e68;
  --line: #e3e7ee;
  --bg: #f8fafc;
  --surface: #ffffff;
  --danger: #c0352b;
  --danger-50: #fdecea;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(30 31 43 / 6%), 0 1px 3px rgb(30 31 43 / 8%);
  --shadow: 0 2px 6px rgb(30 31 43 / 6%), 0 12px 32px rgb(30 31 43 / 8%);
  --shadow-lg: 0 24px 60px rgb(30 31 43 / 18%);

  --gutter: 16px;
  --max: 1160px;
  --header-h: 64px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--mint-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mint-800);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-mint {
  background: var(--mint-700);
  color: #fff;
  box-shadow: 0 6px 18px rgb(30 125 90 / 28%);
}

.btn-mint:hover {
  background: var(--mint-800);
  color: #fff;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgb(65 105 225 / 28%);
}

.btn-blue:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5em 1em;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(227 231 238 / 80%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border-radius: 10px;
}

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

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--mint-50);
  color: var(--mint-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cta {
  display: none;
}

/* "Entrar" dropdown, built on <details> so it works without JS. */
.login-menu {
  position: relative;
}

.login-menu > summary {
  list-style: none;
}

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

.login-menu > summary .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.login-menu[open] > summary .icon {
  transform: rotate(180deg);
}

.login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.login-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.login-panel a:hover {
  background: var(--bg);
}

.login-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.975rem;
  line-height: 1.3;
}

.login-panel small {
  display: block;
  color: var(--grey-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.app-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  flex: none;
}

.app-dot .icon {
  width: 22px;
  height: 22px;
}

.app-dot-mint {
  background: var(--mint);
}

.app-dot-blue {
  background: var(--blue);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px var(--gutter) 16px;
}

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 14px;
}

@media (width >= 960px) {
  .site-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .brand {
    margin-right: 12px;
  }

  .site-nav {
    margin-right: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(65 105 225 / 12%), transparent 70%),
    radial-gradient(55% 45% at 10% 0%, rgb(62 180 137 / 18%), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: 800 0.875rem/1.2 var(--font-display);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgb(255 209 102 / 45%);
}

.badge .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  stroke-width: 3;
}

.hero h1 {
  margin-top: 18px;
}

.hero h1 .hl {
  background: linear-gradient(transparent 62%, rgb(62 180 137 / 32%) 62%);
}

.hero-lead {
  max-width: 36em;
  color: var(--grey-2);
  font-size: 1.125rem;
}

/* Example crops under the hero lead: the apps work for any produce. */
.crop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.crop-list li {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.crop-list li:last-child {
  border-color: transparent;
  background: none;
  color: var(--grey-2);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.hero-ctas .btn {
  flex: 1 1 200px;
}

@media (width >= 560px) {
  .hero-ctas .btn {
    flex: 0 0 auto;
  }
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--grey-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list .icon {
  color: var(--mint-700);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 460px;
}

.hero-visual .phone-farmer {
  transform: rotate(-4deg) translateX(-38px);
  z-index: 2;
}

.hero-visual .phone-buyer {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: rotate(5deg) translateX(-8px);
  z-index: 1;
}

@media (width < 420px) {
  .hero-visual {
    min-height: 420px;
  }

  .hero-visual .phone {
    --phone-w: 214px;
  }

  .hero-visual .phone-farmer {
    transform: rotate(-4deg) translateX(-26px);
  }

  .hero-visual .phone-buyer {
    transform: rotate(5deg) translateX(-28px);
  }
}

@media (width >= 960px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual .phone {
    --phone-w: 270px;
  }

  .hero-visual .phone-farmer {
    transform: rotate(-5deg) translateX(-70px);
  }

  .hero-visual .phone-buyer {
    top: 60px;
    transform: rotate(5deg) translateX(-30px);
  }
}

/* ---------- Free band ---------- */

.free-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 48px 0;
}

.free-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 209 102 / 22%), transparent 65%);
  pointer-events: none;
}

.free-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.free-band h2 {
  margin: 0 0 8px;
  color: #fff;
}

.free-band h2 span {
  color: var(--accent);
}

.free-band p {
  margin: 0;
  color: #c9cbd6;
  max-width: 34em;
}

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

.free-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
  font: 700 1.0625rem/1.3 var(--font-display);
}

.free-list .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  stroke-width: 3;
}

@media (width >= 760px) {
  .free-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .free-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .free-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

@media (width >= 960px) {
  .section {
    padding: 96px 0;
  }
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--grey-2);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 800 0.8125rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .app-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.eyebrow .app-dot .icon {
  width: 17px;
  height: 17px;
}

/* App showcases */

.showcase-farmer {
  background: linear-gradient(180deg, var(--mint-50), #f5fbf8 70%, var(--bg));
}

.showcase-farmer .eyebrow {
  color: var(--mint-800);
}

.showcase-buyer {
  background: linear-gradient(180deg, var(--blue-50), #f6f8fe 70%, var(--bg));
}

.showcase-buyer .eyebrow {
  color: var(--blue-700);
}

.showcase-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.showcase-head {
  margin-bottom: 0;
}

.showcase-phones {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.showcase-phones .phone + .phone {
  display: none;
}

@media (width >= 640px) {
  .showcase-phones .phone + .phone {
    display: block;
    margin-top: 48px;
  }

  .showcase-phones .phone {
    --phone-w: 240px;
  }
}

@media (width >= 1060px) {
  .showcase-grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "visual head"
      "visual body";
    column-gap: 56px;
    row-gap: 28px;
  }

  .showcase-buyer .showcase-grid {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "head visual"
      "body visual";
  }

  .showcase-head {
    grid-area: head;
  }

  .showcase-body {
    grid-area: body;
  }

  .showcase-visual {
    grid-area: visual;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--grey-2);
  font-size: 0.9688rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.showcase-farmer .feature-icon {
  background: var(--mint-100);
  color: var(--mint-800);
}

.showcase-buyer .feature-icon {
  background: var(--blue-100);
  color: var(--blue-700);
}

.feature-wide {
  grid-column: 1 / -1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.chip-row li {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.showcase-farmer .chip-row li {
  background: var(--mint-50);
  color: var(--mint-800);
}

.showcase-buyer .chip-row li {
  background: var(--blue-50);
  color: var(--blue-700);
}

.showcase-cta {
  margin-top: 24px;
}

.demo-note {
  margin: 14px 0 0;
  color: var(--grey-2);
  font-size: 0.8125rem;
  text-align: center;
}

/* ---------- Phone mockups ---------- */

.phone {
  --phone-w: 248px;
  --app: var(--mint);
  --app-ink: var(--mint-800);
  --app-soft: var(--mint-50);

  position: relative;
  flex: none;
  width: var(--phone-w);
  aspect-ratio: 9 / 18.4;
  padding: calc(var(--phone-w) * 0.035);
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(145deg, #3a3d50, #14151d 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
  font-size: calc(var(--phone-w) * 0.046);
  line-height: 1.35;
  user-select: none;
}

.phone-buyer {
  --app: var(--blue);
  --app-ink: var(--blue-700);
  --app-soft: var(--blue-50);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.13);
  background: #f4f6f9;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 30%;
  height: 1.45em;
  border-radius: 999px;
  background: #0d0e14;
  transform: translateX(-50%);
  z-index: 3;
}

.ph-status {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 1.4em 0;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
}

.ph-bar {
  padding: 0.35em 1em 0.9em;
  background: var(--app);
  color: #fff;
}

.ph-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.55em 0 0.45em;
  font: 800 1.3em/1.1 var(--font-display);
}

.ph-title svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-chips {
  display: flex;
  gap: 0.4em;
  overflow: hidden;
  white-space: nowrap;
}

.ph-chip {
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgb(255 255 255 / 22%);
  font-size: 0.76em;
  font-weight: 600;
}

.ph-chip-on {
  background: #fff;
  color: var(--app-ink);
}

.ph-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 0.75em 0.75em 0;
  overflow: hidden;
}

.ph-card {
  padding: 0.65em 0.75em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1px 2px rgb(30 31 43 / 8%);
}

.ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.ph-strong {
  font-weight: 700;
  color: var(--ink);
}

.ph-muted {
  color: #7c808b;
  font-size: 0.82em;
}

.ph-tag {
  padding: 0.12em 0.55em;
  border-radius: 999px;
  background: var(--app-soft);
  color: var(--app-ink);
  font-size: 0.74em;
  font-weight: 700;
  white-space: nowrap;
}

.ph-tag-amber {
  background: var(--accent-50);
  color: #8a5a00;
}

.ph-qr {
  width: 2.3em;
  height: 2.3em;
  flex: none;
  border-radius: 0.4em;
  background: var(--app-soft);
  color: var(--app-ink);
  padding: 0.35em;
}

.ph-qr svg {
  width: 100%;
  height: 100%;
}

.ph-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55em;
}

.ph-kpi {
  padding: 0.6em 0.7em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1px 2px rgb(30 31 43 / 8%);
}

.ph-kpi b {
  display: block;
  font: 800 1.05em/1.2 var(--font-display);
  color: var(--ink);
}

.ph-kpi-hl {
  background: var(--app);
  color: #fff;
}

.ph-kpi-hl b,
.ph-kpi-hl .ph-muted {
  color: #fff;
}

.ph-chart {
  width: 100%;
  color: var(--app);
  height: auto;
  margin-top: 0.4em;
}

.ph-price {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0;
  border-bottom: 1px solid #eef0f4;
}

.ph-price:last-child {
  border-bottom: 0;
}

.ph-range {
  position: relative;
  height: 0.42em;
  border-radius: 999px;
  background: #eef0f4;
}

.ph-range i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--app);
  opacity: 0.85;
}

.ph-fab {
  position: absolute;
  right: 0.9em;
  bottom: 4.3em;
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0.9em;
  background: var(--app);
  color: #fff;
  box-shadow: 0 6px 14px rgb(30 31 43 / 25%);
}

.ph-fab svg {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 0.5em 0.3em 1.1em;
  background: #fff;
  border-top: 1px solid #eceef2;
}

.ph-tab {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  color: #9a9ea8;
  font-size: 0.66em;
  font-weight: 600;
}

.ph-tab svg {
  width: 1.9em;
  height: 1.9em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-tab-on {
  color: var(--app-ink);
}

.ph-progress {
  height: 0.38em;
  margin-top: 0.4em;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}

.ph-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--app);
}

/* Width helpers for mock bars (avoid inline styles). */
.w-25 { width: 25%; }
.w-40 { width: 40%; }
.w-55 { width: 55%; }
.w-70 { width: 70%; }
.w-85 { width: 85%; }

.r-a { left: 18%; right: 34%; }
.r-b { left: 30%; right: 22%; }
.r-c { left: 40%; right: 12%; }
.r-d { left: 26%; right: 30%; }

/* ---------- Platforms ---------- */

.platform-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 860px) {
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.platform-icon .icon {
  width: 26px;
  height: 26px;
}

.platform p {
  color: var(--grey-2);
}

.steps-mini {
  margin: auto 0 0;
  padding: 14px 16px 14px 36px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.steps-mini li + li {
  margin-top: 6px;
}

.kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  font-size: 0.875em;
  white-space: nowrap;
}

.offline-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--accent-50);
  border: 1px solid #f5e2b0;
}

.offline-note .icon {
  width: 28px;
  height: 28px;
  color: #8a5a00;
  margin-top: 2px;
}

.offline-note h3 {
  margin-bottom: 4px;
}

.offline-note p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- How it works ---------- */

.how {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

@media (width >= 860px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.how-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  counter-increment: how;
}

.how-step::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
  font: 800 1.25rem/1 var(--font-display);
}

.how-step p {
  margin: 0;
  color: var(--grey-2);
}

.how-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.how-channels span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
}

.how-channels .icon {
  width: 1em;
  height: 1em;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

@media (width >= 1000px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }

  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: 700 1.0625rem/1.35 var(--font-display);
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary .icon {
  color: var(--grey);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list .faq-a {
  padding: 0 20px 18px;
  color: var(--grey-2);
}

.faq-list .faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- Signup ---------- */

.signup {
  background:
    radial-gradient(45% 35% at 5% 90%, rgb(62 180 137 / 12%), transparent 70%),
    radial-gradient(40% 35% at 92% 25%, rgb(65 105 225 / 8%), transparent 70%),
    var(--bg);
}

.signup-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (width >= 1000px) {
  .signup-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }

  .signup-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.signup-aside .badge {
  margin-bottom: 16px;
}

.signup-aside p {
  color: var(--grey-2);
  font-size: 1.0625rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--mint-700);
  stroke-width: 2.6;
}

.form-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (width >= 640px) {
  .form-card {
    padding: 36px;
  }
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (width >= 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.field[hidden] {
  display: none;
}

.field label,
.field legend {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.optional {
  color: var(--grey-2);
  font-weight: 400;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #cfd5df;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #8a8e98;
}

.input:hover {
  border-color: #aab2c0;
}

.input:focus {
  outline: none;
  border-color: var(--mint-700);
  box-shadow: 0 0 0 4px rgb(62 180 137 / 22%);
}

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

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(192 53 43 / 18%);
}

select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23696d77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

textarea.input {
  min-height: 104px;
  resize: vertical;
}

.hint {
  color: var(--grey-2);
  font-size: 0.8125rem;
}

.error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}

.error:empty {
  display: none;
}

.type-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.type-group legend {
  margin-bottom: 8px;
  padding: 0;
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-option {
  position: relative;
}

.type-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.type-option label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px;
  border: 1.5px solid #cfd5df;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.type-option label:hover {
  border-color: #aab2c0;
}

.type-option strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.type-option small {
  color: var(--grey-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.type-option .app-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.type-option .app-dot .icon {
  width: 19px;
  height: 19px;
}

.type-option input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.type-option-produtor input:checked + label {
  border-color: var(--mint-700);
  background: var(--mint-50);
  box-shadow: 0 0 0 3px rgb(62 180 137 / 20%);
}

.type-option-comprador input:checked + label {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgb(65 105 225 / 18%);
}

.type-group[data-invalid] .type-option label {
  border-color: var(--danger);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.consent label {
  font-weight: 400;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--mint-700);
}

/* Honeypot: off-screen, not display:none, so naive bots still fill it in. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-box {
  min-height: 65px;
}

.form-actions {
  display: grid;
  gap: 12px;
}

.form-actions .btn {
  width: 100%;
}

@media (width >= 640px) {
  .form-actions .btn {
    width: auto;
    justify-self: start;
    min-width: 240px;
  }
}

.form-alert {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--danger-50);
  color: #8f2219;
  font-weight: 600;
  font-size: 0.9375rem;
}

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

.form-legal {
  margin: 0;
  color: var(--grey-2);
  font-size: 0.8125rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 40%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-panel {
  text-align: center;
  padding: 24px 8px;
}

.success-panel .success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--mint-800);
}

.success-panel .success-icon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.6;
}

.success-panel h3 {
  font-size: 1.5rem;
}

.success-panel h3:focus {
  outline: none;
}

.success-panel p {
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
  color: var(--grey-2);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  background: var(--ink);
  color: #c9cbd6;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (width >= 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 26em;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #e7e8ef;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #a3a6b4;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: #e7e8ef;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.linklike:hover {
  color: var(--accent);
}

/* ---------- Consent banner ---------- */

.consent-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0;
  color: var(--ink-2);
}

.consent-banner .consent-actions {
  display: flex;
  gap: 10px;
}

.consent-banner .btn {
  flex: 1;
}

@media (width >= 640px) {
  .consent-banner {
    right: auto;
  }
}

/* ---------- Legal / simple pages ---------- */

.page-simple main {
  padding: 48px 0 72px;
}

.page-simple .brand {
  margin-right: auto;
}

.page-simple .site-footer {
  padding: 8px 0 28px;
}

.page-simple .footer-bottom {
  margin-top: 0;
  border-top: 0;
}

.legal {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.legal h2 {
  margin-top: 1.8em;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 6px;
}

.legal-meta {
  color: var(--grey-2);
  font-size: 0.9375rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal th {
  background: var(--bg);
  font-family: var(--font-display);
}

/* Phones: one card per row instead of a sideways-scrolling table. */
@media (width < 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: none;
  }

  .legal table {
    min-width: 0;
  }

  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
  }

  .legal tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .legal td,
  .legal tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  .legal td:last-child {
    border-bottom: 0;
  }

  .legal td::before {
    content: attr(data-label);
    display: block;
    color: var(--grey-2);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 0;
  text-align: center;
}

.not-found .code {
  font: 800 clamp(4rem, 18vw, 7rem)/1 var(--font-display);
  color: var(--mint);
  letter-spacing: -0.04em;
}

.not-found p {
  max-width: 28em;
  color: var(--grey-2);
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Topuva's WhatsApp number, filled in by contact.js next to "WhatsApp". */
[data-whatsapp-number] {
  margin-left: 0.3em;
}
