:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #64736f;
  --line: #d9e2df;
  --panel: #ffffff;
  --soft: #f3f7f4;
  --green: #2f8f61;
  --deep-green: #123b2c;
  --orange: #ef7f22;
  --cream: #fbfaf5;
  --yellow: #d39423;
  --blue: #2776c8;
  --danger: #b43b3b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef3f0;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar strong,
.topbar span {
  display: block;
}

.topbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-link,
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

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

.admin-link,
.secondary {
  color: var(--ink);
  background: #e4ece8;
  padding: 10px 14px;
}

.primary {
  color: #fff;
  background: var(--green);
  padding: 12px 16px;
}

.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.layout,
.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  padding: clamp(20px, 4vw, 44px) 0;
}

.kicker {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 3.8rem;
  line-height: 1;
  max-width: 760px;
}

h2 {
  font-size: 1.15rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.bike-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.bike-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

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

.stats span,
.metric {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats b,
.metric b {
  display: block;
  font-size: 1.25rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.72fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d4d0;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

input[type="file"] {
  padding: 9px;
}

.tenant-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tenant-logo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.checkout,
.section-head,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 700;
}

.message.error {
  color: var(--danger);
}

.pix-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed #a8bbb4;
  border-radius: 8px;
  background: var(--soft);
  overflow-wrap: anywhere;
}

.pix-box span,
.pix-box small,
.hint,
.section-head p {
  color: var(--muted);
}

.raffle-info {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.raffle-info ul {
  margin: 0 0 14px;
  padding-left: 20px;
  line-height: 1.7;
}

.numbers-section {
  margin-top: 22px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
}

.number-button {
  min-height: 42px;
  border: 1px solid #b8cbc3;
  background: #fff;
  color: var(--ink);
  padding: 0;
}

.number-button.selected {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.number-button.reserved {
  background: #fff3d8;
  color: #7a4d08;
}

.number-button.paid {
  background: #dcecff;
  color: #0b4b8c;
}

.number-button.taken {
  cursor: not-allowed;
  opacity: 0.85;
}

.dashboard {
  display: grid;
  gap: 16px;
}

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

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .section-head {
  padding: 18px 18px 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge.reserved {
  color: #7a4d08;
  background: #fff3d8;
}

.badge.paid {
  color: #0b4b8c;
  background: #dcecff;
}

.badge.expired,
.badge.released {
  color: #653232;
  background: #f2dddd;
}

.badge.active {
  color: #115237;
  background: #dff3e9;
}

.badge.suspended,
.badge.paused,
.badge.inactive {
  color: #7a4d08;
  background: #fff3d8;
}

.danger-action {
  margin-top: 8px;
  color: #7a2424;
  background: #f2dddd;
}

.login-panel {
  max-width: 430px;
  margin: 46px auto;
}

.admin-layout .panel h1 {
  font-size: 1.9rem;
  line-height: 1.1;
}

.platform-layout .login-panel {
  margin-top: 24px;
}

.platform-layout h1 {
  font-size: 2rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

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

.images-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.password-form label {
  margin-bottom: 0;
}

.password-form button {
  min-height: 43px;
}

.tenant-form label {
  margin-bottom: 0;
}

.tenant-form .wide-field {
  grid-column: span 3;
}

.tenant-form button {
  justify-self: start;
}

.image-preview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 14px;
}

.image-preview-row figure {
  margin: 0;
}

.image-preview-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.image-preview-row img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-link {
  display: inline-flex;
  margin: 0 6px 6px 0;
  padding: 8px 10px;
  color: var(--ink);
  background: #e4ece8;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.site-home {
  background: var(--cream);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(18px, calc((100% - 1180px) / 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 245, 0.95);
  border-bottom: 1px solid #e7e1d7;
  backdrop-filter: blur(12px);
}

.brand,
.site-nav,
.site-actions,
.hero-actions,
.proof-strip,
.preview-details,
.site-footer {
  display: flex;
}

.brand,
.site-nav a,
.nav-cta,
.muted-cta,
.primary-link,
.secondary-link,
.preview-button {
  color: inherit;
  text-decoration: none;
}

.brand {
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--deep-green);
  border-radius: 8px;
  font-weight: 900;
}

.ticket-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
}

.ticket-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

.ticket-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: var(--deep-green);
  opacity: 0.18;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.site-footer span {
  color: var(--muted);
}

.site-footer a {
  color: var(--deep-green);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #3e514b;
  font-weight: 700;
}

.nav-cta,
.primary-link,
.secondary-link,
.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-cta,
.secondary-link {
  padding: 10px 14px;
  border: 1px solid #cfd8d4;
  background: #fff;
}

.site-actions {
  align-items: center;
  gap: 8px;
}

.muted-cta {
  color: var(--muted);
  background: transparent;
}

.whatsapp-cta {
  color: #fff;
  border-color: #1f8f56;
  background: #1f8f56;
}

.primary-link,
.preview-button {
  padding: 12px 18px;
  color: #fff;
  background: var(--deep-green);
}

.landing-hero,
.landing-section,
.feature-band,
.pricing-section,
.demo-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 34px;
  padding: 32px 0 24px;
}

.landing-copy h1 {
  margin: 0 0 18px;
  max-width: 820px;
  color: var(--deep-green);
  font-size: 3.45rem;
  line-height: 0.98;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 690px;
  color: #52645e;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.proof-strip {
  grid-column: 1 / -1;
  gap: 0;
  border: 1px solid #e0d7ca;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.proof-strip div {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e0d7ca;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip dt {
  font-weight: 900;
}

.proof-strip dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.campaign-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid #dfd4c5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 59, 44, 0.14);
}

.preview-top {
  display: grid;
  gap: 5px;
  padding: 8px 4px 14px;
}

.preview-top span,
.preview-details span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.preview-top strong {
  font-size: 1.3rem;
}

.campaign-preview picture,
.campaign-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
}

