/**
 * v3-internal.css — brand re-skin layer for internal app pages (/leads, /settings,
 * /welcome, /signin, /subs, /resources, articles).
 *
 * Approach: override the design tokens that existing pages already reference
 * (--accent, --paper, --ink, --line, etc.) with the new orange/cream/serif brand.
 * Functional layout and JS hooks are untouched.
 */

:root {
  /* New brand tokens — override the old red/white set */
  --ink:        #0a0a0a;
  --ink-2:      #1a1a18;
  --ink-soft:   #3d3d3a;
  --ink-faint:  #7a7975;

  --paper:      #f4f1ea;
  --paper-2:    #ebe7dd;
  --card:       #fefdf9;
  --bg:         #f4f1ea;
  --tint:       #ebe7dd;

  --line:       #d8d3c4;
  --line-soft:  #e3dfd2;

  --accent:      #ff5722;
  --accent-dark: #d63f0e;
  --accent-soft: #ffe9dd;

  --good:       #2c7a3f;
}

/* Global font baseline (Google Fonts loaded by each page) */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
}

/* Restored emphasis: italic display via Instrument Serif on .v3-italic */
.v3-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent);
}

/* The new global masthead (injected by v3-internal.js) */
.pp-v3-masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 0;
  border-bottom: 3px solid var(--accent);
  font-family: 'Inter', sans-serif;
}
.pp-v3-masthead .pp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.pp-v3-spacer { /* center column placeholder */ }
.pp-v3-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.pp-v3-brand-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.pp-v3-brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
}
.pp-v3-brand-name {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.pp-v3-brand-name em {
  font-style: normal;
  color: var(--accent);
  font-weight: 900;
}
.pp-v3-mid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #c4c0b3;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}
.pp-v3-mid b { color: var(--paper); font-weight: 700; }
.pp-v3-mid .dot { color: #5a5751; }
.pp-v3-mid .live { color: #62d883; display: inline-flex; align-items: center; gap: 6px; }
.pp-v3-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #62d883;
  animation: pp-v3-pulse 1.8s ease-in-out infinite;
}
@keyframes pp-v3-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.8); }
}
@media (max-width: 1000px) {
  .pp-v3-masthead .pp-wrap { grid-template-columns: auto auto; }
  .pp-v3-mid { display: none; }
}

.pp-v3-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-v3-signin {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #3d3d3a;
  padding: 7px 14px;
  border-radius: 2px;
  transition: all .15s;
}
.pp-v3-signin:hover { border-color: var(--accent); color: var(--accent); }
.pp-v3-trial {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 2px;
  transition: all .15s;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.pp-v3-trial:hover { background: #fff; color: var(--ink); }

.pp-v3-cities {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #c4c0b3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.pp-v3-pill {
  padding: 4px 10px;
  border: 1px solid #3d3d3a;
  border-radius: 2px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: 10.5px;
  background: transparent;
}
.pp-v3-pill:hover { border-color: var(--accent); color: var(--accent); }
.pp-v3-pill.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Page body baseline — buttons + form inputs pick up new accent */
button, .btn, input[type="submit"] {
  font-family: 'Inter', sans-serif;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  outline: none;
}

/* Soften any pure-white card surfaces to fit the cream paper */
body { background: var(--paper); }
