/* Meeting Helper prototype styles — clean, light, premium minimal */
:root {
  --accent: #2A6FDB;
  --accent-hover: #1f5cc4;
  --accent-soft: #eaf1fd;
  --ink: #0f1115;
  --ink-2: #2b2f38;
  --muted: #6b7280;
  --muted-2: #9aa2af;
  --line: #e8eaef;
  --line-2: #f1f3f6;
  --bg: #ffffff;
  --bg-2: #fafbfc;
  --bg-3: #f6f7f9;
  --good: #16a34a;
  --good-soft: #e7f6ec;
  --them: #2A6FDB;
  --you: #16a34a;
  --shadow-card: 0 1px 2px rgba(15,17,21,0.04), 0 1px 0 rgba(15,17,21,0.02);
  --shadow-pop: 0 24px 60px -20px rgba(15,17,21,0.25), 0 4px 12px rgba(15,17,21,0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* App shell */
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Top bar (shared) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: grid; place-items: center; color: white; font-size: 12px; font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.nav { display: flex; gap: 22px; margin-left: 18px; }
.nav a { color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--accent); }
.topbar-spacer { flex: 1; }

.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 10px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
}
.lang-pill:hover { border-color: var(--muted-2); }
.lang-pill .chev { color: var(--muted); font-size: 10px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: white; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-pop);
  padding: 6px; min-width: 160px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 14px;
  cursor: pointer;
}
.lang-item:hover { background: var(--bg-3); }
.lang-item.is-active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 500; font-size: 14px;
  border: 1px solid transparent; transition: 120ms ease;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-xl { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ---------- Landing ---------- */
.hero { padding: 88px 24px 80px; text-align: center; max-width: 880px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
}
.h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 600; margin: 22px 0 18px;
  text-wrap: balance;
}
.h1 .accent-mark { color: var(--accent); }
.lead {
  color: var(--ink-2); font-size: 19px; line-height: 1.55;
  max-width: 600px; margin: 0 auto 30px;
  text-wrap: pretty;
}
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; flex-wrap: wrap; justify-content: center; }
.cta-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cta-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.cta-meta span:first-child::before { display: none; }