.campaign-preview picture {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.campaign-preview img {
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.visual-preview picture,
.visual-preview img {
  aspect-ratio: 16 / 11;
}

.visual-preview img {
  object-fit: cover;
}

.preview-details {
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f4f7f5;
}

.preview-details strong {
  color: var(--deep-green);
}

.preview-button {
  width: 100%;
}

.landing-section,
.feature-band,
.pricing-section {
  padding: 38px 0 58px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 24px;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 24px;
  max-width: none;
}

.split-intro picture,
.split-intro img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.split-intro picture {
  border: 1px solid #ded8cd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 59, 44, 0.11);
}

.split-intro img {
  height: 100%;
  object-fit: cover;
}

.section-intro h2,
.demo-section h2,
.contact-section h2 {
  margin-bottom: 10px;
  color: var(--deep-green);
  font-size: 2.2rem;
  line-height: 1.08;
}

.section-intro p,
.demo-section p,
.contact-section p {
  color: var(--muted);
  line-height: 1.6;
}

.steps-grid,
.features-grid {
  display: grid;
  gap: 14px;
}

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

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

.steps-grid article,
.features-grid article,
.faq-list details,
.contact-box {
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.steps-grid article,
.features-grid article {
  padding: 18px;
}

.steps-grid span {
  color: var(--orange);
  font-weight: 900;
}

.steps-grid h3,
.features-grid h3 {
  margin: 12px 0 8px;
  color: var(--deep-green);
}

.steps-grid p,
.features-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-band {
  border-top: 1px solid #e8dfd4;
  border-bottom: 1px solid #e8dfd4;
}

.pricing-section {
  border-bottom: 1px solid #e8dfd4;
}

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

.price-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 280px;
  padding: 22px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.price-card strong {
  display: block;
  color: var(--deep-green);
  font-size: 2.25rem;
  line-height: 1;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price-card .primary-link,
.price-card .secondary-link {
  width: 100%;
  align-self: end;
  margin-top: auto;
}

.plan-label {
  width: fit-content;
  padding: 7px 10px;
  color: var(--deep-green);
  background: #eaf2ee;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-plan {
  border-color: #99b9a9;
  box-shadow: 0 18px 42px rgba(18, 59, 44, 0.12);
}

.featured-plan .plan-label {
  color: #fff;
  background: var(--green);
}

.demo-section,
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px;
  border-radius: 8px;
  background: var(--deep-green);
}

.demo-section {
  color: #fff;
}

.demo-section h2,
.demo-section p,
.demo-section .eyebrow {
  color: #fff;
}

.demo-section .primary-link {
  color: var(--deep-green);
  background: #fff;
}

.faq-section {
  padding-bottom: 42px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--deep-green);
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-section {
  margin-bottom: 42px;
  background: #fff;
  border: 1px solid #ded8cd;
}

.contact-box {
  min-width: 280px;
  padding: 18px;
  background: #f4f7f5;
}

.contact-box strong {
  color: var(--deep-green);
}

.contact-box .primary-link,
.contact-box .secondary-link {
  width: 100%;
  margin-top: 10px;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.legal-page h1 {
  max-width: none;
  color: var(--deep-green);
  font-size: 2.7rem;
  line-height: 1.05;
}

.legal-block {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fff;
}

.legal-block h2 {
  margin-bottom: 10px;
  color: var(--deep-green);
  font-size: 1.3rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-block ol {
  margin: 0;
  padding-left: 20px;
}

.legal-notice {
  margin-bottom: 16px;
}

.legal-notice p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.legal-notice a,
.terms-check a {
  color: var(--deep-green);
  font-weight: 800;
}

.terms-check {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
}

.terms-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.legal-admin-panel.accepted {
  border-color: #a8cdb8;
  background: #f8fcfa;
}

.site-footer {
  border-top: 1px solid #e7e1d7;
}

.period-controls {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  min-width: 150px;
}

.period-controls input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd8d1;
  border-radius: 6px;
}

.inactive-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef5f1;
}

.inactive-box {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid #d8e3dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(20, 46, 35, 0.12);
}

.inactive-box h1 {
  margin: 14px 0 10px;
  font-size: 2rem;
}

.inactive-box p {
  color: #53635b;
  line-height: 1.55;
}

.inactive-box small {
  display: block;
  margin-top: 18px;
  color: #6c7d74;
}

@media (max-width: 820px) {
  .hero,
  .content-grid,
  .landing-hero {
    grid-template-columns: 1fr;
  }

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

  h1,
  .landing-copy h1 {
    font-size: 2.8rem;
  }

  .site-header,
  .site-footer,
  .demo-section,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-actions {
    width: 100%;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .landing-hero {
    padding-top: 32px;
  }

  .proof-strip,
  .steps-grid,
  .features-grid,
  .pricing-grid,
  .tenant-form,
  .split-intro,
  .images-form,
  .password-form {
    grid-template-columns: 1fr;
  }

  .tenant-form .wide-field {
    grid-column: auto;
  }

  .image-preview-row {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    display: grid;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid #e0d7ca;
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .stats,
  .metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  h1,
  .landing-copy h1 {
    font-size: 2.25rem;
  }

  .section-intro h2,
  .demo-section h2,
  .contact-section h2,
  .legal-page h1 {
    font-size: 1.75rem;
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav-cta,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .demo-section,
  .contact-section {
    padding: 24px 18px;
  }
}
