/* Facecard — warm, business-card aesthetic */

:root {
  --paper: #F4EFE6;
  --paper-2: #EAE2D2;
  --paper-edge: #DCD0BB;
  --ink: #1A1714;
  --ink-2: #4A4138;
  --ink-3: #7A6E60;
  --warm: #C89A66;
  --warm-deep: #9C7A4A;
  --green: #3F8A57;
  --green-deep: #2C6740;
  --line: rgba(26, 23, 20, 0.10);
  --line-strong: rgba(26, 23, 20, 0.18);
  --max-w: 480px;
}

.fc-dark {
  --paper: #1A1714;
  --paper-2: #221E1A;
  --paper-edge: #2C2722;
  --ink: #F4EFE6;
  --ink-2: #C9BEAE;
  --ink-3: #8C8275;
  --line: rgba(244, 239, 230, 0.10);
  --line-strong: rgba(244, 239, 230, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; line-height: 1.4; letter-spacing: -0.005em;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── Profile page layout ─────────────────────────────── */

.fc-profile-wrap {
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--paper);
}

.fc-profile-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}

.fc-nav-right { display: flex; align-items: center; gap: 8px; }

.fc-profile-body {
  flex: 1; max-width: var(--max-w);
  margin: 0 auto; width: 100%;
  padding-bottom: 108px;
}

@media (min-width: 640px) {
  .fc-profile-nav { padding: 16px 24px; }
  .fc-profile-body { padding-bottom: 40px; padding-top: 8px; }
}

/* Sticky CTA on mobile, inline on desktop */
.fc-profile-cta {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-w);
  display: flex; gap: 8px;
  padding: 10px 14px env(safe-area-inset-bottom, 24px);
  background: linear-gradient(180deg, transparent, var(--paper) 30%);
  z-index: 10;
}

@media (min-width: 640px) {
  .fc-profile-cta {
    position: static; transform: none;
    padding: 4px 14px 32px;
    background: transparent;
  }
}

/* ─── Modal overlay (auth detail sheet) ──────────────── */

.fc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: overlayIn 0.2s ease;
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.fc-modal-sheet {
  width: 100%; max-width: var(--max-w);
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 24px 24px 0 0;
  animation: sheetIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 640px) {
  .fc-modal-overlay { align-items: center; }
  .fc-modal-sheet { border-radius: 24px; max-height: 82vh; }
}

@keyframes sheetIn {
  from { transform: translateY(100%); } to { transform: translateY(0); }
}

/* ─── Hero ────────────────────────────────────────────── */

.fc-hero { padding: 14px 14px 0; }

.fc-video {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; background: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 18px 28px -16px rgba(26,23,20,0.35);
}
.fc-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.fc-playbtn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(244, 239, 230, 0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.fc-playbtn svg { margin-left: 3px; }

.fc-livebadge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 8px;
  background: rgba(26, 23, 20, 0.55); backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px; letter-spacing: 0.08em; color: #F4EFE6;
}
.fc-livedot {
  width: 6px; height: 6px; border-radius: 999px; background: #E8694F;
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(232,105,79,0.7); }
  100% { box-shadow: 0 0 0 8px rgba(232,105,79,0); }
}

.fc-avatar-large {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 18px;
  overflow: hidden; background: var(--paper-2);
}
.fc-avatar-large img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Identity card ───────────────────────────────────── */

.fc-card {
  margin: 14px;
  background: linear-gradient(180deg, #FAF6EC 0%, var(--paper) 100%);
  border-radius: 18px; border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(26,23,20,0.04),
    0 12px 24px -16px rgba(26,23,20,0.2);
}

.fc-card-edge {
  position: absolute; left: 14px; right: 14px; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--warm) 0 6px, transparent 6px 12px);
  opacity: 0.55;
}
.fc-card-body { padding: 22px 20px 18px; }

.fc-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 10px;
}
.fc-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: 38px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 4px; color: var(--ink);
}
.fc-role { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.fc-role-co { color: var(--ink); font-weight: 500; }

/* ─── Auth strip ──────────────────────────────────────── */

.fc-auth {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper); font: inherit; color: inherit;
  text-align: left; cursor: pointer; margin-bottom: 22px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fc-auth:active { transform: scale(0.99); }
.fc-auth.is-verified { background: rgba(63, 138, 87, 0.06); border-color: rgba(63,138,87,0.25); }
.fc-auth.is-pending { background: rgba(200, 154, 102, 0.08); border-color: rgba(156,122,74,0.3); }
.fc-auth-seal { flex-shrink: 0; }
.fc-auth-text { flex: 1; min-width: 0; }
.fc-auth-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.fc-auth.is-verified .fc-auth-title { color: var(--green-deep); }
.fc-auth.is-pending .fc-auth-title { color: var(--warm-deep); }
.fc-auth-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 2px;
}
.fc-auth-arrow { color: var(--ink-3); flex-shrink: 0; }

