/* ============================================================
   card.css — public digital business card (/scott) and its share screen (/scott/share).
   Phone-first; standalone pages with no app shell.
   ============================================================ */

:root {
  --cc-navy: #0B2A3C;
  --cc-teal: #00695F;
  --cc-ground: #F3F7F7;
  --cc-ink: #13232C;
  --cc-muted: #3E4F58;
  --cc-line: #DCE5E7;
  --cc-sky: #A9C4D0;
}

* { box-sizing: border-box; }
.cc { margin: 0; min-height: 100vh; background: var(--cc-ground); color: var(--cc-ink);
  font: 16px/1.5 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.cc h1, .cc h2 { font-family: Manrope, Arial, sans-serif; margin: 0; }
.cc p { margin: 0; }

/* ---------- Contact page ---------- */
.cc-page { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.cc-hero { position: relative; background: var(--cc-navy); color: #fff; height: 196px;
  padding: calc(22px + env(safe-area-inset-top)) 24px 0; display: flex; flex-direction: column; gap: 6px; }
.cc-brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, Arial, sans-serif; font-weight: 700; font-size: 18px; }
.cc-brand img { border-radius: 6px; }
.cc-url { font-size: 13px; color: var(--cc-sky); }
.cc-avatar { position: absolute; left: 24px; bottom: -52px; width: 112px; height: 112px; border-radius: 50%;
  border: 4px solid var(--cc-ground); object-fit: cover; background: #D8E6EB; }
.cc-initials { display: flex; align-items: center; justify-content: center;
  font: 700 34px Manrope, Arial, sans-serif; color: var(--cc-navy); }

.cc-body { flex: 1; padding: 66px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.cc-body h1 { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--cc-navy); letter-spacing: -0.01em; }
.cc .cc-title { margin-top: 4px; color: var(--cc-muted); }
.cc .cc-blurb { margin-top: 18px; line-height: 1.45; }

.cc-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 14px;
  font: 700 17px Manrope, Arial, sans-serif; text-decoration: none; }
.cc-btn-primary { background: var(--cc-teal); color: #fff; }
.cc-btn-primary:hover, .cc-btn-primary:focus-visible { background: #004F47; color: #fff; }
.cc-btn-ghost { background: #fff; color: var(--cc-navy); border: 1.5px solid var(--cc-navy); }
.cc-btn-ghost:hover, .cc-btn-ghost:focus-visible { background: #E8F0F2; }
.cc-btn:focus-visible, .cc-list a:focus-visible, .cc-save-qr:focus-visible { outline: 3px solid #F2A65A; outline-offset: 2px; }

.cc-list { list-style: none; margin: 22px 0 0; padding: 0; background: #fff; border-radius: 14px; }
.cc-list li + li { border-top: 1px solid var(--cc-line); }
.cc-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px;
  color: var(--cc-ink); text-decoration: none; overflow-wrap: anywhere; }
.cc-list svg { flex: none; color: var(--cc-muted); }
.cc-list a:hover span { text-decoration: underline; }

.cc .cc-trust { margin-top: auto; padding-top: 28px; text-align: center; font-size: 13px; color: #5A6E7A; }

/* ---------- Share screen ---------- */
.cc-dark { background: var(--cc-navy); color: #fff; }
.cc-share { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding: calc(56px + env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.cc-share-head h1 { font-size: 28px; font-weight: 800; }
.cc .cc-share-head p { margin-top: 6px; color: var(--cc-sky); }
.cc-qr { margin: 0; background: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cc-qr-code { width: min(72vw, 280px); aspect-ratio: 1; }
.cc-qr-code svg { width: 100%; height: 100%; display: block; }
.cc-qr figcaption { font-size: 14px; font-weight: 600; color: var(--cc-muted); }
.cc-share-hint { max-width: 290px; color: #D8E6EB; line-height: 1.45; }
.cc-share-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cc-pill { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid #3E6B80; border-radius: 999px; }
.cc-pill svg { color: #3FC1C9; }
.cc-save-qr { color: var(--cc-sky); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
