:root {
  --bg: #f4f6fb;
  --bg-soft: #fbfcff;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --ink: #10131b;
  --ink-soft: #5b6474;
  --line: rgba(14, 18, 30, 0.08);
  --line-strong: rgba(14, 18, 30, 0.14);
  --accent: #2962ff;
  --accent-soft: rgba(41, 98, 255, 0.12);
  --shadow: 0 18px 48px rgba(10, 18, 40, 0.08);
  --shadow-strong: 0 30px 70px rgba(10, 18, 40, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 680px at 12% 0%, rgba(41, 98, 255, 0.14), transparent 58%),
    radial-gradient(900px 520px at 92% 8%, rgba(17, 189, 169, 0.1), transparent 58%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

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

.page-shell {
  width: min(1200px, calc(100vw - 36px));
  margin: 18px auto 36px;
}

.topbar,
.hero-strip,
.panel,
.preview-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #171c28, #2a3244);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 13px;
}

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

.mode-pill,
.ghost-link,
.mini-stat,
.mode-note,
.checkout-status {
  border-radius: 999px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(14, 18, 30, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.mode-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
  padding: 28px 30px;
  border-radius: 28px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.panel-kicker,
.price-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.panel-kicker {
  color: var(--accent);
}

.hero-copy h1 {
  margin: 12px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 680px;
}

.hero-cards {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
}

.mini-stat {
  padding: 18px 20px;
  border: 1px solid rgba(14, 18, 30, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.88));
  box-shadow: 0 12px 28px rgba(10, 18, 40, 0.06);
}

.mini-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.mini-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.editor-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-right: 4px;
}

.editor-sidebar::-webkit-scrollbar {
  width: 8px;
}

.editor-sidebar::-webkit-scrollbar-thumb {
  background: rgba(14, 18, 30, 0.14);
  border-radius: 999px;
}

.panel {
  border-radius: var(--radius);
  padding: 22px;
}

.panel-tight {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.preview-toolbar h2 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.helper-text,
#layoutSubtitle,
.field span,
.mode-note span,
.checkout-status,
.price-card p,
.feedback-bar {
  color: var(--ink-soft);
}

.helper-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

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

.field-grid--single {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(247, 249, 255, 0.88);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(41, 98, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.09);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

#assistantPrompt {
  min-height: 260px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.price-btn {
  border-radius: 16px;
  border: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.price-btn:hover,
.ghost-link:hover,
.nav-arrow:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: linear-gradient(135deg, #2457f5, #3f87ff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(41, 98, 255, 0.25);
}

.secondary-btn {
  background: rgba(14, 18, 30, 0.05);
  color: var(--ink);
  border: 1px solid rgba(14, 18, 30, 0.06);
}

.secondary-btn:disabled,
.primary-btn:disabled,
.price-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  border-radius: 24px;
  border: 1px dashed rgba(41, 98, 255, 0.38);
  background: linear-gradient(180deg, rgba(41, 98, 255, 0.06), rgba(41, 98, 255, 0.12));
  text-align: center;
  padding: 24px;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: rgba(41, 98, 255, 0.74);
  background: linear-gradient(180deg, rgba(41, 98, 255, 0.1), rgba(41, 98, 255, 0.18));
}

.dropzone strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.dropzone span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(41, 98, 255, 0.12);
  color: var(--accent);
}

.dropzone-icon svg {
  width: 26px;
  height: 26px;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 14px;
  margin-top: 14px;
  border-radius: 20px;
  background: rgba(14, 18, 30, 0.03);
  border: 1px solid rgba(14, 18, 30, 0.05);
  text-align: center;
}

.logo-preview span {
  color: var(--ink-soft);
  font-size: 13px;
}

.logo-preview img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 249, 255, 0.88);
  padding: 8px 10px;
}

.color-field input[type="color"] {
  width: 52px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
}

