:root {
  --font-main: "Clash Display Variable", "Clash Display", "Manrope", "Segoe UI", sans-serif;
  --bg-0: #070b12;
  --bg-1: #0a111d;
  --bg-2: #0f1828;
  --panel: #101a2c;
  --panel-strong: #0e1727;
  --panel-soft: rgba(16, 26, 44, 0.78);
  --line: #1f2d48;
  --line-strong: #2a3f63;
  --text: #e8efff;
  --muted: #99a7c3;
  --accent: #00d3a7;
  --accent-2: #5be8ff;
  --danger: #ff6f8a;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, rgba(91, 232, 255, 0.16), transparent 38%),
    radial-gradient(circle at 90% 12%, rgba(0, 211, 167, 0.12), transparent 40%),
    linear-gradient(175deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
  height: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(160, 188, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 188, 238, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 92%);
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.card {
  background:
    linear-gradient(145deg, rgba(20, 31, 51, 0.92), rgba(13, 22, 39, 0.92)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 70;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(19, 31, 51, 0.92), rgba(13, 22, 38, 0.82)),
    var(--panel-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  transition: padding 170ms ease, border-radius 170ms ease, transform 170ms ease;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(91, 232, 255, 0.2);
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.nav a {
  position: relative;
  text-decoration: none;
  color: #bdd2f8;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: right 180ms ease;
}

.nav a:hover::after {
  right: 0;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 19, 32, 0.88);
  color: #9ec9ff;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero {
  background:
    radial-gradient(circle at 10% 8%, rgba(91, 232, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 86%, rgba(0, 211, 167, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(17, 28, 47, 0.95), rgba(12, 20, 36, 0.92));
  padding: 30px 24px;
}

.hero-inner {
  display: block;
}

.hero-copy {
  text-align: left;
  max-width: 920px;
  animation: heroRise 560ms ease both;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.trust-note {
  margin-top: 10px !important;
  font-size: 0.9rem;
  color: #88a2cc !important;
}

.kicker {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #7bd8ff;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  padding: 9px 13px;
  cursor: pointer;
  font: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn-dark {
  background: linear-gradient(145deg, #063028, #09463d);
  color: #dcfff7;
  border-color: #0b7665;
  box-shadow: 0 8px 18px rgba(0, 211, 167, 0.18);
}

.btn-light {
  background: linear-gradient(150deg, #15233c, #101c32);
  color: #c5d8f6;
  border-color: #2a3f63;
}

.btn:hover,
button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.nav-compact .topbar {
  top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
}

.nav-compact .brand {
  font-size: 1.12rem;
}

.nav-compact .chip {
  padding: 6px 8px;
}

.nav-compact .brand-logo {
  width: 44px;
  height: 44px;
}

.nav-compact .topbar .btn,
.nav-compact .topbar button {
  padding: 7px 10px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

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

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

.section-head h2 {
  margin-bottom: 6px;
}

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

.muted {
  color: var(--muted);
}

.plans-card {
  display: grid;
  gap: 12px;
}

.plans-head h2 {
  margin-bottom: 4px;
}

.plans-grid {
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.94), rgba(11, 20, 35, 0.92));
  padding: 14px;
}

.plan-pro {
  border-color: #0f7767;
  background:
    radial-gradient(circle at 96% 0%, rgba(0, 211, 167, 0.2), transparent 52%),
    linear-gradient(165deg, rgba(14, 25, 41, 0.95), rgba(10, 20, 34, 0.94));
}

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

.welcome-banner {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-color: rgba(91, 232, 255, 0.35);
}

.welcome-banner h2 {
  margin-bottom: 8px;
}

.welcome-banner p {
  margin: 0;
  color: var(--muted);
}

.welcome-banner a {
  color: var(--accent-2);
}

.welcome-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.mode-switch-grid {
  align-items: stretch;
}

.mode-card {
  display: grid;
  gap: 8px;
}

.mode-card p {
  margin: 0;
}

form {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #0c1628;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2092a4;
  box-shadow: 0 0 0 3px rgba(91, 232, 255, 0.15);
}

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

input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid #2a3f63;
  border-radius: 8px;
  background: linear-gradient(170deg, #172842, #101b30);
  color: #d3e8ff;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

button {
  border: 1px solid #0f7e6b;
  border-radius: 10px;
  background: linear-gradient(145deg, #063028, #09463d);
  color: #dcfff7;
  padding: 10px 12px;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

button.is-loading {
  position: relative;
}

button.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: rc-spin 0.72s linear infinite;
}

@keyframes rc-spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  margin-top: 8px;
  color: #a8b6d2;
  white-space: pre-wrap;
}

.summary-cards {
  display: grid;
  gap: 8px;
}

.summary-item,
.staff-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 18, 32, 0.85);
  padding: 10px;
}

.unmapped-item {
  margin-top: 8px;
  border: 1px dashed #30507a;
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.88);
  padding: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.preview,
.preview-pdf {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1322;
}

.preview {
  min-height: 220px;
  padding: 12px;
}

.preview-pdf {
  min-height: 620px;
  width: 100%;
}

.steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
}

.steps li h3 {
  margin: 0 0 6px;
}

.steps li p {
  margin: 0;
  color: var(--muted);
}

.steps-compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.steps-compact li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 20, 35, 0.9);
  padding: 12px;
}

.seo-article {
  line-height: 1.62;
}

.seo-article h2 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.seo-article h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  color: #d5e8ff;
}

.seo-article p {
  margin: 0 0 10px;
  color: #c0d0ec;
}

.seo-article ul {
  margin: 6px 0 12px 20px;
  display: grid;
  gap: 8px;
  color: #c0d0ec;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line-strong);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(8, 18, 34, 0.92);
  color: #b8d9ff;
  font-weight: 800;
}

.compare-table tbody td {
  background: rgba(10, 20, 36, 0.8);
}

.cta-band {
  text-align: center;
}

.cta-band .hero-actions {
  justify-content: center;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 2px 0;
  background:
    linear-gradient(
      90deg,
      rgba(64, 94, 146, 0) 0%,
      rgba(80, 119, 183, 0.35) 12%,
      rgba(80, 119, 183, 0.35) 88%,
      rgba(64, 94, 146, 0) 100%
    );
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.9) 0 8px,
    rgba(0, 0, 0, 0) 8px 14px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.9) 0 8px,
    rgba(0, 0, 0, 0) 8px 14px
  );
}

