:root {
  --ink: #111111;
  --muted: #666a61;
  --line: #ddd8ce;
  --paper: #ffffff;
  --canvas: #f5f2ea;
  --soft: #ebe5d8;
  --dark: #101114;
  --dark-2: #191a1e;
  --acid: #d9ff3f;
  --blue: #2d63ff;
  --coral: #ff6542;
  --green: #1f9b62;
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

body:not(.authenticated) .protected-content {
  display: none;
}

body.authenticated .auth-view {
  display: none;
}

body.authenticated.landing-mode .auth-view {
  display: block;
}

body.authenticated.landing-mode .protected-content {
  display: none;
}

body.authenticated.landing-mode #loginForm {
  display: none;
}

body:not(.authenticated) #returnToAppCard {
  display: none;
}

body.authenticated {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(245, 242, 234, 0) 280px),
    var(--canvas);
}

.auth-view {
  min-height: 100vh;
  background: var(--canvas);
}

.landing-nav {
  height: 74px;
  padding: 0 max(22px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--acid);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.landing-nav nav {
  display: flex;
  gap: 28px;
}

.landing-nav nav a,
.landing-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.nav-cta,
.primary-cta {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 780;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nav-cta:hover,
.primary-cta:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.landing-main {
  overflow: hidden;
}

.landing-hero {
  min-height: 760px;
  padding: 92px max(22px, calc((100vw - 1220px) / 2)) 54px;
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--dark);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.98) 0%, rgba(16, 17, 20, 0.95) 34%, rgba(16, 17, 20, 0.62) 66%, rgba(16, 17, 20, 0.34) 100%),
    linear-gradient(180deg, rgba(16, 17, 20, 0.1), rgba(16, 17, 20, 0.9));
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
  pointer-events: none;
}

.hero-copy {
  width: min(690px, 100%);
  padding-top: 22px;
  position: relative;
  z-index: 3;
}

.eyebrow,
.step-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.section-heading.light .eyebrow,
.demo-copy .eyebrow {
  color: var(--acid);
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: 104px;
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 860;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: #e6e0d2;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-cta {
  min-height: 56px;
  padding: 0 26px;
  background: var(--acid);
  color: #151800;
  box-shadow: 0 18px 48px rgba(217, 255, 63, 0.18);
}

.text-cta {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
}

.hero-facts {
  width: min(710px, 100%);
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-facts div {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.hero-facts strong {
  color: white;
  font-size: 28px;
  line-height: 1;
}

.hero-facts span {
  color: #cbc6b8;
  font-size: 14px;
  line-height: 1.35;
}

.product-visual {
  width: min(500px, 40vw);
  min-height: 440px;
  padding: 14px;
  position: absolute;
  right: max(22px, calc((100vw - 1220px) / 2));
  bottom: 46px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(249, 247, 241, 0.93);
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.visual-toolbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #72746f;
  font-size: 12px;
  font-weight: 760;
}

.visual-toolbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.visual-toolbar i:first-child {
  background: var(--coral);
}

.visual-toolbar i:nth-child(2) {
  background: var(--acid);
}

.visual-toolbar i:nth-child(3) {
  background: var(--blue);
}

.visual-toolbar span {
  margin-left: auto;
}

.source-card,
.target-card {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.source-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
}

.product-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 255, 63, 0.78), rgba(45, 99, 255, 0.24)),
    #e9e3d7;
  color: rgba(17, 17, 17, 0.38);
  font-weight: 850;
}

.source-card div:nth-child(2) {
  display: grid;
  gap: 5px;
}

.source-card b {
  font-size: 16px;
}

.source-card small {
  color: var(--muted);
  font-size: 13px;
}

.source-label,
.target-status,
.plan-label,
.plan-badge,
.confidence,
.attribute-results-head > span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eeeadf;
  color: #5d6158;
  font-size: 12px;
  font-weight: 820;
}

.ai-route {
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

.ai-route span {
  width: 1px;
  height: 18px;
  background: rgba(45, 99, 255, 0.48);
}

.target-card {
  padding: 22px;
}

.target-card > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.target-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.42;
}

