/* ============================================================
   VTOnFit — Editorial Luxury design system (static mockups)
   Derived from VirtuFit colors_and_type.css + README DNA
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --vf-off-white:  #F8F6F2;
  --vf-ivory:      #FAF9F7;
  --vf-charcoal:   #1A1A1A;
  --vf-card:       #FFFFFF;
  --vf-gold:       #C9A84C;
  --vf-gold-soft:  rgba(201, 168, 76, 0.10);
  --vf-stone:      #E8E6E2;
  --vf-stone-2:    #EFEAE2;
  --vf-mute-fg:    #6B6B6B;
  --vf-destructive:#D4183D;
  --vf-destructive-soft: rgba(212, 24, 61, 0.08);
  --vf-border:     rgba(26, 26, 26, 0.1);
  --vf-border-2:   rgba(26, 26, 26, 0.16);

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-ui:      'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-full: 999px;

  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-luxury: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 4px 24px rgba(201, 168, 76, 0.20);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--vf-charcoal);
  background: var(--vf-off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p  { line-height: 1.6; }
a  { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.muted   { color: var(--vf-mute-fg); }
.accent  { color: var(--vf-gold); }
.serif   { font-family: var(--font-display); }
.mono    { font-family: var(--font-mono); }

/* -------- Eyebrow / overline -------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vf-gold);
  font-weight: 500;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--vf-border);
  border-radius: var(--radius-full);
  background: var(--vf-card);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--vf-charcoal);
  box-shadow: var(--shadow-card);
}
.eyebrow-pill svg { width: 15px; height: 15px; color: var(--vf-gold); }

/* -------- Layout -------- */
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 40px; }
.section   { padding: 64px 0; }
.center    { text-align: center; }

/* -------- Navigation -------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 246, 242, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vf-border);
}
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .spark { color: var(--vf-gold); display: inline-flex; }
.brand .spark svg { width: 24px; height: 24px; }
.brand .word { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  color: var(--vf-charcoal); transition: color .2s var(--ease); position: relative;
}
.nav-link:hover { color: var(--vf-gold); }
.nav-link.active { color: var(--vf-gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: var(--vf-stone); color: var(--vf-charcoal);
  box-shadow: inset 0 0 0 1px var(--vf-border);
  overflow: hidden;
}
.avatar.gold { background: var(--vf-gold-soft); color: var(--vf-gold); box-shadow: inset 0 0 0 1px rgba(201,168,76,0.35); }
.user-name { font-size: 14px; font-weight: 500; }

/* nav balance pill */
.bal-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--vf-border); background: var(--vf-card);
  box-shadow: var(--shadow-card); transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.bal-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-luxury); }
.bal-pill .bk { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vf-mute-fg); }
.bal-pill .bv { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.bal-pill .add { width: 28px; height: 28px; border-radius: 50%; background: var(--vf-gold); color: var(--vf-charcoal); display: grid; place-items: center; }
.bal-pill .add svg { width: 15px; height: 15px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--radius-full); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 22px; font-size: 12.5px; }
.btn-md { padding: 13px 30px; font-size: 13.5px; }
.btn-lg { padding: 16px 38px; font-size: 15px; }

.btn-primary   { background: var(--vf-charcoal); color: var(--vf-off-white); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: var(--vf-gold); color: var(--vf-charcoal); box-shadow: var(--shadow-accent); }
.btn-ghost     { background: transparent; border-color: var(--vf-border-2); color: var(--vf-charcoal); }
.btn-ghost:hover { border-color: rgba(26,26,26,0.4); transform: scale(1.03); }
.btn-outline   { background: transparent; border-color: var(--vf-border); color: var(--vf-charcoal); }
.btn-danger    { background: transparent; border-color: rgba(212,24,61,0.4); color: var(--vf-destructive); }
.btn-danger:hover { background: var(--vf-destructive-soft); }
.btn-block     { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn .dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--vf-gold); animation: pulse 1s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* -------- Cards -------- */
.card {
  background: var(--vf-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 24px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: pointer; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-luxury); }
.card-selected { box-shadow: 0 0 0 2px var(--vf-gold), var(--shadow-accent); }

