:root {
  color-scheme: light;
  --forest: #173b2b;
  --forest-deep: #102c20;
  --green: #3f7552;
  --green-soft: #e6eee5;
  --sage: #9aaf91;
  --cream: #f5f2e9;
  --paper: #fffefa;
  --sand: #e8dfcc;
  --gold: #d6a45f;
  --ink: #203329;
  --muted: #68766b;
  --line: #e6e7dd;
  --danger: #a63d32;
  --success: #2f7047;
  --shadow: 0 22px 60px rgba(24, 53, 37, .09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

/* Identidade visual */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.brand-lockup strong {
  font-weight: 800;
}

.brand-lockup-light {
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  order: 1;
}

.eyebrow {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.5;
}

.eyebrow-light {
  color: #d7bd8e;
}

/* Login */
.login-screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 54px 6vw 24px;
  background: radial-gradient(ellipse at 15% 15%, rgba(91, 130, 91, .28), transparent 34%), radial-gradient(ellipse at 90% 85%, rgba(214, 164, 95, .13), transparent 28%), var(--forest-deep);
  color: #fff;
}

.login-decoration {
  position: absolute;
  border: 1px solid rgba(226, 213, 181, .12);
  border-radius: 50%;
  pointer-events: none;
}

.login-decoration-one {
  width: 540px;
  height: 540px;
  top: -310px;
  right: -110px;
}

.login-decoration-two {
  width: 700px;
  height: 700px;
  bottom: -560px;
  left: -250px;
}

.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: clamp(48px, 9vw, 140px);
  width: min(1120px, 100%);
  margin: auto;
}

.login-intro {
  max-width: 590px;
}

.login-intro .brand-lockup {
  margin-bottom: 76px;
}

.login-intro .eyebrow {
  margin-bottom: 18px;
}

.login-intro h1 {
  max-width: 570px;
  margin: 0;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.login-intro h1 em {
  color: #d7bd8e;
  font-weight: 500;
}

.login-intro>p {
  max-width: 510px;
  margin: 24px 0 30px;
  color: #c5d0c5;
  font-size: 16px;
}

.login-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5e9df;
  font-size: 13px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(214, 164, 95, .17);
  color: #e2bd82;
  font-weight: 800;
}

.login-card {
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.login-card-heading {
  margin-bottom: 28px;
  text-align: center;
}

.login-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--green-soft);
  font-size: 25px;
}

.login-card-heading .eyebrow {
  margin-bottom: 7px;
}

.login-card-heading h2 {
  margin: 0;
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.login-card-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d9dfd6;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.login-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 117, 82, .13);
}

.login-field input::placeholder {
  color: #a2aaa0;
}

#turnstile-box {
  display: flex;
  justify-content: center;
  min-height: 66px;
  margin: 4px 0 12px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.login-btn:hover {
  transform: translateY(-1px);
  background: var(--green);
}

.login-btn:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.login-btn span {
  font-size: 20px;
}

.btn-esqueci {
  display: block;
  margin: 15px auto 0;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.login-error,
.login-success {
  min-height: 0;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.login-error:not(:empty) {
  color: var(--danger);
}

.login-success:not(:empty) {
  color: var(--success);
}

.login-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7b887d;
  font-size: 10px;
}

.login-security span {
  color: var(--green);
  font-size: 10px;
}

.login-copyright {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 35px auto 0;
  color: #8da092;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}

.login-copyright span {
  padding: 0 8px;
  color: var(--gold);
}

.login-card .login-credit {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #7b887d;
  text-align: center;
  font-size: 12px;
}

.login-card .login-credit a {
  color: var(--green);
}

.login-credit a:hover,
.footer-credit a:hover {
  color: #ebcc97;
}

/* Área do cliente */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 44, 32, .97);
  color: #fff;
  box-shadow: 0 4px 18px rgba(16, 44, 32, .08);
}

.topbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  width: min(1160px, calc(100% - 48px));
  min-height: 76px;
  margin: auto;
}

.topbar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4ddcf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.topbar-inner>.brand-lockup {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.topbar-nav a {
  color: #d1dbd1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: #fff;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  background: #dfbd83;
  color: #183b2a;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-cta:hover {
  background: #ebcc97;
}

.menu-toggle {
  display: none;
}

.topbar-nav a:focus-visible,
.topbar-cta:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #d6a45f;
  outline-offset: 3px;
}

