:root {
  --ink: #101018;
  --muted: #5d6375;
  --line: #e4e1ef;
  --paper: #ffffff;
  --wash: #f7f5ff;
  --violet: #4f2ac5;
  --violet-2: #6b3ff2;
  --green: #12b886;
  --green-2: #7ff2cf;
  --deep: #151020;
  --mint: #e7fff6;
  --peach: #ffefe4;
  --shadow: 0 24px 80px rgba(38, 20, 88, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(107, 63, 242, 0.13), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(18, 184, 134, 0.11), transparent 22rem),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 38%, #f9fbff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(228, 225, 239, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.trust-strip,
.toggle-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 55px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--green));
  box-shadow: 0 10px 30px rgba(79, 42, 197, 0.24);
}

.nav-links {
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--violet);
}

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

.header-cta,
.primary-button {
  color: white;
  background: var(--violet);
  box-shadow: 0 16px 38px rgba(79, 42, 197, 0.24);
}

.header-cta {
  padding: 0 18px;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.secondary-button {
  color: var(--violet);
  border: 1px solid var(--line);
  background: white;
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 72px) 50px;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("assets/merchant-sale-bg.png");
  background-position: center right;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.99;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0.0) 50%),
    linear-gradient(180deg, rgba(247, 245, 255, 0.6), rgba(255, 255, 255, 0.22));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead,
.section-heading p,
.tenant-copy p,
.footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--ink);
}

.product-visual {
  position: relative;
  min-height: 660px;
}

.growth-card {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 22px) auto;
  align-items: end;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  color: #d8ceff;
  background: linear-gradient(145deg, var(--violet), var(--deep));
  box-shadow: var(--shadow);
}

.growth-card span {
  display: block;
  width: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #cfc3ff, var(--green));
}

.growth-card span:nth-child(1) {
  height: 34px;
}

.growth-card span:nth-child(2) {
  height: 50px;
}

.growth-card span:nth-child(3) {
  height: 68px;
}

.growth-card span:nth-child(4) {
  height: 92px;
}

.growth-card strong {
  padding-left: 6px;
  font-size: 24px;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  min-height: 610px;
  margin-left: auto;
  padding: 18px;
  border: 10px solid #171423;
  border-radius: 34px;
  background: #f0f2f5;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--violet), #33206f);
}

.phone-top small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #50fa7b;
  box-shadow: 0 0 0 5px rgba(80, 250, 123, 0.18);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(12, 24, 44, 0.08);
}

.inbound {
  align-self: flex-end;
  background: #ece7ff;
}

.outbound {
  align-self: flex-start;
  background: white;
}

.success {
  border: 1px solid rgba(18, 184, 134, 0.28);
  color: #163d35;
  background: var(--mint);
}

.menu {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.menu span {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(79, 42, 197, 0.14);
}

.console-card {
  position: absolute;
  right: min(58%, 280px);
  bottom: 44px;
  z-index: 3;
  width: min(300px, 72vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.console-title {
  margin-bottom: 16px;
  font-weight: 800;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
}

.console-grid strong {
  color: var(--violet);
}

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.trust-strip span {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--wash);
  color: #39324f;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.intro-band,
.pricing-section {
  background: #f8f7ff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading.wide {
  max-width: 940px;
}

.workflow,
.module-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

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

.workflow article,
.module-card,
.price-card,
.tenant-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(32, 21, 74, 0.08);
}

.workflow article {
  padding: 28px;
}

.workflow p,
.module-card p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.6;
}

.step {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

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

.module-card {
  padding: 26px;
}

.module-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--green));
  font-size: 13px;
  font-weight: 900;
}

.command-section {
  background: linear-gradient(135deg, #24144f, #151020);
}

.command-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: white;
}

.command-panel .eyebrow {
  color: #cfc3ff;
}

.sales-section {
  background:
    linear-gradient(90deg, rgba(79, 42, 197, 0.06), transparent 40%),
    white;
}

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

.sales-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 48px rgba(38, 20, 88, 0.08);
}

.sales-grid h3,
.sales-grid p {
  grid-column: 2;
}

.sales-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--green));
  font-weight: 900;
}

.sales-grid p {
  color: var(--muted);
  line-height: 1.6;
}

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

.command-list code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e9e5ff;
  background: rgba(255, 255, 255, 0.07);
}

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

.pricing-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1180px);
  margin-top: 28px;
}