/* ─── Sections / chips / verifiers ───────────────────── */

.fc-section { margin-bottom: 20px; }
.fc-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.fc-label--title { text-transform: none; letter-spacing: 0.01em; font-size: 12px; }
.fc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.fc-label-meta { color: var(--ink-2); }

.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chip {
  padding: 6px 10px; border-radius: 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.fc-chips-soft .fc-chip { background: transparent; color: var(--ink-2); font-weight: 400; }

.fc-verifiers { display: flex; flex-direction: column; }
.fc-verifier {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.fc-verifier:last-child { border-bottom: none; }
.fc-verifier img {
  width: 32px; height: 32px; border-radius: 999px;
  object-fit: cover; flex-shrink: 0; background: var(--paper-2);
}
.fc-verifier-slot {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px dashed var(--line-strong); flex-shrink: 0;
}
.fc-verifier-text { flex: 1; min-width: 0; }
.fc-verifier-name { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.fc-verifier-rel { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.fc-muted { color: var(--ink-3); font-weight: 400; }
.fc-verifier-empty { opacity: 0.7; }

.fc-footnote {
  display: flex; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3);
  padding-top: 12px; border-top: 1px dashed var(--line-strong);
}
.fc-dot { color: var(--ink-3); }

/* ─── Shared buttons ──────────────────────────────────── */

.fc-cta-primary, .fc-cta-secondary {
  flex: 1; height: 48px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em; cursor: pointer;
  border: 1px solid var(--line-strong);
}
.fc-cta-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fc-cta-secondary { background: transparent; color: var(--ink); }

.fc-iconbtn {
  width: 36px; height: 36px; border-radius: 999px;
  border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; cursor: pointer;
}
.fc-iconbtn:active { background: var(--line); }

/* ─── Auth detail screen ──────────────────────────────── */

.fc-auth-screen {
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
}

.fc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px; flex-shrink: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: relative; z-index: 5;
}
.fc-topbar-dark {
  background: var(--ink); color: var(--paper);
  border-bottom-color: rgba(244,239,230,0.1);
}
.fc-topbar-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-size: 20px;
}

.fc-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fc-auth-screen .fc-scroll { flex: 1; background: var(--ink); }
.fc-bottom-pad { height: 32px; }

.fc-sheet-handle {
  width: 38px; height: 5px; border-radius: 99px;
  background: rgba(244,239,230,0.25);
  margin: 10px auto 0; cursor: pointer;
}

/* Seal */
.fc-seal-wrap { text-align: center; padding: 36px 24px 28px; }
.fc-bigseal {
  display: inline-block; position: relative;
  width: 120px; height: 120px; margin-bottom: 18px;
  animation: sealIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fc-bigseal.is-verified { color: #8FBF9E; }
.fc-bigseal.is-pending { color: #D9B584; }
.fc-seal-ring {
  position: absolute; inset: 0;
  animation: sealRotate 60s linear infinite; transform-origin: 50% 50%;
}
.fc-seal-core { position: absolute; inset: 0; }
@keyframes sealRotate { to { transform: rotate(360deg); } }
@keyframes sealIn {
  from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); }
}
.fc-seal-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px; letter-spacing: -0.01em; margin-bottom: 6px;
}
.fc-seal-sub { font-size: 13px; color: rgba(244,239,230,0.6); line-height: 1.5; }

.fc-stack { margin: 8px 18px 0; border-top: 1px solid rgba(244,239,230,0.12); }
.fc-stack-row {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid rgba(244,239,230,0.08);
}
.fc-stack-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: rgba(244,239,230,0.4); padding-top: 2px;
  width: 22px; flex-shrink: 0;
}
.fc-stack-body { flex: 1; min-width: 0; }
.fc-stack-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 6px;
}
.fc-stack-label { font-size: 14px; font-weight: 500; line-height: 1.25; flex: 1; min-width: 0; }
.fc-stack-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.04em;
  white-space: nowrap; flex-shrink: 0; padding-top: 2px;
}
.fc-stack-status.is-ok { color: #8FBF9E; }
.fc-stack-status.is-pending { color: #D9B584; }
.fc-stack-detail { font-size: 13px; color: rgba(244,239,230,0.75); margin-bottom: 2px; }
.fc-stack-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; color: rgba(244,239,230,0.4);
}

.fc-stamp-block {
  display: flex; gap: 16px; margin: 24px 18px;
  padding: 18px; border: 1px dashed rgba(244,239,230,0.18); border-radius: 14px;
}
.fc-stamp {
  flex-shrink: 0; width: 96px; height: 96px;
  border: 2px solid #D9B584; color: #D9B584; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-6deg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.fc-stamp-line { font-size: 9px; letter-spacing: 0.18em; }
.fc-stamp-big {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-size: 22px; margin: 4px 0; color: #D9B584;
}
.fc-stamp-text-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fc-stamp-text p { margin: 0 0 8px; font-size: 12.5px; color: rgba(244,239,230,0.65); line-height: 1.55; }
.fc-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: #D9B584; text-decoration: none; letter-spacing: 0.04em;
}

/* ─── Landing page ────────────────────────────────────── */

.lp-wrap { min-height: 100vh; background: var(--paper); }

.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 20;
}