.target-status {
  background: var(--acid);
  color: #1d2200;
}

.target-fields {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.target-fields span {
  padding: 11px;
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: #f3f0e8;
}

.target-fields i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.target-fields b {
  font-size: 14px;
}

.trust-strip {
  min-height: 92px;
  padding: 18px max(22px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: #73766e;
  font-size: 16px;
  font-weight: 720;
}

.trust-strip b {
  color: var(--ink);
}

.landing-section {
  padding: 104px max(22px, calc((100vw - 1220px) / 2));
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.demo-copy h2 {
  margin: 0;
  max-width: 820px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.demo-copy > p:last-child {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.pain-section {
  background: #fffdf8;
}

.before-after {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: stretch;
  gap: 16px;
}

.before-after article {
  min-height: 320px;
  padding: 32px;
  border-radius: 8px;
}

.before-after article > span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 820;
}

.before-after h3 {
  max-width: 460px;
  margin: 28px 0 22px;
  font-size: 30px;
  line-height: 1.08;
}

.before-after ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.before-after li {
  padding-left: 26px;
  position: relative;
  color: #5e625b;
  font-size: 17px;
  line-height: 1.45;
}

.before-after li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.before-card {
  border: 1px solid #e4ded4;
  background: #f1ece2;
}

.before-card > span {
  background: #e1dbcf;
  color: #68645d;
}

.before-card li::before {
  content: "x";
  color: #8f5c4d;
}

.after-card {
  border: 1px solid rgba(45, 99, 255, 0.28);
  background: #eef2ff;
}

.after-card > span {
  background: var(--acid);
  color: #1d2200;
}

.after-card li::before {
  content: "+";
  color: var(--blue);
}

.conversion-arrow {
  width: 50px;
  height: 50px;
  align-self: center;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 25px;
  font-weight: 850;
}

.feature-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 14px;
}

.feature-card {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0d9ce;
  border-radius: 8px;
  background: #fffdf8;
}

.feature-card.featured {
  background: var(--dark);
  color: white;
}

.feature-number {
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.featured .feature-number {
  color: var(--acid);
}

.feature-card h3 {
  margin: 34px 0 12px;
  font-size: 25px;
  line-height: 1.12;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.featured p {
  color: #c7c2b5;
}

.mini-tree,
.mapping-line,
.value-tags {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
}

.mini-tree span,
.mini-tree b,
.mapping-line span,
.value-tags span,
.value-tags b {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
}

.featured .mini-tree span,
.featured .mini-tree b {
  background: rgba(255, 255, 255, 0.1);
}

.mini-tree .active,
.value-tags b {
  background: var(--acid);
  color: #1d2200;
}

.mapping-line b {
  color: var(--blue);
}

.workflow-section {
  background: var(--dark);
  color: white;
}

.workflow-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.workflow-grid article {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--acid);
  color: #1d2200;
  font-size: 14px;
  font-weight: 850;
}

.workflow-grid h3 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.workflow-grid p {
  color: #c7c2b5;
  font-size: 17px;
  line-height: 1.55;
}

.pricing-section {
  background: #f1ece2;
}

.landing-plans {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-plans article {
  padding: 34px;
  border: 1px solid #ddd5c7;
  border-radius: 8px;
  background: #fffdf8;
}

.landing-plans article.business {
  border-color: rgba(217, 255, 63, 0.55);
  background: var(--dark);
  color: white;
}

.business .plan-label {
  background: var(--acid);
  color: #1d2200;
}

.landing-plans h3 {
  margin: 24px 0 6px;
  font-size: 28px;
}

.landing-plans strong {
  font-size: 36px;
}

.landing-plans p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.landing-plans .business p {
  color: #c7c2b5;
}

.landing-plans ul {
  min-height: 158px;
  padding-left: 22px;
  color: #565a52;
  font-size: 17px;
  line-height: 1.8;
}

.landing-plans .business ul {
  color: #ded8cc;
}

.landing-plans a {
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #bcb4a6;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 780;
}

.landing-plans .business a {
  border-color: var(--acid);
  background: var(--acid);
  color: #1d2200;
}

.faq-section {
  background: #fffdf8;
}

.faq-list {
  max-width: 900px;
  margin: 46px 0 0 auto;
  border-top: 1px solid #ddd6c9;
}

.faq-list details {
  border-bottom: 1px solid #ddd6c9;
}

.faq-list summary {
  padding: 24px 42px 24px 0;
  position: relative;
  list-style: none;
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eee8dd;
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "-";
  background: var(--acid);
}

.faq-list p {
  max-width: 760px;
  margin: -6px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.demo-section {
  padding: 104px max(22px, calc((100vw - 1220px) / 2));
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 88px;
  align-items: center;
  background: var(--dark);
  color: white;
}

.demo-copy > p:last-child {
  color: #c7c2b5;
}

.auth-card {
  width: 100%;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.auth-card h3 {
  margin: 0 0 22px;
  font-size: 26px;
}

.auth-card .field {
  margin-top: 14px;
}

.auth-submit {
  margin-top: 18px;
}

.auth-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.landing-account-card {
  align-self: start;
}

.landing-account-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.return-to-app-button {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 820;
  line-height: 1;
  box-shadow: none;
  appearance: none;
}

.consent-field {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.consent-field a {
  color: var(--ink);
  font-weight: 760;
}

.landing-footer {
  padding: 34px max(22px, calc((100vw - 1220px) / 2));
  display: grid;
  gap: 22px;
  border-top: 1px solid #ded7cb;
  background: #fffdf8;
}

.footer-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 42px;
  align-items: center;
}

.landing-footer p {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.footer-cta {
  white-space: nowrap;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.legal-links a,
.app-footer a,
.legal-header a:last-child {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.legal-links a:hover,
.app-footer a:hover,
.legal-header a:last-child:hover {
  color: var(--ink);
}

.legal-note {
  max-width: 860px;
  margin: 0 auto;
  font-size: 13px !important;
  line-height: 1.5;
}

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.topbar-link {
  height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.topbar-link:hover {
  background: #f8f5ee;
}

.status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 155, 98, 0.12);
}

.status.offline .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 101, 66, 0.12);
}

.account-button {
  height: 44px;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.account-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 50px 0 70px;
}

.intro {
  max-width: 860px;
  margin: 0 0 30px;
}

.intro h1 {
  margin: 0;
  max-width: 820px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.intro > p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 34px;
}

.result-panel {
  position: sticky;
  top: 90px;
  min-height: 650px;
  overflow: hidden;
}

.panel-head,
.result-topline,
.attributes-head,
.attribute-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.ghost-button,
.add-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
}

.ghost-button:hover,
.add-button:hover {
  color: var(--ink);
}

.upload {
  height: 226px;
  margin: 26px 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1.5px dashed #bdb5a6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 255, 63, 0.12), rgba(45, 99, 255, 0.08)),
    #fbfaf6;
  transition: 0.18s ease;
  cursor: pointer;
}

.product-link-import {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(45, 99, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 99, 255, 0.08), rgba(217, 255, 63, 0.11)),
    #fffdf8;
}

.product-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.product-link-row button {
  min-width: 166px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 820;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.product-link-row button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.product-link-import small {
  color: var(--muted);
  font-size: 14px;
}

.product-url-message {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: var(--blue);
}

.product-url-message.visible {
  display: block;
}

.product-url-message.error-message {
  color: #a64028;
}

.upload:hover,
.upload.dragging {
  border-color: var(--blue);
  background: #f8f8ef;
}

.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}

.upload-copy strong {
  font-size: 18px;
}

.upload-copy small {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
}

.upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--acid);
  color: #1d2200;
  font-size: 27px;
  font-weight: 300;
}

#imagePreview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f1ece2;
  display: none;
}

.upload.has-image #imagePreview {
  display: block;
}

.upload.has-image .upload-copy {
  display: none;
}

.remove-image {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.82);
  color: white;
  font-size: 20px;
}

