:root {
  --primary: #175e64;
  --accent: #c59a3a;
  --ink: #172326;
  --paper: #f8f7f2;
  --white: #ffffff;
  --muted: #637074;
  --line: #d9ded9;
  --danger: #a13d3d;
  --success: #2f6f5e;
  --soft-green: #e6f0ec;
  --soft-gold: #f4ecd7;
  --soft-rose: #f3e2de;
  --shadow: 0 18px 50px rgba(23, 35, 38, 0.14);
  --radius: 8px;
  --font: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--paper);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 94, 100, 0.14);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.42rem;
  color: #263335;
  font-weight: 700;
}

label small,
small {
  color: var(--muted);
  font-weight: 600;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.topbar,
.simple-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.landing-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #1f1b12;
  font-weight: 900;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 750;
}

.nav-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #211a0b;
  box-shadow: 0 12px 28px rgba(197, 154, 58, 0.28);
}

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

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost-dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button-small {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
}

.button-full {
  width: 100%;
}

.icon-button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #152325;
  color: #fff;
}

.hero-product {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: scale(1.08);
  opacity: 0.74;
}

.hero-product.custom-hero-image {
  background-position: center;
  background-size: cover;
  transform: none;
  opacity: 0.9;
}

.hero-product.custom-hero-image > * {
  display: none;
}

.product-bar,
.product-shell {
  width: min(1120px, 92vw);
}

.product-bar {
  height: 2.2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.product-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #e8d08d;
}

.product-bar span:nth-child(2) {
  background: #e8a296;
}

.product-bar span:nth-child(3) {
  background: #9fd0bd;
}