.lp-nav-cta {
  height: 36px; padding: 0 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  border: none; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}

.lp-hero {
  display: flex; flex-direction: column;
  max-width: 1040px; margin: 0 auto;
  padding: 36px 20px 64px;
}

@media (min-width: 768px) {
  .lp-hero {
    flex-direction: row; align-items: center;
    gap: 72px; padding: 80px 48px 100px;
  }
}

.lp-copy { flex: 1; padding-bottom: 40px; }
@media (min-width: 768px) { .lp-copy { padding-bottom: 0; } }

.lp-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; color: var(--warm-deep);
  margin-bottom: 16px; text-transform: uppercase;
}

.lp-h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1; letter-spacing: -0.025em;
  color: var(--ink); margin: 0 0 18px;
}

.lp-sub {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  max-width: 380px; margin: 0 0 32px;
}

.lp-cta-group { display: flex; gap: 10px; flex-wrap: wrap; }

.lp-cta-primary {
  height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; letter-spacing: -0.005em;
  text-decoration: none; display: inline-flex; align-items: center;
}

.lp-cta-secondary {
  height: 52px; padding: 0 20px; border-radius: 14px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line-strong);
  text-decoration: none; display: inline-flex; align-items: center;
}

.lp-preview { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) { .lp-preview { width: 340px; } }

.lp-preview-inner {
  max-width: 300px; margin: 0 auto;
  background: var(--paper); border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(26,23,20,0.04), 0 24px 56px -12px rgba(26,23,20,0.20);
}
@media (min-width: 768px) {
  .lp-preview-inner { transform: rotate(1.5deg); max-width: none; }
}

/* Card preview in hero */
.lp-card-photo {
  position: relative; aspect-ratio: 3/4;
  max-height: 260px; overflow: hidden; background: #1A1714;
}
@media (min-width: 768px) { .lp-card-photo { max-height: none; } }
.lp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card-body {
  padding: 14px 16px 14px;
  background: linear-gradient(180deg, #FAF6EC 0%, #F4EFE6 100%);
}
.lp-card-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.14em; color: #7A6E60; margin-bottom: 5px;
}
.lp-card-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px; letter-spacing: -0.02em; color: #1A1714; margin-bottom: 2px;
}
.lp-card-role { font-size: 13px; color: #4A4138; margin-bottom: 12px; }
.lp-card-role strong { color: #1A1714; font-weight: 500; }
.lp-card-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(63,138,87,0.06); border: 1px solid rgba(63,138,87,0.22);
}
.lp-card-badge-title { font-weight: 600; font-size: 12px; color: #2C6740; margin-bottom: 2px; }
.lp-card-badge-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px; color: #7A6E60;
}

.lp-how {
  border-top: 1px solid var(--line);
  padding: 64px 24px;
  max-width: 1040px; margin: 0 auto;
}
@media (min-width: 768px) { .lp-how { padding: 80px 48px; } }

.lp-how-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px; letter-spacing: -0.01em;
  margin: 0 0 40px; color: var(--ink);
}

.lp-steps { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.lp-step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; color: var(--warm-deep); margin-bottom: 10px;
}
.lp-step-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.lp-step-sub { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

.lp-footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.lp-footer-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3);
}