.upload.has-image .remove-image {
  display: block;
}

.image-url-option {
  margin: -10px 0 24px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: end;
}

.image-url-option > span {
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field.full {
  grid-column: 1 / -1;
}

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

.field > span,
.field-title {
  font-size: 15px;
  font-weight: 760;
}

.field b {
  color: var(--coral);
}

.field input,
.field textarea,
.field select,
.attribute-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input,
.field select,
.attribute-row input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.attribute-row input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(45, 99, 255, 0.11);
}

.dictionary-upload {
  margin-top: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f1e8;
}

.dictionary-upload > div {
  display: grid;
  gap: 4px;
}

.dictionary-upload strong {
  font-size: 16px;
}

.dictionary-upload small,
.bulk-button small,
.attributes-head small {
  color: var(--muted);
  font-size: 14px;
}

.dictionary-button {
  flex: none;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

.dictionary-button input {
  display: none;
}

.dictionary-message {
  display: none;
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
}

.dictionary-message.visible {
  display: block;
}

.dictionary-message.error-message {
  color: #a64028;
}

.admin-only {
  display: none;
}

body.is-admin .admin-only {
  display: flex;
}

.attributes-head {
  margin-top: 26px;
}

.attributes-head > div {
  display: grid;
  gap: 3px;
}

.attributes-text-field {
  margin-top: 14px;
}

.attributes-divider {
  margin: 15px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.attributes-divider::before,
.attributes-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.attributes {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.attribute-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 8px;
}

.attribute-remove {
  border: 0;
  background: transparent;
  color: #979186;
  font-size: 22px;
}

.attribute-remove:hover {
  color: var(--coral);
}

.submit-button {
  width: 100%;
  height: 56px;
  margin-top: 26px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 820;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-button:hover {
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.18);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-button.loading .button-text {
  display: none;
}

.submit-button.loading .spinner {
  display: block;
}

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

.error {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff1ec;
  color: #9d3e27;
  font-size: 15px;
  line-height: 1.45;
}

.error.visible {
  display: block;
}

.bulk-button {
  width: 100%;
  margin-top: 12px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #cfd8ef;
  border-radius: 8px;
  background: #f2f4ff;
  color: var(--ink);
  text-align: left;
}

.bulk-button span {
  display: grid;
  gap: 4px;
}

.bulk-button strong {
  font-size: 16px;
}

.bulk-button b {
  flex: none;
  color: var(--blue);
  font-size: 15px;
}

.empty-state {
  min-height: 650px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(217, 255, 63, 0.08), rgba(45, 99, 255, 0.18)),
    var(--dark);
  color: white;
}

.empty-state .step-label {
  color: var(--acid);
  margin-top: 34px;
}

.empty-state h2 {
  margin: 0;
  font-size: 34px;
}

.empty-state > p:last-child {
  max-width: 420px;
  color: #c7c2b5;
  font-size: 17px;
  line-height: 1.55;
}

.route-visual {
  width: 250px;
  height: 146px;
  position: relative;
}

.route-visual::before,
.route-visual::after {
  content: "";
  position: absolute;
  background: rgba(217, 255, 63, 0.42);
}

.route-visual::before {
  width: 2px;
  height: 76px;
  left: 50%;
  top: 26px;
}

.route-visual::after {
  width: 150px;
  height: 2px;
  left: 20%;
  top: 101px;
}

.route-visual span {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 5px solid var(--dark);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px rgba(217, 255, 63, 0.68);
  z-index: 1;
}

.route-visual span:first-child {
  left: calc(50% - 12px);
  top: 15px;
  width: 30px;
  height: 30px;
}

.route-visual span:nth-child(2) {
  left: calc(20% - 10px);
  top: 90px;
}

.route-visual span:nth-child(3) {
  left: calc(50% - 10px);
  top: 90px;
}

.route-visual span:nth-child(4) {
  right: calc(20% - 10px);
  top: 90px;
  background: var(--coral);
}

.result-content {
  display: none;
  padding: 42px;
}

.result-panel.has-result .empty-state {
  display: none;
}

.result-panel.has-result .result-content {
  display: block;
}

.confidence {
  background: #eaf0ff;
  color: var(--blue);
  font-size: 14px;
}

.result-content > h2 {
  margin-top: 20px;
  font-size: 42px;
  line-height: 1.04;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
}

.crumb:not(:last-child)::after {
  content: ">";
  color: #aaa49a;
}

.reason {
  margin: 24px 0 0;
  padding: 18px;
  border-left: 3px solid var(--blue);
  background: #f5f1e8;
  color: #555850;
  font-size: 16px;
  line-height: 1.55;
}

.result-section {
  margin-top: 34px;
}

.result-section h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.attribute-results {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.attribute-results-head h3 {
  margin: 0;
  font-size: 19px;
}

.attribute-results-head > span {
  background: #eaf0ff;
  color: var(--blue);
  font-size: 13px;
}

.mapped-attributes {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.mapped-attribute {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.2fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.mapped-attribute-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 760;
}

.required-mark {
  color: var(--coral);
}

.mapped-attribute-value {
  font-size: 15px;
  line-height: 1.45;
}

.mapped-attribute.missing .mapped-attribute-value {
  color: #8f5c4d;
}

.mapped-attribute small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.alternatives {
  display: grid;
  gap: 9px;
}

.alternative {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.alternative strong {
  display: block;
  font-size: 15px;
}

.alternative small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.alternative-score {
  color: var(--blue);
  font-weight: 760;
  font-size: 15px;
  white-space: nowrap;
}

.trace {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trace summary {
  padding: 18px 0;
  font-weight: 760;
  cursor: pointer;
}

.trace-step {
  padding: 0 0 18px 18px;
  border-left: 2px solid #d6d0c4;
}

.trace-step:last-child {
  border-color: var(--blue);
}

.trace-step strong {
  font-size: 15px;
}

.trace-step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.copy-button {
  width: 100%;
  height: 48px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 760;
}

.copy-button:hover {
  background: #f8f5ee;
}

.account-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.34);
}

.account-dialog::backdrop {
  background: rgba(16, 17, 20, 0.62);
  backdrop-filter: blur(5px);
}

.dictionary-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(92vh, 980px);
  padding: 40px;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.34);
}

.dictionary-dialog::backdrop {
  background: rgba(16, 17, 20, 0.62);
  backdrop-filter: blur(5px);
}

.account-dialog h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0;
}

.dictionary-dialog h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0;
}