.product-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(247, 246, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.product-menu {
  padding: 1.3rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  background: #e8eee7;
  border-right: 1px solid #d6ddd6;
}

.product-menu b {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-menu span {
  padding: 0.62rem 0.7rem;
  border-radius: var(--radius);
  background: #fff;
  color: #3d4a4d;
  font-weight: 800;
}

.product-screen {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-row div,
.kanban-preview div,
.timeline-preview {
  border: 1px solid #d7ddd6;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.metric-row strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.metric-row span,
.timeline-preview p {
  color: var(--muted);
  font-weight: 800;
}

.kanban-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.kanban-preview div {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.kanban-preview b {
  color: var(--ink);
}

.kanban-preview span,
.timeline-preview span {
  display: block;
  height: 2.8rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f3efd9, #e4efeb);
  border: 1px solid #dde2d7;
}

.timeline-preview {
  display: grid;
  gap: 0.65rem;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 31, 33, 0.95) 0%, rgba(18, 31, 33, 0.78) 43%, rgba(18, 31, 33, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 31, 33, 0.62) 0%, rgba(18, 31, 33, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 4rem auto 0;
  max-width: 760px;
  justify-self: center;
  transform: translateX(-210px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.checkout-copy h1,
.login-panel h1,
.master-header h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.98;
  max-width: 12ch;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: #edf3ef;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0;
}

.pricing-band {
  background: #fff;
}

.pricing-layout,
.split-content,
.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.pricing-layout h2,
.feature-band h2,
.implementation-band h2,
.faq-band h2,
.custom-section h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.pricing-layout p,
.custom-section p,
.implementation-band p,
.section-heading p {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.04rem;
}

.price-panel,
.notice-panel,
.checkout-card,
.login-panel,
.status-panel,
.portal-section,
.implementation-panel,
.editor-panel,
.preview-panel,
.orders-panel,
.support-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-panel,
.notice-panel {
  padding: 1.35rem;
}

.price-panel strong,
.notice-panel strong,
.implementation-panel strong {
  display: block;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1.1;
}

.price-label,
.notice-panel span,
.implementation-panel span,
.status-panel span,
.checkout-summary span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.price-panel ul {
  padding-left: 1.1rem;
  margin: 1.2rem 0;
  color: #344244;
}

.feature-band {
  background: var(--paper);
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.section-heading.compact h2 {
  font-size: 1.35rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.faq-item,
.order-card,
.builder-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.feature-card:nth-child(3n + 1) {
  background: var(--soft-green);
}

.feature-card:nth-child(3n + 2) {
  background: var(--soft-gold);
}

.feature-card:nth-child(3n) {
  background: var(--soft-rose);
}

.feature-card h3,
.faq-item h3,
.order-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.feature-card ul,
.custom-section ul {
  padding-left: 1.1rem;
  margin: 0;
}

.feature-card li,
.custom-section li {
  margin: 0.42rem 0;
}

.section-cta {
  margin-top: 1rem;
}

.custom-band {
  background: #fff;
}

.custom-band:nth-of-type(even) {
  background: #f1f5f1;
}

.custom-media {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7efd9, #e2efea 58%, #f0e0dc);
  overflow: hidden;
}

.custom-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.custom-placeholder {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.mini-dashboard {
  width: min(420px, 100%);
  display: grid;
  gap: 0.75rem;
}

.mini-dashboard div {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 35, 38, 0.12);
  min-height: 4rem;
}

.mini-dashboard div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  background: transparent;
  border: 0;
}

.mini-dashboard div:nth-child(2)::before,
.mini-dashboard div:nth-child(2)::after,
.mini-dashboard div:nth-child(2) span {
  content: "";
  display: block;
  min-height: 8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 35, 38, 0.12);
}

.implementation-band {
  background: #fff;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.support-float {
  position: fixed;
  z-index: 9;
  right: 1rem;
  bottom: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 950;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.support-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 1.2rem;
}

.support-dialog::backdrop {
  background: rgba(23, 35, 38, 0.52);
}

.dialog-close-form {
  display: flex;
  justify-content: flex-end;
}

.support-form {
  display: grid;
  gap: 1rem;
}

.app-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff 0%, var(--paper) 44%, #edf3ef 100%);
}

.checkout-shell,
.portal-shell,
.master-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.checkout-copy {
  position: sticky;
  top: 2rem;
  padding-top: 2rem;
}

.checkout-copy h1,
.login-panel h1 {
  color: var(--ink);
  max-width: 13ch;
}

.checkout-copy p,
.login-panel p {
  color: var(--muted);
  max-width: 620px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.checkout-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem;
}

.checkout-summary strong {
  display: block;
  color: var(--primary);
  margin-top: 0.25rem;
}

.secure-note {
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
}

.checkout-card,
.login-panel,
.editor-panel,
.preview-panel,
.orders-panel {
  padding: 1.25rem;
}

.checkout-card form,
.login-panel form,
.editor-panel {
  display: grid;
  gap: 1rem;
}

.plan-picker {
  display: grid;
  gap: 0.7rem;
}

.plan-picker label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: #fff;
  cursor: pointer;
}

.plan-picker input {
  width: auto;
  margin-top: 0.2rem;
}

.plan-picker b,
.plan-picker small {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  font-weight: 650;
}

.checkbox-line input {
  width: auto;
  margin-top: 0.25rem;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.form-message.success {
  color: var(--success);
}

.payment-result {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.portal-shell {
  max-width: 1060px;
}

.login-panel {
  width: min(520px, 100%);
  margin: 2rem auto;
}

.client-dashboard {
  display: grid;
  gap: 1rem;
}

.dashboard-heading,
.master-header,
.builder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dashboard-heading h1,
.master-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.status-panel strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.45rem;
  color: var(--primary);
}

.portal-section,
.implementation-panel,
.status-panel {
  padding: 1rem;
}

.orders-list {
  display: grid;
  gap: 1rem;
}

.order-card {
  display: grid;
  gap: 0.85rem;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.order-meta div {
  background: #f7f8f5;
  border-radius: var(--radius);
  padding: 0.75rem;
}

.order-meta span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.master-shell {
  max-width: 1260px;
}

.master-login {
  margin-top: 4rem;
}

.master-app {
  display: grid;
  gap: 1rem;
}

.master-actions {
  display: flex;
  gap: 0.75rem;
}

.master-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tab-button.active {
  color: var(--ink);
  background: var(--soft-gold);
}

.master-tab {
  display: none;
}

.master-tab.active {
  display: block;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: 1rem;
  align-items: start;
}

.editor-panel.narrow {
  max-width: 760px;
}

.preview-panel {
  position: sticky;
  top: 1rem;
}

.preview-panel iframe {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.upload-line {
  display: grid;
  grid-template-columns: 1fr minmax(210px, auto);
  gap: 0.6rem;
  align-items: center;
}

.section-builder,
.faq-builder,
.feature-builder {
  display: grid;
  gap: 0.75rem;
}

.builder-item {
  display: grid;
  gap: 0.75rem;
}

.builder-item.dragging {
  opacity: 0.55;
}

.builder-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.drag-handle {
  cursor: grab;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f7f2;
  padding: 0.45rem 0.7rem;
  font-weight: 950;
}

.webhook-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f5;
}

.webhook-box code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.orders-table {
  display: grid;
  gap: 0.75rem;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(120px, 0.8fr));
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: #fff;
}

.order-row span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
}

.order-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--soft-gold);
  color: #3d3112;
  font-weight: 900;
}

.badge.paid,
.badge.active {
  background: var(--soft-green);
  color: #173d32;
}

.badge.overdue,
.badge.canceled,
.badge.asaas_error {
  background: var(--soft-rose);
  color: #71312b;
}

@media (max-width: 1040px) {
  .hero-content {
    transform: none;
    justify-self: start;
  }

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

  .builder-layout,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-copy,
  .preview-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-product {
    transform: scale(1.25) translateX(120px);
    opacity: 0.54;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-menu {
    display: none;
  }

  .hero-content {
    margin-top: 5rem;
  }

  .hero h1,
  .checkout-copy h1,
  .login-panel h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .pricing-layout,
  .split-content,
  .custom-section,
  .checkout-summary,
  .status-grid,
  .form-grid,
  .faq-list,
  .order-meta {
    grid-template-columns: 1fr;
  }

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

  .section-inner {
    padding: 3.5rem 0;
  }

  .upload-line {
    grid-template-columns: 1fr;
  }

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

  .dashboard-heading,
  .master-header,
  .builder-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .master-actions,
  .result-actions {
    width: 100%;
  }

  .master-actions .button,
  .result-actions .button {
    flex: 1;
  }
}
