/* dejawho web app — shares the marketing site's paper/ink/lime language. */
:root {
  --paper: #f6f7f2;
  --ink: #20251e;
  --muted: #6b7065;
  --lime: #d5f77c;
  --line: #dedfd7;
  --card: #ffffff;
  --display: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); margin-top: 0; }
::selection { background: var(--lime); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #719936;
  outline-offset: 2px;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -1.1px;
  font-weight: 800;
}
.brand > b { color: #80a641; margin-left: -8px; }
.brand-mark { display: flex; gap: 3px; height: 24px; align-items: center; }
.brand-mark i { width: 4px; height: 12px; border-radius: 5px; background: var(--ink); }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 17px; }
.brand-mark i:nth-child(4) { height: 9px; }

.tabs { display: flex; gap: 6px; }
.tab {
  border: 1px solid transparent;
  background: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.tab.on { background: var(--ink); color: #fff; }
.tab:not(.on):hover { border-color: var(--line); color: var(--ink); }

.account { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; }
#whoEmail { color: var(--muted); }
.plan-badge {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--lime);
  border-radius: 3px;
  padding: 3px 7px;
  margin-left: 8px;
  font-weight: 600;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 5px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 1;
}
.icon-btn:hover { background: var(--lime); }

/* ── Buttons / fields ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  min-height: 46px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 5px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 14px #20251e14; }
.button:disabled { opacity: .45; cursor: default; }
.button.dark { background: var(--ink); color: #fff; border-color: transparent; }
.button.dark:hover:not(:disabled) { background: #37422e; }
.button.lime { background: var(--lime); border-color: transparent; }
.button.small { min-height: 36px; padding: 8px 14px; font-size: 11px; }
.button.google { width: 100%; }

.field-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field-row label { font-size: 11px; font-weight: 600; }
.field-row label em { font-style: normal; color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.form-msg { font-size: 11px; color: var(--muted); white-space: pre-line; margin: 8px 0 0; }
.form-msg.error { color: #b3401f; }
.label {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ── Signed-out offer ────────────────────────────────────────────────── */
.sell { padding: 28px 26px 64px; max-width: 1080px; margin: 0 auto; }
.sell-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0 48px;
}
.sell-copy h1 { font-size: 58px; letter-spacing: -2.6px; line-height: .95; margin: 0 0 16px; }
.sell-copy .sub { font-size: 16px; color: var(--muted); max-width: 460px; }
.sell-points { list-style: none; padding: 0; margin: 22px 0; }
.sell-points li { font-size: 14px; padding: 6px 0 6px 18px; position: relative; }
.sell-points li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--ink); }
.sell-price-line { font-size: 14px; margin: 0; }
.sell-price-line b { font-family: var(--display); font-size: 28px; letter-spacing: -1px; }
.sell-price-line span { display: block; color: var(--muted); font-size: 13px; }
.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 18px 45px #26371810;
}
.auth-card h2 { font-size: 26px; letter-spacing: -1px; margin-bottom: 16px; }
.sell-band, .sell-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sell-offer { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.sell-band article, .offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.sell-band span { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.sell-band h3, .offer-card h3 { font-size: 18px; letter-spacing: -.4px; margin: 8px 0; }
.sell-band p, .offer-card p { font-size: 13px; color: var(--muted); margin: 0; }
.offer-card.featured { background: var(--ink); color: #fff; }
.offer-card.featured p, .offer-card.featured .label { color: #c9d2bc; }
.offer-price { font-family: var(--display); font-size: 42px; letter-spacing: -1.5px; color: var(--ink); margin: 4px 0 10px; font-weight: 800; }
.offer-card.featured .offer-price { color: var(--lime); }
.offer-price span { font-size: 14px; letter-spacing: 0; font-weight: 600; }
.offer-card .button { margin-top: 16px; }
.sell-faq { margin-top: 36px; max-width: 640px; }
.sell-faq h2 { font-size: 28px; letter-spacing: -1px; }
.sell-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.sell-faq summary { cursor: pointer; font-weight: 600; }
.sell-faq p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.topbar { position: sticky; top: 0; z-index: 5; }
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.dash { width: 21px; height: 2px; background: var(--ink); }
.auth-card h1 { font-size: 32px; letter-spacing: -1.6px; line-height: 1.1; margin-bottom: 12px; }
.auth-card .sub { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-row { flex-direction: row; align-items: center; }
.code-row input { flex: 1; }

/* ── App screen ──────────────────────────────────────────────────────── */
.app-screen, .history-screen {
  display: grid;
  grid-template-columns: minmax(360px, 5fr) 7fr;
  gap: 20px;
  padding: 22px 26px;
  max-width: 1360px;
  margin: 0 auto;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.mode-row { display: flex; gap: 6px; margin-bottom: 14px; }
.mode-row .tab { border: 1px solid var(--line); }
.mode-row .tab:disabled { opacity: .45; cursor: default; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.label-row .label { margin-bottom: 8px; }
.text-btn { border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 0; }
.text-btn:hover { color: var(--ink); }
#goal { margin-bottom: 14px; }
.session-row { display: flex; gap: 10px; }
.capture-hint { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }
.capture-hint b { color: var(--ink); font-weight: 600; }

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.idle { background: #b0b6a7; }
.dot.live { background: #e2543d; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.suggestion-box { margin-bottom: 18px; }
.suggestion {
  min-height: 90px;
  background: #f4f8e9;
  border: 1px solid #d4dec5;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.suggestion.thinking { border-style: dashed; }
.suggestion:empty::before { content: 'Suggestions appear here the moment the other side finishes a thought.'; color: #93a07f; font-weight: 400; font-size: 12px; font-family: 'DM Sans', Arial, sans-serif; }

.consent { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0 0; }

.transcript-panel { min-height: 70vh; display: flex; flex-direction: column; }
.transcript { flex: 1; overflow-y: auto; max-height: calc(100vh - 260px); font-size: 13px; }
.transcript:empty::before { content: 'The call shows up here, line by line. You on the mic. Everyone else from the audio you share.'; color: var(--muted); font-size: 13px; }
.transcript.static { max-height: none; }
.line { margin: 7px 0; line-height: 1.65; }
.line-who { font-weight: 600; }
.line-who.you { color: #62802c; }
.line-who.them { color: #8a5a2b; }
.interim { min-height: 22px; font-size: 13px; color: var(--muted); font-style: italic; }

.profile { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.profile h4 { font-size: 14px; margin-bottom: 8px; }
.profile p { font-size: 12px; color: var(--muted); margin: 6px 0; }
.tag {
  font-size: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #edf3e5;
  color: #4e6930;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 6px;
}

/* ── History ─────────────────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 12px 15px;
}
.history-item:hover { background: var(--lime); }
.history-item b { font-size: 13px; font-weight: 600; }
.history-item span { font-size: 10px; color: var(--muted); }
.history-detail h3 { font-size: 19px; letter-spacing: -.7px; }
.history-detail h4 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }

/* ── Settings dialog ─────────────────────────────────────────────────── */
dialog {
  border: 1px solid #c7d2b7;
  border-radius: 10px;
  padding: 34px;
  width: min(520px, calc(100% - 32px));
  max-height: 88vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: #17221299; backdrop-filter: blur(4px); }
dialog h2 { font-size: 26px; letter-spacing: -1.1px; }
dialog .label { margin-top: 22px; }
.close-dialog { position: absolute; right: 14px; top: 9px; border: 0; background: transparent; font-size: 26px; color: var(--muted); }

/* ── Small screens ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-screen, .history-screen { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .account { margin-left: auto; }
  .transcript { max-height: 50vh; }
  .sell { padding: 12px 16px 80px; }
  .sell-hero, .sell-band, .sell-offer { grid-template-columns: 1fr; gap: 18px; }
  .sell-copy h1 { font-size: 40px; }
}
