/* ═══════════════════════════════════════════════════════════════════
   TAMATO — HUB (landing · dashboard · account · pricing)
═══════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   LANDING PAGE
════════════════════════════════════════════ */
.lp-body { background: #1C1917; color: #F5F0EB; overflow-x: hidden; }

.lp-top {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-8);
  z-index: 50;
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.lp-logo {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-6);
  z-index: 50;
  display: block;
}
.lp-logo img {
  width: 220px;
  height: 52px;
  object-fit: cover;
  object-position: center 47%;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.lp-hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--sp-8);
  position: sticky;
  top: 0;
  overflow: hidden;
}

.lp-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(88px, 15vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-8);
  color: #F5F0EB;
}

.lp-hero p {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: #6B6460;
  max-width: 560px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.lp-hero-cta {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  align-items: center;
}

/* ── Pyramid + product reveal ────────────────────────────────────── */
.lp-stage { position: relative; height: 220vh; }

.lp-pyramid {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 26vw, 340px);
  opacity: 0;
  z-index: 5;
  will-change: transform, opacity;
}

.lp-cards {
  position: fixed;
  top: 50%;
  right: 7vw;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  z-index: 4;
  will-change: transform;
}

.lp-card {
  width: min(400px, 80vw);
  background: #252220;
  border: 1px solid #3A3633;
  border-top: 2px solid transparent;
  border-radius: var(--r-card);
  padding: var(--sp-6) var(--sp-8);
  opacity: 0;
  transform: translateX(60vw);
  will-change: transform, opacity;
  transition: border-color var(--t-micro);
}
.lp-card:hover { border-top-color: #B85C52; border-color: #4A4643; }
.lp-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.lp-card .slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #B85C52;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.04em;
}
.lp-card p { color: #6B6460; font-size: 14px; line-height: 1.55; }

/* ── Sections ────────────────────────────────────────────────────── */
.lp-section {
  padding: var(--sp-32) var(--sp-8);
  position: relative;
  background: #1C1917;
  z-index: 10;
}
.lp-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}
.lp-section .lead {
  text-align: center;
  color: #6B6460;
  max-width: 600px;
  margin: 0 auto var(--sp-16);
  font-size: 17px;
  line-height: 1.6;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  max-width: 1100px;
  margin: 0 auto;
}
.lp-feature {
  background: #252220;
  border: 1px solid #3A3633;
  border-top: 2px solid transparent;
  border-radius: var(--r-card);
  padding: var(--sp-8);
  transition: border-color var(--t-micro), border-top-color var(--t-micro);
}
.lp-feature:hover { border-color: #4A4643; border-top-color: #B85C52; }
.lp-feature h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.lp-feature p    { color: #6B6460; font-size: 14px; line-height: 1.6; }
.lp-feature .slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #B85C52;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.04em;
}

.lp-melio {
  background: #252220;
  border: 1px solid #3A3633;
  border-radius: var(--r-card);
  padding: var(--sp-16) var(--sp-12);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.lp-foot {
  padding: var(--sp-16) var(--sp-8);
  border-top: 1px solid #2E2B28;
  background: #1C1917;
}
.lp-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  justify-content: center;
  color: #6B6460;
  font-size: 13px;
  margin-top: var(--sp-4);
}
.lp-foot-links a { transition: color var(--t-micro); }
.lp-foot-links a:hover { color: #F5F0EB; }

/* ── Pricing table ──────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  max-width: 1200px;
  margin: 0 auto;
}
.price-col {
  background: #252220;
  border: 1px solid #3A3633;
  border-radius: var(--r-card);
  padding: var(--sp-8);
  transition: border-color var(--t-micro);
}
.price-col:hover    { border-color: #4A4643; }
.price-col.featured {
  border-color: #B85C52;
  border-top: 3px solid #B85C52;
  background: #2A1F1E;
}
.price-col h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.price-col .amt {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: #B85C52;
  margin: var(--sp-3) 0 var(--sp-6);
  letter-spacing: -0.02em;
}
.price-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #A09890;
  margin-bottom: var(--sp-8);
  line-height: 1.4;
}
.price-col li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.price-col li::before { content: '✓'; color: #4F9D69; flex-shrink: 0; }


/* ════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════ */
.db-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.db-sidebar {
  width: 64px;
  background: var(--tm-surface);
  border-right: 1px solid var(--tm-border);
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  overflow: hidden;
  transition: width var(--t-panel);
}
.db-sidebar:hover { width: 240px; }

.db-sidebar .sb-logo {
  padding: var(--sp-4) 14px var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  overflow: hidden;
  white-space: nowrap;
  height: 56px;
  flex-shrink: 0;
  position: relative;
}
.sb-logo-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: opacity var(--t-panel);
}
.sb-logo-word {
  opacity: 0;
  transition: opacity var(--t-panel);
  position: absolute;
  left: 14px;
  width: 180px;
  height: 42px;
  object-fit: cover;
  object-position: center 47%;
}
.db-sidebar:hover .sb-logo-icon { opacity: 0; }
.db-sidebar:hover .sb-logo-word { opacity: 1; }

.sb-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px 12px;
  margin: 1px 8px;
  color: var(--tm-text-3);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  border-radius: var(--r-card);
  transition: color var(--t-micro), background var(--t-micro);
  text-decoration: none;
}
.sb-item svg { flex-shrink: 0; transition: color var(--t-micro); }
.sb-item:hover   { color: var(--tm-text); background: var(--tm-surface-2); }
.sb-item:hover svg { color: var(--tm-accent); }