.color-field code {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.preset-group + .preset-group {
  margin-top: 12px;
}

.preset-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(14, 18, 30, 0.08);
}

.mode-note,
.checkout-status {
  padding: 14px 16px;
  background: rgba(14, 18, 30, 0.04);
  border: 1px solid rgba(14, 18, 30, 0.06);
  font-size: 13px;
  line-height: 1.5;
}

.mode-note {
  display: grid;
  gap: 4px;
}

.mode-note strong {
  font-size: 13px;
}

.preview-panel {
  border-radius: 36px;
  padding: 26px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#layoutSubtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-nav {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.nav-arrow {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.nav-arrow svg {
  width: 22px;
  height: 22px;
}

.dot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dot-btn {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(14, 18, 30, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.dot-btn.active {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(41, 98, 255, 0.12);
}

.card-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

#cardSideLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 18, 30, 0.05);
  color: var(--ink);
}

.card-stage {
  display: grid;
  place-items: center;
  padding: 12px 0 8px;
}

.business-card-shell {
  width: min(100%, 960px);
  aspect-ratio: 85 / 55;
  perspective: 2400px;
  outline: none;
}

.business-card {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
  cursor: pointer;
}

.business-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  container-type: inline-size;
}

/* overflow isolado num wrapper interno para nao interferir com backface-visibility no iOS Safari */
.card-face-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
}

.card-face--back {
  transform: rotateY(180deg);
}

.export-sandbox {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.business-card-export {
  width: 1200px;
  aspect-ratio: 85 / 55;
}

.business-card-export .card-face {
  position: relative;
  inset: auto;
  transform: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.business-card-export .card-face-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
}

.theme-dark {
  color: #f7f9ff;
}

.theme-paper {
  color: #10131b;
}

.layout-shell,
.layout-stack,
.layout-cover,
.mosaic-grid,
.contrast-grid {
  position: relative;
  height: 100%;
  z-index: 2;
}

.layout-shell {
  padding: 6.6cqi;
}

.layout-stack {
  display: flex;
  flex-direction: column;
  gap: 2.2cqi;
  padding: 6.4cqi;
}

.layout-stack--spread {
  justify-content: space-between;
}

.layout-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.4cqi;
  align-items: stretch;
}

.logo-row,
.meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.8cqi;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
}

.logo-badge {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26%;
  flex-shrink: 0;
  border: 0.2cqi solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.8cqi 4cqi rgba(0, 0, 0, 0.16);
}

.theme-paper .logo-badge {
  border-color: rgba(16, 19, 27, 0.08);
  background: rgba(16, 19, 27, 0.05);
  box-shadow: 0 1.8cqi 3.4cqi rgba(16, 19, 27, 0.08);
}

.logo-badge--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.theme-paper .logo-badge--logo,
.theme-dark .logo-badge--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-badge--logo img {
  filter: drop-shadow(0 1.1cqi 2.4cqi rgba(0, 0, 0, 0.12));
}

.logo-badge--sm {
  width: 13cqi;
  height: 13cqi;
}

.logo-badge--md {
  width: 17cqi;
  height: 17cqi;
}

.logo-badge--lg {
  width: 22cqi;
  height: 22cqi;
}

.logo-badge--fallback {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.2cqi;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.mono-circle {
  width: 16cqi;
  height: 16cqi;
  border-radius: 50%;
  border: 0.4cqi solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 6.4cqi;
  font-weight: 700;
  letter-spacing: -0.06em;
  background: rgba(255, 255, 255, 0.08);
}

.theme-paper .mono-circle {
  border-color: rgba(16, 19, 27, 0.1);
  background: rgba(16, 19, 27, 0.03);
}

.face-kicker {
  font-size: 1.35cqi;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
}

.face-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 6.25cqi;
  line-height: 0.92;
  letter-spacing: -0.065em;
  max-width: 100%;
}

.face-title--sm {
  font-size: 4.85cqi;
}

