/* /card the page the QR code opens. Phone-first; uses tokens from site.css. */
.card-page { background: var(--navy-deep); min-height: 100vh; min-height: 100dvh; }
.vcard {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--cream); display: flex; flex-direction: column;
}
@media (min-width: 560px) {
  .card-page { padding: 40px 0; }
  .vcard { min-height: 0; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7); }
}

.vc-head { background: var(--navy); color: var(--cream); padding: 22px 22px 30px; position: relative; overflow: hidden; isolation: isolate; }
.vc-head::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; opacity: 0.08;
  background: repeating-radial-gradient(circle at 85% 20%, transparent 0 26px, var(--sky) 27px 28px);
}
.vc-bar { display: flex; justify-content: space-between; align-items: center; }
.vc-bar .status { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.vc-head .lang { border-color: var(--rule-dark); }
.vc-head .lang button { color: var(--cream); }
.vc-head .lang i { background: var(--rule-dark); }
.vc-id { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.vc-id img { width: 64px; height: auto; flex: none; }
.vc-id h1 { font-size: 30px; line-height: 1.02; letter-spacing: -0.02em; }
.vc-id p { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sky); margin-top: 8px; }
.vc-tag { margin-top: 22px; font-size: 18px; line-height: 1.45; color: var(--pale); max-width: 30ch; }

.vc-actions { padding: 0 18px; margin-top: -18px; display: grid; gap: 10px; position: relative; }
.vc-call {
  display: flex; align-items: center; gap: 16px; background: var(--green); color: #fff; padding: 18px 20px; border-radius: 2px;
  box-shadow: 0 18px 36px -18px rgba(74, 122, 54, 0.9);
}
.vc-call:hover { background: var(--green-hi); color: #fff; }
.vc-call b { display: block; font-size: 21px; line-height: 1.15; }
.vc-call small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .9; margin-top: 3px; }
.vc-call .arrow { margin-left: auto; }
.vc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vc-btn {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: space-between;
  min-height: 92px; padding: 16px; background: #fff; color: var(--navy); border: 1px solid var(--rule); border-radius: 2px;
  font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; line-height: 1.2;
  transition: border-color .2s, transform .2s var(--ease);
}
.vc-btn:hover { border-color: var(--navy); color: var(--navy); }
.vc-btn:active { transform: scale(0.98); }
.vc-btn svg { width: 24px; height: 24px; color: var(--blue); }
.vc-btn small { display: block; font-weight: 400; font-size: 13px; color: var(--slate-2); margin-top: 2px; }
.vc-btn.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 64px; }
.vc-btn.wide .arrow { margin-left: auto; color: var(--slate-2); }

.vc-section { padding: 30px 22px 0; }
.vc-section h2 { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 14px; }
.vc-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: s; }
.vc-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--slate); }
.vc-steps li::before { content: "0" counter(s); font-size: 12px; letter-spacing: 0.14em; color: var(--green); padding-top: 4px; }
.vc-steps b { color: var(--navy); font-weight: 600; }
.vc-svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vc-svcs span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; background: var(--cream-2); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.vc-svcs svg { width: 28px; height: 28px; color: var(--navy); }
.vc-area { font-size: 15px; color: var(--slate); line-height: 1.7; }
.vc-foot { margin-top: auto; padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--slate-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vc-foot a { color: var(--slate); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--navy); color: var(--cream); padding: 12px 18px; font-size: 15px; border-radius: 2px; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease); z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* entrance */
.js .vc-enter { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.js .vc-enter.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .vc-enter { opacity: 1; transform: none; } }
.vc-alert { display: flex; align-items: center; gap: 12px; background: var(--blue); color: #fff; padding: 14px 20px 32px; font-size: 15px; line-height: 1.35; }
.vc-alert:hover { color: #fff; }
.vc-alert > span:nth-child(2) { flex: 1; }
