/* Valley IT AI — site, assistant, account and admin styles.
   Colors and fonts match the original valleyitai.com design. */
:root {
  --radius: 0.625rem;
  --bg: #12100f;
  --bg-hero: #191511;
  --fg: #f8f6f4;
  --muted: #a8a19a;
  --card: #1e1a17;
  --card-2: #1a1714;
  --input: rgba(255, 255, 255, 0.04);
  --primary: #e99b48;
  --primary-2: #f2b258;
  --border: rgba(255, 255, 255, 0.12);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .auth-alt a, .chat-note a, .prose a, .muted a { color: var(--primary); }
p a:hover, td a:hover, .auth-alt a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.inline { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp, .hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: 9999px; padding: 0.75rem 1.5rem; font-weight: 600; font: inherit; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 100%); color: #1a1209;
}
.btn-primary { background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 100%); color: #1a1209; box-shadow: 0 24px 80px -24px rgba(233, 155, 72, 0.55); }
.btn-primary:hover, .btn:hover { opacity: 0.92; }
.btn-secondary, .btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); box-shadow: none; }
.btn-secondary:hover, .btn-ghost:hover { background-color: var(--card-2); opacity: 1; }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, 0.5); color: var(--bad); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.1); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
button.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--fg); border-radius: 0.5rem; width: 2.25rem; height: 2.25rem; cursor: pointer; font-size: 1rem; }

.pill {
  display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--card-2); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.pill-ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.35); }
