/* DeskVoice: the product's pages, in the landing page's look (same colours, type and buttons) */
:root {
  --bg: #0A0E11;
  --panel: #11171D;
  --panel-2: #0E1318;
  --border: #1B242D;
  --border-strong: #2A3743;
  --accent: #1F5C7A;
  --accent-light: #2D7A9E;
  --accent-active: #489ABF;
  --accent-glow: rgba(31, 92, 122, 0.25);
  --text: #ECEFF1;
  --muted: #98A7B3;
  --dim: #7D8E9C;
  --ok: #4EAA79;
  --ok-bg: rgba(46, 139, 87, 0.14);
  --warn: #E0B25C;
  --warn-bg: rgba(224, 178, 92, 0.12);
  --err: #E07A72;
  --err-bg: rgba(194, 85, 77, 0.12);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent-active); text-underline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
[hidden] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 27rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 17, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; min-height: 44px; }
.brand img { width: 1.9rem; height: 1.9rem; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 0.35rem; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.6rem 0.75rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); background: var(--panel); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.35rem; min-height: 44px; font: inherit; font-size: 0.95rem; font-weight: 600; border-radius: 6rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent-light); box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel); }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(224, 122, 114, 0.45); }
.btn-danger:hover { background: var(--err-bg); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-active); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--accent-active); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0.5rem 0; min-height: 44px; }

/* forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.hint { font-size: 0.8rem; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0.65rem 0.8rem; min-height: 2.85rem; width: 100%; }
textarea { min-height: 5.5rem; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #C2554D; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--accent-light); }
.err { font-size: 0.82rem; color: var(--err); }
.err:empty { display: none; }
.note { font-size: 0.9rem; border-radius: 8px; padding: 0.7rem 0.9rem; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.note:empty { display: none; }
.note.bad { color: var(--err); background: var(--err-bg); border-color: rgba(194, 85, 77, 0.35); }
.note.good { color: var(--ok); background: var(--ok-bg); border-color: rgba(46, 139, 87, 0.4); }
.note.warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(224, 178, 92, 0.35); }

/* auth pages */
.auth h1 { font-size: 1.85rem; margin-bottom: 0.4rem; }
.auth .lede { color: var(--muted); margin-bottom: 1.6rem; }
.auth .alt { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); text-align: center; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; }
@media (min-width: 640px) { .card { padding: 1.75rem; } }

/* dashboard */
.page-head { padding: 2rem 0 1.25rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.1fr 0.9fr; } }
.section { margin-bottom: 1.25rem; }
.section h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.section .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tag { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-active); text-transform: uppercase; letter-spacing: 0.08em; }
.big-number { font-family: var(--mono); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--mono); }
.bar { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; margin: 0.5rem 0 0.35rem; }
.bar span { display: block; height: 100%; background: var(--accent-light); border-radius: 6px; }
.bar.full span { background: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; font-family: var(--mono); border-radius: 5px; padding: 0.15rem 0.5rem; border: 1px solid var(--border-strong); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(46, 139, 87, 0.45); background: var(--ok-bg); }
.pill.info { color: var(--accent-active); border-color: var(--accent); background: rgba(31, 92, 122, 0.18); }
.pill.warn { color: var(--warn); border-color: rgba(224, 178, 92, 0.4); background: var(--warn-bg); }
.list { list-style: none; display: grid; gap: 0.6rem; }
.item { border: 1px solid var(--border); background: var(--panel-2); border-radius: 10px; padding: 0.85rem 1rem; }
.item .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; }
.item .who { font-weight: 600; }
.item .when { color: var(--dim); font-family: var(--mono); font-size: 0.78rem; }
.item p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
.empty { color: var(--muted); font-size: 0.92rem; padding: 1rem; border: 1px dashed var(--border-strong); border-radius: 10px; text-align: center; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0.75rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.3rem; color: var(--muted); font-size: 0.93rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: rgba(31, 92, 122, 0.25); color: var(--accent-active); border: 1px solid var(--accent); }
.steps li strong { color: var(--text); }
details.more { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 0.75rem; }
details.more summary { cursor: pointer; color: var(--accent-active); font-size: 0.92rem; min-height: 44px; display: flex; align-items: center; }
code, .code { font-family: var(--mono); font-size: 0.85rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.1rem 0.4rem; word-break: break-all; }

/* hours table */
.hours { display: grid; gap: 0.45rem; }
.hours .day { display: grid; grid-template-columns: 4.6rem auto 1fr; align-items: center; gap: 0.6rem; }
.hours .times { display: flex; align-items: center; gap: 0.4rem; }
.hours .times input { min-height: 2.5rem; padding: 0.4rem 0.5rem; }
.hours .closed { color: var(--dim); font-size: 0.85rem; }
.hours label.on { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); min-height: 44px; }
.svc { display: grid; grid-template-columns: 1fr 5.5rem 6rem 2.75rem; gap: 0.45rem; align-items: center; }
.svc input { min-height: 2.6rem; }
.svc-head { font-size: 0.78rem; color: var(--dim); }
.faq { display: grid; gap: 0.45rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.x { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.x:hover { color: var(--err); border-color: var(--err); }

/* the test chat */
.chat { display: flex; flex-direction: column; gap: 0.6rem; max-height: 26rem; overflow-y: auto; padding: 0.25rem; }
.bubble { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.4; }
.bubble.ai { background: rgba(31, 92, 122, 0.22); border: 1px solid var(--accent); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--panel-2); border: 1px solid var(--border-strong); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.sys { align-self: center; background: none; color: var(--dim); font-size: 0.8rem; text-align: center; }
.chat-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.chat-form input { flex: 1; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 1.6rem 0; margin-top: 3rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.foot .name { color: var(--muted); font-weight: 700; }
.syng-legal-links { font-size: 0.875rem; color: var(--dim); }
.syng-legal-links a { color: var(--muted); display: inline-block; padding: 0.6rem 0.25rem; text-decoration: none; }
.syng-legal-links a:hover { color: var(--text); }
.loading { color: var(--muted); padding: 3rem 0; text-align: center; }
input, select, textarea, code { min-width: 0; max-width: 100%; }
.section .sub, .page-head p { max-width: 65ch; }
.app-main { min-height: 100vh; }
.hours .times input { width: 8.6rem; }
.page-head > div { min-width: 0; flex: 1 1 18rem; }
.grid > * { min-width: 0; }
@media (max-width: 560px) {
  .svc { grid-template-columns: 1fr 4rem 4.4rem 2.75rem; gap: 0.35rem; }
  .hours .day { grid-template-columns: 3rem 1fr; row-gap: 0.1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
  .hours .times, .hours .closed { grid-column: 1 / -1; }
  .hours .times input { width: auto; flex: 1 1 0; }
  .form > *, .hours .day > * { min-width: 0; }
  .top nav a { padding: 0.6rem 0.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: pop 0.18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