.dialog-lead {
  max-width: 720px;
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eee8dd;
  color: var(--ink);
  font-size: 21px;
}

.account-email {
  margin: 6px 0 22px;
  color: var(--muted);
}

.dictionary-wizard-form {
  display: grid;
  gap: 17px;
}

.wizard-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5ee;
}

.wizard-block h3 {
  margin: 4px 0 16px;
  font-size: 21px;
}

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field select[multiple] {
  height: auto;
  min-height: 120px;
  padding: 10px 14px;
}

.dictionary-preview {
  display: none;
  padding: 16px;
  border: 1px solid #d7dff7;
  border-radius: 8px;
  background: #f2f4ff;
  color: #3f4c7c;
  font-size: 14px;
  line-height: 1.55;
}

.dictionary-preview.visible {
  display: block;
}

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

.usage-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--dark);
  color: white;
}

.usage-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}

.usage-track {
  height: 8px;
  margin: 15px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.usage-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--acid);
  transition: width 0.25s ease;
}

.usage-card small {
  color: #c7c2b5;
}

.plans {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  padding: 20px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-card h3 {
  margin: 16px 0 7px;
  font-size: 22px;
}

.plan-card > strong {
  font-size: 16px;
}

.plan-card p {
  min-height: 54px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.business-plan {
  border-color: rgba(45, 99, 255, 0.24);
  background: #f2f4ff;
}

.business-plan .plan-badge {
  background: #e4e9ff;
  color: var(--blue);
}

.upgrade-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 780;
}

.logout-button {
  margin-top: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
}

.app-footer {
  width: min(1440px, calc(100% - 40px));
  margin: -30px auto 50px;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.app-footer span {
  font-weight: 760;
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-page {
  background: #fffdf8;
}

.legal-header {
  height: 74px;
  padding: 0 max(22px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
}

.legal-main {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.legal-main h1 {
  margin: 0 0 22px;
  font-size: 56px;
  line-height: 1;
}

.legal-main section {
  padding: 30px 0;
  border-top: 1px solid #e0d9ce;
}

.legal-main h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.legal-main p {
  margin: 0;
  color: #53564f;
  font-size: 17px;
  line-height: 1.65;
}

.legal-alert {
  margin: 0 0 34px !important;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: #f2f4ff;
  color: #33384f !important;
}

.requisites-card {
  padding: 28px;
  border: 1px solid #ded7cb;
  border-radius: 8px;
  background: #f5f1e8;
}

.requisites-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px 20px;
}

.requisites-card dt {
  color: var(--muted);
  font-size: 15px;
}

.requisites-card dd {
  margin: 0;
  font-size: 16px;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .hero-copy h1 {
    font-size: 86px;
  }

  .product-visual {
    width: 440px;
  }
}

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

  .landing-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-copy h1 {
    font-size: 72px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 20px;
  }

  .product-visual {
    width: 100%;
    min-height: 430px;
    margin-top: 42px;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .trust-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .trust-strip b {
    width: 100%;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .conversion-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

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

  .feature-card.featured {
    grid-column: 1 / -1;
  }

  .demo-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .result-panel {
    position: static;
    min-height: 500px;
  }

  .empty-state {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .landing-nav {
    height: 66px;
    padding: 0 14px;
  }

  .landing-nav .nav-cta {
    min-height: 42px;
    padding: 0 13px;
    font-size: 14px;
  }

  .brand {
    gap: 9px;
  }

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

  .landing-hero {
    padding: 54px 16px 34px;
  }

  .hero-copy h1 {
    font-size: 50px;
    line-height: 0.96;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta,
  .text-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .product-visual {
    min-height: 420px;
    padding: 12px;
  }

  .source-card {
    grid-template-columns: 54px 1fr;
  }

  .product-thumb {
    width: 54px;
    height: 54px;
  }

  .source-label {
    display: none;
  }

  .target-fields {
    grid-template-columns: 1fr;
  }

  .target-fields span {
    display: flex;
    justify-content: space-between;
  }

  .trust-strip {
    padding: 18px 16px;
  }

  .landing-section,
  .demo-section {
    padding: 74px 16px;
  }

  .section-heading h2,
  .demo-copy h2 {
    font-size: 38px;
  }

  .before-after article,
  .landing-plans article,
  .auth-card {
    padding: 24px 18px;
  }

  .feature-grid,
  .workflow-grid,
  .landing-plans {
    grid-template-columns: 1fr;
  }

  .feature-card.featured {
    grid-column: auto;
  }

  .footer-topline {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .landing-footer p {
    text-align: left;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .app-footer {
    width: min(100% - 24px, 1440px);
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header {
    height: auto;
    min-height: 66px;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    width: min(100% - 32px, 920px);
    padding: 46px 0 70px;
  }

  .legal-main h1 {
    font-size: 40px;
  }

  .requisites-card dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shell {
    width: min(100% - 24px, 1440px);
    padding-top: 34px;
  }

  .status {
    display: none;
  }

  .topbar {
    padding: 0 12px;
  }

  .brand > span:last-child {
    display: none;
  }

  .account-button {
    padding-left: 10px;
  }

  .intro h1 {
    font-size: 40px;
  }

  .form-panel,
  .result-content {
    padding: 24px 18px;
  }

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

  .field.full {
    grid-column: auto;
  }

  .attribute-row {
    grid-template-columns: 1fr 1fr 32px;
  }

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

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

  .product-link-row button {
    width: 100%;
  }

  .mapped-attribute {
    grid-template-columns: 1fr;
  }

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

  .account-dialog {
    padding: 30px 20px;
  }
}
