/* demo-share: a plain page around InvisibleShield's widget, in the widget's colours, and the
   virtual phone, drawn like the web phone (demo/webphone/phone.css). */
:root {
  --ink: #1A1C20;
  --text: #3E424A;
  --muted: #5A5F68;
  --line: #D5DAEA;
  --navy: #0E1A4A;
  --accent: #C2361F;
  --green: #1F7A4D;
  --yellow: #9A6B00;
  --orange: #C25A10;
  --red: #B3261E;
  /* the phone */
  --phone-navy: #0E1A4A;
  --phone-navy-light: #16255E;
  --phone-blue: #1E3A9E;
  --phone-pale: #C8D4FF;
  --phone-level: #8FB0FF;
  --phone-accept: #1F9D5B;
  --phone-decline: #D93A2B;
  --phone-recording: #FF6B5E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #F4F6FB;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}

.top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.top__name { font-size: 20px; font-weight: 800; color: var(--navy); }
.top__tag { color: var(--muted); }

main { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
main:has(#check:not([hidden])) { max-width: 1180px; } /* room for the phone next to the widget */
.step { display: flex; flex-direction: column; gap: 20px; }
.step[hidden] { display: none; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 18px; color: var(--text); }
.note { margin: 0; color: var(--muted); }

.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.accounts h2 { margin: 0; font-size: 22px; }
.account { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 24px; margin: 0; }
.account dt { font-size: 14px; color: var(--muted); }
.account dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; white-space: nowrap; }
.card { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }

.button { align-self: flex-start; min-height: 52px; padding: 0 28px; border: none; border-radius: 12px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.link { align-self: flex-start; min-height: 44px; padding: 0; border: none; background: none; font: inherit; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link[hidden] { display: none; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.result { align-items: flex-start; gap: 12px; }
.result__label { margin: 0; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.result__score { margin: 0; font-size: 64px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.result__max { font-size: 24px; font-weight: 600; color: var(--muted); }
.band { margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; color: #FFFFFF; font-weight: 700; text-transform: capitalize; }
.band:empty { display: none; }
.band[data-band="green"] { background: var(--green); }
.band[data-band="yellow"] { background: var(--yellow); }
.band[data-band="orange"] { background: var(--orange); }
.band[data-band="red"] { background: var(--red); }
.band[data-band="none"] { background: var(--muted); text-transform: none; }

/* The voice check: the phone on the left, the widget on the right */
.stage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.stage__check { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.device { width: 300px; height: 620px; padding: 12px; border-radius: 46px; background: #15171C; box-shadow: 0 20px 44px rgba(14, 26, 74, 0.28), inset 0 0 0 2px #2A2D35; }
.device__screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: var(--phone-navy); color: #FFFFFF; }
.device__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 12px; background: #15171C; z-index: 1; } /* the camera notch */
.device[data-screen="idle"] .device__screen { background: linear-gradient(160deg, #1E3A9E 0%, #0E1A4A 55%, #2A0E3A 100%); }
.phone-screen { height: 100%; padding: 56px 20px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone-screen[hidden] { display: none; }
.phone-screen p, .phone-screen h2 { margin: 0; }
.phone-screen button { font: inherit; cursor: pointer; }
.phone-screen button:disabled { opacity: .55; cursor: default; }
.phone-screen button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }

.phone-time { margin-top: 24px; font-size: 64px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.phone-date { margin-top: 8px; font-size: 15px; color: var(--phone-pale); }
.phone-owner { margin-top: auto; }
.phone-number { font-size: 17px; font-weight: 700; }
.phone-note { margin-top: 4px; font-size: 14px; color: var(--phone-pale); }
.phone-problem { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); font-size: 14px; font-weight: 600; }

.phone-eyebrow { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--phone-pale); }
.phone-halo { width: 136px; height: 136px; margin: 22px 0; border-radius: 50%; background: var(--phone-navy-light); display: grid; place-items: center; animation: phone-ring .8s ease-in-out infinite alternate; }
.phone-halo div { width: 104px; height: 104px; border-radius: 50%; background: var(--phone-blue); display: grid; place-items: center; }
.phone-halo img { height: 60px; }
.phone-caller { font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.phone-caller--small { font-size: 22px; }
.phone-pale { margin-top: 6px; font-size: 15px; color: var(--phone-pale); }
.phone-buttons { margin-top: auto; width: 100%; display: flex; justify-content: space-around; }
.phone-round { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.phone-round span { width: 64px; height: 64px; border-radius: 50%; background: var(--phone-decline); display: grid; place-items: center; }
.phone-round--accept span { background: var(--phone-accept); }
.phone-round svg { width: 28px; height: 28px; fill: #FFFFFF; }

.phone-clock { margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--phone-pale); }
.phone-panel { width: 100%; margin: 22px 0 18px; padding: 22px 16px; border-radius: 18px; background: var(--phone-navy-light); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-panel svg { width: 48px; height: 40px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; }
.phone-look { font-size: 21px; font-weight: 800; }
.phone-panel .phone-pale { margin-top: 0; }
.phone-levels { height: 44px; display: flex; align-items: center; gap: 3px; }
.phone-levels i { width: 5px; height: 5px; border-radius: 3px; background: var(--phone-level); }
.phone-recorded { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--phone-pale); }
.phone-recorded i { width: 9px; height: 9px; border-radius: 50%; background: var(--phone-recording); }

.phone-done { width: 80px; height: 80px; margin: 56px 0 22px; border-radius: 50%; background: var(--phone-accept); display: grid; place-items: center; }
.phone-done svg { width: 40px; height: 40px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-thanks { font-size: 22px; font-weight: 800; }

@keyframes phone-ring { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .phone-halo { animation: none; } }

/* Narrow windows: the phone above the widget */
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .stage__check { width: 100%; }
}

@media (max-width: 480px) {
  .top { padding: 12px 16px; }
  .top__tag { display: none; }
  .card { padding: 20px; }
  h1 { font-size: 26px; }
}
