/* The stage every web quote version sits on: the homeowner's phone in the middle, Wrenfield's OPERA view beside it. */
@import url("../../shared/brand.css");

* { box-sizing: border-box; }
html, body { margin: 0; }
body.stage {
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 30% -10%, #1d4466 0%, #0d2236 55%, #091827 100%);
  min-height: 100vh;
}

/* top bar */
.stagebar { display: flex; align-items: center; gap: 16px; padding: 14px 24px; color: #cfe0ef; font-size: 14px; }
.stagebar a { color: #cfe0ef; text-decoration: none; }
.stagebar .crumb { opacity: .8; }
.stagebar .versions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.stagebar .versions a { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: 13px; }
.stagebar .versions a.on { background: #fff; color: var(--navy); border-color: #fff; }

.stagegrid { display: grid; grid-template-columns: minmax(220px, 300px) 390px minmax(320px, 440px); gap: 40px; justify-content: center; align-items: start; padding: 10px 24px 60px; }
.intro { color: #e6eef6; padding-top: 30px; }
.intro .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8fb6d8; font-weight: 700; }
.intro h1 { font-size: 30px; line-height: 1.08; margin: 8px 0 12px; color: #fff; font-weight: 800; }
.intro p { font-size: 15px; line-height: 1.5; color: #c4d6e6; margin: 0 0 12px; }
.intro ol { padding-left: 18px; margin: 14px 0; color: #c4d6e6; font-size: 14px; line-height: 1.5; }
.intro .jump { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.intro .jump button { text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e6eef6; border-radius: 10px; padding: 8px 12px; font: 600 13px var(--sans); cursor: pointer; }
.intro .jump button.on { background: rgba(104,178,118,.2); border-color: rgba(104,178,118,.6); }

/* phone */
.phone { width: 390px; height: 844px; border-radius: 54px; background: #0a0f14; padding: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 2px #2b3640; position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; position: relative; background: #fff; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 32px; background: #0a0f14; border-radius: 0 0 18px 18px; z-index: 50; }
.statusbar { height: 46px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 6px; font: 700 14px var(--sans); position: relative; z-index: 40; }

/* OPERA panel: what the installer sees */
.opera { background: #f4f7fa; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.4); overflow: hidden; position: sticky; top: 20px; }
.opera .ohead { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.opera .ohead img { height: 22px; }
.opera .ohead .who { margin-left: auto; font-size: 12px; color: #a9c3da; }
.opera .otitle { padding: 14px 16px 6px; display: flex; align-items: baseline; gap: 8px; }
.opera .otitle h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.opera .live { font-size: 11px; font-weight: 800; color: #0a8a4a; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.opera .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16b15f; box-shadow: 0 0 0 4px rgba(22,177,95,.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(22,177,95,.05); } }
.opera .ocard { margin: 8px 14px 14px; background: #fff; border-radius: 14px; border: 1px solid #e1e8ef; padding: 14px; }
.opera .lead-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.opera .lead-sub { font-size: 13px; color: #5b6b78; margin-top: 2px; }
.opera dl { margin: 10px 0 0; display: grid; grid-template-columns: 112px 1fr; gap: 7px 10px; font-size: 13px; }
.opera dt { color: #6b7b88; }
.opera dd { margin: 0; font-weight: 700; color: var(--ink); }
.opera dd.empty { color: #b7c2cc; font-weight: 400; }
.opera dd.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: #fff3c4; } 100% { background: transparent; } }
.opera .src { display: inline-block; font-size: 10px; font-weight: 800; color: #297ECB; background: #e8f1fb; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.opera .omsg { margin: 0 14px 14px; padding: 12px 14px; background: #fff; border: 1px solid #e1e8ef; border-left: 4px solid var(--amber); border-radius: 10px; font-size: 13px; line-height: 1.45; display: none; }
.opera .omsg.show { display: block; animation: rise .5s ease; }
.opera .sms { margin: 0 14px 14px; background: #e9e9ee; border-radius: 18px; padding: 10px 14px; font-size: 13px; line-height: 1.4; max-width: 90%; display: none; }
.opera .sms.show { display: block; animation: rise .5s ease; }
.opera .sms b { display: block; font-size: 11px; color: #6b7b88; margin-bottom: 2px; }
.opera .survey { display: none; margin: 0 14px 12px; background: #fff; border: 1px solid #e1e8ef; border-radius: 12px; padding: 12px 14px; }
.opera .survey.show { display: block; animation: rise .5s ease; }
.opera .survey .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--navy); }
.opera .survey .row span { color: #0a8a4a; }
.opera .survey .track { height: 8px; background: #e7edf2; border-radius: 8px; margin-top: 8px; overflow: hidden; }
.opera .survey .track i { display: block; height: 100%; width: 67%; background: linear-gradient(90deg, #16b15f, #4fd18b); border-radius: 8px; }
.opera .survey p { margin: 8px 0 0; font-size: 12px; color: #5b6b78; line-height: 1.4; }
.opera .actions { display: none; gap: 8px; margin: 0 14px 16px; }
.opera .actions.show { display: flex; animation: rise .5s ease; }
.opera .actions span { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; font: 800 13px var(--sans); background: var(--navy); color: #fff; }
.opera .actions span.alt { background: #fff; color: var(--navy); border: 1px solid #cdd8e2; }
.opera .ofoot { font-size: 11.5px; color: #6b7b88; padding: 0 16px 14px; line-height: 1.45; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* mobile: the flow fills the screen, OPERA opens as a sheet */
.peek { display: none; }
.stagebar .peek { border: 0; border-radius: 999px; background: #f0a030; color: #1d1300; font: 800 12px var(--sans); padding: 7px 12px; flex: none; cursor: pointer; }
@media (max-width: 1180px) {
  .stagegrid { grid-template-columns: 390px minmax(300px, 420px); }
  .intro { grid-column: 1 / -1; padding-top: 0; max-width: 840px; }
  .intro .jump { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  body.stage { background: #fff; overflow: hidden; }
  .stagebar { background: var(--navy); height: 48px; padding: 0 10px; gap: 10px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .stagebar::-webkit-scrollbar { display: none; }
  .stagebar .crumb { font-size: 0; flex: none; }
  .stagebar .crumb::before { content: "← All"; font-size: 13px; font-weight: 700; }
  .stagebar .versions { flex-wrap: nowrap; margin-left: 0; }
  .stagebar .versions a { padding: 6px 10px; font-size: 12px; }
  .stagegrid { display: block; padding: 0; }
  .intro { display: none; }
  .phone { position: fixed; top: 48px; left: 0; right: 0; bottom: 0; width: auto; height: auto; border-radius: 0; padding: 0; box-shadow: none; background: #fff; }
  .phone .screen { border-radius: 0; }
  .phone .notch, .statusbar { display: none; }
  .opera { display: none; position: fixed; inset: auto 0 0 0; max-height: 82vh; overflow: auto; z-index: 200; border-radius: 18px 18px 0 0; }
  .opera.open { display: block; }
  .stagebar .peek { display: inline-block; }
  .peek-old { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; font: 800 12px var(--sans); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
}
