/* Landing page for demo.melva.pro. Tokens are copied from the MELVA Pro visual identity
   (melvaprobizz visual_identity/current/melva-pro-tokens.css); fonts and wordmark come from
   the app's own assets. */

@font-face {
  font-family: "Flexo";
  src: url("/assets/fonts/Flexo-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Flexo";
  src: url("/assets/fonts/Flexo-Demi.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Flexo";
  src: url("/assets/fonts/Flexo-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --mp-bg: #dae5f0;
  --mp-bg-raised: #e9f1f8;
  --mp-bg-header: #cfd9e5;
  --mp-bg-white: #ffffff;
  --mp-fg: #29374a;
  --mp-fg-body: #333333;
  --mp-fg-muted: #586374;
  --mp-line: #cfd9e5;
  --mp-line-strong: #6f7d92;
  --mp-accent: #2495d6;
  --mp-accent-fill: #1678c6;
  --mp-accent-text: #0b5fae;
  --mp-accent-hover: #0a5aa3;
  --mp-on-accent: #ffffff;
  --mp-focus: #0b5fae;
  --mp-sans: "Flexo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mp-radius-small: 4px;
  --mp-radius-card: 14px;
  --mp-shadow: 0 10px 20px rgba(33, 33, 33, .2);
  --mp-max-width: 1140px;
}

/* Dark band, for the quotes. */
[data-band="dark"] {
  --mp-bg: #1f2c3d;
  --mp-fg: #f3f7fb;
  --mp-fg-body: #d4dfeb;
  --mp-fg-muted: #a0b4cb;
  --mp-accent-text: #66b5e2;
  --mp-focus: #92caeb;
  background: var(--mp-bg);
  color: var(--mp-fg);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-fg-body);
  font-family: var(--mp-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--mp-focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--mp-max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { color: var(--mp-fg); text-wrap: balance; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--mp-radius-small);
  font-weight: 600; font-size: 13px; letter-spacing: .84px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--mp-accent-fill); color: var(--mp-on-accent); }
.btn-primary:hover { background: var(--mp-accent-hover); }
.btn-secondary { border: 1px solid var(--mp-line-strong); color: var(--mp-accent-text); background: transparent; }
.btn-secondary:hover { border-color: var(--mp-accent-text); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--mp-bg-header);
  border-bottom: 1px solid var(--mp-line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { display: block; height: 20px; width: auto; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mp-accent-text);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.026em;
}
.lead { margin: 0 0 28px; font-size: 18px; color: var(--mp-fg-body); max-width: 52ch; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--mp-fg-muted); }

/* Screenshots */
figure.shot { margin: 0; }
figure.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--mp-radius-card);
  border: 1px solid var(--mp-line);
  box-shadow: var(--mp-shadow);
  background: var(--mp-bg-white);
}
figure.shot figcaption { margin-top: 10px; font-size: 12px; color: var(--mp-fg-muted); }

/* USPs */
.usp { padding: 56px 0; border-top: 1px solid var(--mp-line); }
.usp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.usp-grid.rev .copy { order: 2; }
.usp h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.12; letter-spacing: -.022em;
}
.usp .copy > p { margin: 0 0 20px; max-width: 56ch; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.ticks li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mp-accent);
}
ul.ticks b { color: var(--mp-fg); font-weight: 600; }
.small { margin: 18px 0 0; font-size: 14px; color: var(--mp-fg-muted); }

/* Quotes */
.quotes-band { padding: 64px 0; }
.quotes-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em;
}
.quotes-band .sub { margin: 0 0 28px; color: var(--mp-fg-muted); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
figure.q {
  margin: 0; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--mp-radius-card);
  background: #29374a;
}
figure.q blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; font-weight: 600; color: var(--mp-fg); }
figure.q blockquote::before {
  content: "\201C"; display: block;
  font-size: 2.6rem; line-height: .6; margin-bottom: 8px;
  color: var(--mp-accent-text);
}
figure.q figcaption { margin-top: auto; font-size: 14px; color: var(--mp-fg-muted); }
figure.q figcaption b { display: block; color: var(--mp-fg); font-weight: 600; }

/* Closing */
.closing { padding: 72px 0; text-align: center; }
.closing h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.closing p { margin: 0 auto 24px; max-width: 52ch; }
.closing .cta-row { justify-content: center; }

/* Contact page */
.contact { padding: 64px 0 72px; }
.contact h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.026em;
}
.person {
  display: flex; align-items: center; gap: 32px;
  max-width: 640px; padding: 28px;
  border: 1px solid var(--mp-line); border-radius: var(--mp-radius-card);
  background: var(--mp-bg-raised);
}
.person img { flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.person h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.person .role { margin: 0 0 12px; color: var(--mp-fg-muted); }
.person .email { margin: 0 0 20px; font-size: 18px; }
.person .email a { color: var(--mp-accent-text); }

/* Footer */
.footer { padding: 24px 0 32px; border-top: 1px solid var(--mp-line); font-size: 13px; color: var(--mp-fg-muted); }
.footer a { color: var(--mp-accent-text); }

@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero-grid, .usp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .usp-grid.rev .copy { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .person { flex-direction: column; align-items: flex-start; gap: 20px; }
}