.app-page {
  display: none;
  min-height: calc(100vh - 76px);
  animation: page-enter .28s ease both;
}

.app-page.is-active {
  display: block;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-shell {
  padding: 1px 0 42px;
}

.points-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid #dfe3d8;
}

.points-summary .eyebrow {
  margin-bottom: 4px;
}

.points-summary h2 {
  margin: 0;
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: 25px;
  font-weight: 600;
}

.points-balance {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.points-balance span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.points-balance strong {
  color: var(--forest);
  font-size: 26px;
  line-height: 1.2;
}

.content-page-shell {
  padding-bottom: 60px;
}

.product-page-shell {
  padding: 70px 0 90px;
}

.guides-page-shell .pdf-section {
  padding-top: 70px;
}

.ranking-page-shell {
  padding: 70px 0 90px;
}

.community-ranking-feedback {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.community-ranking-feedback.is-success {
  color: var(--success);
}

.community-ranking-feedback.is-error {
  color: var(--danger);
}

.community-ranking-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e4d9;
  border-radius: 7px;
  background: var(--paper);
}

.community-ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.community-ranking-table th,
.community-ranking-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e9ebe3;
  font-size: 13px;
}

.community-ranking-table th {
  background: #edf1e9;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.community-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.community-ranking-table tbody tr:hover {
  background: #fafbf7;
}

.community-ranking-table td:first-child {
  width: 100px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.community-ranking-table td:last-child {
  color: var(--forest);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.topbar-nav a[aria-current="page"] {
  color: #fff;
}

.status-dot,
.lote-badge .ponto {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 164, 95, .13);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 390px;
  overflow: hidden;
  padding: 70px max(6vw, calc((100vw - 1160px)/2));
  background: radial-gradient(ellipse at 85% 20%, rgba(154, 175, 145, .22), transparent 32%), linear-gradient(115deg, #e9eee4 0%, #f5f2e9 64%, #efe5d2 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content .eyebrow {
  margin-bottom: 17px;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.hero h1 em {
  color: var(--green);
  font-weight: 500;
}

.hero-content>p {
  max-width: 570px;
  margin: 20px 0 24px;
  color: #5d6d60;
  font-size: 15px;
}

.lote-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 0 15px;
  border: 1px solid #d8dfd2;
  border-radius: 99px;
  background: rgba(255, 255, 255, .58);
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: max(8vw, calc((100vw - 1160px)/2));
  display: grid;
  place-items: center;
  width: 290px;
  height: 290px;
  transform: translateY(-50%);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(63, 117, 82, .22);
  border-radius: 50%;
}

.orbit-one {
  width: 210px;
  height: 210px;
}

.orbit-two {
  width: 280px;
  height: 280px;
  border-style: dashed;
}

.hero-leaf {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 48% 52% 50% 50%;
  background: linear-gradient(145deg, #5d8964, #234a34);
  box-shadow: 0 25px 50px rgba(31, 73, 46, .2);
  color: #e9d6ae;
  font-size: 75px;
}

.hero-art-caption {
  position: absolute;
  bottom: -2px;
  color: #66816a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}

.content-shell {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
}

.video-section {
  padding: 76px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.section-index {
  padding-bottom: 5px;
  color: #9a9f91;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  white-space: nowrap;
}

.video-card {
  padding: 10px;
  border: 1px solid #e6e5d9;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #152d21;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 32px 36px;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 18px 40px rgba(23, 59, 43, .13);
}

.community-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(222, 195, 144, .4);
  border-radius: 50%;
  color: #e0bd82;
  font-size: 27px;
}

.community-copy {
  flex: 1;
}

.community-copy .eyebrow {
  margin-bottom: 5px;
}

.community-copy h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 27px;
  font-weight: 600;
}

.community-copy p {
  max-width: 520px;
  margin: 5px 0 0;
  color: #c4d1c5;
  font-size: 12px;
}

.btn-grupo,
.btn-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 47px;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  background: #dfbd83;
  color: #183b2a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s, background .2s;
}

.btn-grupo:hover,
.btn-whats:hover {
  transform: translateY(-2px);
  background: #ebcc97;
}

.welcome-note {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  max-width: 820px;
  margin: 54px auto 0;
  padding: 27px 30px;
  border: 1px solid #e6e2d4;
  border-radius: 12px;
  background: rgba(255, 254, 250, .75);
}

.quote-mark {
  color: #c6a16b;
  font-family: 'Fraunces', serif;
  font-size: 62px;
  line-height: .9;
}

.welcome-note p {
  margin: 0;
  color: #59665a;
  font-size: 13px;
}

.welcome-note b {
  color: var(--forest);
}

.assinatura {
  margin-top: 13px;
  color: var(--forest);
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-style: italic;
}

.assinatura span {
  padding: 0 5px;
  color: var(--gold);
}

.promo-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 34px 40px;
  border-left: 5px solid #f4cb45;
  background: radial-gradient(ellipse at 100% 0%, rgba(244, 203, 69, .13), transparent 38%), #18231b;
  color: #fff;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 13px;
  padding: 0 11px;
  background: #f4cb45;
  color: #18231b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.promo-banner h1 {
  max-width: 700px;
  margin: 0;
  color: #f4cb45;
  font-family: 'Fraunces', serif;
  font-size: 37px;
  font-weight: 600;
  line-height: 1.15;
}

.promo-banner p {
  max-width: 570px;
  margin: 12px 0 0;
  color: #e0e5dc;
  font-size: 14px;
}

.products-section {
  padding: 18px 0 0;
}

.product-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid #dfe3d8;
  border-radius: 8px;
  background: #e9ece4;
}

