/* Roofing Revenue System mockups, checkpoint 2. Drawing tool only, not a build. Extends ../base.css. */

/* logo crop, same as landing-v3 */
.rrs { --w: 232px; flex: none; width: var(--w); height: calc(var(--w) * 267 / 1852); overflow: hidden; position: relative; }
.rrs img { position: absolute; width: calc(var(--w) * 2000 / 1852); max-width: none; left: calc(var(--w) * -68 / 1852); top: calc(var(--w) * -185 / 1852); }
.m49 { width: 34px; height: 34px; border-radius: 7px; overflow: hidden; flex: none; }

/* app shell */
.app { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.app::after { content: ''; position: absolute; right: -120px; top: 60px; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(235,113,59,.11), transparent); pointer-events: none; }
header { padding: 22px 0; border-bottom: 1px solid var(--line); background: var(--cream); position: relative; z-index: 2; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 18px; }
.by { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.by .m49 { width: 26px; height: 26px; border-radius: 5px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy); background: rgba(255,255,255,.5); }
.x svg { width: 16px; height: 16px; }
main { flex: 1; position: relative; z-index: 1; }
.col { width: 760px; max-width: calc(100% - 48px); margin: 0 auto; padding: 72px 0 96px; }

/* progress, same parts as the landing quiz card */
.prog { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prog .track { flex: 1; height: 6px; border-radius: 3px; background: #E2DDD1; overflow: hidden; }
.prog .track i { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.back { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #D6D1C4; display: grid; place-items: center; color: var(--navy); flex: none; background: #fff; }
.back svg { width: 15px; height: 15px; }

/* earlier answers, so it reads like a conversation */
.said { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.said span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 999px; background: #fff; border: 1px solid #E2DDD1; font-size: 14.5px; font-weight: 600; color: var(--body); }
.said i { width: 20px; height: 20px; border-radius: 50%; background: #2F7A39; display: grid; place-items: center; flex: none; }
.said i svg { width: 11px; height: 11px; }

/* question */
.q { font-family: var(--display); font-weight: 600; font-size: 58px; line-height: 1.02; letter-spacing: -0.005em; color: var(--ink); margin: 34px 0 36px; text-wrap: balance; }
.opts { display: flex; flex-direction: column; gap: 14px; }
.opt { display: flex; align-items: center; gap: 18px; min-height: 78px; padding: 18px 24px 18px 22px; background: #fff; border: 1.5px solid #E2DDD1; border-radius: 14px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); box-shadow: 0 2px 6px rgba(0,27,55,.03); text-wrap: pretty; }
.opt .key { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #D6D1C4; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--muted); flex: none; }
.opt .go { margin-left: auto; width: 20px; height: 20px; color: #B9B2A3; flex: none; }

/* contact gate */
.gate h1 { font-size: 64px; margin: 34px 0 14px; }
.gate .lede { margin-bottom: 40px; }
.field { margin-bottom: 20px; }
.field label, .flabel { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.inp { height: 62px; border-radius: 10px; border: 1.5px solid #D6D1C4; background: #fff; display: flex; align-items: center; padding: 0 20px; color: #8A96A3; font-size: 17px; }
.inp.area { height: 92px; align-items: flex-start; padding-top: 16px; }
.consent { margin: 6px 0 26px; }
.gate .btn { height: 66px; font-size: 19px; }
.trust { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }

/* annotation chips for Joshua, not product copy (same as landing .sticky .note) */
.note { display: inline-block; background: #E3E9EE; color: #33475B; border: 1px solid #C3CFD9; border-radius: 5px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.mg { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* result */
.result { width: var(--wrap); max-width: calc(100% - 48px); margin: 0 auto; padding: 64px 0 96px; display: grid; grid-template-columns: 1fr 520px; gap: 88px; align-items: start; }
.result h1 { font-size: 60px; line-height: 1.0; margin: 22px 0 30px; }
.result .copy p { font-size: 19px; line-height: 1.62; margin-bottom: 18px; max-width: 600px; }
.result .copy p.fix { margin-top: 28px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; color: var(--ink); font-weight: 500; }
.gaptags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gaptags span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 13.5px; font-weight: 600; }
.gaptags b { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--display); font-size: 13px; display: grid; place-items: center; }
.annot { margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }

/* calendar card */
.calcard { background: #fff; border: 1px solid #E6E2D8; border-radius: 20px; padding: 30px 30px 30px; box-shadow: 0 24px 56px rgba(0,27,55,.10), 0 4px 12px rgba(0,27,55,.04); position: relative; }
.calcard .tags { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.calcard h2 { font-size: 40px; line-height: 1; }
.calcard .callp { margin-top: 12px; font-size: 16.5px; line-height: 1.58; }
.calbody { margin-top: 24px; padding-top: 22px; border-top: 1px solid #EFECE5; }
.calrow { display: flex; align-items: center; justify-content: space-between; }
.calrow b { font-size: 16px; }
.calrow .len { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.calrow .len svg { width: 15px; height: 15px; }
.arrows { display: flex; gap: 8px; }
.arrows span { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #E2DDD1; display: grid; place-items: center; color: var(--navy); }
.arrows svg { width: 13px; height: 13px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.days div { border-radius: 10px; border: 1.5px solid #E6E2D8; padding: 9px 0 8px; text-align: center; }
.days span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.days b { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.days .on { background: var(--navy); border-color: var(--navy); color: #fff; }
.days .on span { color: rgba(255,255,255,.7); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.slots div { height: 46px; border-radius: 9px; border: 1.5px solid #E2DDD1; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.slots .on { border-color: var(--orange); background: #FDEEE6; color: #7A3412; }
.calcard .btn { margin-top: 18px; height: 56px; font-size: 17px; }

/* after booking */
.done { display: flex; align-items: center; gap: 12px; }
.bigchk { width: 56px; height: 56px; border-radius: 50%; background: #2F7A39; display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px rgba(47,122,57,.28); }
.bigchk svg { width: 26px; height: 26px; }
.booked { white-space: nowrap; display: inline-flex; gap: 12px; align-items: center; background: #EEF5EC; border: 1px solid #CFE3CA; color: #1F4A23; border-radius: 12px; padding: 10px 16px 10px 12px; font-size: 15px; font-weight: 600; }
.booked .chk { width: 26px; height: 26px; border-radius: 50%; background: #2F7A39; display: grid; place-items: center; flex: none; }
.booked .chk svg { width: 14px; height: 14px; }
.ab h1 { font-size: 64px; margin: 28px 0 14px; }
.ab .lede { margin-bottom: 18px; }
.qs { margin-top: 44px; background: #fff; border: 1px solid #E6E2D8; border-radius: 20px; box-shadow: 0 10px 28px rgba(0,27,55,.05); }
.qi { padding: 30px 34px; border-bottom: 1px solid #EFECE5; }
.qi:last-child { border-bottom: 0; }
.qh { display: flex; gap: 16px; align-items: flex-start; }
.qh .n { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.qh h3 { font-size: 20px; line-height: 1.35; flex: 1; text-wrap: balance; }
.qh h3 small { display: block; font-size: 16px; font-weight: 500; color: var(--body); margin-top: 4px; }
.opt-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--cream); border-radius: 5px; padding: 3px 8px; margin-top: 3px; }
.qbody { margin-top: 18px; padding-left: 46px; }
.qbody .inp { height: 54px; font-size: 16px; }
.qbody .inp.area { height: 84px; }
.hint { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.taps { display: flex; flex-wrap: wrap; gap: 8px; }
.tap { font-size: 15px; font-weight: 600; padding: 9px 15px; border-radius: 999px; background: var(--cream); color: var(--navy); border: 1.5px solid #E2DDD1; }
.tap.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair .flabel { font-size: 14px; }
.small { margin-top: 18px; }
.small .flabel { font-size: 14px; }
.small .inp { width: 220px; }
.send { margin-top: 30px; display: flex; align-items: center; gap: 28px; }
.skipnote { margin-top: 16px; font-size: 15px; color: var(--muted); }
.pre { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 20px; }
.pcard { background: #fff; border: 1px solid #E6E2D8; border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: center; }
.pcard h2 { font-size: 36px; line-height: 1.05; }
.pcard p { margin-top: 10px; font-size: 16.5px; line-height: 1.58; }
.thumb { position: relative; height: 210px; border-radius: 14px; background: var(--navy); overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 22px; padding-bottom: 18px; }
.thumb .mini { width: 118px; border-radius: 18px; background: #fff; padding: 10px 8px; box-shadow: 0 16px 30px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 6px; }
.thumb .mini span { display: block; }
.thumb .mini .b0 { border: 1px solid #E6E2D8; border-radius: 7px; height: 24px; }
.thumb .mini .b1 { align-self: flex-end; background: var(--navy); border-radius: 9px 9px 3px 9px; height: 28px; width: 80%; }
.thumb .mini .b2 { align-self: flex-start; background: #ECEAE4; border-radius: 9px 9px 9px 3px; height: 16px; width: 55%; }
.thumb .mini .b3 { background: #EEF5EC; border: 1px solid #CFE3CA; border-radius: 7px; height: 22px; }
.thumb .board2 { width: 132px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.thumb .board2 div { background: rgba(245,243,238,.08); border: 1px solid var(--line-d); border-radius: 6px; height: 104px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.thumb .board2 i { display: block; height: 14px; border-radius: 4px; background: rgba(245,243,238,.18); }
.thumb .board2 i.me { background: var(--orange); }
.play { position: absolute; left: 50%; top: calc(50% - 9px); transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(18,40,63,.55), 0 12px 30px rgba(0,0,0,.35); z-index: 2; }
.play svg { width: 24px; height: 24px; margin-left: 4px; }
.thumb .example { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--cream); color: var(--ink); }
.thumb .ph { position: absolute; right: 12px; bottom: 13px; z-index: 2; }
.testvis { height: 210px; border-radius: 14px; background: var(--cream); border: 1px solid #ECE8DE; display: flex; align-items: center; justify-content: center; gap: 14px; }
.testvis .form { width: 128px; background: #fff; border-radius: 12px; border: 1px solid #E6E2D8; padding: 12px; box-shadow: 0 10px 24px rgba(0,27,55,.08); }
.testvis .form i { display: block; height: 16px; border-radius: 5px; background: #F1EEE7; margin-bottom: 7px; }
.testvis .form i.s { width: 60%; height: 8px; background: #DDD8CC; }
.testvis .form b { display: block; height: 22px; border-radius: 6px; background: var(--orange); margin-top: 3px; }
.testvis .mid { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #B9B09E; }
.testvis .arrow { width: 52px; height: 20px; }
.testvis .clock { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); display: grid; place-items: center; }
.testvis .clock svg { width: 20px; height: 20px; }
.testvis .ph2 { width: 84px; height: 146px; border-radius: 17px; background: var(--ink); padding: 6px; box-shadow: 0 14px 28px rgba(0,27,55,.2); }
.testvis .ph2 div { background: #fff; border-radius: 12px; height: 100%; padding: 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.testvis .ph2 i { display: block; height: 12px; border-radius: 6px; background: #ECEAE4; width: 70%; }
.testvis .ph2 i.o { background: var(--navy); width: 85%; align-self: flex-end; height: 20px; }

/* ---------- phone width ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .col { max-width: calc(100% - 40px); }
  header { padding: 14px 0; }
  .rrs { --w: 172px; }
  .by { display: none; }
  .x { width: 40px; height: 40px; }
  .app::after { display: none; }
  .col { padding: 28px 0 48px; }
  .back { width: 34px; height: 34px; }
  .said { margin-top: 22px; }
  .said span { font-size: 14px; }
  .q { font-size: 38px; line-height: 1.04; margin: 24px 0 26px; }
  .opts { gap: 12px; }
  .opt { min-height: 68px; font-size: 17px; padding: 14px 16px 14px 14px; gap: 14px; border-radius: 12px; }
  .opt .key { width: 30px; height: 30px; font-size: 13px; }
  .opt .go { width: 18px; height: 18px; }
  .gate h1 { font-size: 44px; margin: 28px 0 12px; }
  .gate .lede { margin-bottom: 30px; font-size: 18px; }
  .inp { height: 58px; }
  .gate .btn { height: 62px; font-size: 18px; width: 100%; }
  .result { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 56px; max-width: calc(100% - 40px); }
  .result h1 { font-size: 42px; line-height: 1.03; margin: 18px 0 22px; }
  .result .copy p { font-size: 17.5px; line-height: 1.6; margin-bottom: 16px; }
  .result .copy p.fix { padding: 18px 18px; margin-top: 22px; }
  .calcard { padding: 22px 18px 20px; border-radius: 18px; margin: 0 -6px; }
  .calcard h2 { font-size: 34px; }
  .calcard .callp { font-size: 16px; }
  .days { gap: 6px; }
  .days b { font-size: 23px; }
  .slots { gap: 7px; }
  .slots div { height: 46px; font-size: 14.5px; }
  .ab h1 { font-size: 40px; margin: 22px 0 12px; }
  .done { gap: 10px; }
  .qh { display: grid; grid-template-columns: auto 1fr; row-gap: 12px; }
  .qh .opt-tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .qh h3 { grid-column: 1 / -1; grid-row: 2; }
  .bigchk { width: 40px; height: 40px; }
  .bigchk svg { width: 20px; height: 20px; }
  .booked { font-size: 14px; }
  .qs { margin: 36px -6px 0; border-radius: 18px; }
  .qi { padding: 24px 18px; }
  .qh { gap: 12px; }
  .qh h3 { font-size: 18px; }
  .qh h3 small { font-size: 15.5px; }
  .qbody { padding-left: 0; }
  .pair { grid-template-columns: 1fr; gap: 14px; }
  .small .inp { width: 100%; }
  .tap { font-size: 14.5px; padding: 8px 13px; }
  .send { flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
  .send .btn { width: 100%; height: 60px; }
  .skipnote { text-align: center; font-size: 14.5px; }
  .pre { grid-template-columns: 1fr; margin-top: 52px; padding-top: 44px; gap: 16px; }
  .pcard { padding: 16px 16px 22px; margin: 0 -6px; grid-template-columns: 1fr; gap: 20px; }
  .pcard h2 { font-size: 32px; }
  .pcard > div:last-child { padding: 0 4px; }
}
}

.live-calendar .days { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 190px; overflow-y: auto; }
.live-calendar .days span { letter-spacing: 0; }
.live-calendar .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-calendar .slots button { font-size: 14px; }
