/* voip.kcan.us — page-specific styles on top of /assets/css/site.css */

/* hero illustration: phone on an encrypted call + floating feature cards */
.voip-visual { position: relative; min-height: 470px; max-width: 560px; margin-left: auto; width: 100%; }
.vp-phone { position: absolute; left: 50%; top: 10px; transform: translateX(-50%) rotate(-2deg); width: 230px; height: 450px; background: var(--ink); border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg); }
.vp-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 12px; border-radius: 8px; background: #000; z-index: 1; }
.vp-screen > * { flex-shrink: 0; }
.vp-screen { height: 100%; border-radius: 29px; background: linear-gradient(170deg, #0f3a6e, #071a33); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 48px 18px 22px; text-align: center; }
.vp-lock { font-size: .72rem; font-weight: 700; color: #b9f3d3; background: rgba(25,164,99,.18); border: 1px solid rgba(75,227,155,.35); padding: 4px 10px; border-radius: 999px; }
.vp-avatar { margin-top: 28px; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(140deg, #2a93e0, var(--primary)); display: grid; place-items: center; font: 800 1.5rem/1 var(--display); box-shadow: 0 0 0 8px rgba(42,147,224,.18); }
.vp-name { margin-top: 16px; font: 700 1.25rem/1.2 var(--display); }
.vp-sub { margin-top: 4px; font-size: .78rem; color: #a9c2de; }
.vp-keys { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.vp-keys i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); }
.vp-end { margin-top: 18px; background: #e5484d; color: #fff; font-weight: 700; font-size: .85rem; padding: 10px 34px; border-radius: 999px; }
.vp-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px 11px 11px; box-shadow: var(--shadow-lg); max-width: 250px; }
.vp-card b { display: block; font-size: .85rem; color: var(--ink); line-height: 1.2; }
.vp-card small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.vp-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.vp-ico-green { background: #e3f6ec; color: var(--good); }
.vp-card-a { left: 0; top: 112px; transform: rotate(-2deg); max-width: 190px; }
.vp-card-b { right: 0; top: 268px; transform: rotate(2deg); max-width: 200px; }
.vp-card-c { left: 14px; bottom: 30px; transform: rotate(1deg); }

/* security checklist (dark section) */
.secure-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secure-list li { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius-sm); padding: 18px 18px 18px 52px; position: relative; }
.secure-list li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: rgba(25,164,99,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234be39b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.secure-list b { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.secure-list span { color: #a9bad0; font-size: .9rem; line-height: 1.45; display: block; }
.secure-list a { color: #8fc3f2; }

/* who it's for */
.who-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.who-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.who-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 18px; }
.who-list b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--display); }
.who-list span { color: var(--muted); font-size: .95rem; }

@media (max-width: 1020px) {
  .voip-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .who-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  /* phones: illustration first, the two feature cards side by side underneath */
  .voip-visual { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-items: stretch; }
  .vp-phone { position: relative; left: auto; top: auto; grid-column: 1 / -1; justify-self: center; transform: rotate(-2deg); width: 190px; height: 380px; border-radius: 32px; margin: 4px 0 6px; }
  .vp-screen { padding-top: 40px; border-radius: 24px; }
  .vp-avatar { width: 62px; height: 62px; margin-top: 20px; }
  .vp-keys i { width: 32px; height: 32px; }
  .vp-card { position: static; transform: none; max-width: none; padding: 9px 10px 9px 9px; gap: 8px; box-shadow: var(--shadow); }
  .vp-card b { font-size: .8rem; }
  .vp-card small { font-size: .7rem; }
  .vp-ico { width: 28px; height: 28px; border-radius: 8px; }
  .vp-card-c { display: none; }
  .secure-list, .who-list { grid-template-columns: 1fr; }
}

/* narrow two-column range: smaller cards so they stay beside the phone */
@media (min-width: 1021px) and (max-width: 1120px) {
  .vp-card { max-width: 150px; }
  .vp-card small { display: none; }
  .vp-card-c { display: none; }
  .vp-card-b { top: 300px; }
}
