/* Zenvlo monochrome (see the apps' DESIGN.md): dark by default, light mirror, no shadows, Inter */
:root {
  --bg: #0a0a0a; --card: #141414; --muted: #212121; --border: #2a2a2a;
  --fg: #ffffff; --body: #d9d9d9; --sub: #999999; --subtle: #848484;
  --btn-bg: #ffffff; --btn-fg: #0a0a0a; --danger: #ff5f57;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa; --card: #ffffff; --muted: #f0f0f0; --border: #e5e5e5;
    --fg: #0a0a0a; --body: #262626; --sub: #666666; --subtle: #737373;
    --btn-bg: #0a0a0a; --btn-fg: #ffffff; --danger: #d93f36;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--body); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--fg); text-underline-offset: 3px; }
h1 { color: var(--fg); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.sub { color: var(--sub); margin: 4px 0 20px; }
.sub strong { color: var(--fg); font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--sub); }
input[type=text], input[type=email], input[type=password], input[type=tel], select {
  height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; outline: none;
}
input:focus { border-color: var(--sub); }
input::placeholder { color: var(--subtle); opacity: 1; }
.pw { position: relative; display: flex; flex-direction: column; }
.pw input { padding-right: 40px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--subtle); cursor: pointer; border-radius: 6px; }
.pw-toggle:hover { color: var(--fg); }
.pw-toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.pw-toggle .eye-closed, .pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-closed { display: block; }
input::-ms-reveal { display: none; }
input.code { letter-spacing: 6px; font-size: 18px; text-align: center; }
.hint, .fine { font-size: 12px; color: var(--subtle); font-weight: 400; margin: 0; }
.row-end { display: flex; justify-content: flex-end; margin-top: -6px; font-size: 12px; }
.row-end a { color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 6px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; width: 100%; }
.btn:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); opacity: 1; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { border: 1px solid var(--border); background: var(--muted); color: var(--body); border-radius: 6px; padding: 10px 12px; margin: 0 0 16px; font-size: 13px; }
.alert-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.switch { text-align: center; color: var(--sub); font-size: 13px; margin: 18px 0 0; }
.inline { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--fg); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.app { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.app:hover { background: var(--muted); }
.app-name { color: var(--fg); font-weight: 600; }
.app-desc { color: var(--sub); font-size: 13px; grid-row: 2; }
.arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--sub); }
.foot { color: var(--subtle); font-size: 12px; text-align: center; max-width: 380px; margin: 0; }
.foot a { color: var(--sub); }
.facts { margin: 0 0 20px; padding-left: 18px; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.body { color: var(--body); margin: 0 0 18px; }
.body strong { color: var(--fg); font-weight: 500; }
.app-button { width: 100%; text-align: left; background: transparent; font: inherit; cursor: pointer; color: inherit; }
.app-off { opacity: .6; }

.phone-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
@media (max-width: 420px) { .phone-row { grid-template-columns: 1fr; } }

/* Split layout: the product story on the left, the form on the right */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero { background: #141414; border-right: 1px solid #2a2a2a; color: #d9d9d9; padding: 40px clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { display: block; height: 24px; width: auto; }
.hero-body { max-width: 520px; }
.hero-body h2 { color: #ffffff; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 14px; max-width: 16em; }
.hero-body > p { color: #999999; font-size: 15px; line-height: 1.6; margin: 0; max-width: 34em; }
.hero-foot { color: #848484; font-size: 13px; margin: 0; }
.pane { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 32px; gap: 28px; }
.panel { width: 100%; max-width: 380px; }

/* Product picture: an inbox window with a lead card overlapping its corner */
.mock { position: relative; margin-top: 40px; padding: 0 64px 72px 0; }
.mock-window { background: #0a0a0a; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #2a2a2a; font-size: 13px; font-weight: 600; color: #ffffff; }
.mock-count { color: #848484; font-weight: 400; }
.mock-contact { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.mock-contact .wa { flex: none; }
.mock-contact b { display: block; color: #ffffff; font-weight: 500; font-size: 14px; }
.mock-contact small { color: #848484; font-size: 12px; }
.mock-chat { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 100px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.msg-in { background: #212121; color: #d9d9d9; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-out { background: #ffffff; color: #0a0a0a; align-self: flex-end; border-bottom-right-radius: 4px; }
.mock-lead { position: absolute; right: 0; bottom: 0; width: 236px; background: #191919; border: 1px solid #3a3a3a; border-radius: 10px; padding: 14px 16px; }
.mock-lead small { color: #999999; font-size: 12px; }
.mock-lead b { display: block; color: #ffffff; font-weight: 600; font-size: 15px; margin: 2px 0 10px; }
.mock-lead dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 12.5px; }
.mock-lead dt { color: #848484; }
.mock-lead dd { color: #d9d9d9; margin: 0; text-align: right; }

/* One sequence on load: the chat arrives, then the lead appears. It plays once and stays. */
.s1, .s2, .s3, .s4 { animation: arrive .45s cubic-bezier(.2, .7, .2, 1) both; }
.s1 { animation-delay: .4s; }
.s2 { animation-delay: 1.2s; }
.s3 { animation-delay: 2s; }
.s4 { animation-delay: 2.9s; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .s1, .s2, .s3, .s4 { animation: none; } }

/* Visible keyboard focus */
a:focus-visible, .btn:focus-visible, .link:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .hero { border-right: 0; border-bottom: 1px solid #2a2a2a; padding: 18px 20px; }
  .hero-body, .hero-foot { display: none; }
  .pane { justify-content: flex-start; padding: 32px 20px 24px; }
}