.support-note {
  margin: 0;
  font-size: 0.84rem;
  color: #8ca7cf;
}

.support-thanks {
  text-align: center;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 211, 167, 0.2), transparent 44%),
    linear-gradient(165deg, rgba(14, 25, 39, 0.95), rgba(10, 20, 33, 0.94));
  border-color: #0f7163;
}

.support-thanks h3 {
  margin-bottom: 6px;
  color: #8fffe5;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.support-btn {
  min-width: 52px;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: none;
}

.support-card #support-status {
  grid-column: 1 / -1;
  margin-top: 0;
}

.adsense-card {
  padding: 1rem 1.25rem;
  overflow: hidden;
}

.adsense-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ca7cf;
}

.adsense-unit {
  min-height: 96px;
}

.builder-hero {
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 232, 255, 0.14), transparent 46%),
    radial-gradient(circle at 88% 100%, rgba(0, 211, 167, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(18, 29, 47, 0.95), rgba(11, 20, 35, 0.94));
}

.builder-hero h1 {
  margin: 8px 0 6px;
}

.builder-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.builder-beta-row {
  margin-top: 8px;
}

.builder-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9, 18, 33, 0.9);
  color: #87ceff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
}

#user-pipeline-badge {
  border-color: #178574;
  color: #9bf7e4;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}

.billing-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-strip h3 {
  margin-bottom: 2px;
}

.billing-strip p {
  margin: 2px 0;
}

.billing-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.new-way-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.new-way-editor,
.new-way-preview {
  min-height: 100%;
}

.new-way-editor-head,
.new-way-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.new-way-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.new-way-tab {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(145deg, #12203a, #0e1a2f);
  color: #b7c9e7;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.new-way-tab.active {
  border-color: #1e907f;
  color: #d8fff7;
  background: linear-gradient(145deg, #0b3a33, #0e4f45);
}

.new-way-tab-panel {
  display: none;
  margin-top: 10px;
}

.new-way-tab-panel.active {
  display: block;
}

.new-way-fields {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.8rem;
  color: #9fb6da;
  font-weight: 700;
}

.new-way-entry-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 17, 30, 0.86);
  padding: 10px;
}

.new-way-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.new-way-entry-head h4 {
  margin: 0;
}

.new-way-bullets {
  display: grid;
  gap: 8px;
}

.new-way-bullet-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.new-way-preview-canvas {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1322;
  min-height: 620px;
  padding: 12px;
  overflow: auto;
}

