/* TalkZeno website - shared styles (header, footer, buttons, legal pages). Fonts are self-hosted. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #061a5c;
  --royal: #0b2e8f;
  --blue: #0b63f6;
  --sky: #1e8bff;
  --teal: #12b886;
  --mint: #2ed3a0;
  --ink: #06153f;
  --text: #26365c;
  --muted: #5f6f95;
  --line: #e3eaf7;
  --bg: #f5f8ff;
  --danger: #d32f2f;
  --danger-bg: #fdecec;
  --good: #16794f;
  --good-bg: #e4f7ee;
  --shadow: 0 10px 30px rgba(11, 46, 143, 0.1);
  --shadow-lg: 0 30px 60px rgba(6, 26, 92, 0.28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(11, 99, 246, 0.45); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227, 234, 247, 0.9);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.4px; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--blue); font-weight: 800; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.links { display: flex; gap: 26px; margin-left: auto; margin-right: 6px; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; box-shadow: 0 8px 20px rgba(11, 99, 246, 0.32); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(11, 99, 246, 0.4); }
.btn-light { background: #fff; color: var(--royal); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c8f0; padding: 60px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--mint); }
.site-footer p { margin: 14px 0 0; font-size: 14.5px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer a { color: #b9c8f0; display: block; font-size: 15px; margin-bottom: 9px; }
.site-footer a.brand { display: flex; margin-bottom: 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Legal / info pages */
.page-hero {
  color: #fff;
  padding: 58px 0 92px;
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(46, 211, 160, 0.32), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--royal) 50%, var(--blue) 100%);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin: 0 0 10px; color: #fff; }
.page-hero .meta { margin: 0; color: #cfe0ff; font-size: 15px; }
.page-hero .crumb { color: #9fb8f5; font-size: 14px; font-weight: 600; margin: 0 0 14px; letter-spacing: 0.06em; text-transform: uppercase; }

.prose {
  position: relative;
  max-width: 820px;
  margin: -44px auto 72px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 46px 52px 40px;
}
.prose h2 { color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.3px; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose > p:first-child { font-size: 17.5px; color: var(--text); }

/* Page layout: content card (and, when there are enough headings, a sticky contents list) at header width */
.doc { margin-top: -44px; margin-bottom: 72px; }
.doc .prose { margin: 0; max-width: none; }
.toc { display: none; }
.doc.has-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.doc.has-toc .toc {
  display: block;
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 14px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 116px);
  overflow: auto;
}
.toc-title { margin: 0 0 10px; padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 2px; }
.toc a:hover { background: #eef5ff; color: var(--blue); text-decoration: none; }
.toc a.active { background: #eef5ff; color: var(--blue); }

.note { background: #eef5ff; border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; }

.card { background: #f8fbff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 20px 0; }

label { display: block; font-weight: 700; color: var(--ink); margin: 14px 0 6px; font-size: 15px; }
input[type='email'], input[type='password'] {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12); }
form .btn { margin-top: 20px; }

.status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 15px; display: none; }
.status.show { display: block; }
.status.err { background: var(--danger-bg); color: #b71c1c; }
.status.ok { background: var(--good-bg); color: var(--good); }
.status.info { background: #eef5ff; color: var(--royal); }

@media (max-width: 1000px) {
  .doc.has-toc { display: block; }
  .doc.has-toc .toc { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav > .btn { margin-left: auto; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; border-radius: 12px; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 14px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(6, 26, 92, 0.12);
  }
  .site-header.open .links { display: flex; }
  .links a { padding: 14px 8px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .doc { margin-top: -36px; margin-bottom: 56px; }
  .doc.container { padding-left: 16px; padding-right: 16px; }
  .prose { padding: 30px 22px 26px; border-radius: 20px; }
  .page-hero { padding: 44px 0 80px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
