/* Crewmark landing page */
html { scroll-behavior: smooth; }
body { font-size: 16.5px; background: #fff; }
.xc { --xc-bar: #c2480f; --xc-bar-hi: #9a370a; --xc-b2: #4a5964; --xc-b2-hi: #23282c; --xc-grid: #e5e8ea; --xc-base: #aab2b8; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.lead { max-width: 640px; margin-top: 10px; color: var(--ink-2); font-size: 18px; }
.btn { min-height: 46px; padding: 0 18px; font-size: 15.5px; }
.top { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--accent-dark); }

.hero { padding-block: 34px 70px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.hero h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.005em; }
.hero-copy p { color: var(--ink-2); font-size: 18px; }
.hero-actions, .close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.st-scheduled { --st: #1a547f; --st-bg: #e0edf7; }
.st-en_route { --st: #51407f; --st-bg: #ebe6f7; }
.st-on_site { --st: #9a370a; --st-bg: #fbe2d3; }
.st-completed { --st: #7d4a00; --st-bg: #fcecc2; }
.st-reviewed { --st: #1f6134; --st-bg: #deefe2; }
.shot { margin: 36px 0 0; overflow: hidden; border: 1px solid #aeb6bd; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -36px rgba(25, 32, 38, .55); }
.shot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 18px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--accent); }
.shot-bar strong { font: 700 19px var(--head); }
.shot-bar span { color: #cfd5da; font-size: 14.5px; }
.shot-body { display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.shot-queue { padding: 12px; background: var(--bg); border-right: 1px solid var(--line); }
.shot-queue > p { margin-bottom: 8px; font: 700 16px var(--head); }
.shot-queue ul { display: grid; gap: 8px; }
.shot-queue li { display: grid; gap: 1px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; line-height: 1.35; }
.shot-queue li.pr-emergency { border-color: var(--danger); box-shadow: inset 0 3px 0 var(--danger); }
.shot-queue b { font: 600 13px var(--head); }
.shot-queue em { margin-left: 4px; font-style: normal; color: var(--danger); }
.shot-queue li.pr-urgent em { color: var(--warn); }
.shot-queue span { font-size: 14px; font-weight: 600; }
.shot-queue small { color: var(--ink-2); font-size: 12.5px; }
.shot-board { display: grid; grid-template-rows: auto repeat(6, minmax(58px, 1fr)); min-width: 0; }
.sb-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.sb-row:last-child { border-bottom: 0; }
.sb-row > span { align-self: center; padding: 0 10px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.sb-row > div { position: relative; border-left: 1px solid var(--line-2); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 11)); }
.sb-head > div { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); background: #f8f9fa; }
.sb-head > span { background: #f8f9fa; }
.sb-head i { padding: 7px 4px; color: var(--ink-2); font: 600 12px var(--head); }
.sb-row b { position: absolute; top: 6px; bottom: 6px; display: flex; flex-direction: column; justify-content: center; padding: 0 7px; overflow: hidden; border: 1px solid var(--st); border-left-width: 4px; border-radius: 5px; background: var(--st-bg); line-height: 1.25; }
.sb-row b strong, .sb-row b small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; }
.sb-row b small { font-size: 12px; font-weight: 400; color: #3d464e; }
.shot figcaption { padding: 10px 18px; border-top: 1px solid var(--line); }
.shot figcaption ul { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); }
.shot figcaption li { display: flex; align-items: center; gap: 6px; }
.shot figcaption i { width: 11px; height: 11px; border-radius: 3px; background: var(--st); }

.band { padding-block: 70px; background: var(--bg); border-block: 1px solid var(--line); }
/* The route: a line that fills left to right, one stop at a time */
.route { --step: 1.5s; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 40px; }
.route li { position: relative; padding-right: 16px; }
.route li::before, .route li::after { content: ""; position: absolute; top: 24px; left: 50px; right: 0; height: 4px; background: var(--line-2); }
.route li::after { background: var(--accent); transform-origin: left; animation: fill 12s linear infinite; animation-delay: calc(var(--n) * var(--step)); transform: scaleX(0); }
.route li:last-child::before, .route li:last-child::after { display: none; }
.route-dot { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; }
.route li.is-field .route-dot { background: var(--navy); color: #fff; }
.route-dot .icon { width: 24px; height: 24px; }
.route strong { display: block; margin-top: 14px; font: 700 20px var(--head); }
.route em { display: block; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--accent-dark); }
.route p { margin-top: 5px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
@keyframes fill { 0% { transform: scaleX(0); } 12.5% { transform: scaleX(1); } 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes filldown { 0% { transform: scaleY(0); } 12.5% { transform: scaleY(1); } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .route li::after { transform: none; } }

.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 60px; padding-block: 76px; align-items: center; }
.rules .btn { margin-top: 20px; }
.rules ul { display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--danger); border-radius: 8px; background: var(--danger-tint); color: var(--danger); }
.rules li .icon { width: 22px; height: 22px; margin-top: 2px; }
.rules li p { color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.rules li strong { display: block; color: var(--danger); }

.roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.roles-grid article { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ph { display: flex; flex-direction: column; height: 468px; overflow: hidden; border: 7px solid var(--navy); border-radius: 30px; background: var(--bg); font-size: 13px; line-height: 1.35; }
.ph-bar { padding: 12px 14px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--accent); font: 700 19px var(--head); }
.ph-body { flex: 1; min-height: 0; padding: 10px; }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-stats div { display: grid; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ph-stats b { font: 700 26px/1.15 var(--head); }
.ph small { color: var(--ink-2); font-size: 12px; }
.ph-h { margin: 12px 0 6px; font: 700 15px var(--head); }
.ph-list { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ph-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.ph-list li + li { border-top: 1px solid var(--line); }
.ph-list span { display: grid; min-width: 0; }
.ph-list em { flex: none; max-width: 78px; font-style: normal; font-size: 12px; font-weight: 600; text-align: right; color: var(--ink-2); }
.ph-list em.pr-emergency { color: var(--danger); }
.ph-list em.pr-urgent { color: var(--warn); }
.ph-now { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--line-2); border-top: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.ph-now strong { font: 700 18px var(--head); }
.ph-now span { margin-top: 5px; padding: 8px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; text-align: center; }
.ph-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 0 9px; border-top: 1px solid var(--line); background: #fff; }
.ph-tabs span { display: grid; justify-items: center; gap: 2px; color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: -.02em; }
.ph-tabs span.is-on { color: var(--accent-dark); }
.role-text h3 { font-size: 23px; line-height: 1.2; }
.role-text ul { margin: 12px 0 18px; }
.role-text li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }

.numbers { padding-block: 76px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; align-items: start; }
.panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; }
.panel h3 { margin-bottom: 12px; font-size: 20px; }
.close { padding-block: 60px; background: var(--navy); color: #fff; border-top: 5px solid var(--accent); }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.close p { max-width: 560px; margin-top: 8px; color: #cfd5da; }
.close-actions { margin: 0; }
.close .btn:not(.btn-primary) { background: transparent; border-color: #7b858d; color: #fff; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 22px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 1100px) {
  .roles-grid { grid-template-columns: minmax(0, 1fr); }
  .roles-grid article { grid-template-columns: 290px minmax(0, 1fr); }
  .shot-body { grid-template-columns: minmax(0, 1fr); }
  .shot-queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .shot-queue ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-copy, .rules, .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .route { --step: 1.5s; grid-template-columns: minmax(0, 1fr); }
  .route li { display: flex; gap: 16px; padding: 0 0 26px; }
  .route li:last-child { padding-bottom: 0; }
  .route li::before, .route li::after { top: 52px; bottom: 0; left: 24px; right: auto; width: 4px; height: auto; }
  .route li::after { transform-origin: top; transform: scaleY(0); animation-name: filldown; }
  .route-dot { flex: none; }
  .route strong { margin-top: 0; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .route li::after { transform: none; } }
/* Phone: the board keeps every row, with the customer name inside each block */
@media (max-width: 700px) {
  .shot-queue ul { grid-template-columns: minmax(0, 1fr); }
  .shot-queue li:nth-child(n+3) { display: none; }
  .shot-board { grid-template-rows: auto; }
  .sb-row { grid-template-columns: minmax(0, 1fr); }
  .sb-row > span { padding: 7px 10px 2px; }
  .sb-row > div { height: 40px; border-left: 0; }
  .sb-head > span { display: none; }
  .sb-head > div { height: auto; }
  .sb-head i { padding: 6px 1px; overflow: hidden; white-space: nowrap; }
  .sb-head i:nth-child(even) { visibility: hidden; }
  .sb-row b { top: 4px; bottom: 4px; padding: 0 3px; }
  .sb-row b small { display: none; }
  .sb-row b strong { font-size: 12px; }
  .sb-row b.is-short strong { visibility: hidden; }
  .roles-grid article { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 18px 12px; }
  .ph { width: min(300px, 100%); }
  .role-text { width: 100%; }
  .role-text .btn { width: 100%; }
  .band, .rules, .numbers { padding-block: 48px; }
  .hero { padding-block: 18px 48px; }
  .hero-actions .btn, .close-actions .btn { flex: 1 1 100%; }
  .close-actions { width: 100%; }
  .panel { padding: 14px 12px; }
  .top .btn { min-height: 44px; padding: 0 13px; }
}
@media (max-width: 360px) { .top .brand { font-size: 19px; } }

/* Header, real phone pictures and questions */
:root { --lp-bg: #fff; --lp-line: #dbdfe2; --lp-accent: #c2480f; }
.top { padding-block: 12px; }
.roles-grid article { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding: 28px 24px; }
.roles-grid .dev { width: 100%; }
.questions { padding-block: 0 76px; }
.questions p { color: var(--ink-2); }
.questions summary { font-size: 17px; }
@media (max-width: 1100px) { .roles-grid article { grid-template-columns: 270px minmax(0, 1fr); } }
@media (max-width: 700px) {
  .roles-grid article { grid-template-columns: minmax(0, 1fr); padding: 24px 14px; }
  .roles-grid .dev { width: min(272px, 100%); }
  .questions { padding-bottom: 48px; }
}