.new-way-preview-canvas .nw-template,
.new-way-preview-canvas .tpl {
  background: #f8fbff;
  color: #121212;
  border-radius: 10px;
  padding: 14px;
  min-height: 560px;
  box-shadow: inset 0 0 0 1px #dce4f0;
}

.new-way-preview-canvas .nw-template header h1,
.new-way-preview-canvas .tpl header h1 {
  margin: 0;
  color: #1a2e4d;
}

.new-way-preview-canvas .nw-template h2,
.new-way-preview-canvas .tpl h2 {
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #b7c7df;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.new-way-preview-canvas .nw-template p,
.new-way-preview-canvas .tpl p {
  margin: 0 0 8px;
}

.new-way-preview-canvas .nw-template .line,
.new-way-preview-canvas .tpl .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.new-way-preview-canvas .nw-template .line.soft,
.new-way-preview-canvas .tpl .line.soft {
  color: #5f6780;
}

.new-way-preview-canvas .nw-template ul,
.new-way-preview-canvas .tpl ul {
  margin: 6px 0 10px 18px;
  padding: 0;
}

.builder-intake h2,
.builder-tip h2,
.builder-panel h3 {
  margin-bottom: 8px;
}

.builder-tip {
  display: grid;
  align-content: start;
  gap: 10px;
}

.status-box {
  border: 1px dashed #2a466f;
  border-radius: 10px;
  background: rgba(9, 17, 30, 0.9);
  padding: 8px 10px;
}

.builder-panel {
  min-height: 100%;
}

.builder-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.builder-preview-head h3 {
  margin-bottom: 0;
}

.builder-preview-head .muted {
  margin: 0;
}

.preview-actions button {
  background: linear-gradient(145deg, #223a5f, #162947);
  border-color: #35507a;
  color: #d3e6ff;
}

.preview-actions button:disabled {
  background: linear-gradient(145deg, #2a3852, #22324c);
  border-color: #3f4f6d;
}

.howto-hero {
  text-align: center;
  background:
    radial-gradient(circle at 16% 0%, rgba(91, 232, 255, 0.14), transparent 45%),
    radial-gradient(circle at 84% 100%, rgba(0, 211, 167, 0.11), transparent 50%),
    linear-gradient(165deg, rgba(17, 29, 48, 0.95), rgba(11, 21, 36, 0.94));
}

.howto-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}

.howto-steps {
  display: grid;
  gap: 10px;
}

.howto-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 20, 35, 0.88);
  padding: 12px;
}

.howto-step h3 {
  margin: 0 0 4px;
}

.howto-step p {
  margin: 0;
  color: var(--muted);
}

.howto-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #d9fffb;
  background: linear-gradient(150deg, #09463d, #0f6f60);
  border: 1px solid #1b8f7c;
}

.howto-aside {
  display: grid;
  align-content: start;
  gap: 10px;
}

.howto-aside h2,
.howto-aside h3 {
  margin-bottom: 0;
}

.howto-checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .builder-layout,
  .howto-layout,
  .new-way-layout {
    grid-template-columns: 1fr;
  }

  .steps-compact {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero p {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .plan-actions {
    justify-content: flex-start;
  }

  .welcome-banner {
    grid-template-columns: 1fr;
  }

  .welcome-actions {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    top: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .top-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .chip {
    max-width: 100%;
    flex: 1 1 240px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 12px;
  }

  .hero-actions,
  .actions,
  .plan-actions,
  .billing-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .actions button,
  .plan-actions .btn,
  .plan-actions button,
  .billing-actions button {
    width: 100%;
    text-align: center;
  }

  .top-actions .btn,
  .support-actions .support-btn,
  .new-way-tab {
    width: auto;
  }

  .top-actions {
    align-items: stretch;
  }

  .chip {
    width: 100%;
    flex: 1 1 100%;
  }

  .new-way-entry-head {
    flex-direction: column;
    align-items: stretch;
  }

  .new-way-bullet-row {
    flex-direction: column;
    align-items: stretch;
  }

  .new-way-bullet-row .btn {
    width: 100%;
  }

  .preview-pdf {
    min-height: 420px;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .billing-actions {
    width: 100%;
  }

  .new-way-preview-canvas {
    min-height: 380px;
    padding: 8px;
  }
}


@media (min-width: 1760px) {
  .shell .adsense-card {
    position: fixed;
    top: 132px;
    right: 20px;
    width: 240px;
    margin: 0;
    z-index: 40;
  }

  .shell .adsense-unit {
    min-height: 320px;
  }
}
