/* Cliptica — Home dashboard. Premium Ledger: generous air, mono micro-labels,
   tabular numerals, orange spent only where it earns attention. */

.home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  padding:10px 0 30px;border-bottom:1px solid var(--border);margin-bottom:26px;}
.home-eyebrow{font-family:var(--mono);font-size:10.5px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--accent2);margin:0 0 9px;}
.home-greeting{font-size:27px;font-weight:600;letter-spacing:-.025em;color:var(--text);
  margin:0 0 8px;line-height:1.15;}
.home-sub{font-size:13.5px;line-height:1.6;color:var(--muted);margin:0;max-width:440px;}
.home-new{display:inline-flex;align-items:center;gap:9px;min-height:46px;
  padding:0 22px;font-size:14px;font-weight:600;border-radius:11px;flex-shrink:0;
  box-shadow:0 5px 18px rgba(232,73,15,.28);}
.home-new svg{width:15px;height:15px;}

/* Stat tiles */
.home-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px;}
.stat-tile{display:flex;flex-direction:column;gap:7px;padding:16px 16px 15px;
  background:linear-gradient(180deg,var(--s2),var(--s1) 85%);
  border:1px solid var(--border);border-radius:14px;min-width:0;
  transition:border-color 160ms;}
.stat-tile:hover{border-color:var(--border2);}
.stat-label{font-family:var(--mono);font-size:10px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);}
.stat-value{font-family:var(--mono);font-size:25px;font-weight:500;color:var(--text);
  font-variant-numeric:tabular-nums;letter-spacing:-.01em;line-height:1;}
.stat-hint{font-size:11px;color:var(--muted);line-height:1.45;min-height:14px;}
.stat-meter{height:3px;border-radius:2px;background:var(--s3);overflow:hidden;margin-top:2px;}
.stat-meter-fill{height:100%;width:0%;border-radius:2px;background:var(--accent);
  transition:width 500ms var(--snap,ease);}

/* Recent projects */
.home-recent-head{display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin-bottom:14px;}
.home-recent-head h3{font-size:14.5px;font-weight:600;letter-spacing:-.01em;
  color:var(--text);margin:0;}
.home-recent-all{font-family:var(--mono);font-size:11.5px;color:var(--accent2);
  text-decoration:none;}
.home-recent-all:hover{text-decoration:underline;}
.home-recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.home-recent-grid[hidden]{display:none;}
.home-card{display:flex;flex-direction:column;border:1px solid var(--border);
  border-radius:14px;overflow:hidden;background:var(--s1);cursor:pointer;
  text-decoration:none;transition:border-color 160ms,transform 180ms var(--snap,ease);}
.home-card:hover{border-color:var(--border2);transform:translateY(-2px);}
.home-card-thumb{position:relative;padding-top:56.25%;background:linear-gradient(160deg,var(--s3),var(--s2));}
.home-card-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.home-card-thumb .pill{position:absolute;top:8px;left:8px;backdrop-filter:blur(4px);}
.home-card-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:5px;}
.home-card-title{font-size:12.5px;font-weight:600;color:var(--text);line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.home-card-meta{font-family:var(--mono);font-size:10px;color:var(--muted);
  font-variant-numeric:tabular-nums;}
.home-skel{border:1px solid var(--border);border-radius:14px;overflow:hidden;}
.home-skel .sk-thumb{padding-top:56.25%;}
.home-skel .sk-line{height:11px;margin:11px 12px 12px;}

/* First-run panel */
.home-first{display:flex;align-items:center;gap:16px;padding:22px 22px;
  border:1px dashed var(--border2);border-radius:16px;background:var(--s1);
  text-decoration:none;transition:border-color 160ms,background 160ms;}
.home-first[hidden]{display:none;}
.home-first:hover{border-color:var(--accent);background:var(--s2);}
.home-first-badge{display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:44px;height:44px;border-radius:13px;background:var(--accent);color:#FFF7F2;
  box-shadow:0 5px 18px rgba(232,73,15,.30);}
.home-first-badge svg{width:18px;height:18px;}
.home-first strong{display:block;font-size:14px;font-weight:600;color:var(--text);
  margin-bottom:3px;letter-spacing:-.01em;}
.home-first span{font-size:12px;line-height:1.55;color:var(--muted);display:block;
  max-width:520px;}

/* Mobile */
@media (max-width: 820px){
  .home-stats{grid-template-columns:repeat(2,1fr);}
  .home-recent-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 640px){
  .home-hero{flex-direction:column;align-items:stretch;gap:18px;padding-bottom:22px;}
  .home-greeting{font-size:23px;}
  .home-new{width:100%;justify-content:center;min-height:50px;}
  .home-stats{gap:10px;}
  .stat-value{font-size:21px;}
  .home-recent-grid{grid-template-columns:1fr 1fr;gap:10px;}
  /* 10px stat captions are hard to read at arm's length. */
  .stat-label{font-size:11px;}
  /* "View all" was a 40x14 target — under the WCAG 2.5.8 24px floor. Padding
     grows the target without moving the row it sits in. */
  .home-recent-all{display:inline-flex;align-items:center;min-height:24px;padding:5px 2px;}
}