.product-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.product-tab.is-active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 44, 32, .16);
}

.product-tab:focus-visible,
.product-order:focus-visible {
  outline: 3px solid #d6a45f;
  outline-offset: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d3dfd0;
  border-radius: 8px;
  background: var(--paper);
}

.product-card img {
  grid-row: span 2;
  width: 72px;
  height: 82px;
  object-fit: contain;
}

.product-details {
  min-width: 0;
}

.product-details h3 {
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  line-height: 1.3;
}

.product-details p {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-price {
  color: var(--forest);
  font-size: 18px;
  line-height: 1.2;
}

.product-order {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--forest);
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.product-order:hover {
  background: var(--green);
}

.pdf-section {
  padding: 82px 0 90px;
}

.guides-heading {
  align-items: end;
  margin-bottom: 30px;
}

.guides-heading .section-heading p,
.guides-heading p {
  max-width: 500px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e4d9;
  border-radius: 12px;
  background: var(--paper);
  color: var(--forest);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.pdf-card:hover {
  transform: translateY(-3px);
  border-color: #a8bba4;
  box-shadow: 0 13px 28px rgba(24, 53, 37, .08);
}

.pdf-card:focus-visible,
.btn-grupo:focus-visible,
.btn-whats:focus-visible,
.btn-sair:focus-visible,
.login-btn:focus-visible {
  outline: 3px solid #d6a45f;
  outline-offset: 3px;
}

.pdf-card img {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 9px;
  background: #f0f0e8;
  object-fit: cover;
}

.pdf-card .nome {
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.pdf-card .nome br+* {
  color: #899286;
  font-size: 10px;
  font-weight: 500;
}

.site-footer {
  padding: 54px max(6vw, calc((100vw - 1050px)/2)) 20px;
  background: var(--forest-deep);
  color: #fff;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-contact {
  max-width: 420px;
}

.footer-contact .eyebrow {
  margin-bottom: 8px;
}

.footer-contact h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 31px;
  font-weight: 600;
}

.footer-contact p {
  margin: 6px 0 19px;
  color: #bdc9be;
  font-size: 12px;
}

.btn-whats {
  background: var(--green);
  color: #fff;
}

.btn-whats:hover {
  background: #548461;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #9eafa0;
  font-size: 12px;
}

.footer-credit {
  white-space: nowrap;
}

.btn-sair {
  padding: 7px 0 7px 12px;
  border: 0;
  background: transparent;
  color: #d7c49f;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 35px;
  }

  .login-card {
    padding: 30px;
  }

  .topbar-inner {
    gap: 16px;
  }

  .topbar-nav {
    gap: 14px;
  }

  .topbar-nav a {
    font-size: 11px;
  }

  .topbar-cta {
    padding: 0 11px;
  }

  .hero-art {
    right: 3vw;
    opacity: .55;
  }

  .hero-content {
    max-width: 650px;
  }

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

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

@media (max-width: 700px) {
  .login-screen {
    padding: 30px 20px 18px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(440px, 100%);
  }

  .login-intro .brand-lockup {
    margin-bottom: 35px;
  }

  .login-intro h1 {
    max-width: 440px;
    font-size: clamp(37px, 10vw, 49px);
  }

  .login-intro>p {
    margin: 14px 0 17px;
    font-size: 13px;
  }

  .login-note {
    font-size: 11px;
  }

  .login-card {
    padding: 25px 21px;
    border-radius: 15px;
  }

  .login-card-heading {
    margin-bottom: 22px;
  }

  .login-card-heading h2 {
    font-size: 30px;
  }

  .login-copyright {
    margin-top: 25px;
    text-align: center;
  }

  .topbar-inner {
    width: calc(100% - 36px);
    min-height: 65px;
  }

  .topbar-inner {
    display: flex;
    justify-content: space-between;
  }

  .app-page {
    min-height: calc(100vh - 65px);
  }

  .topbar-nav {
    position: absolute;
    top: 100%;
    left: -18px;
    right: -18px;
    display: none;
    align-items: stretch;
    padding: 8px 18px 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: var(--forest-deep);
    box-shadow: 0 14px 22px rgba(16, 44, 32, .16);
  }

  .topbar-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .topbar-nav a {
    padding: 11px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
  }

  .topbar-nav a:last-child {
    border-bottom: 0;
  }

  .topbar-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    order: -1;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 58px 22px 52px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(39px, 10vw, 53px);
  }

  .hero-content>p {
    max-width: 500px;
    font-size: 13px;
  }

  .hero-art {
    right: -100px;
    width: 230px;
    height: 230px;
    opacity: .17;
  }

  .hero-leaf {
    width: 120px;
    height: 120px;
    font-size: 58px;
  }

  .content-shell {
    width: calc(100% - 36px);
  }

  .video-section {
    padding-top: 53px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-index {
    padding-top: 3px;
    font-size: 8px;
  }

  .video-card {
    padding: 6px;
    border-radius: 12px;
  }

  .video-wrap {
    border-radius: 8px;
  }

  .community-card {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding: 23px;
  }

  .points-summary {
    padding: 22px 0;
  }

  .points-summary h2 {
    font-size: 21px;
  }

  .points-balance strong {
    font-size: 23px;
  }

  .community-icon {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    font-size: 22px;
  }

  .community-copy {
    flex-basis: calc(100% - 60px);
  }

  .community-copy h2 {
    font-size: 24px;
  }

  .community-copy p {
    font-size: 11px;
  }

  .btn-grupo {
    width: 100%;
  }

  .welcome-note {
    grid-template-columns: 28px 1fr;
    gap: 9px;
    margin-top: 34px;
    padding: 20px 17px;
  }

  .quote-mark {
    font-size: 47px;
  }

  .welcome-note p {
    font-size: 12px;
  }

  .pdf-section {
    padding: 61px 0 65px;
  }

  .product-page-shell {
    padding: 52px 0 65px;
  }

  .promo-banner {
    margin-bottom: 38px;
    padding: 26px 22px;
  }

  .promo-banner h1 {
    font-size: 29px;
  }

  .promo-banner p {
    font-size: 13px;
  }

  .guides-page-shell .pdf-section {
    padding-top: 52px;
  }

  .ranking-page-shell {
    padding: 52px 0 65px;
  }

  .community-ranking-table th,
  .community-ranking-table td {
    padding: 11px 12px;
  }

  .products-section {
    padding-top: 8px;
  }

  .product-tabs {
    display: flex;
    width: 100%;
  }

  .product-tab {
    flex: 1;
    padding: 0 8px;
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .product-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 3px 12px;
    padding: 11px;
  }

  .product-card img {
    width: 62px;
    height: 74px;
  }

  .product-order {
    min-height: 34px;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .pdf-card {
    padding: 11px;
  }

  .pdf-card img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .site-footer {
    padding: 40px 22px 17px;
  }

  .footer-main {
    display: block;
    padding-bottom: 30px;
  }

  .footer-contact {
    margin-top: 35px;
  }

  .footer-contact h2 {
    font-size: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .btn-sair {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* Avisos exclusivos da prévia local */
.preview-banner {
  position: relative;
  z-index: 5;
  padding: 10px 18px;
  background: #f3e7cb;
  color: #59421f;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed #9aaf91;
  border-radius: 12px;
  background: #edf1e8;
  color: #526653;
  text-align: center;
  font-size: 13px;
}

/* ───── Consentimento (Política de Privacidade) ───── */
.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.login-ajuda {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: underline;
  opacity: 0.85;
}

.login-ajuda:hover {
  opacity: 1;
}

.login-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.login-consent a,
.footer-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

.footer-link {
  color: #d7c49f;
  white-space: nowrap;
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 44, 32, .78);
  overflow-y: auto;
}

.consent-box {
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.consent-box h2 {
  margin: 0 0 10px;
  color: var(--forest);
}

.consent-box p {
  margin: 0 0 16px;
  font-size: 14px;
}

/* Página da Política de Privacidade */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.legal-main h1 {
  margin: 8px 0 6px;
  color: var(--forest);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
}

.legal-main h2 {
  margin: 34px 0 8px;
  color: var(--forest);
  font-size: 20px;
}

.legal-main p,
.legal-main li {
  font-size: 15px;
}

.legal-main ul {
  padding-left: 20px;
}

.legal-main a {
  color: var(--green);
  font-weight: 700;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
}

.legal-voltar {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* ───── Avatar, emblemas e perfil ───── */
[data-nivel] { --nivel: #c9cfc3; }
[data-nivel="bronze"] { --nivel: #c27a3a; }
[data-nivel="prata"] { --nivel: #b4bec7; }
[data-nivel="ouro"] { --nivel: #e3b24d; }
[data-nivel="diamante"] { --nivel: #4fc3e8; }

.topbar-acoes { display: flex; align-items: center; gap: 16px; }

.avatar-btn { padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.avatar-btn:focus-visible { outline: 3px solid #d6a45f; outline-offset: 4px; }

.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--nivel);
}
.avatar[data-nivel="diamante"] { box-shadow: 0 0 0 3px var(--nivel), 0 0 14px var(--nivel); }
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* a foto só aparece; não dá para arrastar nem abrir o menu "salvar imagem" */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.avatar-mini { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px var(--nivel); }
.avatar-mini[data-nivel="diamante"] { box-shadow: 0 0 0 2px var(--nivel), 0 0 9px var(--nivel); }
.avatar-grande { width: 88px; height: 88px; font-size: 34px; box-shadow: 0 0 0 4px var(--nivel); }
.avatar-grande[data-nivel="diamante"] { box-shadow: 0 0 0 4px var(--nivel), 0 0 18px var(--nivel); }

.emblema {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--nivel);
  color: #20252a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.emblema[data-nivel="nenhum"] { background: var(--green-soft); color: var(--muted); }

.rank-nome { display: flex; align-items: center; gap: 12px; }
.rank-nome .emblema { margin-top: 0; }

.perfil-box { position: relative; max-width: 460px; }
.perfil-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.perfil-fechar:hover { background: var(--green-soft); }
.perfil-topo { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-right: 30px; }
.perfil-topo h2 { margin: 0; }
.perfil-nome-completo { margin: 2px 0 0 !important; color: var(--muted); font-size: 13px !important; }
.perfil-barra { height: 9px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.perfil-barra span { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--nivel); transition: width .4s; }
.perfil-progresso p { margin: 8px 0 0; font-size: 13px; }
.perfil-progresso .perfil-acumulado { color: var(--muted); font-size: 12px; }
.perfil-foto { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.perfil-foto .login-btn { margin-top: 12px; }
.perfil-faixas { margin: 16px 0 6px !important; color: var(--muted); font-size: 12px !important; }
.perfil-sair { display: block; margin: 8px auto 0; }

@media (max-width: 700px) {
  .topbar-acoes { margin-left: auto; margin-right: 12px; }
  .avatar { width: 36px; height: 36px; font-size: 15px; }
}
.perfil-regra { margin: 10px 0 0 !important; color: var(--muted); font-size: 12px !important; }
.perfil-foto-status { margin: 0 0 12px; padding: 9px 12px; border-radius: 6px; background: var(--green-soft); color: var(--forest); font-size: 13px; }
.perfil-foto-status.is-ok { background: #e1f1e5; color: var(--success); }
.perfil-foto-status.is-erro { background: #f7e4e1; color: var(--danger); }

/* ───── página Meu XP ───── */
.points-link { margin-top: 4px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: underline; }
.xp-page-shell { padding: 70px 0 90px; }
.xp-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 26px; }
.xp-numero { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.xp-numero span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.xp-numero strong { display: block; margin-top: 4px; color: var(--forest); font-size: 30px; line-height: 1.1; }
.xp-sub { margin: 30px 0 10px; color: var(--forest); font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.xp-tabela { width: 100%; max-width: 520px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.xp-tabela th, .xp-tabela td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.xp-tabela th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.xp-tabela td:last-child, .xp-tabela th:last-child { text-align: right; font-weight: 700; color: var(--forest); }
.xp-exemplo, .xp-texto { margin: 10px 0 0; font-size: 14px; line-height: 1.6; max-width: 640px; }
.xp-regras { margin: 0; padding-left: 20px; max-width: 640px; font-size: 14px; line-height: 1.6; }
.xp-regras li { margin-bottom: 6px; }
.xp-extrato { list-style: none; margin: 8px 0 0; padding: 0; max-width: 640px; }
.xp-mov { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.xp-mov strong { display: block; font-size: 14px; }
.xp-mov span { color: var(--muted); font-size: 12px; }
.xp-mov b { white-space: nowrap; font-size: 15px; }
.xp-mov.is-mais b { color: var(--success); }
.xp-mov.is-menos b { color: var(--danger); }

/* ───── editor de foto e foto ampliada ───── */
.avatar-ampliar { flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: zoom-in; }
.avatar-ampliar:disabled { cursor: default; }
.avatar-ampliar:focus-visible { outline: 3px solid #d6a45f; outline-offset: 4px; }
.editor-overlay, .viewer-overlay { z-index: 110; }
.editor-box { max-width: 400px; }
.editor-area { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto 14px; overflow: hidden; border-radius: 8px; background: #102c20; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.editor-area:active { cursor: grabbing; }
.editor-area canvas { display: block; width: 100%; height: 100%; }
.editor-mascara { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(16, 44, 32, .62), inset 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; }
.editor-zoom { display: flex; align-items: center; gap: 10px; margin: 0 auto 14px; max-width: 320px; color: var(--forest); font-weight: 800; }
.editor-zoom input { flex: 1; accent-color: var(--green); }
.viewer-overlay { flex-direction: column; background: rgba(8, 24, 17, .94); cursor: zoom-out; }
.viewer-fechar { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.viewer-fig { margin: 0; text-align: center; }
.viewer-img { width: min(86vw, 70vh, 460px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 12px; background: var(--green); box-shadow: 0 0 0 4px var(--nivel), 0 24px 60px rgba(0, 0, 0, .5); cursor: default; }
.viewer-img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.viewer-fig figcaption { margin-top: 18px; color: #fff; font-size: 15px; font-weight: 700; }

/* ───────── vitrine: aviso de demonstração e avisos na tela ───────── */
.preview-banner { position: relative; z-index: 5; padding: 10px 18px; background: #f3e7cb; color: #59421f; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.preview-banner a { color: inherit; text-decoration: underline; }
.preview-placeholder { display: grid; place-items: center; min-height: 220px; padding: 24px; border: 1px dashed #9aaf91; border-radius: 12px; background: #edf1e8; color: #526653; text-align: center; font-size: 13px; }
.demo-toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; transform: translateX(-50%); border-radius: 8px; background: #173b2b; color: #fff; box-shadow: 0 12px 36px rgba(15,40,28,.32); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.demo-toast[hidden] { display: none; }
.demo-reset { display: block; margin: 8px auto 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.footer-links .footer-link { width: auto; margin: 0; }
