/* Joey for Fieldwire integration page (/integrations/fieldwire/) */
.fw-page *, .fw-page *::before, .fw-page *::after { box-sizing: border-box; }
.fw-page { margin: 0; color: #252235; background: #fff; font-family: 'Poppins', system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
.fw-page a { color: #51418f; text-underline-offset: 4px; }
.fw-page a:hover { color: #382967; }
.fw-page a:focus-visible, .fw-page summary:focus-visible, .fw-page button:focus-visible { outline: 3px solid #7866cc; outline-offset: 4px; }
.fw-skip { position: fixed; z-index: 200; top: 12px; left: 16px; padding: 12px 18px; background: #fff; border: 2px solid #5e50a0; border-radius: 8px; transform: translateY(-160%); }
.fw-skip:focus { transform: translateY(0); }
.fw-container { max-width: 1200px; padding-inline: 24px; margin-inline: auto; }
.fw-eyebrow { display: block; color: #5e50a0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fw-page h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; margin: 12px 0 28px; }
.fw-page h3 { font-weight: 600; }

/* Buttons */
.fw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.fw-actions-center { justify-content: center; margin-top: 24px; }
.fw-button { display: inline-flex; align-items: center; gap: 14px; border-radius: 999px; padding: 13px 24px; background: #5e50a0; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.fw-button:hover { background: #4a3f86; }
.fw-text-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.fw-text-link span { margin-left: 6px; }
.fw-ghost { font: inherit; font-size: 13px; font-weight: 500; color: #2c2940; background: #fff; border: 1px solid #d8d6e4; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.fw-ghost:hover { border-color: #5e50a0; color: #5e50a0; }

/* B. Hero */
.fw-hero { padding: 72px 0 64px; background: linear-gradient(120deg, #fff 20%, #f3f0ff 100%); border-bottom: 1px solid #e7e3f1; }
.fw-hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; margin: 20px 0 22px; }
.fw-intro { max-width: 560px; font-size: 19px; line-height: 1.65; color: #5b5870; margin: 0; }
.fw-lockup { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #69647c; font-size: 16px; }
.fw-lockup img { width: 110px; height: auto; }
.fw-lockup .fw-lockup-fw { width: auto; height: 26px; }

/* Hero: one centred column, heading, then an iPhone 15 sized phone (393 x 852 pt), then intro and buttons */
.fw-hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fw-hero-stack .fw-lockup { justify-content: center; }
.fw-hero-stack .fw-intro { margin-inline: auto; }
.fw-hero-stack .fw-actions { justify-content: center; }
.fw-hero-phone { display: flex; justify-content: center; margin: 8px 0 36px; }
.fw-iphone { width: 280px; height: auto; border-width: 10px; border-radius: 46px; position: relative; text-align: left; }
.fw-iphone .fw-msgs { flex: none; padding-top: 14px; padding-bottom: 16px; }
.fw-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 4px; font-size: 13px; font-weight: 600; color: #1c1b22; background: #f9f9fb; }
.fw-island { width: 112px; height: 24px; border-radius: 0 0 16px 16px; background: #1c1b22; align-self: flex-start; margin-top: -12px; }
.fw-status-icons { font-size: 9px; letter-spacing: 1px; }
.fw-iphone .fw-phone-head { padding-top: 4px; }
.fw-homebar { width: 120px; height: 5px; border-radius: 3px; background: #1c1b22; margin: 0 auto 8px; }

/* iPhone + iMessage */
.fw-phone { background: #fff; border: 9px solid #1c1b22; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(20, 18, 31, .14); font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; }
.fw-phone-head { padding: 14px 10px 8px; border-bottom: 1px solid #ececf1; text-align: center; display: grid; justify-items: center; gap: 2px; background: #f9f9fb; }
.fw-avatars { display: flex; }
.fw-avatars span { width: 28px; height: 28px; border-radius: 50%; background: #c7c7cc; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; border: 2px solid #f9f9fb; margin-left: -8px; }
.fw-avatars span:first-child { margin-left: 0; }
.fw-phone-title { font-size: 11px; color: #1c1b22; }
.fw-msgs { flex: 1; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.fw-sent, .fw-recv { font-size: 13px; line-height: 1.38; padding: 8px 12px; max-width: 82%; border-radius: 18px; overflow-wrap: anywhere; }
.fw-sent { position: relative; background: #0a84ff; color: #fff; margin: 12px 0 2px auto; border-bottom-right-radius: 5px; }
.fw-recv { background: #e9e9eb; color: #111; margin: 1px 0 6px; border-bottom-left-radius: 5px; }
.fw-mention { font-weight: 600; }
.fw-name { font-size: 10px; color: #8e8e93; margin: 6px 0 0 10px; }
/* Hero chat, matched to the Joey features video */
.fw-stamp { text-align: center; font-size: 10px; color: #8e8e93; margin: 10px 0 0; }
.fw-stamp b { font-weight: 600; }
.fw-recv-row { display: flex; align-items: flex-end; gap: 6px; }
.fw-recv-row .fw-recv { max-width: 78%; }
.fw-av-joey, .fw-avatars .fw-av-j { background: linear-gradient(135deg, #c86dd7, #5e50a0); }
.fw-av-joey { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; margin-bottom: 6px; }
.fw-name-av { margin-left: 40px; }
.fw-reply { font-size: 10px; color: #8e8e93; text-align: right; margin: 10px 4px 0 0; }
.fw-tapback { position: absolute; top: -14px; left: -12px; width: 26px; height: 26px; border-radius: 50%; background: #e9e9eb; border: 2px solid #fff; font-size: 12px; display: grid; place-items: center; }
.fw-photo { width: 120px; height: 82px; border-radius: 16px; margin: 0 0 0 auto; background: repeating-linear-gradient(135deg, #d9d6cf 0 10px, #cfcbc2 10px 20px); color: #6b675f; font-size: 10px; display: grid; place-items: center; }
.fw-file { display: flex; gap: 10px; align-items: center; background: #e9e9eb; border-radius: 16px; padding: 10px 12px; margin: 0 0 0 auto; font-size: 12px; max-width: 82%; color: #111; }
.fw-file b { display: block; font-weight: 600; }
.fw-file small { color: #8e8e93; }
.fw-file-icon { width: 28px; height: 34px; border-radius: 4px; background: #fff; border: 1px solid #d1d1d6; font-size: 8px; font-weight: 700; color: #d70015; display: grid; place-items: center; flex: none; }
.fw-phone-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px 14px; color: #8e8e93; }
.fw-plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e9e9eb; color: #6e6e73; font-size: 20px; font-weight: 300; line-height: 1; display: grid; place-items: center; }
.fw-input { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 28px; border: 1px solid #d1d1d6; border-radius: 14px; padding: 0 10px 0 12px; font-size: 12px; color: #b0b0b5; }
.fw-mic { width: 10px; height: 14px; fill: none; stroke: #8e8e93; stroke-width: 1.6; stroke-linecap: round; }

/* Sections */
.fw-section { padding: 88px 0 0; }
.fw-section:last-of-type { padding-bottom: 96px; }

/* C. Benefits */
.fw-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fw-benefits article { border: 1px solid #e7e3f1; border-radius: 18px; padding: 26px; background: #fff; }
.fw-benefits h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.fw-benefits p { font-size: 14px; color: #5b5870; margin: 0; }
.fw-icon { width: 44px; height: 44px; border-radius: 12px; background: #f3f0ff; color: #5e50a0; display: grid; place-items: center; }
.fw-icon svg { width: 22px; height: 22px; }

/* D. Demo */
.fw-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fw-step { font: inherit; font-size: 13px; font-weight: 500; color: #514d63; background: #fff; border: 1px solid #d8d6e4; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.fw-step:hover { border-color: #7866cc; }
.fw-step[aria-pressed="true"] { background: #5e50a0; border-color: #5e50a0; color: #fff; }
.fw-caption { display: inline-block; font-size: 18px; font-weight: 600; margin: 0 0 20px; padding-bottom: 4px; border-bottom: 3px solid #a6a5ff; }
.fw-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.fw-demo-phone { height: 520px; }
.fw-demo-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.fw-note { font-size: 12px; color: #69647c; margin: 14px 0 0; }

/* Fieldwire app mock */
.fw-app { border: 1px solid #d8d6e4; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 520px; background: #fff; font-family: system-ui, -apple-system, sans-serif; font-size: 12px; color: #1f2430; box-shadow: 0 12px 32px rgba(20, 18, 31, .08); }
.fw-app-side { background: #1f2430; color: #c4c8d2; padding: 12px 8px; }
.fw-app-side p { margin: 0; padding: 5px 8px; border-radius: 4px; }
.fw-app-side .fw-app-project { color: #fff; font-weight: 600; padding-bottom: 8px; }
.fw-app-side .fw-app-h { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8a90a0; margin-top: 10px; }
.fw-app-side .is-on { background: #2b6fd6; color: #fff; }
.fw-app-main { position: relative; padding: 12px; min-width: 0; }
.fw-app-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.fw-app-new { background: #2b6fd6; color: #fff; border-radius: 4px; padding: 4px 10px; font-weight: 500; }
.fw-app-btn { border: 1px solid #dde0e6; border-radius: 4px; padding: 4px 10px; }
.fw-app-view { overflow-x: auto; }
.fw-board { display: grid; grid-template-columns: repeat(5, minmax(108px, 1fr)); gap: 8px; }
.fw-col { background: #f4f5f7; border-radius: 6px; padding: 8px; min-width: 0; }
.fw-col h4 { margin: 0 0 6px; font-size: 11px; font-weight: 600; }
.fw-col h4 span { color: #8a90a0; font-weight: 400; margin-left: 4px; }
.fw-card { background: #fff; border: 1px solid #e3e5ea; border-radius: 4px; padding: 6px; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.3; transition: box-shadow .3s; }
.fw-card small { display: block; color: #8a90a0; font-size: 9px; }
.fw-card.is-new { box-shadow: 0 0 0 2px #0a84ff; }
.fw-sq { width: 14px; height: 14px; border-radius: 3px; flex: none; margin-top: 1px; }
.fw-empty { color: #8a90a0; text-align: center; margin: 14px 0; font-size: 11px; }
.fw-modal { position: absolute; top: 46px; left: 12px; right: 12px; background: #fff; border: 1px solid #d0d3da; border-radius: 8px; box-shadow: 0 16px 40px rgba(20, 24, 40, .18); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); animation: fw-pop .25s ease; }
.fw-modal-main { padding: 14px; border-right: 1px solid #eceef2; }
.fw-modal-side { padding: 14px; }
.fw-modal small { color: #8a90a0; }
.fw-modal-title { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin: 2px 0 14px; }
.fw-modal h5 { font-size: 12px; margin: 0 0 6px; }
.fw-activity { border-top: 1px solid #eceef2; padding-top: 8px; margin-top: 8px; }
.fw-activity b { font-weight: 600; }
.fw-activity p { margin: 2px 0 6px; color: #4a5060; }
.fw-thumb { width: 96px; height: 68px; border-radius: 4px; background: repeating-linear-gradient(135deg, #d9d6cf 0 10px, #cfcbc2 10px 20px); }
.fw-attr { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f1f4; }
.fw-attr span:first-child { color: #8a90a0; }
.fw-files { width: 100%; border-collapse: collapse; }
.fw-files th { text-align: left; font-weight: 600; font-size: 11px; color: #4a5060; border-bottom: 1px solid #e3e5ea; padding: 6px; }
.fw-files td { padding: 8px 6px; border-bottom: 1px solid #f0f1f4; }
.fw-files tr.is-new td { background: #eaf3ff; }
@keyframes fw-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* E. Tagline */
.fw-cta { text-align: center; background: linear-gradient(135deg, #ffffff 0%, #e6e6fa 50%, #c4b5fd 100%); border-radius: 24px; padding: 64px 24px; }
.fw-cta h2 { font-size: clamp(34px, 4.4vw, 54px); margin: 0; }
.fw-cta-sub { font-size: 20px; color: #4a3f86; margin: 6px 0 0; font-weight: 500; }
.fw-cta-note { font-size: 12px; color: #5b5870; margin: 18px 0 0; }

/* F. FAQ */
.fw-faq-wrap { max-width: 860px; }
.fw-faq { border-top: 1px solid #e7e3f1; }
.fw-faq details { border-bottom: 1px solid #e7e3f1; }
.fw-faq summary { display: flex; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 600; padding: 20px 0; list-style: none; cursor: pointer; }
.fw-faq summary::-webkit-details-marker { display: none; }
.fw-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; color: #5e50a0; margin-left: auto; flex-shrink: 0; }
.fw-faq details[open] summary::after { content: '−'; }
.fw-answer { font-size: 14px; color: #514d63; padding: 0 0 20px; }
.fw-answer p { margin: 0; }
.fw-faq-foot { font-size: 13px; color: #5b5870; margin: 22px 0 0; }

/* Nav/footer logo sizing, as on other standalone pages */
.fw-page .wl-brand img { width: 145px; height: auto; }
.fw-page .wl-footer-brand img { width: 155px; height: auto; }

@media (max-width: 1040px) {
  .fw-demo-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
  .fw-app { grid-template-columns: minmax(0, 1fr); }
  .fw-app-side { display: none; }
}
@media (max-width: 860px) {
  .fw-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .fw-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-demo-grid { grid-template-columns: minmax(0, 1fr); }
  .fw-demo-phone { order: -1; width: 100%; max-width: 340px; height: 480px; margin-inline: auto; }
  .fw-page .wl-nav-actions .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .fw-hero { padding: 44px 0 40px; }
  .fw-intro { font-size: 16px; }
  .fw-iphone { width: 260px; border-radius: 44px; }
  .fw-section { padding-top: 60px; }
  .fw-benefits { grid-template-columns: minmax(0, 1fr); }
  .fw-benefits article { padding: 20px; }
  .fw-caption { font-size: 16px; }
  .fw-step { font-size: 12px; padding: 6px 12px; }
  .fw-app { min-height: 460px; }
  .fw-modal { position: static; grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .fw-app-view:has(.fw-modal) .fw-board { display: none; }
  .fw-modal-main { border-right: 0; border-bottom: 1px solid #eceef2; }
  .fw-cta { padding: 44px 18px; border-radius: 18px; }
  .fw-page .wl-brand img { width: 110px; }
}
@media (prefers-reduced-motion: reduce) { .fw-modal { animation: none; } .fw-card { transition: none; } }

/* D. Demo video mode (data-demo="video") */
.fw-video { margin-top: 4px; }
.fw-video[hidden], [data-demo-mock][hidden] { display: none; }
.fw-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 16px; background: #14121f; box-shadow: 0 12px 32px rgba(20, 18, 31, .12); }

/* Attached site photos (img versions of the placeholders) */
img.fw-photo { display: block; object-fit: cover; background: #d9d6cf; }
img.fw-thumb { display: block; object-fit: cover; }
