/* Velyx Voice · Real estate demo. Velyx Labs design language: Geist, monochrome greys, dark rounded
   panels, pill buttons, one accent green. Mobile-first: base = phones, media queries add wider layouts. */
:root {
  --bg: #efefef;
  --ink: #232323;
  --ink-2: #4a4a4a;
  --muted: #6b6b6b;
  --panel: #232323;
  --panel-card: #313131;
  --panel-line: #3f3f3f;
  --on-panel: #efefef;
  --on-panel-muted: #a3a3a3;
  --accent: #22c55e;
  --danger: #e5484d;
  --radius-card: 24px;
  --radius-panel: 36px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: 16px;
}
@media (min-width: 720px) { :root { --pad: 28px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(34, 197, 94, 0.55); outline-offset: 2px; }

/* ------------------------------------------------------------------ header */
.site-head { max-width: 1120px; margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.logo-dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, transform 0.1s, opacity 0.2s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* ------------------------------------------------------------------ intro */
.intro { max-width: 760px; margin: 0 auto; padding: 44px var(--pad) 30px; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.intro h1 { font-size: clamp(2.1rem, 7.6vw, 3.7rem); margin: 0 auto 16px; max-width: 14ch; }
.lede { font-size: 1.05rem; color: var(--muted); margin: 0 auto; max-width: 36em; }
@media (min-width: 900px) { .intro { padding: 72px var(--pad) 44px; } }
.banner { max-width: 1120px; margin: 0 auto 12px; background: #fff3d6; color: #5c4510; font-size: 0.9rem; text-align: center; padding: 10px var(--pad); border-radius: 14px; }

/* ------------------------------------------------------------------ market cards */
.markets { max-width: 1120px; margin: 0 auto; padding: 0 10px; display: grid; gap: 10px; }
@media (min-width: 720px) { .markets { padding: 0 var(--pad); } }
@media (min-width: 1000px) { .markets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } }
.market { background: var(--panel); color: var(--on-panel); border-radius: var(--radius-panel); padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 480px) { .market { padding: 32px 18px 18px; } }
.market-head { padding: 0 8px; }
.market-head h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); color: #fff; margin-bottom: 8px; }
.market-head p { margin: 0; color: var(--on-panel-muted); }
.market-head p b { color: #fff; font-weight: 600; }
.market-head .cities { margin-top: 6px; font-size: 0.9rem; color: #d6d6d6; }
.market-head .lang { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: #d6d6d6; background: var(--panel-card); padding: 6px 12px; border-radius: 999px; }
.modes { display: grid; gap: 10px; flex: 1; }
@media (min-width: 560px) { .modes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mode { background: var(--panel-card); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mode-label { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-panel-muted); }
.mode h3 { font-size: 1.22rem; color: #fff; letter-spacing: -0.02em; }
.mode p { margin: 0; color: var(--on-panel-muted); font-size: 0.93rem; }
.mode .try { color: #dcdcdc; font-size: 0.9rem; border-left: 2px solid var(--panel-line); padding-left: 10px; margin-top: 2px; }
.mode .btn { margin-top: auto; width: 100%; }
.mode .try, .mode .name-field { margin-bottom: 14px; }
.name-field { display: grid; gap: 6px; margin-top: 6px; }
.name-field span { font-size: 12.5px; font-weight: 500; color: var(--on-panel-muted); }
.name-field input { width: 100%; min-width: 0; height: 44px; border-radius: 14px; border: 1px solid var(--panel-line); background: #282828; color: #fff; padding: 0 14px; font-size: 16px; outline: none; transition: border-color 0.2s; }
.name-field input::placeholder { color: #777; }
.name-field input:focus { border-color: #8a8a8a; }

.note { max-width: 1120px; margin: 16px auto 0; padding: 0 var(--pad); text-align: center; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------------ footer */
.footer { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 48px; text-align: center; color: var(--muted); font-size: 14px; }
.footer .made { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.footer p { margin: 4px auto; }
.footer p a { color: var(--ink); font-weight: 600; }
.footer .fine { font-size: 12px; max-width: 34em; margin-top: 10px; }

/* ------------------------------------------------------------------ call screens */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 20, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 12px; }
.phone-sheet { width: min(400px, 100%); background: #1d1d1d; color: var(--on-panel); border-radius: 36px; padding: 28px 22px 26px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; align-items: center; text-align: center; }
.status-line { margin: 0 0 22px; font-size: 13px; font-weight: 500; color: var(--on-panel-muted); min-height: 1.3em; }
.phone-sheet h3 { font-size: 1.5rem; color: #fff; margin-top: 18px; }
.phone-sheet .sub { margin: 4px 0 0; color: var(--on-panel-muted); font-size: 0.95rem; }
.timer { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.avatar { --level: 0; width: 104px; height: 104px; border-radius: 50%; background: #efefef; color: var(--ink); display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; box-shadow: 0 0 0 calc(var(--level) * 16px) rgba(239, 239, 239, 0.14), 0 0 0 calc(var(--level) * 30px) rgba(239, 239, 239, 0.06); transition: box-shadow 0.09s linear; }
.avatar.ringing { animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(239, 239, 239, 0.28); } 100% { box-shadow: 0 0 0 28px rgba(239, 239, 239, 0); } }

.incoming { padding-top: 40px; }
.answer-row { display: flex; justify-content: space-between; width: 100%; max-width: 260px; margin-top: 54px; }
.answer-row > div, .controls > div { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--on-panel-muted); }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; transition: transform 0.1s, background-color 0.2s; }
.round:active { transform: scale(0.95); }
.round svg { width: 26px; height: 26px; fill: #fff; }
.round.answer { background: var(--accent); }
.round.answer svg { fill: #0b2e17; }
.round.decline { background: var(--danger); }
.round.decline:hover { background: #d63b40; }
.round.ctl { background: #333; }
.round.ctl:hover { background: #3d3d3d; }
.round.ctl[aria-pressed="true"] { background: #efefef; }
.round.ctl[aria-pressed="true"] svg { fill: var(--ink); }

.callsheet { height: min(700px, calc(100dvh - 24px)); }
.call-top { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.captions { flex: 1; width: 100%; min-height: 0; overflow-y: auto; margin: 22px 0 0; padding: 12px 14px; background: #161616; border-radius: 20px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.cap { margin: 0; font-size: 0.93rem; line-height: 1.45; color: #e6e6e6; }
.cap b { font-weight: 600; margin-right: 6px; color: var(--on-panel-muted); }
.cap.caller span { color: #bdbdbd; }
.call-error { margin: 18px 0 0; color: #ffb4b4; font-size: 0.92rem; }
.controls { margin-top: auto; padding-top: 22px; width: 100%; display: flex; justify-content: space-around; }
.after { margin-top: auto; width: 100%; display: grid; gap: 14px; justify-items: center; }
.after p { margin: 0; color: var(--on-panel-muted); }
.after .btn { width: 100%; max-width: 260px; }
@media (max-width: 520px) {
  .overlay.full { padding: 0; }
  .overlay.full .phone-sheet { border-radius: 0; width: 100%; height: 100dvh; padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

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