.sb-item.active   { color: var(--tm-text); background: var(--tm-surface-2); }
.sb-item.active svg { color: var(--tm-accent); }
.sb-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 25%;
  height: 50%;
  width: 2px;
  background: var(--tm-accent);
  border-radius: 99px;
}

/* Hide labels when collapsed — targets plain <span> in HTML */
.sb-item span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--t-panel);
  pointer-events: none;
  white-space: nowrap;
}
.db-sidebar:hover .sb-item span { opacity: 1; }

.sb-spacer { flex: 1; }

/* ── Main content ────────────────────────────────────────────────── */
.db-main { flex: 1; margin-left: 64px; }

/* Top bar — floating, no panel feel */
.db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-8);
  background: transparent;
}
.db-greeting {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.db-topbar-right { display: flex; align-items: center; gap: var(--sp-3); }

/* Credit tooltip */
.credit-tooltip {
  position: absolute;
  top: 130%;
  right: 0;
  background: var(--tm-surface-2);
  border: 1px solid var(--tm-border);
  border-radius: var(--r-card);
  padding: var(--sp-3) var(--sp-4);
  font-size: 12px;
  white-space: nowrap;
  display: none;
  z-index: 60;
  line-height: 1.6;
}
.tm-credit-pill:hover .credit-tooltip { display: block; animation: tm-up 120ms ease forwards; }

.db-content { padding: var(--sp-4) var(--sp-8) var(--sp-8); max-width: 1200px; }

.db-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tm-accent);
  margin-bottom: var(--sp-4);
}

/* Activity cards */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.activity-card {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-left: 2px solid transparent;
  border-radius: var(--r-card);
  padding: var(--sp-5, 20px);
  cursor: pointer;
  transition: border-color var(--t-micro), border-left-color var(--t-micro), transform var(--t-micro);
}
.activity-card:hover { border-color: var(--tm-border-2); border-left-color: var(--tm-accent); transform: translateY(-1px); }
.activity-card:active { transform: scale(0.99); }

.activity-card .ac-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.activity-card .ac-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-input);
  background: var(--tm-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--tm-accent);
  flex-shrink: 0;
}
.activity-card .ac-title {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.activity-card .ac-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tm-text-3);
}
.swatch-row { display: flex; gap: 4px; margin-top: var(--sp-3); }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--tm-border); }

/* Reload packages */
.reload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}
.reload-card {
  border: 1px solid var(--tm-border);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-micro), background var(--t-micro), transform var(--t-micro);
}
.reload-card:hover  { border-color: var(--tm-accent); background: var(--tm-accent-muted); }
.reload-card:active { transform: scale(0.98); }
.reload-card .rc-credits {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.reload-card .rc-price { color: var(--tm-text-2); font-size: 13px; }

/* Connectors */
.conn-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.conn-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--tm-border);
  border-radius: var(--r-card);
  transition: border-color var(--t-micro);
}
.conn-row:hover { border-color: var(--tm-border-2); }
.conn-row .cn-name { font-weight: 600; font-size: 14px; }
.conn-row .cn-desc { font-size: 12px; color: var(--tm-text-3); }

@media (max-width: 640px) {
  .db-sidebar   { width: 0; overflow: hidden; }
  .db-main      { margin-left: 0; }
  .reload-grid  { grid-template-columns: repeat(2, 1fr); }
  .lp-cards     { right: 50%; transform: translate(50%, -50%); }
  .db-topbar    { padding: var(--sp-4); }
  .db-content   { padding: var(--sp-4); }
}