/* -------- Inputs -------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13.5px; font-weight: 500; }
.label .req { color: var(--vf-gold); margin-left: 2px; }
.hint  { font-size: 12.5px; color: var(--vf-mute-fg); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead { position: absolute; left: 14px; color: var(--vf-mute-fg); display: inline-flex; }
.input-wrap .lead svg { width: 18px; height: 18px; }
.input {
  width: 100%; height: 48px; font-family: var(--font-ui); font-size: 15px;
  color: var(--vf-charcoal); background: var(--vf-card);
  border: 1px solid var(--vf-border); border-radius: var(--radius-sm);
  padding: 0 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input.has-lead { padding-left: 42px; }
.input::placeholder { color: #A8A29A; }
.input:focus { outline: none; border-color: var(--vf-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.22); }
textarea.input { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input.error { border-color: var(--vf-destructive); }
.input.error:focus { box-shadow: 0 0 0 3px rgba(212,24,61,0.18); }
.field-error { font-size: 12.5px; color: var(--vf-destructive); display: flex; align-items: center; gap: 6px; }
.field-error svg { width: 14px; height: 14px; }

/* -------- Filter chips -------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-full);
  border: 1px solid var(--vf-border); background: var(--vf-card);
  font-size: 13px; font-weight: 500; color: var(--vf-charcoal);
  cursor: pointer; white-space: nowrap; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--vf-border-2); }
.chip.active { background: var(--vf-gold); border-color: var(--vf-gold); color: var(--vf-charcoal); box-shadow: var(--shadow-accent); }
.chip svg { width: 15px; height: 15px; }

/* -------- Photo placeholders (editorial) -------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,168,76,0.06), transparent 60%),
    linear-gradient(155deg, #F1ECE4 0%, #E6DFD3 55%, #D9D0C1 100%);
  display: grid; place-items: center;
  color: rgba(26,26,26,0.22);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(135deg, rgba(26,26,26,0.035) 0 1px, transparent 1px 9px);
}
.photo .ph-ico { display: inline-flex; }
.photo .ph-ico svg { width: 46px; height: 46px; }
.photo .ph-cap {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(26,26,26,0.34);
}
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* caption gradient over imagery */
.cap-grad {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.0));
  color: #fff;
}

/* -------- Badges / status -------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--vf-border);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.completed { color: var(--vf-charcoal); }
.badge.completed .dot { background: var(--vf-gold); }
.badge.pending   { color: var(--vf-charcoal); }
.badge.pending .dot { background: var(--vf-gold); animation: pulse 1s var(--ease) infinite; }
.badge.failed    { color: var(--vf-destructive); border-color: rgba(212,24,61,0.3); }
.badge.failed .dot { background: var(--vf-destructive); }

/* -------- Steps (1/2/3) -------- */
.steps { display: inline-flex; align-items: center; gap: 10px; }
.steps .step { display: inline-flex; align-items: center; gap: 10px; }
.steps .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vf-stone); }
.steps .dot.active { background: var(--vf-gold); }
.steps .bar { width: 34px; height: 1px; background: var(--vf-border); }
.step-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vf-mute-fg); font-weight: 500; }

/* -------- Dropzone -------- */
.dropzone {
  border: 2px dashed var(--vf-border-2); border-radius: var(--radius-lg);
  background: var(--vf-ivory); padding: 40px 24px; text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone.drag { border-color: var(--vf-gold); background: var(--vf-gold-soft); }
.dropzone .dz-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--vf-gold-soft); color: var(--vf-gold); display: grid; place-items: center;
}
.dropzone .dz-ico svg { width: 28px; height: 28px; }
.dropzone .dz-title { font-weight: 500; font-size: 16px; }
.dropzone .dz-sub { font-size: 12.5px; color: var(--vf-mute-fg); margin-top: 6px; letter-spacing: 0.02em; }

/* -------- Thin progress bar -------- */
.progress { height: 4px; border-radius: 999px; background: var(--vf-stone); overflow: hidden; }
.progress .fill { height: 100%; background: var(--vf-gold); border-radius: 999px; transition: width .4s var(--ease); }

/* -------- FAB pills over imagery -------- */
.fab-row { display: inline-flex; gap: 8px; }
.fab {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--vf-border); display: grid; place-items: center;
  color: var(--vf-charcoal); cursor: pointer; transition: transform .15s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 18px; height: 18px; }
.fab.gold { background: var(--vf-gold); border-color: var(--vf-gold); }

/* -------- Cost / meta list -------- */
.meta-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--vf-border); }
.meta-row:last-child { border-bottom: none; }
.meta-row .k { color: var(--vf-mute-fg); font-size: 14px; }
.meta-row .v { font-size: 14px; font-weight: 500; }

/* -------- Skeleton -------- */
.skeleton { background: var(--vf-stone); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.skeleton::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%); animation: shimmer 1.6s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* -------- Divider -------- */
.divider { height: 1px; background: var(--vf-border); border: none; }

/* -------- Grids -------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* feature icon circle */
.feat-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--vf-gold-soft); color: var(--vf-gold); display: grid; place-items: center; }
.feat-ico svg { width: 26px; height: 26px; }

.fade-up { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
