/* The product drawings: white cards with hairlines and real text, at Uptime's
   density. Shared pieces first, then Monday's setup (02), launch day (03) and
   the 2:12 pm dip (04). Sections 06–09 are in results.css. */
.card { position: relative; padding: 24px 26px 24px; border: 1px solid #e3e9f2; border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink); font-size: 16px; line-height: 1.4; }
.card h3 { font: 700 23px/1.2 var(--font-body); letter-spacing: -.02em; color: var(--ink); }
.small-label { color: #5f6880; font-size: 14.5px; }
.muted { color: #6a7389; }
.check { width: 22px; height: 22px; color: var(--green); }
.tick { width: 15px; height: 15px; }
.tick-green, .tick-inline { display: inline-flex; vertical-align: -2px; }
.tick-green { color: var(--green); }
.state-check { display: inline-flex; flex: none; }
.bar-track { position: relative; display: block; height: 8px; border-radius: 4px; background: #edf1f7; overflow: hidden; }
.bar-track > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #2f6bf2; }
.delta { display: inline-flex; align-items: center; gap: 3px; color: var(--green-ink); font-weight: 600; }
.delta .up { width: 14px; height: 14px; }
.tile { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 8px; font: 700 13px/1 var(--font-body); }
.tile-orange { background: var(--orange); color: #fff; }
.tile-green { background: var(--green-tint); color: var(--green); }
.dot-red { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ef4f4f; }
.avatar { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border: 1px solid #e3e9f2; border-radius: 50%; background: #fff; }
.code-card { padding: 18px 22px 20px; border-radius: 14px; background: #101a33; color: #e8ecf4; box-shadow: 0 30px 50px -30px rgba(11,13,20,.6), 0 2px 6px rgba(11,13,20,.2); }
.code-card p { color: #c9d3e8; font-size: 15px; }
.code-card pre { margin-top: 12px; font: 400 15px/1.55 var(--font-mono); white-space: pre-wrap; color: #34d399; }
.note-chip { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 30px; padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: var(--chip-shadow); color: var(--ink); font-size: 16px; line-height: 1.45; }
.note-chip .dot-red { margin-top: 7px; }
.note-chip b { font-weight: 600; }

/* 02 · Monday: three times on the trail, three cards under them. */
.setup-wrap { position: relative; margin-top: 88px; }
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.setup-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.setup-step > .trail-dot { position: relative; margin: 0; }
.time-chip { margin-top: 15px; padding: 9px 18px; border-radius: 10px; background: #fff; box-shadow: var(--chip-shadow); font-size: 17px; white-space: nowrap; }
.time-chip b { color: var(--gold-ink); font-weight: 500; }
.card-step { align-self: stretch; flex: 1; margin-top: 32px; padding: 26px 24px 22px; }
.progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 20px; color: var(--blue); font-size: 15px; font-weight: 500; }
.progress .bar-track { height: 13px; border-radius: 7px; }
.rows { margin-top: 14px; }
.rows li { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: #4d566e; font-size: 16px; }
.rows li strong { margin-left: auto; color: var(--ink); font-weight: 450; white-space: nowrap; }
.rows-loose li { padding: 13px 0; }
.state-dot { flex: none; width: 20px; height: 20px; margin: 1px; border-radius: 50%; background: var(--green); }
.imported-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid #e8edf4; color: #7a849c; font-size: 13px; }
.grey-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #c5ccd8; }
.snippet { margin-top: 20px; padding: 14px 12px; border: 1px solid #e3e9f2; border-radius: 9px; background: #f3f6fa; color: #2d3550; font: 400 13.5px/1.45 var(--font-mono); white-space: pre-wrap; }
.goal-rows { margin-top: 12px; }
.goal-rows li { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: #4d566e; font-size: 15.5px; }
.goal-rows .icon { flex: none; color: #4d566e; }
.tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #e7eefe; color: var(--blue-ink); font-size: 13px; white-space: nowrap; }

/* 03 · Launch day: copy beside the Slack alert, then the live card. */
.launch-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 462px); gap: 40px 80px; align-items: start; }
.launch .lede { max-width: 690px; }
.card-slack { padding: 20px 24px 24px; }
.channel { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 16.5px; }
.channel-hash { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #eef1f6; color: #6a7389; }
.message { display: flex; gap: 18px; margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: #2d3550; }
.message strong { color: var(--ink); font-size: 18px; font-weight: 650; }
.message .muted { margin-left: 6px; font-size: 13.5px; }
.card-live { margin-top: 34px; padding: 20px 20px 22px; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #edf1f7; color: #6a7389; font-size: 18px; }
.live-head strong { color: var(--ink); font-size: 20px; font-weight: 650; }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--green-ink); font-size: 16px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,164,99,.14); }
.plot-box { position: relative; }
.plot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pin-dot { position: absolute; z-index: 1; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border: 2px solid #fff; border-radius: 50%; background: #2556e8; box-shadow: 0 1px 3px rgba(20,40,90,.3); }
.pin-small { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 0; box-shadow: none; }
.pin-green { background: var(--green); }
.pin-red { background: #ef4f4f; }
.pin-gold { background: var(--gold); }
.online-chart { margin: 4px 16px 0; }
.online-chart .plot-box { height: 170px; margin-top: 46px; background: linear-gradient(#edf1f7, #edf1f7) 0 33% / 100% 1px no-repeat, linear-gradient(#edf1f7, #edf1f7) 0 66% / 100% 1px no-repeat; border-bottom: 1px solid #dfe5ee; }
.pin { position: absolute; z-index: 2; left: var(--px); bottom: 100%; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.pin span { padding: 7px 10px; border: 1px solid #e3e9f2; border-radius: 8px; background: #fff; box-shadow: 0 6px 14px -8px rgba(20,40,90,.3); color: var(--ink); font-size: 13px; white-space: nowrap; }
.pin::after { content: ''; width: 1px; background: #2556e8; }
.pin-launch { bottom: auto; top: 24%; height: calc(100% - 24% - 3px); transform: translateX(calc(-100% + 1px)); align-items: flex-end; }
.pin-launch span { margin-right: -1px; }
.pin-launch::after { flex: 1; }
.pin-alert { bottom: auto; top: 3%; height: 55%; transform: translateX(calc(-100% + 1px)); align-items: flex-end; }
.pin-alert span { margin-right: -1px; }
.pin-alert::after { flex: 1; }
.pin-peak { bottom: calc(100% - var(--py) + 8px); transform: translateX(-50%); align-items: center; }
.pin-peak::after { height: 10px; }
.axis-x { position: relative; height: 26px; margin-top: 8px; color: #6a7389; font-size: 13px; }
.axis-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 6px; border-top: 1px solid #edf1f7; }
.tabs { display: none; }
.breakdown { padding: 14px 24px 8px; }
.breakdown + .breakdown { border-left: 1px solid #edf1f7; }
.breakdown h3 { color: #6a7389; font: 600 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.bars { margin-top: 10px; display: grid; grid-template-columns: max-content max-content minmax(40px, 158px); align-items: center; column-gap: 16px; }
.bars li { display: contents; font-size: 15.5px; color: #1f2740; }
.bars li > * { padding: 9px 0; }
.bars .bar-track { padding: 0; }
.bar-name { min-width: 0; overflow-wrap: anywhere; }
.bar-value { color: #6a7389; text-align: right; font-variant-numeric: tabular-nums; }
.day-total { margin-top: 12px; padding-top: 18px; border-top: 1px solid #edf1f7; color: var(--gold-ink); font: 750 32px/1.1 var(--font-body); letter-spacing: -.02em; }

/* 04 · 2:12 pm: the agent's card on the left, the copy right, the fix overlapping the card's corner. */
.dip-grid { display: grid; grid-template-columns: minmax(0, 741fr) minmax(0, 418fr); grid-template-rows: auto auto; column-gap: 41px; }
.card-why { grid-row: 1 / 3; padding: 26px 28px 28px; }
.dip .story-head { align-self: center; }
.why-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.why-label { color: #3c4560; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.agent-pill { padding: 5px 12px; border-radius: 9px; background: #e7eefe; color: var(--blue-ink); font-size: 15px; font-weight: 500; }
.why-title { margin-top: 14px; text-wrap: balance; font-size: 34px !important; font-weight: 750 !important; letter-spacing: -.03em !important; }
.signups-chart { margin-top: 14px; }
.chart-unit { color: #5f6880; font-size: 13px; }
.signups-plot { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; margin-top: 30px; }
.axis-y { display: flex; flex-direction: column; justify-content: space-between; height: 174px; margin-top: -9px; color: #6a7389; font-size: 12.5px; text-align: right; }
.signups-plot .plot-box { height: 156px; border-bottom: 1px solid #dfe5ee; }
.gap-band { position: absolute; top: 0; bottom: 0; border-inline: 1px dashed #c9d1de; background: repeating-linear-gradient(135deg, #f1f4f9 0 5px, #e3e8f0 5px 6px); }
.gap-label { position: absolute; left: var(--gx); bottom: calc(100% + 4px); transform: translateX(-50%); color: #3c4560; font-size: 12.5px; white-space: nowrap; }
.axis-hours { margin-left: 30px; margin-top: 4px; height: 20px; font-size: 12.5px; }
.log { position: relative; margin-top: 2px; }
.log::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 18px; width: 1.5px; background: #e3e9f2; }
.log li { position: relative; display: flex; gap: 22px; padding: 8px 0; font-size: 16px; line-height: 1.45; color: #2d3550; }
.log-dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; }
.log-time { font-size: 17px; font-weight: 600; white-space: nowrap; }
.log-red .log-dot { background: #ef4f4f; } .log-red .log-time { color: #d93b3b; }
.log-blue .log-dot { background: #2556e8; } .log-blue .log-time { color: #2556e8; }
.log-gold .log-dot { background: var(--gold); } .log-gold .log-time { color: var(--gold-ink); }
.log-green .log-dot { background: var(--green); } .log-green .log-time { color: var(--green-ink); }
.log-green { max-width: calc(100% - 250px); }
.dip .code-card { position: relative; z-index: 2; grid-column: 2; grid-row: 2; align-self: end; width: 420px; margin: 0 0 -24px -229px; }

@media (max-width: 1180px) {
  .setup { gap: 12px; }
  .card-step { padding: 22px 18px 20px; }
  .card-step h3 { font-size: 21px; }
  .time-chip { padding: 8px 14px; font-size: 16px; }
  .rows li, .goal-rows li { gap: 10px; font-size: 15px; }
  .goal-rows .icon { width: 20px; height: 20px; }
  .tag { padding: 3px 8px; font-size: 12px; }
  .launch-top { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px 40px; }
  .breakdown { padding-inline: 16px; }
  .bars { grid-template-columns: minmax(0, 1fr) auto; }
  .bars .bar-name, .bars .bar-value { padding: 9px 0 6px; }
  .bars .bar-track { grid-column: 1 / -1; }
  .dip-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 40px; }
  .dip .story-head { grid-row: 1; }
  .card-why { grid-row: 2; }
  .dip .code-card { grid-column: 1; grid-row: 3; justify-self: end; width: min(420px, 100%); margin: -64px 32px 0 0; }
  .log-green { max-width: none; }
  .card-why { padding-bottom: 72px; }
}
/* Narrower plots have no room left of the leaders for both labels. The launch label rides above the plot,
   ending at its leader where it fits and otherwise starting at the card's padding; the alert label hangs
   right of its dot, under the climb. Every leader stands on its dot (--px, --py are the dot's place in the plot). */
@media (max-width: 1240px) and (min-width: 761px) {
  .online-chart .plot-box { margin-top: 84px; }
  .pin-launch { left: -28px; top: -80px; bottom: calc(100% - var(--py)); width: calc(var(--px) + 29px); height: auto; transform: none; flex-direction: row; justify-content: safe flex-end; align-items: flex-start; }
  .pin-launch span { flex: none; }
  .pin-launch::after { position: absolute; right: 0; top: 32px; bottom: 0; }
  .pin-alert { top: var(--py); bottom: auto; height: auto; transform: none; align-items: flex-start; }
  .pin-alert::after { order: -1; flex: none; height: 22px; }
  .pin-alert span { margin: 0; }
}
@media (max-width: 960px) {
  .setup { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin-inline: auto; }
  .setup-step { margin-top: 30px; }
  .setup-step > .trail-dot { display: none; }
  .time-chip { margin-top: 0; }
  .card-step { margin-top: 14px; }
  .launch-top { grid-template-columns: minmax(0, 1fr); }
  .card-slack { max-width: 520px; }
  .launch-top > .dot-launch { display: none; }
  /* Three lists side by side leave a page path too little room beside its count: the name takes its own line, the count follows its bar. */
  .bars { grid-auto-flow: dense; }
  .bars .bar-name { grid-column: 1 / -1; padding-bottom: 4px; }
  .bars .bar-track { grid-column: 1; }
  .bars .bar-value { grid-column: 2; padding: 2px 0; }
}

/* Phone: each card whole, under its copy. */
@media (max-width: 760px) {
  .card { padding: 18px 16px; border-radius: 14px; font-size: 15px; }
  .card-step h3 { font-size: 19px; }
  .setup-wrap { margin-top: 28px; }
  .setup-step { margin-top: 22px; }
  .time-chip { font-size: 15px; }
  .rows li, .goal-rows li { font-size: 14.5px; padding: 9px 0; }
  .snippet { font-size: 12.5px; }
  .card-slack { padding: 16px; }
  .message { gap: 12px; font-size: 14.5px; }
  .avatar { width: 44px; height: 44px; }
  .card-live { margin-top: 20px; padding: 16px 14px; }
  .live-head { font-size: 15px; }
  .live-head strong { font-size: 16px; }
  .live { font-size: 14px; }
  .online-chart { margin: 0; }
  .online-chart .plot-box { height: 150px; margin-top: 44px; }
  .pin-launch, .pin-alert { display: none; }
  .axis-x { font-size: 11.5px; }
  .axis-x span:nth-child(even) { display: none; }
  .breakdowns { display: block; margin-top: 10px; padding-top: 0; }
  .breakdowns.tabbed .tabs { display: flex; gap: 24px; border-bottom: 1px solid #e3e9f2; }
  .tabs button { padding: 12px 2px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #6a7389; font: 500 14.5px/1 var(--font-body); cursor: pointer; }
  .tabs button[aria-selected="true"] { border-color: var(--blue); color: var(--blue); }
  .breakdown { padding: 10px 0 0; }
  .breakdown + .breakdown { border-left: 0; }
  .breakdowns.tabbed .breakdown:not(.shown) { display: none; }
  .breakdowns.tabbed .breakdown h3 { display: none; }
  .bars { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; grid-auto-flow: dense; column-gap: 12px; }
  .bars li { font-size: 14px; }
  .bars .bar-name { grid-column: 1; padding: 8px 0; }
  .bars .bar-track { grid-column: 2; }
  .bars .bar-value { grid-column: 3; padding: 8px 0; }
  .day-total { font-size: 22px; }
  .card-why { padding: 18px 16px 16px; }
  .why-label { font-size: 17px; }
  .why-title { font-size: 21px !important; }
  .axis-y { height: 138px; }
  .signups-plot .plot-box { height: 120px; }
  .signups-plot { margin-top: 34px; }
  .gap-label { left: 0; transform: none; font-size: 11px; }
  .axis-hours { margin-left: 30px; }
  .axis-hours span:nth-child(even) { display: none; }
  .log li { gap: 14px; font-size: 14px; }
  .log li p { display: grid; }
  .log li p .sep { display: none; }
  .log-time { font-size: 15px; }
  .dip-grid { row-gap: 24px; }
  .dip .code-card { justify-self: stretch; width: auto; margin: 0; padding: 14px 16px 16px; }
  .code-card pre { font-size: 12.5px; }
  .note-chip { margin-top: 20px; padding: 10px 14px; font-size: 14.5px; }
}