.face-subtitle {
  font-size: 2.25cqi;
  line-height: 1.28;
  font-weight: 700;
}

.face-body {
  font-size: 2.05cqi;
  line-height: 1.45;
}

.face-body--tight {
  line-height: 1.3;
}

.theme-dark .face-kicker,
.theme-dark .face-body,
.theme-dark .face-subtitle,
.theme-dark .foot-note,
.theme-dark .quote-small {
  color: rgba(247, 249, 255, 0.82);
}

.theme-paper .face-kicker,
.theme-paper .face-body,
.theme-paper .face-subtitle,
.theme-paper .foot-note,
.theme-paper .quote-small {
  color: rgba(16, 19, 27, 0.76);
}

.name-stack,
.copy-stack {
  display: grid;
  gap: 1.4cqi;
  max-width: 72cqi;
}

.inline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqi;
}

.inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqi;
  padding: 1cqi 1.4cqi;
  border-radius: 999px;
  font-size: 1.76cqi;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.theme-dark .inline-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 0.14cqi solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 249, 255, 0.92);
}

.theme-paper .inline-chip {
  background: rgba(16, 19, 27, 0.05);
  border: 0.14cqi solid rgba(16, 19, 27, 0.08);
  color: rgba(16, 19, 27, 0.88);
}

.inline-chip svg,
.contact-line svg {
  width: 2cqi;
  height: 2cqi;
  flex-shrink: 0;
}

.contact-stack,
.service-list,
.stats-grid {
  display: grid;
  gap: 1.4cqi;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 1.1cqi;
  font-size: 2cqi;
  line-height: 1.35;
  font-weight: 700;
}

.contact-line span {
  display: block;
  white-space: nowrap;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1cqi;
  font-size: 1.98cqi;
  line-height: 1.38;
  font-weight: 700;
}

.service-item::before {
  content: "";
  width: 0.72cqi;
  height: 0.72cqi;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.78cqi;
  background: var(--accent, #2962ff);
}

.service-list--bars .service-item {
  padding-left: 1.5cqi;
  border-left: 0.42cqi solid var(--accent, #2962ff);
}

.service-list--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3cqi;
}

.service-card {
  padding: 1.5cqi 1.6cqi;
  border-radius: 2.6cqi;
  font-size: 1.82cqi;
  line-height: 1.34;
  font-weight: 800;
}

.theme-dark .service-card {
  background: rgba(255, 255, 255, 0.08);
  border: 0.14cqi solid rgba(255, 255, 255, 0.1);
}

.theme-paper .service-card {
  background: rgba(16, 19, 27, 0.05);
  border: 0.14cqi solid rgba(16, 19, 27, 0.08);
}

.divider-line,
.hairline {
  height: 0.14cqi;
  border-radius: 999px;
}

.theme-dark .divider-line,
.theme-dark .hairline {
  background: rgba(255, 255, 255, 0.12);
}

.theme-paper .divider-line,
.theme-paper .hairline {
  background: rgba(16, 19, 27, 0.1);
}

.floating-pill,
.corner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95cqi 1.3cqi;
  border-radius: 999px;
  font-size: 1.5cqi;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dark .floating-pill,
.theme-dark .corner-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 249, 255, 0.92);
}

.theme-paper .floating-pill,
.theme-paper .corner-tag {
  background: rgba(16, 19, 27, 0.06);
  color: rgba(16, 19, 27, 0.88);
}

.quote-panel,
.grid-box,
.info-card {
  border-radius: 3cqi;
  padding: 2.4cqi;
  position: relative;
}

.theme-dark .quote-panel,
.theme-dark .grid-box,
.theme-dark .info-card {
  background: rgba(255, 255, 255, 0.07);
  border: 0.14cqi solid rgba(255, 255, 255, 0.1);
}

.theme-paper .quote-panel,
.theme-paper .grid-box,
.theme-paper .info-card {
  background: rgba(16, 19, 27, 0.04);
  border: 0.14cqi solid rgba(16, 19, 27, 0.08);
}