/* preview tile */
.hero-preview {
  margin: 64px auto 0; max-width: 980px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-2); padding: 20px;
  box-shadow: var(--shadow-card);
}
.preview-window {
  background: white; border-radius: 14px; border: 1px solid var(--line);
  overflow: hidden;
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.preview-bar .dot:nth-child(1){ background:#ff5f57; }
.preview-bar .dot:nth-child(2){ background:#ffbd2e; }
.preview-bar .dot:nth-child(3){ background:#28ca41; }
.preview-bar .url { margin-left: 10px; font-size: 12px; color: var(--muted); }
.preview-body { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 280px; }
.preview-transcript { padding: 18px 20px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.bubble { padding: 10px 12px; border-radius: 10px; max-width: 90%; }
.bubble.them { background: #eaf1fd; color: #14305f; }
.bubble.you { background: #e7f6ec; color: #0d3a23; align-self: flex-end; }
.preview-hint { padding: 18px 20px; }
.preview-hint .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.preview-hint ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.preview-hint li + li { margin-top: 6px; }

/* sections */
section { padding: 88px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-title { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-align: center; margin: 0 0 12px; text-wrap: balance; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 40px; font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.55; }

.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white;
  transition: 160ms ease;
}
.case:hover { border-color: var(--accent); transform: translateY(-2px); }
.case-icon { font-size: 24px; margin-bottom: 12px; }
.case h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.case p { color: var(--muted); margin: 0; font-size: 14px; }

.pricing-wrap { background: var(--bg-3); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.price-card {
  background: white; border-radius: 20px; padding: 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 28px -12px rgba(42,111,219,0.35);
  position: relative;
}
.price-card.featured::before {
  content: "Найпопулярніше";
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.price-card .price-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; min-height: 44px; }
.price-figure { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.price-figure .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.price-figure .per { color: var(--muted); font-size: 14px; }
.price-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.price-bullets li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.price-bullets li::before { content: "✓"; color: var(--good); font-weight: 600; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 28px; }

.privacy {
  max-width: 720px; margin: 0 auto;
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
}
.privacy .icon { font-size: 22px; }
.privacy h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.privacy p { margin: 0; color: var(--muted); font-size: 14.5px; }

.closing { background: var(--ink); color: white; text-align: center; padding: 80px 24px; }
.closing h2 { font-size: 36px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 24px; text-wrap: balance; }
.closing .btn-primary { background: white; color: var(--ink); }
.closing .btn-primary:hover { background: #f0f0f0; }
.closing .cta-meta { color: rgba(255,255,255,0.6); margin-top: 18px; }
.closing .cta-meta span::before { background: rgba(255,255,255,0.4); }

footer { padding: 28px 24px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }

/* ---------- Session ---------- */
.session-shell { display: flex; flex-direction: column; min-height: 100vh; background: white; }
.session-bar {
  border-bottom: 1px solid var(--line);
  padding: 12px 22px;
  display: flex; align-items: center; gap: 14px;
  background: white;
}
.session-bar .brand { font-size: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-pill.on .status-dot { background: var(--good); box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.status-pill.err .status-dot { background: #dc2626; }
.session-bar .spacer { flex: 1; }
.lang-select {
  border: 1px solid var(--line); background: white;
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px;
}
.session-bar .btn-stop { background: #dc2626; color: white; }
.session-bar .btn-stop:hover { background: #b91c1c; }

.trial-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  background: linear-gradient(90deg, #fffbe6, #fff5d1);
  border-bottom: 1px solid #f1e3a8;
  font-size: 13.5px; color: #6b4f00;
}
.trial-banner .clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.trial-banner .upgrade { margin-left: auto; }
.trial-banner.warn { background: linear-gradient(90deg, #fee2e2, #fecaca); border-bottom-color: #f5b5b5; color: #7a1f1f; }

.context-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.context-summary {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
}
.context-summary .icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 14px;
}
.context-summary .label { font-size: 13.5px; color: var(--muted); }
.context-summary .preview { font-size: 14px; color: var(--ink-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-summary .edit { color: var(--accent); font-size: 13.5px; }
.context-summary.empty .preview { color: var(--muted-2); font-style: italic; }
.context-summary .chev { color: var(--muted); font-size: 12px; margin-left: 8px; }

.context-expanded {
  max-width: 1180px; margin: 0 auto;
  padding: 18px 22px 22px;
}
.context-expanded .hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.context-types { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: white;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--muted-2); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: white; }
.context-textarea {
  width: 100%; min-height: 160px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; resize: vertical;
  font-size: 14.5px; line-height: 1.55;
  background: white;
}
.context-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,111,219,0.15); }
.context-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.saved-tag { color: var(--good); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }

/* main session body */
.session-body {
  flex: 1; display: grid; grid-template-columns: 1.45fr 1fr;
  width: 100%;
  min-height: 540px;
}
.transcript-pane, .hint-pane { padding: 22px; }

.settings-pane { border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; overflow: hidden; }
.settings-body { padding: 16px 12px; }
.settings-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tab-preview {
  display: none;
  width: 100%; aspect-ratio: 16/9;
  background: #000; object-fit: contain;
  border-bottom: 1px solid var(--line);
}
.tab-preview.is-active { display: block; }
.settings-group { margin-bottom: 20px; }
.settings-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.line-btns {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px;
}
.line-hint-btn, .line-edit-btn {
  background: var(--accent); color: white; border: none; border-radius: 6px;
  width: 28px; height: 28px; font-size: 13px; cursor: pointer;
  display: grid; place-items: center; opacity: 0.45; transition: opacity 120ms;
}
.line-edit-btn { background: var(--muted-2); font-size: 14px; }
.line-hint-btn:hover, .line-edit-btn:hover { opacity: 1; }

.t-edit-input {
  flex: 1; border: none; border-bottom: 1.5px solid var(--accent);
  background: transparent; outline: none; font: inherit; color: inherit;
  padding: 0; min-width: 0;
}
.pane-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pane-header h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.legend .sw.them { background: var(--them); }
.legend .sw.you { background: var(--you); }

.transcript { display: flex; flex-direction: column; gap: 14px; }
.t-line { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.t-tag { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 5px; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.t-tag.them { background: #eaf1fd; color: var(--them); }
.t-tag.you { background: #e7f6ec; color: var(--you); }
.t-text { color: var(--ink); }
.t-line.them .t-text { color: var(--them); }
.t-line.you .t-text { color: var(--you); }
.t-line.live .t-text { opacity: 0.65; }
.t-line.live .t-text::after {
  content: "▍"; animation: blink 1s steps(2) infinite; color: var(--muted);
}
@keyframes blink { 50% { opacity: 0; } }

.empty-state {
  text-align: center; color: var(--muted); padding: 60px 20px;
}
.empty-state p { margin: 6px 0; font-size: 14.5px; }
.empty-state .kbd { background: var(--bg-3); padding: 2px 8px; border-radius: 6px; font-family: monospace; font-size: 13px; }

/* Hint card — Claude bubble look */
.hint-pane { background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fc 100%); }
.claude-bubble {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 20px 22px 14px;
  box-shadow: 0 8px 24px -12px rgba(42,111,219,0.15), 0 2px 4px rgba(15,17,21,0.04);
  animation: slideUp 320ms cubic-bezier(.2,.8,.2,1);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.claude-bubble::before {
  content: ""; position: absolute; left: -1px; bottom: -1px;
  width: 14px; height: 14px;
  background: white; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 0 0 4px;
  transform: skewX(-15deg) translateX(-6px);
}
.claude-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.claude-avatar {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7aa9ff);
  color: white; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.claude-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.claude-time { font-size: 12px; color: var(--muted); }
.claude-bubble ol { list-style: none; counter-reset: hint; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.claude-bubble ol li {
  counter-increment: hint;
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start;
  animation: fadeUp 280ms cubic-bezier(.2,.8,.2,1) backwards;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.claude-bubble ol li:nth-child(1) { animation-delay: 0ms; }
.claude-bubble ol li:nth-child(2) { animation-delay: 80ms; }
.claude-bubble ol li:nth-child(3) { animation-delay: 160ms; }
.claude-bubble ol li:nth-child(4) { animation-delay: 240ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.claude-bubble ol li::before {
  content: counter(hint);
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hint-label {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 5px;
  margin-right: 8px; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap;
}

.hint-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.hint-actions .meta { color: var(--muted); font-size: 12px; }
.hint-actions .spacer { flex: 1; }
.icon-btn {
  background: transparent; border: none; padding: 6px 10px; border-radius: 8px;
  color: var(--muted); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center;
}
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }

.thinking-card {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.thinking-wave { display: inline-flex; gap: 4px; }
.thinking-wave span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: wave 1.2s ease-in-out infinite;
}
.thinking-wave span:nth-child(2) { animation-delay: 0.15s; }
.thinking-wave span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.thinking-text { color: var(--muted); font-size: 14px; }

/* Profile pill in topbar */
.profile-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px 5px 5px; background: white; cursor: pointer;
  font-size: 13px; color: var(--ink-2);
}
.profile-pill:hover { border-color: var(--muted-2); }
.profile-pill .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7aa9ff);
  color: white; display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.profile-pill .credits { color: var(--accent); font-weight: 600; }
.profile-pill.owner .credits { color: #b45309; }
.profile-pill.owner { border-color: #fcd34d; background: #fffbeb; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: white; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-pop); padding: 14px;
  min-width: 260px; z-index: 50;
}
.profile-menu .row-line { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.profile-menu .row-line .k { color: var(--muted); }
.profile-menu .row-line .v { font-weight: 500; }
.profile-menu hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.profile-menu .plan { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.profile-menu .plan.owner { background: #fef3c7; color: #92400e; }

/* Single-call line under pricing tiers */
.single-call-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 24px; padding: 14px 18px;
  background: white; border: 1px dashed var(--line); border-radius: 12px;
  max-width: 560px; margin-left: auto; margin-right: auto;
  font-size: 14px; color: var(--ink-2);
}
.single-call-line strong { color: var(--accent); font-size: 18px; }
.single-call-line .btn { padding: 6px 12px; }

.tier-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 12px; text-transform: uppercase;
}
.price-card.featured .tier-tag { background: var(--accent); color: white; }

.pricing-3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 900px) {
  .pricing-3 { grid-template-columns: 1fr !important; }
}
.price-card.featured::before { display: none; } /* tier-tag replaces it */

/* ---------- Modal / paywall ---------- */
.modal-shade {
  position: fixed; inset: 0; background: rgba(15,17,21,0.55);
  display: grid; place-items: center; z-index: 100;
  padding: 20px;
  animation: fadeIn 160ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white; border-radius: 20px; max-width: 460px; width: 100%;
  padding: 32px; box-shadow: var(--shadow-pop);
  animation: pop 200ms ease;
}
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal .seal {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 26px;
  margin-bottom: 18px;
}
.modal h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.modal .sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.modal .bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.modal .bullets li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.modal .bullets li::before { content: "✓"; color: var(--good); font-weight: 600; }
.modal .actions { display: flex; gap: 10px; }
.modal .actions .btn { flex: 1; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 480px; margin: 0 auto; padding: 60px 24px; }
.checkout-back { color: var(--muted); font-size: 14px; margin-bottom: 22px; display: inline-block; cursor: pointer; }
.checkout-back:hover { color: var(--ink); }
.checkout-card {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow-card);
}
.checkout-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.checkout-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }
.express-pay { display: flex; gap: 10px; margin-bottom: 22px; }
.express-pay .btn { flex: 1; padding: 11px; font-weight: 600; }
.btn-apple { background: black; color: white; }
.btn-google { background: white; color: var(--ink); border-color: var(--line); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 0 0 22px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.form-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 15px;
}
.form-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,111,219,0.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-pay { width: 100%; margin-top: 10px; padding: 14px; font-size: 16px; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 12.5px; }

/* success */
.success-wrap { max-width: 460px; margin: 80px auto; padding: 0 24px; text-align: center; }
.success-wrap .seal { width: 72px; height: 72px; margin: 0 auto 22px; background: var(--good-soft); color: var(--good); border-radius: 24px; display: grid; place-items: center; font-size: 32px; }
.success-wrap h1 { font-size: 32px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 10px; }
.success-wrap p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-transcript { border-right: none; border-bottom: 1px solid var(--line-2); }
  .session-body { grid-template-columns: 1fr; }
  .transcript-pane { border-right: none; border-bottom: 1px solid var(--line); }
  .nav { display: none; }
}

/* Tiny utility */
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.rel { position: relative; }
.hidden { display: none !important; }

/* Context field cards in settings pane */
.ctx-field-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  margin-top: 10px;
}
.ctx-field-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctx-field-card.is-required { border-color: #fca5a5; background: #fff7f7; }
.ctx-field-card.is-required:hover { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.ctx-field-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ctx-field-card-label { font-size: 11.5px; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: .04em; }
.ctx-field-badge { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; font-weight: 500; }
.ctx-field-badge.required { background: #fee2e2; color: #b91c1c; }
.ctx-field-badge.optional { background: #f3f4f6; color: #9ca3af; }
.ctx-field-badge.filled { background: #dcfce7; color: #15803d; }
.ctx-field-card-ph { font-size: 12.5px; color: #9ca3af; line-height: 1.45; }
.ctx-field-card-preview { font-size: 12.5px; color: #4b5563; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Context edit modal */
.ctx-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 600px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.ctx-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid #f1f5f9; position: relative; }
.ctx-modal-head h3 { font-size: 16px; font-weight: 600; margin: 0; }
.ctx-modal-textarea { flex: 1; border: none; outline: none; padding: 16px 20px; font-size: 14px; line-height: 1.6; resize: none; min-height: 280px; font-family: inherit; color: #1e293b; }
.ctx-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #f1f5f9; }

/* Language flag selector in session bar */
.lang-flag-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: transparent;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
  height: 28px;
  color: #374151;
}
.lang-flag-select:hover { border-color: #d1d5db; background: #f9fafb; }

/* Settings hint text */
.settings-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.4; }

/* Format toggle in hints pane header */
.format-toggle { display: flex; gap: 2px; border: 1px solid #e5e7eb; border-radius: 7px; overflow: hidden; }
.fmt-btn { background: transparent; border: none; cursor: pointer; padding: 3px 8px; font-size: 14px; color: #9ca3af; transition: background 0.12s; }
.fmt-btn:hover { background: #f3f4f6; color: #374151; }
.fmt-btn.active { background: var(--accent); color: #fff; }

/* Prose hint format */
.hint-prose { padding: 0 2px; }
.hint-prose p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: #1e293b; }
.hint-prose p:last-child { margin-bottom: 0; }
