:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --pix: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 80% 45% at 85% -10%, rgba(79, 70, 229, 0.07), transparent),
    radial-gradient(ellipse 60% 35% at 10% 5%, rgba(5, 150, 105, 0.06), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

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

.nav-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: var(--text);
}

.nav-btn.active {
  color: #fff;
  background: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4338ca;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-inline {
  width: auto !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px !important;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-highlights {
  display: grid;
  gap: 14px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease;
}

.highlight-card:hover {
  border-color: var(--border-hover);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.highlight-card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Free Trial Section */
.trial-section {
  padding: 12px 0 28px;
}

.trial-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
}

.trial-pill {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
  margin-bottom: 10px;
}

.trial-copy h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.trial-copy p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trial-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trial-input-row {
  display: flex;
  gap: 10px;
}

.trial-input-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.trial-input-row input:focus {
  border-color: var(--pix);
}

.trial-btn {
  width: auto !important;
  white-space: nowrap;
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.trial-feedback {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.trial-feedback.ok {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.trial-feedback.err {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Section Heads */
.catalog-section {
  padding: 36px 0 56px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head.center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-col,
.checkout-col {
  min-width: 0;
  max-width: 100%;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.platform-tab:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.platform-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.platform-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
  transform: translateY(-3px);
}

.service-card.active {
  background: linear-gradient(180deg, #eef2ff, #ffffff);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.service-cta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.service-type {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.speed-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  white-space: nowrap;
}

.service-price {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
}

.service-price span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.service-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Checkout Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.checkout-card {
  position: sticky;
  top: 88px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.pix-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
}

.selected-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qty-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.preset-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.22);
}

/* Preview Box */
.preview-box {
  background: var(--surface-2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.preview-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--info);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.preview-thumb.is-post {
  border-radius: 10px;
}

.preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.preview-stat {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text);
}

.preview-stat span {
  color: var(--text-muted);
  font-weight: 500;
}

.preview-private-warn {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.preview-info {
  min-width: 0;
  flex: 1;
}

.preview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--info);
  text-transform: uppercase;
}

.preview-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.preview-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.preview-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.preview-link:hover {
  text-decoration: underline;
}

/* Total & Buttons */
.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.total-bar span {
  color: var(--text-muted);
  font-weight: 600;
}

.total-bar strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pix);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 13px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.94;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

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

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

/* Steps Section */
.steps-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4338ca;
  background: #e0e7ff;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.faq-container {
  max-width: 820px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  color: #818cf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

.faq-answer p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Meus Pedidos */
.orders-wrap {
  padding: 48px 20px 72px;
  max-width: 860px;
}

.orders-header {
  margin-bottom: 22px;
}

.orders-header h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.orders-header p {
  color: var(--text-muted);
}

.orders-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.orders-search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 0.95rem;
}

.orders-search-bar .btn-primary {
  width: auto;
  white-space: nowrap;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.order-main h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.order-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tone-success { background: #d1fae5; color: #065f46; }
.tone-warning { background: #fef3c7; color: #92400e; }
.tone-info { background: #e0f2fe; color: #075985; }
.tone-danger { background: #fee2e2; color: #991b1b; }
.tone-muted { background: #f1f5f9; color: #475569; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 12px;
  max-width: 340px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a,
.footer-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-col a:hover,
.footer-link-btn:hover {
  color: var(--text);
}

.footer-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  z-index: 1;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-checkout {
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.pix-qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  margin: 14px auto;
  display: block;
}

.brcode-box {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  resize: none;
  margin-bottom: 10px;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  opacity: 0.6;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .trial-card,
  .layout-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }
}

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

  .hero-section {
    padding: 32px 0 24px;
  }

  .orders-search-bar,
  .trial-input-row {
    flex-direction: column;
  }

  .orders-search-bar .btn-primary,
  .trial-btn {
    width: 100% !important;
  }

  .order-right {
    align-items: flex-start;
  }
}
