/* Feature Blocks */
.pf-blocks { background: #fff; padding: 96px 0; }
.pf-blocks .container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.pf-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.pf-block:last-child { margin-bottom: 0; }
.pf-block--flip .pf-block-text { order: 2; }
.pf-block--flip .pf-block-visual { order: 1; }
.pf-block-num { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #B83B2F; margin-bottom: 16px; font-family: "DM Sans", sans-serif; }
.pf-block-text h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.015em; color: #1A1A1A; margin: 0 0 16px; }
.pf-block-text p { font-size: 16px; line-height: 1.65; color: #4A4A4A; margin: 0 0 12px; font-family: "DM Sans", sans-serif; }
.pf-block-text p:last-of-type { margin-bottom: 0; }
.pf-block-rule { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-top: 24px; padding-top: 24px; border-top: 1px solid #E4E4E4; font-family: "DM Sans", sans-serif; }

/* Panel chrome */
.pf-panel { background: #fff; border: 1px solid #E4E4E4; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(26,26,26,0.08), 0 1px 2px rgba(26,26,26,0.04); }
.pf-panel-hdr { background: #F6F4F1; padding: 10px 14px; border-bottom: 1px solid #E4E4E4; display: flex; align-items: center; gap: 8px; }
.pf-tl { display: flex; gap: 5px; }
.pf-tl span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.pf-tl-r { background: #FF5F57; }
.pf-tl-y { background: #FEBC2E; }
.pf-tl-g { background: #28C840; }
.pf-panel-title { font-size: 12px; font-weight: 500; color: #8D8D8D; flex: 1; text-align: center; font-family: "DM Sans", sans-serif; }

/* Panel: inbox rows */
.pf-inbox-row { padding: 11px 16px; border-bottom: 1px solid #F0F0F0; display: flex; align-items: flex-start; gap: 10px; }
.pf-inbox-row:last-child { border-bottom: none; }
.pf-inbox-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.pf-inbox-dot--hot { background: #B83B2F; }
.pf-inbox-dot--read { background: #D9D9D9; }
.pf-inbox-body { flex: 1; min-width: 0; }
.pf-inbox-from { font-size: 13px; font-weight: 600; color: #1A1A1A; margin-bottom: 2px; font-family: "DM Sans", sans-serif; }
.pf-inbox-preview { font-size: 12px; color: #8D8D8D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: "DM Sans", sans-serif; }
.pf-inbox-time { font-size: 11px; color: #8D8D8D; flex-shrink: 0; font-family: "DM Sans", sans-serif; }

/* Panel: chat bubbles */
.pf-chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.pf-chat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8D8D8D; margin-bottom: 3px; font-family: "DM Sans", sans-serif; }
.pf-chat-label--r { text-align: right; }
.pf-bubble-you { align-self: flex-end; background: #1A1A1A; color: #fff; padding: 9px 13px; border-radius: 10px 10px 2px 10px; font-size: 13px; line-height: 1.5; max-width: 85%; font-family: "DM Sans", sans-serif; }
.pf-bubble-w { align-self: flex-start; background: #EBEBEB; color: #1A1A1A; padding: 9px 13px; border-radius: 2px 10px 10px 10px; font-size: 13px; line-height: 1.5; max-width: 85%; font-family: "DM Sans", sans-serif; }

/* Panel: log items */
.pf-log-item { padding: 12px 16px; border-bottom: 1px solid #F0F0F0; display: flex; gap: 12px; align-items: flex-start; }
.pf-log-item:last-child { border-bottom: none; }
.pf-log-icon { width: 28px; height: 28px; border-radius: 50%; background: #EBEBEB; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.pf-log-icon--red { background: #F3E2DF; }
.pf-log-icon--green { background: #E6F0EB; }
.pf-log-body { flex: 1; }
.pf-log-action { font-size: 13px; font-weight: 500; color: #1A1A1A; margin-bottom: 2px; font-family: "DM Sans", sans-serif; }
.pf-log-detail { font-size: 12px; color: #4A4A4A; line-height: 1.4; font-family: "DM Sans", sans-serif; }
.pf-log-time { font-size: 11px; color: #8D8D8D; flex-shrink: 0; margin-top: 2px; font-family: "DM Sans", sans-serif; }

/* Panel: client card */
.pf-client-hdr { padding: 16px; border-bottom: 1px solid #F0F0F0; }
.pf-client-name { font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; font-family: "DM Sans", sans-serif; }
.pf-client-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #B83B2F; font-family: "DM Sans", sans-serif; }
.pf-client-field { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #F0F0F0; }
.pf-client-field:last-child { border-bottom: none; }
.pf-client-label { font-size: 12px; color: #8D8D8D; font-family: "DM Sans", sans-serif; }
.pf-client-val { font-size: 13px; font-weight: 600; color: #1A1A1A; font-family: "DM Sans", sans-serif; }

/* Panel: draft / approval */
.pf-draft { margin: 12px 16px 16px; padding: 14px; background: #F6F4F1; border: 1px solid #E4E4E4; border-radius: 8px; }
.pf-draft-label { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #B83B2F; margin-bottom: 8px; font-family: "DM Sans", sans-serif; }
.pf-draft-to { font-size: 12px; color: #8D8D8D; margin-bottom: 3px; font-family: "DM Sans", sans-serif; }
.pf-draft-subject { font-size: 13px; font-weight: 600; color: #1A1A1A; margin-bottom: 6px; font-family: "DM Sans", sans-serif; }
.pf-draft-body { font-size: 12px; color: #4A4A4A; line-height: 1.5; margin-bottom: 10px; font-family: "DM Sans", sans-serif; }
.pf-draft-actions { display: flex; gap: 8px; }
.pf-btn-send { background: #B83B2F; color: #fff; border: none; border-radius: 4px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: default; font-family: "DM Sans", sans-serif; }
.pf-btn-edit { background: transparent; color: #4A4A4A; border: 1px solid #D9D9D9; border-radius: 4px; padding: 7px 14px; font-size: 12px; font-weight: 500; cursor: default; font-family: "DM Sans", sans-serif; }

/* Panel: phone / notification */
.pf-phone-wrap { background: #1A1A1A; border-radius: 24px; padding: 20px 14px; }
.pf-phone-time { font-size: 26px; font-weight: 300; color: #fff; text-align: center; margin-bottom: 2px; font-family: "DM Sans", sans-serif; }
.pf-phone-date { font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 14px; font-family: "DM Sans", sans-serif; }
.pf-notif { background: rgba(255,255,255,0.92); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pf-notif:last-child { margin-bottom: 0; }
.pf-notif-from { font-size: 12px; font-weight: 700; color: #1A1A1A; margin-bottom: 3px; font-family: "DM Sans", sans-serif; }
.pf-notif-text { font-size: 12px; color: #4A4A4A; line-height: 1.4; font-family: "DM Sans", sans-serif; }

/* Panel: calendar */
.pf-cal-hdr { padding: 12px 16px; border-bottom: 1px solid #F0F0F0; display: flex; justify-content: space-between; align-items: center; }
.pf-cal-hdr-label { font-size: 13px; font-weight: 600; color: #1A1A1A; font-family: "DM Sans", sans-serif; }
.pf-cal-hdr-sub { font-size: 12px; color: #8D8D8D; font-family: "DM Sans", sans-serif; }
.pf-cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px 16px; }
.pf-cal-day { font-size: 11px; font-weight: 700; text-align: center; color: #8D8D8D; margin-bottom: 4px; font-family: "DM Sans", sans-serif; }
.pf-cal-slot { min-height: 48px; border-radius: 4px; background: #F6F4F1; }
.pf-cal-event { background: #B83B2F; border-radius: 4px; padding: 6px; font-size: 10px; color: #fff; line-height: 1.3; font-family: "DM Sans", sans-serif; }
.pf-cal-confirm { margin: 0 16px 16px; padding: 10px 14px; background: #E6F0EB; border-radius: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #3D7A5A; font-family: "DM Sans", sans-serif; }

/* Dark Section */
.pf-dark { background: #1A1A1A; padding: 96px 0; }
.pf-dark .container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.pf-dark-hdr { margin-bottom: 48px; }
.pf-dark-hdr h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.pf-dark-hdr p { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 560px; margin: 0; font-family: "DM Sans", sans-serif; }
.pf-dark-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pf-dark-intro { font-size: 15px; font-style: italic; font-family: "DM Serif Display", Georgia, serif; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 20px; }
.pf-dark-tiles { display: flex; flex-direction: column; gap: 12px; }
.pf-dark-tile { background: #2A2A2A; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; transition: border-color var(--dur-base) var(--ease-in-out); }
.pf-dark-tile:hover { border-color: rgba(255,255,255,0.22); }
.pf-dark-tile-icon { width: 36px; height: 36px; border-radius: 4px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-dark-tile-icon svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.pf-dark-tile-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; font-family: "DM Sans", sans-serif; }
.pf-dark-tile-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5; font-family: "DM Sans", sans-serif; }
.pf-dark-tile-arrow { color: rgba(255,255,255,0.25); margin-left: auto; align-self: center; flex-shrink: 0; font-size: 15px; transition: transform var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-in-out); }
.pf-dark-tile:hover .pf-dark-tile-arrow { transform: translateX(3px); color: rgba(255,255,255,0.6); }
.pf-dark-feat { background: #2A2A2A; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 28px; }
.pf-dark-feat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.pf-dark-feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pf-dark-feat-list li { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; padding-left: 20px; position: relative; font-family: "DM Sans", sans-serif; }
.pf-dark-feat-list li::before { content: '→'; position: absolute; left: 0; color: #B83B2F; font-size: 13px; }
.pf-dark-further { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.pf-dark-further a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color var(--dur-fast) var(--ease-in-out); font-family: "DM Sans", sans-serif; }
.pf-dark-further a:hover { color: rgba(255,255,255,0.7); }

/* Dark CTA */
.pf-cta { background: #1A1A1A; padding: 120px 48px; text-align: center; }
.pf-cta h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: #fff; max-width: 600px; margin: 0 auto 16px; }
.pf-cta h2 em { color: #B83B2F; font-style: italic; }
.pf-cta p { font-size: 18px; color: rgba(255,255,255,0.5); margin: 0 auto 40px; max-width: 440px; font-family: "DM Sans", sans-serif; }
.pf-cta .btn-primary { background: #B83B2F; color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; font-size: 16px; font-weight: 600; border-radius: 4px; text-decoration: none; transition: background var(--dur-fast) var(--ease-in-out), transform var(--dur-fast) var(--ease-out-expo); }
.pf-cta .btn-primary:hover { background: #8E2B21; color: #fff; }


/* FAQ enhancements */
.faq__question svg { transition: transform var(--dur-slow) var(--ease-out-expo); }
.faq__question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__answer { transition: max-height var(--dur-slow) var(--ease-out-expo); }

/* Responsive */
@media (max-width: 800px) {
  .pf-block, .pf-dark-body { grid-template-columns: 1fr; }
  .pf-block--flip .pf-block-text { order: 0; }
  .pf-block--flip .pf-block-visual { order: 0; }
  .pf-cta { padding: 80px 24px; }
  .pf-dark { padding: 64px 0; }
  .pf-dark .container { padding: 0 24px; }
  .pf-blocks .container { padding: 0 24px; }
  .pf-blocks { padding: 64px 0; }
}

/* ============================================================
   App Page — static hero widget (mirrors homepage hero styling)
   ============================================================ */

/* Widget card — same visual treatment as homepage hero widget */
.aw-widget {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09);
  width: 100%;
  overflow: hidden;
}

/* Shared hero widget visual styles */
.hw-screen { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.hw-top { display: flex; align-items: center; justify-content: space-between; }
.hw-greeting { display: flex; flex-direction: column; }
.hw-greeting-name { font-size: 20px; font-weight: 700; color: #1a1a1a; font-family: "DM Sans", sans-serif; letter-spacing: -0.02em; }
.hw-top-actions { display: flex; gap: 8px; }
.hw-action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: default; border: 1px solid; font-family: "DM Sans", sans-serif; }
.hw-action-btn--call { border-color: #3D7A5A; color: #3D7A5A; background: transparent; }
.hw-action-btn--chat { background: #B83B2F; border-color: #B83B2F; color: #fff; }
.hw-input-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; background: #fafafa; }
.hw-input-icon { color: #bbb; flex-shrink: 0; }
.hw-input-placeholder { flex: 1; font-size: 13px; color: #bbb; font-family: "DM Sans", sans-serif; }
.hw-input-send { width: 28px; height: 28px; border-radius: 50%; background: #B83B2F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-chip { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.12); background: #fff; font-size: 12px; color: #444; font-family: "DM Sans", sans-serif; cursor: default; }
.hw-chat-hdr { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.hw-chat-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.hw-chat-title { font-size: 13px; font-weight: 500; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.hw-chat-body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.hw-bubble { font-size: 13px; line-height: 1.55; padding: 12px 14px; border-radius: 12px; }
.hw-bubble--user { background: #f5ede9; color: #1a1a1a; align-self: flex-end; max-width: 90%; border-bottom-right-radius: 4px; }
.hw-bubble--w { background: transparent; color: #333; padding: 0; font-size: 13px; line-height: 1.6; }
.hw-response-row { display: flex; align-items: flex-start; gap: 10px; }
.hw-response-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.hw-chat-footer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; background: #fafafa; }
.hw-chat-footer-icon { color: #bbb; flex-shrink: 0; }
.hw-chat-footer-text { flex: 1; font-size: 13px; color: #bbb; font-family: "DM Sans", sans-serif; }
.hw-chat-footer-send { width: 28px; height: 28px; border-radius: 50%; background: #B83B2F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }

/* Calendar feed */
.aw-cal { background: #f5f4f1; border-radius: 10px; padding: 14px 14px 16px; }
.aw-cal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.aw-cal__title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #888; font-family: "DM Sans", sans-serif; }
.aw-cal__title svg { color: #B83B2F; flex-shrink: 0; }
.aw-cal__badge { font-size: 11px; color: #aaa; font-family: "DM Sans", sans-serif; }
.aw-cal__date-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #bbb; margin-bottom: 8px; font-family: "DM Sans", sans-serif; }
.aw-cal__event { background: #fff; border-radius: 8px; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.07); }
.aw-cal__event-name { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 5px; font-family: "DM Sans", sans-serif; line-height: 1.4; }
.aw-cal__event-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #999; font-family: "DM Sans", sans-serif; }

/* ============================================================
   App Page — "The App Connects" signal board
   ============================================================ */

/* Outer diagram container */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}

/* Left: source rows */
.flow-diagram__sources {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.flow-src {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: background 0.2s;
}
.flow-src:last-child { border-bottom: none; }
.flow-src:hover { background: rgba(255,255,255,0.03); }

.flow-src__label {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  font-family: "DM Sans", sans-serif;
  transition: color 0.2s;
}
.flow-src__label svg {
  opacity: 0.45;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.flow-src:hover .flow-src__label { color: rgba(255,255,255,0.8); }
.flow-src:hover .flow-src__label svg { opacity: 0.8; }

/* Track: the animated connecting line */
.flow-src__track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

/* Traveling dot */
.flow-src__dot {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: dotTravel 3.5s ease-in-out infinite;
}

/* Per-source dot colors and stagger delays */
.flow-src__track--1 .flow-src__dot { background: #5CAE87; animation-delay: 0s; }
.flow-src__track--2 .flow-src__dot { background: #CC7A72; animation-delay: 0.7s; }
.flow-src__track--3 .flow-src__dot { background: #7AAED4; animation-delay: 1.4s; }
.flow-src__track--4 .flow-src__dot { background: #C49A52; animation-delay: 2.1s; }
.flow-src__track--5 .flow-src__dot { background: #B08FD4; animation-delay: 2.8s; }

@keyframes dotTravel {
  0%   { left: -7px; opacity: 0; transform: scale(0.6); }
  8%   { opacity: 1;  transform: scale(1); }
  88%  { opacity: 1; }
  100% { left: calc(100% + 7px); opacity: 0; transform: scale(0.6); }
}

/* Right: activity feed */
.flow-diagram__feed {
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
}

.flow-feed__hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.flow-feed__logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.45;
}

.flow-feed__hdr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  font-family: "DM Sans", sans-serif;
}

.flow-feed__window {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

/* Scrolling track — duplicate items create seamless loop */
.flow-feed__track {
  display: flex;
  flex-direction: column;
  animation: feedScroll 24s linear infinite;
}

@keyframes feedScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Source badges */
.flow-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: "DM Sans", sans-serif;
}
.flow-tag--voice { background: rgba(92,174,135,0.14);  color: #5CAE87; }
.flow-tag--email { background: rgba(204,122,114,0.14); color: #CC7A72; }
.flow-tag--cal   { background: rgba(122,174,212,0.14); color: #7AAED4; }
.flow-tag--sms   { background: rgba(196,154,82,0.14);  color: #C49A52; }
.flow-tag--crm   { background: rgba(176,143,212,0.14); color: #B08FD4; }

.flow-item__text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
  font-family: "DM Sans", sans-serif;
}

/* Responsive: stack on mobile, hide source lines */
@media (max-width: 800px) {
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-diagram__sources { display: none; }
  .flow-diagram__feed { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flow-src__dot { animation: none; opacity: 0; }
  .flow-feed__track { animation: none; }
}

/* Tasks section */
.aw-tasks { background: #f5f4f1; border-radius: 10px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.aw-tasks__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.aw-tasks__title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #888; font-family: "DM Sans", sans-serif; }
.aw-tasks__urgent { font-size: 11px; font-weight: 600; color: #B83B2F; font-family: "DM Sans", sans-serif; }
.aw-task { background: #fff; border-radius: 8px; border: 1px solid rgba(0,0,0,0.07); border-left: 3px solid #B83B2F; padding: 11px 12px 11px 12px; display: flex; align-items: flex-start; gap: 10px; }
.aw-task__check { flex-shrink: 0; margin-top: 1px; }
.aw-task__body { flex: 1; min-width: 0; }
.aw-task__client { font-size: 12px; font-weight: 700; color: #B83B2F; margin-bottom: 3px; font-family: "DM Sans", sans-serif; }
.aw-task__text { font-size: 12px; color: #1a1a1a; line-height: 1.45; margin-bottom: 6px; font-family: "DM Sans", sans-serif; }
.aw-task__meta { display: flex; align-items: center; gap: 8px; }
.aw-task__priority { font-size: 11px; font-weight: 600; color: #B83B2F; font-family: "DM Sans", sans-serif; }
.aw-task__due { font-size: 11px; color: #999; font-family: "DM Sans", sans-serif; }
.aw-tasks__view-all { font-size: 12px; color: #B83B2F; font-family: "DM Sans", sans-serif; text-decoration: none; margin-top: 2px; align-self: flex-start; }

/* ============================================================
   App Page — Recent Activity Widget (Section C replacement)
   ============================================================ */

.app-activity-section { background: #1a1a1a; padding: 100px 0; }
.app-activity-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.app-activity-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.app-activity-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.app-activity-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 60px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }
.app-activity-further { margin-top: 24px; }
.app-activity-further a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; font-family: "DM Sans", sans-serif; }
.app-activity-further a:hover { color: rgba(255,255,255,0.65); }

/* Window chrome */
.app-activity-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }
.app-window-bar { padding: 12px 18px; background: #f7f7f7; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; gap: 8px; }
.app-window-title { font-size: 13px; color: #999; margin-left: auto; margin-right: auto; font-family: "DM Sans", sans-serif; }

/* App layout */
.app-window-body { display: grid; grid-template-columns: 200px 1fr; min-height: 440px; }

/* Sidebar */
.app-sidebar { border-right: 1px solid rgba(0,0,0,0.07); background: #fafafa; display: flex; flex-direction: column; }
.app-sidebar-logo { display: flex; align-items: center; gap: 8px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.app-sidebar-logo img { width: 24px; height: 24px; border-radius: 50%; }
.app-sidebar-name { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.app-sidebar-nav { display: flex; flex-direction: column; flex: 1; padding: 8px; }
.app-sidebar-item { font-size: 12.5px; color: #888; padding: 7px 10px; border-radius: 5px; font-family: "DM Sans", sans-serif; display: flex; align-items: center; justify-content: space-between; cursor: default; line-height: 1.4; }
.app-sidebar-item--active { background: rgba(184,59,47,0.07); color: #B83B2F; font-weight: 500; }
.app-sidebar-badge { background: #B83B2F; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; line-height: 1.4; }
.app-sidebar-actions { padding: 10px 8px 14px; border-top: 1px solid rgba(0,0,0,0.07); display: flex; flex-direction: column; gap: 6px; }
.app-action-call { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; border-radius: 5px; font-size: 12px; font-weight: 500; border: 1px solid #3D7A5A; color: #3D7A5A; background: transparent; cursor: default; font-family: "DM Sans", sans-serif; }
.app-action-chat { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; border-radius: 5px; font-size: 12px; font-weight: 500; background: #B83B2F; border: none; color: #fff; cursor: default; font-family: "DM Sans", sans-serif; }

/* Main feed */
.app-main { display: flex; flex-direction: column; overflow: hidden; }
.app-main-hdr { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.app-main-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }

/* Activity groups */
.app-activity-group { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.app-activity-group:last-child { border-bottom: none; }
.app-activity-date { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; margin-bottom: 10px; font-family: "DM Sans", sans-serif; }
.app-activity-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.app-activity-item:last-child { margin-bottom: 0; }
.app-activity-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; flex-shrink: 0; margin-top: 1px; font-family: "DM Sans", sans-serif; }
.app-activity-tag--email { background: #EEF0FB; color: #4C5EC0; }
.app-activity-tag--cal   { background: #E8F4EE; color: #2D6A4F; }
.app-activity-tag--voice { background: #FDEAE8; color: #B83B2F; }
.app-activity-tag--crm   { background: #F5EDFD; color: #7B3FC0; }
.app-activity-content { flex: 1; min-width: 0; }
.app-activity-desc { font-size: 13px; color: #333; line-height: 1.45; font-family: "DM Sans", sans-serif; }
.app-activity-hl { color: #B83B2F; font-weight: 500; }
.app-activity-time { font-size: 11px; color: #aaa; margin-top: 2px; font-family: "DM Sans", sans-serif; }

/* Call summary card */
.app-call-card { background: #fafafa; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.app-call-card-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.app-call-card-time { font-size: 11px; color: #aaa; font-family: "DM Sans", sans-serif; }
.app-call-card-who { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; font-family: "DM Sans", sans-serif; }
.app-call-card-summary { font-size: 12px; color: #555; line-height: 1.55; margin-bottom: 9px; font-family: "DM Sans", sans-serif; }
.app-call-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.app-call-tag { font-size: 10px; color: #888; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; padding: 2px 8px; background: #fff; font-family: "DM Sans", sans-serif; }

@media (max-width: 800px) {
  .app-activity-section { padding: 64px 0; }
  .app-activity-inner { padding: 0 24px; }
  .app-activity-sub { margin-bottom: 40px; font-size: 16px; }
  .app-window-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
}

/* ============================================================
   CALENDAR SCHEDULING WIDGET SECTION
   ============================================================ */
.cals-section { background: #1A1A1A; padding: 100px 0; }
.cals-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.cals-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.cals-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.cals-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 56px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }

/* Window shell */
.cals-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }
.cals-win-bar { padding: 12px 18px; background: #f7f7f7; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; gap: 8px; }
.cals-win-title { font-size: 13px; color: #999; margin-left: auto; margin-right: auto; font-family: "DM Sans", sans-serif; }

/* Day header row */
.cals-day-hdrs { display: grid; grid-template-columns: 48px repeat(5, 1fr); border-bottom: 1px solid rgba(0,0,0,0.07); background: #fafafa; }
.cals-time-gutter { /* alignment spacer */ }
.cals-day-hdr { padding: 10px 6px; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #bbb; font-family: "DM Sans", sans-serif; display: flex; flex-direction: column; align-items: center; gap: 5px; border-left: 1px solid rgba(0,0,0,0.05); }
.cals-day-hdr span { font-size: 17px; font-weight: 700; color: #ccc; line-height: 1; letter-spacing: 0; text-transform: none; }
.cals-day-hdr--active { background: rgba(184,59,47,0.03); }
.cals-day-hdr--active, .cals-day-hdr--active span { color: #B83B2F; }

/* Calendar grid */
.cals-grid {
  display: grid;
  grid-template-columns: 48px repeat(5, 1fr);
  grid-template-rows: repeat(7, 52px);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 51px,
    rgba(0,0,0,0.04) 51px,
    rgba(0,0,0,0.04) 52px
  );
  background-size: 100% 52px;
}

/* Time labels */
.cals-time { grid-column: 1; font-size: 10px; color: #bbb; font-family: "DM Sans", sans-serif; padding: 6px 8px 0; align-self: start; text-align: right; }

/* Column background for active day */
.cals-day-col-active {
  grid-column: 4;
  grid-row: 1 / 8;
  background: rgba(184,59,47,0.025);
  pointer-events: none;
}

/* Event cards */
.cals-evt { border-radius: 5px; padding: 6px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; margin: 2px 3px; }
.cals-evt-name { font-size: 11px; font-weight: 600; font-family: "DM Sans", sans-serif; line-height: 1.3; }
.cals-evt-time { font-size: 10px; font-family: "DM Sans", sans-serif; opacity: 0.65; }
.cals-evt--blue  { background: #EEF0FB; color: #4C5EC0; }
.cals-evt--green { background: #E8F4EE; color: #2D6A4F; }
.cals-evt--slate { background: #F2F2F2; color: #777; }

/* New event — Worthington added */
.cals-evt--new {
  background: rgba(184,59,47,0.08);
  color: #B83B2F;
  border: 1.5px solid rgba(184,59,47,0.3);
  animation: cals-pulse 2.8s ease-in-out infinite;
}
@keyframes cals-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,59,47,0); }
       55%  { box-shadow: 0 0 0 4px rgba(184,59,47,0.12); }
}
.cals-evt-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #B83B2F; margin-bottom: 3px; opacity: 0.8; }

/* Confirmation bar */
.cals-confirm { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #F5FBF7; border-top: 1px solid rgba(0,0,0,0.06); }
.cals-confirm-icon { width: 30px; height: 30px; background: #E8F4EE; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cals-confirm-content { flex: 1; min-width: 0; }
.cals-confirm-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2D6A4F; font-family: "DM Sans", sans-serif; display: block; margin-bottom: 2px; }
.cals-confirm-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.cals-confirm-detail { font-size: 11px; color: #999; font-family: "DM Sans", sans-serif; margin-top: 1px; }

/* Footer row: tiles + features */
.cals-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; text-align: left; }
.cals-footer-tiles { display: flex; flex-direction: column; gap: 12px; }
.cals-further { margin-top: 16px; }
.cals-further a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; font-family: "DM Sans", sans-serif; }
.cals-further a:hover { color: rgba(255,255,255,0.65); }

@media (max-width: 800px) {
  .cals-section { padding: 64px 0; }
  .cals-inner { padding: 0 24px; }
  .cals-sub { margin-bottom: 36px; font-size: 16px; }
  .cals-footer { grid-template-columns: 1fr; }
  .cals-grid { display: none; }
  .cals-day-hdrs { display: none; }
}

/* ============================================================
   CLIENT PROFILE WIDGET SECTION
   ============================================================ */
.clp-section { background: #1A1A1A; padding: 100px 0; }
.clp-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.clp-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.clp-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.clp-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 56px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }

.clp-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }

/* Window body: sidebar + profile */
.clp-body { display: grid; grid-template-columns: 192px 1fr; min-height: 480px; }

/* Sidebar */
.clp-sidebar { border-right: 1px solid rgba(0,0,0,0.07); background: #fafafa; display: flex; flex-direction: column; }
.clp-sidebar-hdr { padding: 14px 14px 10px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.clp-sidebar-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; margin-bottom: 8px; }
.clp-search { display: block; width: 100%; padding: 6px 10px; background: rgba(0,0,0,0.05); border: none; border-radius: 5px; font-size: 12px; color: #aaa; font-family: "DM Sans", sans-serif; outline: none; box-sizing: border-box; }
.clp-client-list { display: flex; flex-direction: column; padding: 6px 8px; gap: 2px; }
.clp-client-item { padding: 8px 10px; border-radius: 6px; cursor: default; }
.clp-client-item--active { background: rgba(184,59,47,0.07); }
.clp-client-name { font-size: 13px; font-weight: 500; color: #666; font-family: "DM Sans", sans-serif; line-height: 1.3; }
.clp-client-item--active .clp-client-name { color: #B83B2F; font-weight: 600; }
.clp-client-sub { font-size: 11px; color: #bbb; font-family: "DM Sans", sans-serif; margin-top: 1px; }
.clp-client-item--active .clp-client-sub { color: rgba(184,59,47,0.45); }

/* Main profile panel */
.clp-main { display: flex; flex-direction: column; overflow: hidden; }
.clp-main-inner { padding: 24px 28px; }

/* Avatar + identity */
.clp-avatar-row { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.clp-avatar { width: 60px; height: 60px; border-radius: 50%; background: #E6DEFA; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; color: #7B3FC0; font-family: "DM Sans", sans-serif; margin-bottom: 10px; letter-spacing: 0.02em; }
.clp-name { font-size: 17px; font-weight: 700; color: #1a1a1a; font-family: "DM Sans", sans-serif; margin-bottom: 7px; }
.clp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 5px; }
.clp-tag { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; font-family: "DM Sans", sans-serif; }
.clp-tag--active { background: #E8F4EE; color: #2D6A4F; }
.clp-tag--neutral { background: #F2F2F2; color: #777; }
.clp-pref { font-size: 12px; color: #aaa; font-family: "DM Sans", sans-serif; }
.clp-pref strong { color: #555; font-weight: 600; }

/* Contact buttons */
.clp-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.clp-contact-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; background: #F5F5F5; border-radius: 7px; font-size: 12px; color: #555; font-family: "DM Sans", sans-serif; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-contact-btn svg { flex-shrink: 0; opacity: 0.45; }

/* Stats strip */
.clp-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(0,0,0,0.07); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.clp-stat { padding: 10px 12px; border-right: 1px solid rgba(0,0,0,0.07); }
.clp-stat:last-child { border-right: none; }
.clp-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ccc; font-family: "DM Sans", sans-serif; margin-bottom: 3px; }
.clp-stat-val { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.clp-stat-date { font-size: 10px; color: #ccc; font-family: "DM Sans", sans-serif; margin-top: 2px; }

/* Section labels */
.clp-field-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ccc; font-family: "DM Sans", sans-serif; margin-bottom: 7px; }

/* Summary block — Worthington's synthesised brief */
.clp-summary-block { background: #F8F6FF; border: 1px solid rgba(123,63,192,0.12); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.clp-summary-text { font-size: 13px; color: #333; line-height: 1.65; font-family: "DM Sans", sans-serif; }

/* Notes */
.clp-notes { display: flex; flex-direction: column; gap: 7px; }
.clp-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #666; font-family: "DM Sans", sans-serif; line-height: 1.5; }
.clp-note-bullet { color: #ddd; flex-shrink: 0; }
.clp-reminder { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #666; font-family: "DM Sans", sans-serif; }
.clp-reminder-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: #FDEAE8; color: #B83B2F; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; }
.clp-reminder-due { font-size: 11px; color: #bbb; margin-left: 2px; }

@media (max-width: 800px) {
  .clp-section { padding: 64px 0; }
  .clp-inner { padding: 0 24px; }
  .clp-sub { margin-bottom: 36px; font-size: 16px; }
  .clp-body { grid-template-columns: 1fr; }
  .clp-sidebar { display: none; }
  .clp-contacts { grid-template-columns: 1fr; }
}

/* ============================================================
   EMAIL INBOX WIDGET SECTION
   ============================================================ */
.emw-section { background: #1A1A1A; padding: 100px 0; }
.emw-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.emw-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.emw-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.emw-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 56px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }

.emw-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }

/* Body: sidebar + inbox list */
.emw-body { display: grid; grid-template-columns: 176px 1fr; min-height: 460px; }

/* Sidebar */
.emw-sidebar { border-right: 1px solid rgba(0,0,0,0.07); background: #fafafa; display: flex; flex-direction: column; padding: 12px 8px; gap: 2px; }
.emw-sidebar-item { font-size: 12.5px; color: #888; padding: 7px 10px; border-radius: 5px; font-family: "DM Sans", sans-serif; display: flex; align-items: center; justify-content: space-between; cursor: default; line-height: 1.4; }
.emw-sidebar-item--active { background: rgba(76,94,192,0.08); color: #4C5EC0; font-weight: 600; }
.emw-sidebar-badge { background: #4C5EC0; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; line-height: 1.4; }
.emw-sidebar-divider { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ccc; padding: 10px 10px 4px; font-family: "DM Sans", sans-serif; }

/* Main inbox panel */
.emw-main { display: flex; flex-direction: column; }
.emw-main-hdr { padding: 13px 20px; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: space-between; }
.emw-main-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.emw-main-count { font-size: 11px; color: #4C5EC0; font-weight: 600; font-family: "DM Sans", sans-serif; }

/* Email rows */
.emw-email { display: flex; align-items: flex-start; gap: 12px; padding: 13px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); cursor: default; }
.emw-email:last-child { border-bottom: none; }
.emw-email--selected { background: rgba(76,94,192,0.04); }
.emw-email-dot { width: 7px; height: 7px; border-radius: 50%; background: #4C5EC0; flex-shrink: 0; margin-top: 5px; }
.emw-email-dot--read { background: transparent; }
.emw-email-content { flex: 1; min-width: 0; }
.emw-email-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.emw-email-from { font-size: 13px; font-weight: 700; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.emw-email-from--read { font-weight: 500; color: #555; }
.emw-email-time { font-size: 11px; color: #bbb; font-family: "DM Sans", sans-serif; flex-shrink: 0; }
.emw-email-subject { font-size: 12.5px; font-weight: 600; color: #333; font-family: "DM Sans", sans-serif; margin-bottom: 2px; }
.emw-email-subject--read { font-weight: 400; color: #777; }
.emw-email-preview { font-size: 12px; color: #aaa; font-family: "DM Sans", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Draft reply card */
.emw-draft { background: #F4F5FD; border: 1px solid rgba(76,94,192,0.18); border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
.emw-draft-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.emw-draft-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #EEF0FB; color: #4C5EC0; padding: 2px 7px; border-radius: 3px; }
.emw-draft-status { font-size: 11px; color: #aaa; font-family: "DM Sans", sans-serif; }
.emw-draft-body { font-size: 13px; color: #333; line-height: 1.65; font-family: "DM Sans", sans-serif; margin-bottom: 12px; }
.emw-draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.emw-draft-note { font-size: 11px; color: #aaa; font-family: "DM Sans", sans-serif; }
.emw-draft-btn { background: #4C5EC0; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 600; font-family: "DM Sans", sans-serif; cursor: default; white-space: nowrap; }

@media (max-width: 800px) {
  .emw-section { padding: 64px 0; }
  .emw-inner { padding: 0 24px; }
  .emw-sub { margin-bottom: 36px; font-size: 16px; }
  .emw-body { grid-template-columns: 1fr; }
  .emw-sidebar { display: none; }
  .emw-draft-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SMS ALERTS WIDGET SECTION
   ============================================================ */
.smsw-section { background: #1A1A1A; padding: 100px 0; }
.smsw-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.smsw-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.smsw-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.smsw-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 56px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }

.smsw-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }

/* Body: conversation list + thread */
.smsw-body { display: grid; grid-template-columns: 200px 1fr; min-height: 440px; }

/* Conversation list sidebar */
.smsw-convlist { border-right: 1px solid rgba(0,0,0,0.07); background: #fafafa; display: flex; flex-direction: column; }
.smsw-convlist-hdr { padding: 13px 14px 11px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.smsw-convlist-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.smsw-conv-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid rgba(0,0,0,0.05); cursor: default; }
.smsw-conv-item--active { background: rgba(184,59,47,0.06); }
.smsw-conv-item:last-child { border-bottom: none; }
.smsw-conv-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: "DM Sans", sans-serif; flex-shrink: 0; }
.smsw-conv-avatar--w { background: #1A1A1A; color: #fff; }
.smsw-conv-avatar--lc { background: #E8F4EE; color: #2D6A4F; }
.smsw-conv-avatar--tb { background: #F5EDFD; color: #7B3FC0; }
.smsw-conv-meta { flex: 1; min-width: 0; }
.smsw-conv-name { font-size: 12.5px; font-weight: 600; color: #333; font-family: "DM Sans", sans-serif; }
.smsw-conv-item--active .smsw-conv-name { color: #B83B2F; }
.smsw-conv-preview { font-size: 11px; color: #bbb; font-family: "DM Sans", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.smsw-conv-time { font-size: 10px; color: #ccc; font-family: "DM Sans", sans-serif; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.smsw-conv-dot { width: 7px; height: 7px; border-radius: 50%; background: #B83B2F; flex-shrink: 0; margin-left: 2px; align-self: center; }

/* Message thread panel */
.smsw-thread { display: flex; flex-direction: column; }
.smsw-thread-hdr { padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; gap: 10px; background: #fff; }
.smsw-thread-avatar { width: 30px; height: 30px; border-radius: 50%; background: #1A1A1A; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; font-family: "DM Sans", sans-serif; flex-shrink: 0; }
.smsw-thread-name { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.smsw-thread-sub { font-size: 11px; color: #aaa; font-family: "DM Sans", sans-serif; }

/* Message bubbles */
.smsw-messages { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.smsw-timestamp { text-align: center; font-size: 10px; color: #ccc; font-family: "DM Sans", sans-serif; letter-spacing: 0.04em; margin: 2px 0 6px; }
.smsw-msg { display: flex; flex-direction: column; max-width: 72%; }
.smsw-msg--received { align-self: flex-start; }
.smsw-msg--sent { align-self: flex-end; }
.smsw-bubble { padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.55; font-family: "DM Sans", sans-serif; }
.smsw-msg--received .smsw-bubble { background: #F0F0F0; color: #1a1a1a; border-bottom-left-radius: 4px; }
.smsw-msg--sent .smsw-bubble { background: #1A1A1A; color: #fff; border-bottom-right-radius: 4px; }
.smsw-msg-time { font-size: 10px; color: #ccc; font-family: "DM Sans", sans-serif; margin-top: 4px; }
.smsw-msg--sent .smsw-msg-time { text-align: right; }

/* Alert label on first Worthington message */
.smsw-alert-label { font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #B83B2F; font-family: "DM Sans", sans-serif; margin-bottom: 4px; padding-left: 2px; }

/* Input bar */
.smsw-input-bar { padding: 10px 14px; border-top: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; gap: 10px; background: #fafafa; }
.smsw-input { flex: 1; background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; padding: 7px 14px; font-size: 12.5px; color: #ccc; font-family: "DM Sans", sans-serif; }
.smsw-send-btn { width: 30px; height: 30px; border-radius: 50%; background: #B83B2F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.smsw-send-btn svg { stroke: #fff; }

@media (max-width: 800px) {
  .smsw-section { padding: 64px 0; }
  .smsw-inner { padding: 0 24px; }
  .smsw-sub { margin-bottom: 36px; font-size: 16px; }
  .smsw-body { grid-template-columns: 1fr; }
  .smsw-convlist { display: none; }
}

/* ============================================================
   VOICE CALL WIDGET SECTION
   ============================================================ */
.vcw-section { background: #1A1A1A; padding: 100px 0; }
.vcw-inner { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.vcw-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #B83B2F; margin-bottom: 20px; font-family: "DM Sans", sans-serif; }
.vcw-heading { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.vcw-sub { font-size: 17px; color: rgba(255,255,255,0.4); margin: 0 auto 56px; max-width: 520px; font-family: "DM Sans", sans-serif; line-height: 1.65; }

.vcw-window { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(0,0,0,0.09); }

/* Body: call list + summary panel */
.vcw-body { display: grid; grid-template-columns: 200px 1fr; min-height: 440px; }

/* Recent calls sidebar */
.vcw-calllist { border-right: 1px solid rgba(0,0,0,0.07); background: #fafafa; display: flex; flex-direction: column; }
.vcw-calllist-hdr { padding: 13px 14px 11px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.vcw-calllist-title { font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: "DM Sans", sans-serif; }
.vcw-call-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid rgba(0,0,0,0.05); cursor: default; }
.vcw-call-item--active { background: rgba(184,59,47,0.06); }
.vcw-call-item:last-child { border-bottom: none; }
.vcw-call-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: "DM Sans", sans-serif; flex-shrink: 0; }
.vcw-call-avatar--rk { background: #E8F4EE; color: #2D6A4F; }
.vcw-call-avatar--lc { background: #EEF0FB; color: #4C5EC0; }
.vcw-call-avatar--jk { background: #F5EDFD; color: #7B3FC0; }
.vcw-call-meta { flex: 1; min-width: 0; }
.vcw-call-name { font-size: 12.5px; font-weight: 600; color: #555; font-family: "DM Sans", sans-serif; }
.vcw-call-item--active .vcw-call-name { color: #B83B2F; }
.vcw-call-detail { font-size: 11px; color: #bbb; font-family: "DM Sans", sans-serif; margin-top: 2px; }
.vcw-call-item--active .vcw-call-detail { color: rgba(184,59,47,0.45); }

/* Summary panel */
.vcw-summary { display: flex; flex-direction: column; }
.vcw-summary-inner { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }

/* Call header */
.vcw-call-hdr { display: flex; align-items: center; gap: 14px; }
.vcw-call-hdr-avatar { width: 48px; height: 48px; border-radius: 50%; background: #E8F4EE; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #2D6A4F; font-family: "DM Sans", sans-serif; flex-shrink: 0; }
.vcw-call-hdr-info { flex: 1; }
.vcw-call-hdr-name { font-size: 16px; font-weight: 700; color: #1a1a1a; font-family: "DM Sans", sans-serif; margin-bottom: 4px; }
.vcw-call-hdr-meta { display: flex; align-items: center; gap: 8px; }
.vcw-call-hdr-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #FDEAE8; color: #B83B2F; padding: 2px 7px; border-radius: 3px; font-family: "DM Sans", sans-serif; }
.vcw-call-hdr-dur { font-size: 12px; color: #aaa; font-family: "DM Sans", sans-serif; }

/* Summary block */
.vcw-summary-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ccc; font-family: "DM Sans", sans-serif; margin-bottom: 6px; }
.vcw-summary-text { font-size: 13px; color: #444; line-height: 1.65; font-family: "DM Sans", sans-serif; }

/* Actions list — the featured element */
.vcw-actions { display: flex; flex-direction: column; gap: 9px; }
.vcw-action { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; background: #fafafa; border: 1px solid rgba(0,0,0,0.06); border-radius: 7px; }
.vcw-action-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; flex-shrink: 0; margin-top: 1px; font-family: "DM Sans", sans-serif; }
.vcw-action-tag--cal   { background: #E8F4EE; color: #2D6A4F; }
.vcw-action-tag--client { background: #F5EDFD; color: #7B3FC0; }
.vcw-action-tag--email { background: #EEF0FB; color: #4C5EC0; }
.vcw-action-tag--task  { background: #FEF6E8; color: #A06020; }
.vcw-action-desc { font-size: 12.5px; color: #333; font-family: "DM Sans", sans-serif; line-height: 1.45; }

@media (max-width: 800px) {
  .vcw-section { padding: 64px 0; }
  .vcw-inner { padding: 0 24px; }
  .vcw-sub { margin-bottom: 36px; font-size: 16px; }
  .vcw-body { grid-template-columns: 1fr; }
  .vcw-calllist { display: none; }
}

/* ============================================================
   Small phone — ≤480px
   ============================================================ */
@media (max-width: 480px) {

  /* Feature blocks */
  .pf-blocks { padding: 48px 0; }
  .pf-blocks .container { padding: 0 16px; }
  .pf-block { margin-bottom: 56px; gap: 32px; }
  .pf-cta { padding: 64px 16px; }
  .pf-dark { padding: 48px 0; }
  .pf-dark .container { padding: 0 16px; }
  .pf-dark-feat { padding: 20px; }

  /* All widget sections — reduce vertical padding and inner padding */
  .app-activity-section,
  .cals-section,
  .clp-section,
  .emw-section,
  .smsw-section,
  .vcw-section { padding: 48px 0; }

  .app-activity-inner,
  .cals-inner,
  .clp-inner,
  .emw-inner,
  .smsw-inner,
  .vcw-inner { padding: 0 16px; }

  .app-activity-sub,
  .cals-sub,
  .clp-sub,
  .emw-sub,
  .smsw-sub,
  .vcw-sub { font-size: 15px; margin-bottom: 32px; }

  /* Widget window chrome radius — slightly tighter on tiny screens */
  .app-activity-window,
  .cals-window,
  .clp-window,
  .emw-window,
  .smsw-window,
  .vcw-window { border-radius: 10px; }

  /* Reduce widget min-heights so they don't force excessive scroll */
  .app-window-body { min-height: 300px; }
  .clp-body        { min-height: 360px; }
  .emw-body        { min-height: 340px; }
  .smsw-body       { min-height: 320px; }
  .vcw-body        { min-height: 320px; }

  /* Tighter inner padding on detail panels */
  .vcw-summary-inner { padding: 18px 16px; gap: 16px; }
  .clp-main-inner    { padding: 16px; }

  /* Calendar footer — already 1-col at 800px, just tighten gap */
  .cals-footer { gap: 20px; margin-top: 32px; }

  /* Flow diagram feed on how-it-works */
  .flow-item { padding: 11px 16px; }
  .flow-feed__hdr { padding: 14px 16px 12px; }
}
