/* =====================================================================
   AGENTS LENS TELEPROMPTER -- standalone client build.
   Trimmed token set + shell lifted from the dashboard's dashboard.css so
   the prompter page and reading overlay look identical here. This site is
   deliberately single-purpose: no rail, no nav, no other pages.
   ===================================================================== */

:root {
  --bg:            #060609;
  --surface:       #0f0f14;
  --line:          rgba(255, 255, 255, 0.06);
  --line-2:        rgba(255, 255, 255, 0.10);
  --line-strong:   rgba(255, 255, 255, 0.18);

  --ink:           #f4f1ea;      /* warm white */
  --ink-2:         rgba(244, 241, 234, 0.72);
  --ink-3:         rgba(244, 241, 234, 0.50);
  --ink-4:         rgba(244, 241, 234, 0.32);

  --gold:          #D4AF37;
  --gold-hi:       #F0CF60;
  --gold-10:       rgba(212, 175, 55, 0.10);
  --gold-18:       rgba(212, 175, 55, 0.18);
  --gold-30:       rgba(212, 175, 55, 0.30);
  --gold-grad:     linear-gradient(135deg, #F0CF60 0%, #D4AF37 45%, #8E7320 100%);

  --err:           #E06C6C;

  --r-sm: 8px;
  --r-md: 12px;

  --font-ui:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(212,175,55,0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(127,166,212,0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.3); }

/* ---------------------------------------------------------------- shell */
.shell {
  max-width: 860px; width: 100%;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 26px)
    calc(env(safe-area-inset-right, 0px) + 22px)
    calc(env(safe-area-inset-bottom, 0px) + 40px)
    calc(env(safe-area-inset-left, 0px) + 22px);
}

.masthead {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.masthead img { height: 26px; width: auto; opacity: 0.95; }
.masthead .sep { width: 1px; height: 20px; background: var(--line-2); }
.masthead .lockup { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.masthead .name {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.masthead .tag { font-size: 11.5px; color: var(--ink-4); }

/* ---------------------------------------------------------------- buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold-grad); color: #0b0905;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 10px 25px -10px rgba(212,175,55,0.5);
  transition: transform 0.12s, box-shadow 0.18s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 15px 30px -12px rgba(212,175,55,0.6); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--ink); }

/* ---------------------------------------------------------------- modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 480px; max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px); overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, #16161c, #0d0d12);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
  animation: popIn 0.22s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.modal h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.modal p.sub { font-size: 12px; color: var(--ink-4); margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn-primary { flex: 1; justify-content: center; padding: 12px; }
.modal-actions .btn-ghost { justify-content: center; padding: 12px 18px; }

@media (max-width: 760px) {
  .modal { width: 100%; max-width: calc(100vw - 24px); padding: 22px; }
  .modal-overlay { padding: 12px; }
  .masthead img { height: 22px; }
}