.quote-panel {
  display: grid;
  gap: 1.5cqi;
}

.quote-large {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.8cqi;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.quote-small {
  font-size: 1.95cqi;
  line-height: 1.42;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2cqi;
  padding: 5.8cqi;
}

.mosaic-grid .grid-box:first-child,
.mosaic-grid .grid-box:last-child {
  background: rgba(255, 255, 255, 0.1);
}

.theme-paper .mosaic-grid .grid-box:first-child,
.theme-paper .mosaic-grid .grid-box:last-child {
  background: rgba(16, 19, 27, 0.05);
}

.feature-stack {
  display: grid;
  gap: 1.2cqi;
}

.foot-note {
  font-size: 1.55cqi;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.accent-line {
  width: 100%;
  height: 0.55cqi;
  border-radius: 999px;
  background: var(--accent, #2962ff);
}

.dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2cqi;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqi;
  padding: 0.9cqi 1.2cqi;
  border-radius: 999px;
  font-size: 1.65cqi;
  font-weight: 800;
}

.theme-dark .stat-chip {
  background: rgba(255, 255, 255, 0.08);
}

.theme-paper .stat-chip {
  background: rgba(16, 19, 27, 0.05);
}

.price-card {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.88));
  padding: 22px;
}

.price-card--featured {
  background: linear-gradient(180deg, rgba(37, 87, 245, 0.08), rgba(255, 255, 255, 0.96));
  border-color: rgba(41, 98, 255, 0.18);
}

.price-label {
  color: var(--accent);
}

.price-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.price-card p {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.52;
}