.pill-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }
.pill-bad { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }
.pill-ok, .pill-warn, .pill-bad, .pill-neutral { letter-spacing: 0.04em; font-size: 0.7rem; padding: 0.15rem 0.55rem; }
.text-gradient { background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8); }
.card-hover { transition: border-color 0.2s; }
.card-hover:hover { border-color: rgba(233, 155, 72, 0.5); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(18, 16, 15, 0.88); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: none; gap: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.header-btn { padding: 0.5rem 1rem; font-size: 0.875rem; }
.phone-link { color: var(--primary); font-weight: 600; }
.phone-link:hover { text-decoration: underline; }

/* Flash messages */
.flashes { max-width: 72rem; margin: 1rem auto 0; padding: 0 1.25rem; display: grid; gap: 0.5rem; }
.flash { border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.925rem; background: var(--card-2); margin: 0.75rem 0; }
.flashes .flash { margin: 0; }
.flash-ok { border-color: rgba(74, 222, 128, 0.4); color: #bbf7d0; }
.flash-error { border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.flash-warn { border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }

/* ---------- Assistant (first section) ---------- */
.hero { background: radial-gradient(120% 90% at 85% 10%, rgba(233, 155, 72, 0.28) 0%, transparent 60%), linear-gradient(180deg, #1a1714 0%, #0e0c0b 100%); border-bottom: 1px solid var(--border); }
.chat-hero { padding: 1.75rem 0 3rem; }
section[id] { scroll-margin-top: 4.5rem; }
.chat-intro { text-align: center; max-width: 46rem; margin: 0 auto 1.25rem; }
.chat-intro h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; margin-top: 0.75rem; }
.chat-intro p { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }
.chat-app { display: grid; grid-template-columns: 1fr; height: min(64vh, 640px); min-height: 440px; overflow: hidden; position: relative; }
.chat-side { border-right: 1px solid var(--border); padding: 0.85rem; display: none; flex-direction: column; gap: 0.75rem; background: var(--card-2); min-height: 0; }
.conv-list { overflow-y: auto; overflow-x: hidden; display: grid; gap: 0.15rem; align-content: start; min-height: 0; }
.conv-item { display: flex; align-items: center; gap: 0.25rem; border-radius: 0.5rem; }
.conv-item a { flex: 1; min-width: 0; padding: 0.5rem 0.6rem; font-size: 0.875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0.5rem; }
.conv-item:hover a, .conv-item.active a { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.conv-item.active a { box-shadow: inset 2px 0 0 var(--primary); }
.conv-del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.3rem 0.45rem; border-radius: 0.4rem; opacity: 0; font-size: 0.9rem; }
.conv-item:hover .conv-del, .conv-item.active .conv-del { opacity: 1; }
.conv-del:hover { color: var(--bad); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.chat-title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-chip { font-size: 0.78rem; color: var(--primary); border: 1px solid rgba(233, 155, 72, 0.4); border-radius: 9999px; padding: 0.2rem 0.7rem; white-space: nowrap; }
.side-toggle { display: inline-flex; align-items: center; justify-content: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: 0; scroll-behavior: smooth; }
.welcome { margin: auto 0; text-align: center; padding: 1rem 0; }
.welcome-hi { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.chip { background: var(--card-2); border: 1px solid var(--border); color: var(--fg); font: inherit; font-size: 0.875rem; text-align: left; border-radius: 0.85rem; padding: 0.6rem 0.9rem; cursor: pointer; max-width: 22rem; transition: border-color 0.2s; }
.chip:hover { border-color: rgba(233, 155, 72, 0.6); }
.msg { display: flex; gap: 0.65rem; max-width: 100%; }
.msg-user { justify-content: flex-end; }
.msg-avatar { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: linear-gradient(100deg, var(--primary), var(--primary-2)); color: #1a1209; font-family: var(--font-display); }
.msg-body { border-radius: 1rem; padding: 0.7rem 1rem; max-width: min(46rem, 88%); overflow-wrap: anywhere; font-size: 0.97rem; line-height: 1.6; }
.msg-user .msg-body { background: rgba(233, 155, 72, 0.14); border: 1px solid rgba(233, 155, 72, 0.3); border-bottom-right-radius: 0.3rem; white-space: pre-wrap; }
.msg-ai .msg-body { background: var(--card-2); border: 1px solid var(--border); border-top-left-radius: 0.3rem; }
.msg-body > * + * { margin-top: 0.6rem; }
.msg-body ul, .msg-body ol { padding-left: 1.3rem; }
.msg-body li + li { margin-top: 0.2rem; }
.msg-body h3, .msg-body h4 { font-size: 1.02rem; }
.msg-body code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.07); padding: 0.1rem 0.35rem; border-radius: 0.3rem; }
.msg-body pre { background: #0c0a09; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.75rem; overflow-x: auto; position: relative; }
.msg-body pre code { background: none; padding: 0; font-size: 0.85rem; white-space: pre; }
.msg-body a { color: var(--primary); text-decoration: underline; }
.msg-tools { margin-top: 0.4rem; }
.msg-tools button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.78rem; cursor: pointer; }
.msg-tools button:hover { color: var(--fg); }
.msg-blocked .msg-body { border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.msg-error { align-self: center; font-size: 0.875rem; color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 0.75rem; padding: 0.55rem 0.9rem; background: rgba(248, 113, 113, 0.06); text-align: center; }
.msg-error a { color: var(--primary); text-decoration: underline; }
.typing span { display: inline-block; width: 0.45rem; height: 0.45rem; margin: 0 0.12rem; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.75rem 1rem 0.4rem; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; resize: none; max-height: 12rem; min-height: 2.9rem; padding: 0.75rem 1rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--input); color: inherit; font: inherit; outline: none; line-height: 1.4; }
.chat-form textarea:focus { border-color: var(--primary); }
.send-btn { padding: 0.75rem 1.25rem; }
.chat-note { font-size: 0.75rem; color: var(--muted); text-align: center; padding: 0 1rem 0.7rem; }
.chat-paused { margin: 0 1rem; }
/* Compact mode: small box until the first message is sent */
.chat-app { margin: 0 auto; max-width: 72rem; transition: max-width 0.3s ease; }
.chat-app.compact { height: auto; min-height: 0; max-width: 46rem; grid-template-columns: 1fr !important; }
.chat-app.compact .chat-side, .chat-app.compact .chat-head, .chat-app.compact .chat-note { display: none !important; }
.chat-app.compact .chat-log { flex: none; overflow: visible; padding: 1rem 1rem 0.25rem; }
.chat-app.compact .welcome { margin: 0; padding: 0; }
.chat-app.compact .welcome-hi { font-size: 1.05rem; }
.chat-app.compact .chips { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; }
.chat-app.compact .chip { font-size: 0.8rem; padding: 0.5rem 0.75rem; max-width: none; }
.chat-app { scroll-margin-top: 5rem; }
.chat-app.compact .chat-form { border-top: 0; padding-bottom: 0.9rem; }
/* AI Agent page */
.agent-wrap { padding: 1rem 1.25rem 1.5rem; max-width: 90rem; margin: 0 auto; }
.agent-app.chat-app { height: calc(100vh - 9rem); min-height: 520px; max-width: none; }
.agent-side-foot { margin-top: auto; display: grid; gap: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.agent-side-foot .usage-chip { text-align: center; }
.agent-badge { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #1a1209; background: linear-gradient(100deg, var(--primary), var(--primary-2)); border-radius: 9999px; padding: 0.2rem 0.65rem; font-weight: 700; }
.agent-welcome { max-width: 52rem; margin: auto; }
.agent-welcome .muted { margin-top: 0.4rem; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; margin-top: 1.25rem; text-align: left; }
.task-card { background: var(--card-2); border: 1px solid var(--border); border-radius: 0.85rem; padding: 0.75rem 0.85rem; color: var(--fg); font: inherit; cursor: pointer; display: grid; gap: 0.25rem; text-align: left; transition: border-color 0.2s; }
.task-card:hover { border-color: rgba(233, 155, 72, 0.6); }
.task-card strong { color: var(--primary); font-size: 0.9rem; }
.task-card span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
body.agent-page .footer { display: none; }
@media (max-width: 640px) { body.agent-page { padding-bottom: 0; } body.agent-page .mobile-call-bar, body.agent-page .header-actions [data-call] { display: none; } .agent-wrap { padding: 0.5rem; } .agent-app.chat-app { height: calc(100svh - 10.5rem); } .task-grid { grid-template-columns: 1fr 1fr; } }
.chats-btn { display: none; }
.chat-app.compact .chats-btn { display: inline-flex; margin-top: 0.75rem; }

/* Modals (sign-up prompt + exit popup) */
.modal, .exit-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 8, 7, 0.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.exit-overlay { display: none; }
.exit-overlay.show { display: flex; }
.modal-card, .exit-modal { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.7); padding: 2rem; animation: exitPop 0.25s ease; display: grid; gap: 0.75rem; }
@keyframes exitPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.close-exit { position: absolute; top: 0.75rem; right: 0.85rem; background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.4rem; }
.close-exit:hover { color: var(--fg); }
.modal-card .pill, .exit-modal .pill { justify-self: start; }
.modal-card h3, .exit-modal h3 { font-size: 1.5rem; font-weight: 700; }
.exit-sub { color: var(--muted); font-size: 0.9rem; }
.exit-form { display: grid; gap: 0.85rem; }
.exit-form input, .contact-form input, .contact-form textarea { width: 100%; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--input); color: inherit; font: inherit; outline: none; }
.exit-form input:focus, .contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.exit-form button { margin-top: 0.25rem; width: 100%; }
.exit-status, .contact-status { min-height: 1.2em; font-size: 0.9rem; font-weight: 600; }
.exit-status.success, .contact-status.success { color: var(--ok); }
.exit-status.error, .contact-status.error { color: var(--bad); }
.exit-fineprint { font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ---------- Marketing sections (from the original site) ---------- */
section { padding: 5rem 0; }
section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
section .lead { color: var(--muted); margin-top: 0.75rem; max-width: 42rem; }
.intro { border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; align-items: center; gap: 3rem; }
.hero-h { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-top: 1rem; }
.hero-p { color: var(--muted); margin-top: 1.5rem; font-size: 1.125rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; max-width: 32rem; font-size: 0.875rem; }
.stats dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stats dd { color: var(--muted); margin-top: 0.25rem; }
.hero-image { max-width: 24rem; margin: 0 auto; width: 100%; padding: 0.25rem; }
.hero-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--radius) + 4px - 0.25rem); }
.hero-image .caption { padding: 1rem 1rem 0.75rem; }
.hero-image .caption p:first-child { font-family: var(--font-display); font-weight: 600; }
.hero-image .caption p:last-child { font-size: 0.875rem; color: var(--muted); }
.services-grid, .savings-grid, .plans-grid, .about-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.service-card { padding: 1.5rem; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.pricing-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.pricing-card { padding: 2rem; display: flex; flex-direction: column; position: relative; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 600; }
.price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-top: 0.75rem; }
.price small, .price span { font-size: 1.125rem; color: var(--muted); font-weight: 400; }
.pricing-card ul { margin-top: 1.5rem; list-style: none; font-size: 0.875rem; color: var(--muted); flex: 1; }
.pricing-card li + li { margin-top: 0.5rem; }
.pricing-card li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.pricing-card .plan-for { color: var(--muted); font-size: 0.875rem; margin-top: 0.35rem; }
.pricing-card .btn { margin-top: 1.75rem; width: 100%; }
.pricing-card li.ai-line { color: var(--fg); }
.pp-home { margin-top: 1.5rem; min-height: 45px; }
.pp-status { font-weight: 600; color: var(--primary); min-height: 1em; }
.plan-ask { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }
.plan-ask:hover { color: var(--primary); }
.featured { border-color: rgba(233, 155, 72, 0.4); box-shadow: 0 24px 80px -24px rgba(233, 155, 72, 0.55); }
.badge { position: absolute; top: -0.75rem; left: 1.5rem; background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 100%); color: #1a1209; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 9999px; }
.fineprint { color: var(--muted); font-size: 0.875rem; margin-top: 1.25rem; }
.subhead { font-size: 1.5rem; font-weight: 700; margin-top: 4rem; }
h2.subhead { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.rates { margin-top: 1.25rem; padding: 0.5rem 1.5rem; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; }
.rate-row + .rate-row { border-top: 1px solid var(--border); }
.rate-row strong { font-weight: 600; }
.rate-row span { display: block; color: var(--muted); font-size: 0.875rem; }
.rate-row .rate { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.rate-row .rate small { font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.saving { padding: 1.75rem; }
.saving .big { font-size: 2rem; color: var(--primary); }
.saving h3 { font-size: 1.125rem; font-weight: 600; margin-top: 0.5rem; }
.saving p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.about-grid { gap: 3rem; margin-top: 0; }
.about-text p { color: var(--muted); margin-top: 1rem; }
.industries { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.industry { background: var(--card-2); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.about-card { padding: 2rem; }
.about-card h3 { font-size: 1.25rem; }
.about-card p { color: var(--muted); font-size: 0.875rem; margin-top: 0.5rem; }
.languages { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.language { border: 1px solid rgba(233, 155, 72, 0.4); color: var(--primary); border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500; }
.address { margin-top: 0.5rem; font-style: normal; color: var(--muted); }
.contact-section { background: var(--bg-hero); border-top: 1px solid var(--border); text-align: center; }
.contact-section > .container > p { color: var(--muted); margin-top: 1rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.contact-form { max-width: 620px; margin: 2.5rem auto 0; display: grid; gap: 1rem; text-align: left; }
.contact-form .form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.contact-form button { justify-self: start; }
.location-block { max-width: 620px; margin: 3rem auto 0; text-align: left; }
.location-block h3 { font-size: 1.25rem; font-weight: 600; }
.location-block .address { margin-bottom: 1.25rem; }
.map-embed { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 320px; }

/* Footer, call bar, email toast */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 2rem; padding-bottom: 2rem; font-size: 0.875rem; color: var(--muted); text-align: center; }
.footer-links a:hover { color: var(--fg); }
.mobile-call-bar { display: none; }
.email-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; max-width: 320px; background: #161616; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); font-size: 0.9rem; line-height: 1.4; z-index: 9999; display: none; }
.email-toast.show { display: block; }
.toast-title { margin: 0 0 0.35rem; font-weight: 600; }
.toast-sub { margin: 0 0 0.6rem; color: #aaa; }
.toast-email { margin: 0 0 0.7rem; font-weight: 600; color: var(--primary); word-break: break-all; }
.copy-btn { background: var(--primary); border: none; color: #1a1209; padding: 0.5rem 0.9rem; border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600; }
.close-toast { position: absolute; top: 0.4rem; right: 0.6rem; background: none; border: none; color: #888; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.3rem; }

/* ---------- Forms, auth, account ---------- */
.main { padding: 2.5rem 0 4rem; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }
.form input, .form select, .form textarea, .admin input, .admin select, .admin textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--input); color: inherit; font: inherit; font-weight: 400; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus, .admin input:focus, .admin select:focus, .admin textarea:focus { border-color: var(--primary); }
.form input:disabled { opacity: 0.6; }
select option { background: var(--card); color: var(--fg); }
.form .check, label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form .check input, label.check input { width: auto; margin-top: 0.25rem; accent-color: var(--primary); }
.auth-card { max-width: 28rem; margin: 1rem auto; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; display: grid; gap: 1rem; box-shadow: 0 24px 80px -40px rgba(233, 155, 72, 0.4); }
.auth-card h1 { font-size: 1.75rem; }
.auth-alt { font-size: 0.9rem; color: var(--muted); text-align: center; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.account h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.25rem; display: grid; gap: 0.9rem; align-content: start; }
.panel h2 { font-size: 1.3rem; }
.panel h3 { font-size: 1.05rem; margin-top: 0.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: 1fr; }
.grid.plans { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.plan-card { background: var(--card-2); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
.plan-card .price { font-size: 2rem; margin-top: 0; }
.plan-card.current { border-color: rgba(233, 155, 72, 0.55); }
.pp-sub { min-height: 45px; margin-top: 0.4rem; }
.pp-slot + .pp-slot { margin-top: 0.3rem; }
.meter { height: 0.6rem; background: rgba(255, 255, 255, 0.08); border-radius: 9999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(100deg, var(--primary), var(--primary-2)); border-radius: inherit; }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; }
.kv dt { color: var(--muted); }
.kv dd.big { font-size: 1.6rem; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose ul { margin-top: 0.75rem; color: #ddd6cf; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 0.85rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.pager a { color: var(--primary); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; flex: 1; }
.admin-side { border-bottom: 1px solid var(--border); background: var(--card-2); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-side nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.admin-side nav a { padding: 0.45rem 0.75rem; border-radius: 0.5rem; color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-side nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.admin-side nav a.active { color: var(--fg); background: rgba(233, 155, 72, 0.14); }
.count { background: var(--primary); color: #1a1209; font-size: 0.7rem; font-weight: 700; border-radius: 9999px; padding: 0 0.45rem; margin-left: auto; }
.admin-side-foot { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.admin-main { padding: 1.5rem 1.25rem 4rem; min-width: 0; }
.admin-main > h1 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.admin-main h2 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.85rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 0.9rem; padding: 1rem 1.1rem; }
.stat .v { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 0.8rem; }
.stat .v.accent { color: var(--primary); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.toolbar input, .toolbar select { width: auto; min-width: 12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.actions form { display: inline; }
.form-inline { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.form-inline label { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.form-inline input, .form-inline select { width: auto; }
textarea.code { font-family: var(--font-mono); font-size: 0.85rem; min-height: 14rem; }
.thread { display: grid; gap: 0.75rem; }
.thread .msg-body { max-width: 100%; white-space: pre-wrap; }
details.box { background: var(--card); border: 1px solid var(--border); border-radius: 0.9rem; padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; }
details.box summary { cursor: pointer; font-weight: 600; }
details.box[open] summary { margin-bottom: 0.9rem; }
.clip { max-width: 28rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .savings-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .chat-app.has-side { grid-template-columns: 15.5rem 1fr; }
  .chat-app.has-side .chat-side { display: flex; }
  .side-toggle { display: none; }
  .chat-log { padding: 1.5rem 1.75rem; }
  .admin-shell { grid-template-columns: 15rem 1fr; }
  .admin-side { border-bottom: 0; border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .admin-side nav { flex-direction: column; flex-wrap: nowrap; }
  .admin-side-foot { margin-top: auto; }
  .admin-main { padding: 2rem 2.25rem 4rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) and (min-width: 768px) { .nav { gap: 1rem; } }
@media (max-width: 767px) {
  .chat-side { position: absolute; inset: 3.4rem 0 0 0; z-index: 5; }
  .chat-app.side-open .chat-side { display: flex; }
}
@media (max-width: 640px) {
  body { padding-bottom: 5rem; }
  .mobile-call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: rgba(18, 16, 15, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .mobile-call-bar .btn { width: 100%; padding: 0.9rem 1rem; font-size: 1rem; }
  body.admin { padding-bottom: 0; }
  .email-toast { left: 1rem; right: 1rem; max-width: none; bottom: 5.5rem; }
  .call-text, .hide-sm { display: none; }
  .contact-form .form-row, .row2 { grid-template-columns: 1fr; }
  .chat-app { height: calc(100svh - 15.5rem); min-height: 380px; }
  .chat-hero { padding-top: 1rem; }
  .chat-intro { margin-bottom: 0.75rem; }
  .chat-intro p, .chat-intro .pill { display: none; }
  .chat-intro h1 { font-size: 1.45rem; margin-top: 0; }
  .welcome-hi { font-size: 1.1rem; }
  .chat-note { display: none; }
  .chat-form { padding-bottom: 0.75rem; }
  body.home .mobile-call-bar { padding-top: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
  body.home .mobile-call-bar .btn { padding: 0.7rem 1rem; }
  .msg-body { max-width: 92%; }
  .chips { display: grid; }
  .chip:nth-child(n+3) { display: none; }
}
@media (max-width: 480px) {
  section { padding: 3.5rem 0; }
  .service-card, .pricing-card, .about-card { padding: 1.5rem; }
  .header-btn { padding: 0.55rem 0.8rem; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .auth-card { padding: 1.5rem; }
  .map-embed iframe { height: 240px; }
  .modal-card, .exit-modal { padding: 1.5rem; }
}