.plan-feature {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(107, 63, 242, 0.06), transparent 34%),
    var(--paper);
  box-shadow: 0 18px 54px rgba(32, 21, 74, 0.08);
}

.plan-feature::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  content: "";
  background: linear-gradient(90deg, var(--violet), var(--green));
}

.feature-token {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--violet);
  background: var(--wash);
  font-size: 12px;
  font-weight: 900;
}

.plan-feature h3 {
  margin: 0;
  font-size: 18px;
}

.plan-feature ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-feature li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.plan-feature li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: var(--green);
  font-weight: 900;
}

.price-card {
  padding: 30px;
}

.price-card.featured {
  border-color: rgba(79, 42, 197, 0.38);
  background:
    linear-gradient(180deg, rgba(107, 63, 242, 0.08), transparent 38%),
    white;
  transform: translateY(-14px);
}

.plan-name {
  margin-bottom: 18px;
  color: var(--violet);
  font-weight: 900;
}

.price-card h3 {
  margin-bottom: 16px;
  font-size: 42px;
}

.price-card h3 span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.plan-fit {
  min-height: 54px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
}

.price-card li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: var(--green);
  font-weight: 900;
}

.pricing-note {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(18, 184, 134, 0.24);
  border-radius: 8px;
  color: #173c36;
  background: var(--mint);
  line-height: 1.6;
}

.tenant-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.tenant-copy {
  position: sticky;
  top: 110px;
}

.tenant-checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tenant-checklist span {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--wash);
  font-weight: 700;
}

.tenant-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

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

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

label {
  display: grid;
  gap: 8px;
  color: #302b42;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfbff;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(107, 63, 242, 0.16);
  border-color: var(--violet-2);
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.toggle-field input {
  width: 18px;
  min-height: 18px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(135deg, rgba(36, 20, 79, 0.96), rgba(18, 16, 32, 0.98)),
    linear-gradient(90deg, var(--violet), #111);
}

.contact-band .eyebrow {
  color: #cfc3ff;
}

.contact-band h2 {
  margin: 0;
  max-width: 760px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-pill {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--violet);
  background: white;
  font-weight: 900;
}

.toggle-row {
  flex-wrap: wrap;
  gap: 12px 18px;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--wash);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.form-submit {
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.form-status[data-state] {
  display: block;
}

.form-status[data-state="pending"] {
  color: #42356d;
  background: var(--wash);
}

.form-status[data-state="success"] {
  color: #173c36;
  background: var(--mint);
}

.form-status[data-state="error"] {
  color: #6e1d34;
  background: #fff0f4;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-disclaimer {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-notes {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: white;
}

.footer p {
  margin: 8px 0 0;
  font-size: 14px;
}

.footer a {
  color: var(--violet);
  font-weight: 800;
}

.error-page {
  min-height: 100vh;
}

.error-main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - 78px);
  place-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.error-main::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("assets/merchant-sale-bg.png");
  background-position: center right;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.42;
}

.error-main::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 18% 18%, rgba(107, 63, 242, 0.16), transparent 28rem);
}

.error-panel {
  width: min(100%, 860px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.error-panel h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
}

.error-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.error-code {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--wash);
  font-weight: 800;
}

.error-code strong {
  color: var(--violet);
}

.policy-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(107, 63, 242, 0.13), transparent 24rem),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 44%, #f8f7ff 100%);
}

.policy-main {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.policy-hero {
  max-width: 980px;
  margin: 0 auto 28px;
}

.policy-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
}

.policy-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.policy-document {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.policy-document .policy-title {
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.policy-document h2 {
  margin: 38px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--violet);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.policy-document h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.policy-document p {
  margin-bottom: 14px;
  color: #313343;
  font-size: 16px;
  line-height: 1.75;
}

.policy-document h1 + h2,
.policy-document .policy-title + h2 {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 1060px) {
  .hero-section,
  .tenant-section,
  .command-panel,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

  .product-visual {
    min-height: auto;
  }

  .phone-shell {
    margin: 0 auto;
  }

  .console-card {
    right: auto;
    left: clamp(4px, 8vw, 80px);
  }

  .tenant-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-cta {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
  }

  .workflow,
  .module-grid,
  .pricing-grid,
  .pricing-features,
  .sales-grid,
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .phone-shell {
    min-height: 560px;
    border-width: 7px;
    border-radius: 26px;
  }

  .console-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 18px auto 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