.price-btn {
  width: 100%;
  background: #141926;
  color: #fff;
  box-shadow: 0 18px 28px rgba(10, 18, 40, 0.14);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 12, 22, 0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.checkout-modal {
  position: relative;
  width: min(620px, calc(100vw - 24px));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(41, 98, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 255, 0.94));
  box-shadow: 0 36px 80px rgba(7, 12, 22, 0.28);
  padding: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(14, 18, 30, 0.08);
  background: rgba(14, 18, 30, 0.04);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-copy {
  max-width: 500px;
}

.modal-copy h3 {
  margin: 10px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.modal-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.58;
}

.checkout-benefits {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(14, 18, 30, 0.04);
  border: 1px solid rgba(14, 18, 30, 0.05);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.benefit-item::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(41, 98, 255, 0.12);
}

.promo-note {
  margin-top: 12px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(14, 18, 30, 0.04);
  border: 1px solid rgba(14, 18, 30, 0.05);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.promo-note.success {
  color: #116149;
  background: rgba(17, 97, 73, 0.08);
  border-color: rgba(17, 97, 73, 0.18);
}

.promo-note.error {
  color: #8f2236;
  background: rgba(255, 89, 112, 0.11);
  border-color: rgba(255, 89, 112, 0.18);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
  flex: 1 1 220px;
}

.feedback-bar {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(14, 18, 30, 0.05);
  border: 1px solid rgba(14, 18, 30, 0.06);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-bar.success {
  color: #116149;
  background: rgba(17, 97, 73, 0.08);
  border-color: rgba(17, 97, 73, 0.18);
}

.feedback-bar.warn {
  color: #8a4b00;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
}

.feedback-bar.error {
  color: #8f2236;
  background: rgba(255, 89, 112, 0.11);
  border-color: rgba(255, 89, 112, 0.18);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.layout--aurora {
  background:
    radial-gradient(30cqi 30cqi at 92% 8%, rgba(255, 255, 255, 0.12), transparent 58%),
    radial-gradient(24cqi 24cqi at 75% 90%, rgba(41, 98, 255, 0.26), transparent 60%),
    linear-gradient(135deg, var(--surface-deep, #07101d) 0%, var(--surface, #0f172a) 48%, #0d1324 100%);
}

.layout--aurora-back {
  background:
    radial-gradient(28cqi 28cqi at 96% 95%, rgba(41, 98, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f3f7ff) 100%);
}

.layout--obsidian {
  background:
    radial-gradient(22cqi 22cqi at 82% 16%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(135deg, #05070d 0%, var(--surface, #111827) 48%, #05070d 100%);
}

.layout--obsidian::before {
  content: "";
  position: absolute;
  width: 22cqi;
  height: 22cqi;
  border-radius: 50%;
  border: 0.3cqi solid rgba(255, 255, 255, 0.12);
  right: 7cqi;
  top: 5cqi;
}

.layout--obsidian-back {
  background:
    radial-gradient(30cqi 18cqi at 100% 50%, rgba(41, 98, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #0a1020 0%, var(--surface, #111827) 100%);
}

.layout--editorial {
  background:
    linear-gradient(90deg, rgba(16, 19, 27, 0.08) 0 0.18cqi, transparent 0),
    linear-gradient(180deg, var(--paper, #ffffff) 0%, #fcfdff 100%);
  background-size: 16cqi 100%, auto;
}

.layout--editorial-back {
  background:
    linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f3f7ff) 100%);
}

.layout--rail {
  background: linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f5f8ff) 100%);
}

.layout--rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 17cqi;
  background: linear-gradient(180deg, var(--accent, #2962ff) 0%, rgba(41, 98, 255, 0.75) 100%);
}

.layout--rail-back {
  background:
    linear-gradient(135deg, var(--surface, #0f172a) 0%, #0a1020 100%);
}

.layout--mosaic {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(135deg, var(--surface, #111827) 0%, #0c1324 100%);
}

.layout--mosaic-back {
  background:
    linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f3f7ff) 100%);
}

.layout--banner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, var(--surface, #111827) 0%, #09101f 100%);
}

.banner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  min-height: 11cqi;
  padding: 2.6cqi 3.3cqi;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #2962ff), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 0 0 0.14cqi rgba(255, 255, 255, 0.08);
}

.banner-strip__label {
  flex-shrink: 0;
  font-size: 1.45cqi;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.banner-strip__text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.35cqi;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.96);
  text-align: right;
}

.layout--banner-back {
  background:
    linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f5f8ff) 100%);
}

.layout--atelier {
  background:
    radial-gradient(24cqi 24cqi at 85% 18%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(135deg, #2a1d16 0%, var(--surface, #5b3428) 100%);
}

.layout--atelier-back {
  background:
    linear-gradient(180deg, #fffaf3 0%, var(--paper-alt, #f8efe1) 100%);
}

.layout--pulse {
  background:
    radial-gradient(26cqi 26cqi at 80% 16%, rgba(41, 98, 255, 0.28), transparent 58%),
    linear-gradient(180deg, #08111f 0%, var(--surface, #0f172a) 100%);
}

.layout--pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 0.14cqi, transparent 0),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0.14cqi, transparent 0);
  background-size: 6cqi 6cqi;
  opacity: 0.32;
}

.layout--pulse-back {
  background:
    linear-gradient(135deg, #0a1020 0%, var(--surface, #111827) 100%);
}

.layout--studio {
  background:
    radial-gradient(22cqi 18cqi at 100% 0%, rgba(41, 98, 255, 0.12), transparent 58%),
    linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-alt, #f4f7ff) 100%);
}

.layout--studio-back {
  background:
    linear-gradient(135deg, var(--surface-deep, #08101c) 0%, var(--surface, #101827) 100%);
}

.layout--contrast {
  background:
    linear-gradient(126deg, #111827 0 48%, var(--paper, #ffffff) 48% 100%);
}

.layout--contrast-back {
  background:
    linear-gradient(126deg, var(--paper, #ffffff) 0 48%, #111827 48% 100%);
}

.rail-content {
  display: grid;
  grid-template-columns: 10cqi 1fr;
  gap: 4cqi;
  height: 100%;
}

.rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.6cqi;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.quote-stack {
  display: grid;
  gap: 1.6cqi;
  align-content: end;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.contrast-grid--front {
  grid-template-columns: 1.08fr 0.92fr;
}

.contrast-grid--back {
  grid-template-columns: 1.02fr 0.98fr;
}

.contrast-side {
  padding: 6cqi;
  display: grid;
  align-content: space-between;
}

.contrast-grid--front .contrast-side--dark {
  padding-right: 10.8cqi;
}

.contrast-grid--front .contrast-side--light {
  padding-left: 9.2cqi;
}

.contrast-grid--back .contrast-side--light {
  padding-right: 10.5cqi;
}

.contrast-grid--back .contrast-side--dark {
  padding-left: 9.6cqi;
}

.contrast-stack {
  display: grid;
  align-content: space-between;
  gap: 2.2cqi;
  height: 100%;
}

.contrast-side--light {
  color: #10131b;
  background: var(--paper, #ffffff);
}

.contrast-side--dark {
  color: #f7f9ff;
  background: #111827;
}

.contrast-side--light .inline-chip {
  background: rgba(16, 19, 27, 0.06);
  border-color: rgba(16, 19, 27, 0.08);
  color: rgba(16, 19, 27, 0.9);
}

.contrast-side--dark .inline-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(247, 249, 255, 0.92);
}

.layout--contrast .contrast-side--dark .face-kicker,
.layout--contrast .contrast-side--dark .face-body,
.layout--contrast .contrast-side--dark .face-subtitle,
.layout--contrast .contrast-side--dark .quote-small,
.layout--contrast .contrast-side--dark .contact-line,
.layout--contrast-back .contrast-side--dark .face-kicker,
.layout--contrast-back .contrast-side--dark .face-body,
.layout--contrast-back .contrast-side--dark .face-subtitle,
.layout--contrast-back .contrast-side--dark .quote-small,
.layout--contrast-back .contrast-side--dark .contact-line {
  color: rgba(247, 249, 255, 0.84);
}

.layout--contrast .contrast-side--light .face-kicker,
.layout--contrast .contrast-side--light .face-body,
.layout--contrast .contrast-side--light .face-subtitle,
.layout--contrast .contrast-side--light .quote-small,
.layout--contrast .contrast-side--light .contact-line,
.layout--contrast-back .contrast-side--light .face-kicker,
.layout--contrast-back .contrast-side--light .face-body,
.layout--contrast-back .contrast-side--light .face-subtitle,
.layout--contrast-back .contrast-side--light .quote-small,
.layout--contrast-back .contrast-side--light .contact-line {
  color: rgba(16, 19, 27, 0.78);
}

.layout--contrast .contrast-side--dark .face-title,
.layout--contrast-back .contrast-side--dark .face-title {
  color: #f7f9ff;
}

.layout--contrast .contrast-side--light .face-title,
.layout--contrast-back .contrast-side--light .face-title {
  color: #10131b;
}

.layout--contrast-back .contrast-side--light .quote-panel,
.layout--contrast-back .contrast-side--light .service-list {
  max-width: 27cqi;
}

.layout--contrast-back .contrast-side--dark .contact-stack {
  max-width: 28cqi;
}

.price-card,
.feedback-bar,
.layout-nav,
.card-hint,
.preview-toolbar {
  position: relative;
  z-index: 2;
}

@media (max-width: 1220px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    order: 2;
  }

  .preview-panel {
    order: 1;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    margin: 10px auto 22px;
  }

  .topbar,
  .hero-strip,
  .panel,
  .preview-panel {
    border-radius: 22px;
  }

  .topbar,
  .hero-strip,
  .preview-panel,
  .panel {
    padding: 18px;
  }

  .hero-strip,
  .preview-toolbar {
    flex-direction: column;
  }

  .hero-cards,
  .pricing-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

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

  .layout-nav {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    margin-top: 12px;
  }

  .nav-arrow {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  /* Preview card compacta no mobile */
  .business-card-shell {
    width: min(78%, 420px);
    margin: 0 auto;
  }

  .card-hint {
    margin: 10px 0 8px;
  }

  .card-stage {
    padding: 8px 0 6px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar,
  .topbar-actions,
  .card-hint {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-link,
  .mode-pill {
    justify-content: center;
  }

  .business-card-shell {
    width: min(84%, 340px);
  }

  .preview-actions,
  .inline-actions,
  .modal-actions {
    flex-direction: column;
  }

  .dot-nav {
    gap: 8px;
  }

  /* ── Modal compacto no mobile ── */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .checkout-modal {
    width: 100%;
    border-radius: 24px 24px 18px 18px;
    padding: 16px 16px 20px;
    max-height: calc(100svh - 28px);
    overflow-y: auto;
  }

  .modal-close {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
    border-radius: 10px;
  }

  .modal-close svg {
    width: 16px;
    height: 16px;
  }

  .modal-copy {
    padding-right: 36px;
  }

  .modal-copy h3 {
    font-size: 20px;
    margin: 5px 0 6px;
  }

  .modal-copy p {
    font-size: 13px;
    line-height: 1.5;
  }

  .checkout-benefits {
    margin: 10px 0;
    gap: 5px;
  }

  .benefit-item {
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: 12px;
  }

  .field span {
    font-size: 12px;
  }

  .field input,
  .field textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .promo-note {
    margin-top: 7px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 12px;
  }

  .modal-actions {
    margin-top: 10px;
    gap: 7px;
  }

  .modal-actions .primary-btn,
  .modal-actions .secondary-btn {
    flex: 1 1 auto;
    padding: 13px 16px;
    font-size: 14px;
  }
}

/* Desktop compacto: corrige o zoom excessivo em monitores normais */
@media (min-width: 1221px) {
  .topbar {
    padding: 12px 16px;
    border-radius: 20px;
  }

  .hero-strip {
    margin-top: 12px;
    padding: 20px 24px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 3vw, 42px);
    margin: 10px 0 12px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-cards {
    width: min(280px, 100%);
  }

  .mini-stat {
    padding: 14px 16px;
  }

  .mini-stat strong {
    font-size: 22px;
  }

  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .editor-sidebar {
    max-height: calc(100vh - 28px);
    gap: 13px;
  }

  .panel,
  .preview-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .panel-tight {
    padding: 14px;
  }

  .panel-head h2,
  .preview-toolbar h2 {
    font-size: 19px;
  }

  .panel-head {
    margin-bottom: 13px;
  }

  .primary-btn,
  .secondary-btn,
  .price-btn {
    padding: 11px 18px;
    font-size: 13.5px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    font-size: 11px;
  }
}

/*
  Fix flip iOS Safari/WebKit: preserve-3d + backface-visibility nao funciona
  de forma fiavel em dispositivos touch (iOS Safari, Chrome iOS, etc.).
  Em dispositivos touch usamos fade entre as faces em vez de rotacao 3D.
*/
@media (hover: none) {
  .business-card {
    -webkit-transform-style: flat;
    transform-style: flat;
  }

  .business-card.is-flipped {
    -webkit-transform: none;
    transform: none;
  }

  .card-face--front {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    opacity: 1;
    z-index: 2;
    -webkit-transform: none;
    transform: none;
    transition: opacity 0.42s ease;
  }

  .card-face--back {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    opacity: 0;
    z-index: 1;
    -webkit-transform: none;
    transform: none;
    transition: opacity 0.42s ease;
  }

  .business-card.is-flipped .card-face--front {
    opacity: 0;
    z-index: 1;
  }

  .business-card.is-flipped .card-face--back {
    opacity: 1;
    z-index: 2;
  }
}
