/* MergeVise — the public page. Plain CSS, no framework, no web font: the platform's own variable UI face. */
:root {
  --ink: #16191d;
  --ink-soft: #4a5058;
  --paper: #ffffff;
  --panel: #f4f6f8;
  --rule: #dfe3e8;
  --brand: #0d6e78;
  --brand-deep: #0a5961;
  --brand-wash: #e7f3f4;
  --risk: #b42318;
  --risk-wash: #fdf0ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 25, 29, 0.06), 0 12px 32px -12px rgba(22, 25, 29, 0.18);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 8px;
}

p {
  margin: 0 0 14px;
  max-width: 68ch;
}

/* ---- the bar ------------------------------------------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

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

.mark {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: 12px;
}

.nav a,
.link-quiet {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}

.nav a:hover,
.link-quiet:hover {
  color: var(--ink);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(13, 110, 120, 0.7);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--rule);
  background: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn-inverse {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.btn-inverse:hover {
  background: var(--brand-wash);
}

/* ---- the hero ----------------------------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(1100px 520px at 85% 0%, var(--brand-wash), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 14px;
}

.fine {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---- the illustrative answer ---------------------------------------------------------------------------------- */
.demo {
  margin: 0;
  width: 100%;
  max-width: 560px;
}

.demo-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  animation: rise 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.demo-title {
  font-weight: 700;
  font-family: var(--font-display);
}

.demo-tag {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 999px;
}

.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.demo-row-risk {
  background: var(--risk-wash);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.18);
}

.demo-item {
  margin: 0;
  font-weight: 650;
}

.demo-where {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.demo-short {
  margin: 0;
  color: var(--risk);
  font-weight: 600;
  white-space: nowrap;
}

.demo-chart {
  width: 100%;
  margin: 14px 0 6px;
}

.demo-chart .axis {
  stroke: var(--rule);
  stroke-width: 1.5;
}

.demo-chart .axis-label {
  fill: var(--ink-soft);
  font-size: 10px;
  font-family: var(--font);
}

.demo-chart .stock {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: miter;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 380ms 120ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.demo-chart .short {
  fill: var(--risk);
  opacity: 0;
  animation: appear 200ms 520ms ease-out forwards;
}

.demo-chart .late {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 0.9;
  }
}

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

/* ---- sections ----------------------------------------------------------------------------------------------- */
.section,
.band {
  padding: clamp(56px, 8vw, 104px) 0;
}

.band {
  background: var(--panel);
  border-block: 1px solid var(--rule);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--brand);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps p {
  color: var(--ink-soft);
}

.two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.facts li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}

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

.connect {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.connect li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}

.connect p {
  color: var(--ink-soft);
  margin: 0;
}

.state {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-wash);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.state-soon {
  color: var(--ink-soft);
  background: var(--panel);
}

.price {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  max-width: 520px;
}

.price-big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 16px;
}

.price ul {
  padding-left: 20px;
  margin: 0 0 18px;
  color: var(--ink-soft);
}

details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style-position: outside;
}

details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.closing {
  background: var(--brand);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}

.closing h2 {
  color: #fff;
}

.foot {
  padding: 32px 0 48px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
}

.foot p {
  margin: 0;
}

/* ---- narrow screens ------------------------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid,
  .two {
    grid-template-columns: 1fr;
  }
  .steps,
  .connect {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .top-actions .link-quiet {
    display: none;
  }
  .demo-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- reduced motion: every movement stops, the drawn result is shown at once ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .demo-chart .stock {
    stroke-dashoffset: 0;
  }
  .demo-chart .short {
    opacity: 0.9;
  }
}
